mm/memblock.c: do not complain about top-down allocations for !MEMORY_HOTREMOVE
[platform/kernel/linux-rpi.git] / crypto / testmgr.h
1 /*
2  * Algorithm testing framework and tests.
3  *
4  * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
5  * Copyright (c) 2002 Jean-Francois Dive <jef@linuxbe.org>
6  * Copyright (c) 2007 Nokia Siemens Networks
7  * Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au>
8  *
9  * Updated RFC4106 AES-GCM testing. Some test vectors were taken from
10  * http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/proposedmodes/
11  * gcm/gcm-test-vectors.tar.gz
12  *     Authors: Aidan O'Mahony (aidan.o.mahony@intel.com)
13  *              Adrian Hoban <adrian.hoban@intel.com>
14  *              Gabriele Paoloni <gabriele.paoloni@intel.com>
15  *              Tadeusz Struk (tadeusz.struk@intel.com)
16  *     Copyright (c) 2010, Intel Corporation.
17  *
18  * This program is free software; you can redistribute it and/or modify it
19  * under the terms of the GNU General Public License as published by the Free
20  * Software Foundation; either version 2 of the License, or (at your option)
21  * any later version.
22  *
23  */
24 #ifndef _CRYPTO_TESTMGR_H
25 #define _CRYPTO_TESTMGR_H
26
27 #include <linux/netlink.h>
28
29 #define MAX_DIGEST_SIZE         64
30 #define MAX_TAP                 8
31
32 #define MAX_KEYLEN              160
33 #define MAX_IVLEN               32
34
35 struct hash_testvec {
36         /* only used with keyed hash algorithms */
37         const char *key;
38         const char *plaintext;
39         const char *digest;
40         unsigned char tap[MAX_TAP];
41         unsigned short psize;
42         unsigned char np;
43         unsigned char ksize;
44 };
45
46 /*
47  * cipher_testvec:      structure to describe a 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         "\x11\x02" /* len */
645         "\x00\x01\x00\x00" /* key_size */
646         "\x00\x01\x00\x00" /* p_size */
647         "\x01\x00\x00\x00" /* g_size */
648 #else
649         "\x00\x01" /* type */
650         "\x02\x11" /* len */
651         "\x00\x00\x01\x00" /* key_size */
652         "\x00\x00\x01\x00" /* p_size */
653         "\x00\x00\x00\x01" /* g_size */
654 #endif
655         /* xa */
656         "\x44\xc1\x48\x36\xa7\x2b\x6f\x4e\x43\x03\x68\xad\x31\x00\xda\xf3"
657         "\x2a\x01\xa8\x32\x63\x5f\x89\x32\x1f\xdf\x4c\xa1\x6a\xbc\x10\x15"
658         "\x90\x35\xc9\x26\x41\xdf\x7b\xaa\x56\x56\x3d\x85\x44\xb5\xc0\x8e"
659         "\x37\x83\x06\x50\xb3\x5f\x0e\x28\x2c\xd5\x46\x15\xe3\xda\x7d\x74"
660         "\x87\x13\x91\x4f\xd4\x2d\xf6\xc7\x5e\x14\x2c\x11\xc2\x26\xb4\x3a"
661         "\xe3\xb2\x36\x20\x11\x3b\x22\xf2\x06\x65\x66\xe2\x57\x58\xf8\x22"
662         "\x1a\x94\xbd\x2b\x0e\x8c\x55\xad\x61\x23\x45\x2b\x19\x1e\x63\x3a"
663         "\x13\x61\xe3\xa0\x79\x70\x3e\x6d\x98\x32\xbc\x7f\x82\xc3\x11\xd8"
664         "\xeb\x53\xb5\xfc\xb5\xd5\x3c\x4a\xea\x92\x3e\x01\xce\x15\x65\xd4"
665         "\xaa\x85\xc1\x11\x90\x83\x31\x6e\xfe\xe7\x7f\x7d\xed\xab\xf9\x29"
666         "\xf8\xc7\xf1\x68\xc6\xb7\xe4\x1f\x2f\x28\xa0\xc9\x1a\x50\x64\x29"
667         "\x4b\x01\x6d\x1a\xda\x46\x63\x21\x07\x40\x8c\x8e\x4c\x6f\xb5\xe5"
668         "\x12\xf3\xc2\x1b\x48\x27\x5e\x27\x01\xb1\xaa\xed\x68\x9b\x83\x18"
669         "\x8f\xb1\xeb\x1f\x04\xd1\x3c\x79\xed\x4b\xf7\x0a\x33\xdc\xe0\xc6"
670         "\xd8\x02\x51\x59\x00\x74\x30\x07\x4c\x2d\xac\xe4\x13\xf1\x80\xf0"
671         "\xce\xfa\xff\xa9\xce\x29\x46\xdd\x9d\xad\xd1\xc3\xc6\x58\x1a\x63"
672         /* p */
673         "\xb9\x36\x3a\xf1\x82\x1f\x60\xd3\x22\x47\xb8\xbc\x2d\x22\x6b\x81"
674         "\x7f\xe8\x20\x06\x09\x23\x73\x49\x9a\x59\x8b\x35\x25\xf8\x31\xbc"
675         "\x7d\xa8\x1c\x9d\x56\x0d\x1a\xf7\x4b\x4f\x96\xa4\x35\x77\x6a\x89"
676         "\xab\x42\x00\x49\x21\x71\xed\x28\x16\x1d\x87\x5a\x10\xa7\x9c\x64"
677         "\x94\xd4\x87\x3d\x28\xef\x44\xfe\x4b\xe2\xb4\x15\x8c\x82\xa6\xf3"
678         "\x50\x5f\xa8\xe8\xa2\x60\xe7\x00\x86\x78\x05\xd4\x78\x19\xa1\x98"
679         "\x62\x4e\x4a\x00\x78\x56\x96\xe6\xcf\xd7\x10\x1b\x74\x5d\xd0\x26"
680         "\x61\xdb\x6b\x32\x09\x51\xd8\xa5\xfd\x54\x16\x71\x01\xb3\x39\xe6"
681         "\x4e\x69\xb1\xd7\x06\x8f\xd6\x1e\xdc\x72\x25\x26\x74\xc8\x41\x06"
682         "\x5c\xd1\x26\x5c\xb0\x2f\xf9\x59\x13\xc1\x2a\x0f\x78\xea\x7b\xf7"
683         "\xbd\x59\xa0\x90\x1d\xfc\x33\x5b\x4c\xbf\x05\x9c\x3a\x3f\x69\xa2"
684         "\x45\x61\x4e\x10\x6a\xb3\x17\xc5\x68\x30\xfb\x07\x5f\x34\xc6\xfb"
685         "\x73\x07\x3c\x70\xf6\xae\xe7\x72\x84\xc3\x18\x81\x8f\xe8\x11\x1f"
686         "\x3d\x83\x83\x01\x2a\x14\x73\xbf\x32\x32\x2e\xc9\x4d\xdb\x2a\xca"
687         "\xee\x71\xf9\xda\xad\xe8\x82\x0b\x4d\x0c\x1f\xb6\x1d\xef\x00\x67"
688         "\x74\x3d\x95\xe0\xb7\xc4\x30\x8a\x24\x87\x12\x47\x27\x70\x0d\x73"
689         /* g */
690         "\x02",
691         .b_public =
692         "\x2a\x67\x5c\xfd\x63\x5d\xc0\x97\x0a\x8b\xa2\x1f\xf8\x8a\xcb\x54"
693         "\xca\x2f\xd3\x49\x3f\x01\x8e\x87\xfe\xcc\x94\xa0\x3e\xd4\x26\x79"
694         "\x9a\x94\x3c\x11\x81\x58\x5c\x60\x3d\xf5\x98\x90\x89\x64\x62\x1f"
695         "\xbd\x05\x6d\x2b\xcd\x84\x40\x9b\x4a\x1f\xe0\x19\xf1\xca\x20\xb3"
696         "\x4e\xa0\x4f\x15\xcc\xa5\xfe\xa5\xb4\xf5\x0b\x18\x7a\x5a\x37\xaa"
697         "\x58\x00\x19\x7f\xe2\xa3\xd9\x1c\x44\x57\xcc\xde\x2e\xc1\x38\xea"
698         "\xeb\xe3\x90\x40\xc4\x6c\xf7\xcd\xe9\x22\x50\x71\xf5\x7c\xdb\x37"
699         "\x0e\x80\xc3\xed\x7e\xb1\x2b\x2f\xbe\x71\xa6\x11\xa5\x9d\xf5\x39"
700         "\xf1\xa2\xe5\x85\xbc\x25\x91\x4e\x84\x8d\x26\x9f\x4f\xe6\x0f\xa6"
701         "\x2b\x6b\xf9\x0d\xaf\x6f\xbb\xfa\x2d\x79\x15\x31\x57\xae\x19\x60"
702         "\x22\x0a\xf5\xfd\x98\x0e\xbf\x5d\x49\x75\x58\x37\xbc\x7f\xf5\x21"
703         "\x56\x1e\xd5\xb3\x50\x0b\xca\x96\xf3\xd1\x3f\xb3\x70\xa8\x6d\x63"
704         "\x48\xfb\x3d\xd7\x29\x91\x45\xb5\x48\xcd\xb6\x78\x30\xf2\x3f\x1e"
705         "\xd6\x22\xd6\x35\x9b\xf9\x1f\x85\xae\xab\x4b\xd7\xe0\xc7\x86\x67"
706         "\x3f\x05\x7f\xa6\x0d\x2f\x0d\xbf\x53\x5f\x4d\x2c\x6d\x5e\x57\x40"
707         "\x30\x3a\x23\x98\xf9\xb4\x32\xf5\x32\x83\xdd\x0b\xae\x33\x97\x2f",
708         .expected_a_public =
709         "\x5c\x24\xdf\xeb\x5b\x4b\xf8\xc5\xef\x39\x48\x82\xe0\x1e\x62\xee"
710         "\x8a\xae\xdf\x93\x6c\x2b\x16\x95\x92\x16\x3f\x16\x7b\x75\x03\x85"
711         "\xd9\xf1\x69\xc2\x14\x87\x45\xfc\xa4\x19\xf6\xf0\xa4\xf3\xec\xd4"
712         "\x6c\x5c\x03\x3b\x94\xc2\x2f\x92\xe4\xce\xb3\xe4\x72\xe8\x17\xe6"
713         "\x23\x7e\x00\x01\x09\x59\x13\xbf\xc1\x2f\x99\xa9\x07\xaa\x02\x23"
714         "\x4a\xca\x39\x4f\xbc\xec\x0f\x27\x4f\x19\x93\x6c\xb9\x30\x52\xfd"
715         "\x2b\x9d\x86\xf1\x06\x1e\xb6\x56\x27\x4a\xc9\x8a\xa7\x8a\x48\x5e"
716         "\xb5\x60\xcb\xdf\xff\x03\x26\x10\xbf\x90\x8f\x46\x60\xeb\x9b\x9a"
717         "\xd6\x6f\x44\x91\x03\x92\x18\x2c\x96\x5e\x40\x19\xfb\xf4\x4f\x3a"
718         "\x02\x7b\xaf\xcc\x22\x20\x79\xb9\xf8\x9f\x8f\x85\x6b\xec\x44\xbb"
719         "\xe6\xa8\x8e\xb1\xe8\x2c\xee\x64\xee\xf8\xbd\x00\xf3\xe2\x2b\x93"
720         "\xcd\xe7\xc4\xdf\xc9\x19\x46\xfe\xb6\x07\x73\xc1\x8a\x64\x79\x26"
721         "\xe7\x30\xad\x2a\xdf\xe6\x8f\x59\xf5\x81\xbf\x4a\x29\x91\xe7\xb7"
722         "\xcf\x48\x13\x27\x75\x79\x40\xd9\xd6\x32\x52\x4e\x6a\x86\xae\x6f"
723         "\xc2\xbf\xec\x1f\xc2\x69\xb2\xb6\x59\xe5\xa5\x17\xa4\x77\xb7\x62"
724         "\x46\xde\xe8\xd2\x89\x78\x9a\xef\xa3\xb5\x8f\x26\xec\x80\xda\x39",
725         .expected_ss =
726         "\x8f\xf3\xac\xa2\xea\x22\x11\x5c\x45\x65\x1a\x77\x75\x2e\xcf\x46"
727         "\x23\x14\x1e\x67\x53\x4d\x35\xb0\x38\x1d\x4e\xb9\x41\x9a\x21\x24"
728         "\x6e\x9f\x40\xfe\x90\x51\xb1\x06\xa4\x7b\x87\x17\x2f\xe7\x5e\x22"
729         "\xf0\x7b\x54\x84\x0a\xac\x0a\x90\xd2\xd7\xe8\x7f\xe7\xe3\x30\x75"
730         "\x01\x1f\x24\x75\x56\xbe\xcc\x8d\x1e\x68\x0c\x41\x72\xd3\xfa\xbb"
731         "\xe5\x9c\x60\xc7\x28\x77\x0c\xbe\x89\xab\x08\xd6\x21\xe7\x2e\x1a"
732         "\x58\x7a\xca\x4f\x22\xf3\x2b\x30\xfd\xf4\x98\xc1\xa3\xf8\xf6\xcc"
733         "\xa9\xe4\xdb\x5b\xee\xd5\x5c\x6f\x62\x4c\xd1\x1a\x02\x2a\x23\xe4"
734         "\xb5\x57\xf3\xf9\xec\x04\x83\x54\xfe\x08\x5e\x35\xac\xfb\xa8\x09"
735         "\x82\x32\x60\x11\xb2\x16\x62\x6b\xdf\xda\xde\x9c\xcb\x63\x44\x6c"
736         "\x59\x26\x6a\x8f\xb0\x24\xcb\xa6\x72\x48\x1e\xeb\xe0\xe1\x09\x44"
737         "\xdd\xee\x66\x6d\x84\xcf\xa5\xc1\xb8\x36\x74\xd3\x15\x96\xc3\xe4"
738         "\xc6\x5a\x4d\x23\x97\x0c\x5c\xcb\xa9\xf5\x29\xc2\x0e\xff\x93\x82"
739         "\xd3\x34\x49\xad\x64\xa6\xb1\xc0\x59\x28\x75\x60\xa7\x8a\xb0\x11"
740         "\x56\x89\x42\x74\x11\xf5\xf6\x5e\x6f\x16\x54\x6a\xb1\x76\x4d\x50"
741         "\x8a\x68\xc1\x5b\x82\xb9\x0d\x00\x32\x50\xed\x88\x87\x48\x92\x17",
742         .secret_size = 529,
743         .b_public_size = 256,
744         .expected_a_public_size = 256,
745         .expected_ss_size = 256,
746         },
747         {
748         .secret =
749 #ifdef __LITTLE_ENDIAN
750         "\x01\x00" /* type */
751         "\x11\x02" /* len */
752         "\x00\x01\x00\x00" /* key_size */
753         "\x00\x01\x00\x00" /* p_size */
754         "\x01\x00\x00\x00" /* g_size */
755 #else
756         "\x00\x01" /* type */
757         "\x02\x11" /* len */
758         "\x00\x00\x01\x00" /* key_size */
759         "\x00\x00\x01\x00" /* p_size */
760         "\x00\x00\x00\x01" /* g_size */
761 #endif
762         /* xa */
763         "\x4d\x75\xa8\x6e\xba\x23\x3a\x0c\x63\x56\xc8\xc9\x5a\xa7\xd6\x0e"
764         "\xed\xae\x40\x78\x87\x47\x5f\xe0\xa7\x7b\xba\x84\x88\x67\x4e\xe5"
765         "\x3c\xcc\x5c\x6a\xe7\x4a\x20\xec\xbe\xcb\xf5\x52\x62\x9f\x37\x80"
766         "\x0c\x72\x7b\x83\x66\xa4\xf6\x7f\x95\x97\x1c\x6a\x5c\x7e\xf1\x67"
767         "\x37\xb3\x93\x39\x3d\x0b\x55\x35\xd9\xe5\x22\x04\x9f\xf8\xc1\x04"
768         "\xce\x13\xa5\xac\xe1\x75\x05\xd1\x2b\x53\xa2\x84\xef\xb1\x18\xf4"
769         "\x66\xdd\xea\xe6\x24\x69\x5a\x49\xe0\x7a\xd8\xdf\x1b\xb7\xf1\x6d"
770         "\x9b\x50\x2c\xc8\x1c\x1c\xa3\xb4\x37\xfb\x66\x3f\x67\x71\x73\xa9"
771         "\xff\x5f\xd9\xa2\x25\x6e\x25\x1b\x26\x54\xbf\x0c\xc6\xdb\xea\x0a"
772         "\x52\x6c\x16\x7c\x27\x68\x15\x71\x58\x73\x9d\xe6\xc2\x80\xaa\x97"
773         "\x31\x66\xfb\xa6\xfb\xfd\xd0\x9c\x1d\xbe\x81\x48\xf5\x9a\x32\xf1"
774         "\x69\x62\x18\x78\xae\x72\x36\xe6\x94\x27\xd1\xff\x18\x4f\x28\x6a"
775         "\x16\xbd\x6a\x60\xee\xe5\xf9\x6d\x16\xe4\xb8\xa6\x41\x9b\x23\x7e"
776         "\xf7\x9d\xd1\x1d\x03\x15\x66\x3a\xcf\xb6\x2c\x13\x96\x2c\x52\x21"
777         "\xe4\x2d\x48\x7a\x8a\x5d\xb2\x88\xed\x98\x61\x79\x8b\x6a\x1e\x5f"
778         "\xd0\x8a\x2d\x99\x5a\x2b\x0f\xbc\xef\x53\x8f\x32\xc1\xa2\x99\x26"
779         /* p */
780         "\xb9\x36\x3a\xf1\x82\x1f\x60\xd3\x22\x47\xb8\xbc\x2d\x22\x6b\x81"
781         "\x7f\xe8\x20\x06\x09\x23\x73\x49\x9a\x59\x8b\x35\x25\xf8\x31\xbc"
782         "\x7d\xa8\x1c\x9d\x56\x0d\x1a\xf7\x4b\x4f\x96\xa4\x35\x77\x6a\x89"
783         "\xab\x42\x00\x49\x21\x71\xed\x28\x16\x1d\x87\x5a\x10\xa7\x9c\x64"
784         "\x94\xd4\x87\x3d\x28\xef\x44\xfe\x4b\xe2\xb4\x15\x8c\x82\xa6\xf3"
785         "\x50\x5f\xa8\xe8\xa2\x60\xe7\x00\x86\x78\x05\xd4\x78\x19\xa1\x98"
786         "\x62\x4e\x4a\x00\x78\x56\x96\xe6\xcf\xd7\x10\x1b\x74\x5d\xd0\x26"
787         "\x61\xdb\x6b\x32\x09\x51\xd8\xa5\xfd\x54\x16\x71\x01\xb3\x39\xe6"
788         "\x4e\x69\xb1\xd7\x06\x8f\xd6\x1e\xdc\x72\x25\x26\x74\xc8\x41\x06"
789         "\x5c\xd1\x26\x5c\xb0\x2f\xf9\x59\x13\xc1\x2a\x0f\x78\xea\x7b\xf7"
790         "\xbd\x59\xa0\x90\x1d\xfc\x33\x5b\x4c\xbf\x05\x9c\x3a\x3f\x69\xa2"
791         "\x45\x61\x4e\x10\x6a\xb3\x17\xc5\x68\x30\xfb\x07\x5f\x34\xc6\xfb"
792         "\x73\x07\x3c\x70\xf6\xae\xe7\x72\x84\xc3\x18\x81\x8f\xe8\x11\x1f"
793         "\x3d\x83\x83\x01\x2a\x14\x73\xbf\x32\x32\x2e\xc9\x4d\xdb\x2a\xca"
794         "\xee\x71\xf9\xda\xad\xe8\x82\x0b\x4d\x0c\x1f\xb6\x1d\xef\x00\x67"
795         "\x74\x3d\x95\xe0\xb7\xc4\x30\x8a\x24\x87\x12\x47\x27\x70\x0d\x73"
796         /* g */
797         "\x02",
798         .b_public =
799         "\x99\x4d\xd9\x01\x84\x8e\x4a\x5b\xb8\xa5\x64\x8c\x6c\x00\x5c\x0e"
800         "\x1e\x1b\xee\x5d\x9f\x53\xe3\x16\x70\x01\xed\xbf\x4f\x14\x36\x6e"
801         "\xe4\x43\x45\x43\x49\xcc\xb1\xb0\x2a\xc0\x6f\x22\x55\x42\x17\x94"
802         "\x18\x83\xd7\x2a\x5c\x51\x54\xf8\x4e\x7c\x10\xda\x76\x68\x57\x77"
803         "\x1e\x62\x03\x30\x04\x7b\x4c\x39\x9c\x54\x01\x54\xec\xef\xb3\x55"
804         "\xa4\xc0\x24\x6d\x3d\xbd\xcc\x46\x5b\x00\x96\xc7\xea\x93\xd1\x3f"
805         "\xf2\x6a\x72\xe3\xf2\xc1\x92\x24\x5b\xda\x48\x70\x2c\xa9\x59\x97"
806         "\x19\xb1\xd6\x54\xb3\x9c\x2e\xb0\x63\x07\x9b\x5e\xac\xb5\xf2\xb1"
807         "\x5b\xf8\xf3\xd7\x2d\x37\x9b\x68\x6c\xf8\x90\x07\xbc\x37\x9a\xa5"
808         "\xe2\x91\x12\x25\x47\x77\xe3\x3d\xb2\x95\x69\x44\x0b\x91\x1e\xaf"
809         "\x7c\x8c\x7c\x34\x41\x6a\xab\x60\x6e\xc6\x52\xec\x7e\x94\x0a\x37"
810         "\xec\x98\x90\xdf\x3f\x02\xbd\x23\x52\xdd\xd9\xe5\x31\x80\x74\x25"
811         "\xb6\xd2\xd3\xcc\xd5\xcc\x6d\xf9\x7e\x4d\x78\xab\x77\x51\xfa\x77"
812         "\x19\x94\x49\x8c\x05\xd4\x75\xed\xd2\xb3\x64\x57\xe0\x52\x99\xc0"
813         "\x83\xe3\xbb\x5e\x2b\xf1\xd2\xc0\xb1\x37\x36\x0b\x7c\xb5\x63\x96"
814         "\x8e\xde\x04\x23\x11\x95\x62\x11\x9a\xce\x6f\x63\xc8\xd5\xd1\x8f",
815         .expected_a_public =
816         "\x90\x89\xe4\x82\xd6\x0a\xcf\x1a\xae\xce\x1b\x66\xa7\x19\x71\x18"
817         "\x8f\x95\x4b\x5b\x80\x45\x4a\x5a\x43\x99\x4d\x37\xcf\xa3\xa7\x28"
818         "\x9c\xc7\x73\xf1\xb2\x17\xf6\x99\xe3\x6b\x56\xcb\x3e\x35\x60\x7d"
819         "\x65\xc7\x84\x6b\x3e\x60\xee\xcd\xd2\x70\xe7\xc9\x32\x1c\xf0\xb4"
820         "\xf9\x52\xd9\x88\x75\xfd\x40\x2c\xa7\xbe\x19\x1c\x0a\xae\x93\xe1"
821         "\x71\xc7\xcd\x4f\x33\x5c\x10\x7d\x39\x56\xfc\x73\x84\xb2\x67\xc3"
822         "\x77\x26\x20\x97\x2b\xf8\x13\x43\x93\x9c\x9a\xa4\x08\xc7\x34\x83"
823         "\xe6\x98\x61\xe7\x16\x30\x2c\xb1\xdb\x2a\xb2\xcc\xc3\x02\xa5\x3c"
824         "\x71\x50\x14\x83\xc7\xbb\xa4\xbe\x98\x1b\xfe\xcb\x43\xe9\x97\x62"
825         "\xd6\xf0\x8c\xcb\x1c\xba\x1e\xa8\xa6\xa6\x50\xfc\x85\x7d\x47\xbf"
826         "\xf4\x3e\x23\xd3\x5f\xb2\x71\x3e\x40\x94\xaa\x87\x83\x2c\x6c\x8e"
827         "\x60\xfd\xdd\xf7\xf4\x76\x03\xd3\x1d\xec\x18\x51\xa3\xf2\x44\x1a"
828         "\x3f\xb4\x7c\x18\x0d\x68\x65\x92\x54\x0d\x2d\x81\x16\xf1\x84\x66"
829         "\x89\x92\xd0\x1a\x5e\x1f\x42\x46\x5b\xe5\x83\x86\x80\xd9\xcd\x3a"
830         "\x5a\x2f\xb9\x59\x9b\xe4\x43\x84\x64\xf3\x09\x1a\x0a\xa2\x64\x0f"
831         "\x77\x4e\x8d\x8b\xe6\x88\xd1\xfc\xaf\x8f\xdf\x1d\xbc\x31\xb3\xbd",
832         .expected_ss =
833         "\x34\xc3\x35\x14\x88\x46\x26\x23\x97\xbb\xdd\x28\x5c\x94\xf6\x47"
834         "\xca\xb3\x19\xaf\xca\x44\x9b\xc2\x7d\x89\xfd\x96\x14\xfd\x6d\x58"
835         "\xd8\xc4\x6b\x61\x2a\x0d\xf2\x36\x45\xc8\xe4\xa4\xed\x81\x53\x81"
836         "\x66\x1e\xe0\x5a\xb1\x78\x2d\x0b\x5c\xb4\xd1\xfc\x90\xc6\x9c\xdb"
837         "\x5a\x30\x0b\x14\x7d\xbe\xb3\x7d\xb1\xb2\x76\x3c\x6c\xef\x74\x6b"
838         "\xe7\x1f\x64\x0c\xab\x65\xe1\x76\x5c\x3d\x83\xb5\x8a\xfb\xaf\x0f"
839         "\xf2\x06\x14\x8f\xa0\xf6\xc1\x89\x78\xf2\xba\x72\x73\x3c\xf7\x76"
840         "\x21\x67\xbc\x24\x31\xb8\x09\x65\x0f\x0c\x02\x32\x4a\x98\x14\xfc"
841         "\x72\x2c\x25\x60\x68\x5f\x2f\x30\x1e\x5b\xf0\x3b\xd1\xa2\x87\xa0"
842         "\x54\xdf\xdb\xc0\xee\x0a\x0f\x47\xc9\x90\x20\x2c\xf9\xe3\x52\xad"
843         "\x27\x65\x8d\x54\x8d\xa8\xa1\xf3\xed\x15\xd4\x94\x28\x90\x31\x93"
844         "\x1b\xc0\x51\xbb\x43\x5d\x76\x3b\x1d\x2a\x71\x50\xea\x5d\x48\x94"
845         "\x7f\x6f\xf1\x48\xdb\x30\xe5\xae\x64\x79\xd9\x7a\xdb\xc6\xff\xd8"
846         "\x5e\x5a\x64\xbd\xf6\x85\x04\xe8\x28\x6a\xac\xef\xce\x19\x8e\x9a"
847         "\xfe\x75\xc0\x27\x69\xe3\xb3\x7b\x21\xa7\xb1\x16\xa4\x85\x23\xee"
848         "\xb0\x1b\x04\x6e\xbd\xab\x16\xde\xfd\x86\x6b\xa9\x95\xd7\x0b\xfd",
849         .secret_size = 529,
850         .b_public_size = 256,
851         .expected_a_public_size = 256,
852         .expected_ss_size = 256,
853         }
854 };
855
856 static const struct kpp_testvec ecdh_tv_template[] = {
857         {
858 #ifndef CONFIG_CRYPTO_FIPS
859         .secret =
860 #ifdef __LITTLE_ENDIAN
861         "\x02\x00" /* type */
862         "\x20\x00" /* len */
863         "\x01\x00" /* curve_id */
864         "\x18\x00" /* key_size */
865 #else
866         "\x00\x02" /* type */
867         "\x00\x20" /* len */
868         "\x00\x01" /* curve_id */
869         "\x00\x18" /* key_size */
870 #endif
871         "\xb5\x05\xb1\x71\x1e\xbf\x8c\xda"
872         "\x4e\x19\x1e\x62\x1f\x23\x23\x31"
873         "\x36\x1e\xd3\x84\x2f\xcc\x21\x72",
874         .b_public =
875         "\xc3\xba\x67\x4b\x71\xec\xd0\x76"
876         "\x7a\x99\x75\x64\x36\x13\x9a\x94"
877         "\x5d\x8b\xdc\x60\x90\x91\xfd\x3f"
878         "\xb0\x1f\x8a\x0a\x68\xc6\x88\x6e"
879         "\x83\x87\xdd\x67\x09\xf8\x8d\x96"
880         "\x07\xd6\xbd\x1c\xe6\x8d\x9d\x67",
881         .expected_a_public =
882         "\x1a\x04\xdb\xa5\xe1\xdd\x4e\x79"
883         "\xa3\xe6\xef\x0e\x5c\x80\x49\x85"
884         "\xfa\x78\xb4\xef\x49\xbd\x4c\x7c"
885         "\x22\x90\x21\x02\xf9\x1b\x81\x5d"
886         "\x0c\x8a\xa8\x98\xd6\x27\x69\x88"
887         "\x5e\xbc\x94\xd8\x15\x9e\x21\xce",
888         .expected_ss =
889         "\xf4\x57\xcc\x4f\x1f\x4e\x31\xcc"
890         "\xe3\x40\x60\xc8\x06\x93\xc6\x2e"
891         "\x99\x80\x81\x28\xaf\xc5\x51\x74",
892         .secret_size = 32,
893         .b_public_size = 48,
894         .expected_a_public_size = 48,
895         .expected_ss_size = 24
896         }, {
897 #endif
898         .secret =
899 #ifdef __LITTLE_ENDIAN
900         "\x02\x00" /* type */
901         "\x28\x00" /* len */
902         "\x02\x00" /* curve_id */
903         "\x20\x00" /* key_size */
904 #else
905         "\x00\x02" /* type */
906         "\x00\x28" /* len */
907         "\x00\x02" /* curve_id */
908         "\x00\x20" /* key_size */
909 #endif
910         "\x24\xd1\x21\xeb\xe5\xcf\x2d\x83"
911         "\xf6\x62\x1b\x6e\x43\x84\x3a\xa3"
912         "\x8b\xe0\x86\xc3\x20\x19\xda\x92"
913         "\x50\x53\x03\xe1\xc0\xea\xb8\x82",
914         .expected_a_public =
915         "\x1a\x7f\xeb\x52\x00\xbd\x3c\x31"
916         "\x7d\xb6\x70\xc1\x86\xa6\xc7\xc4"
917         "\x3b\xc5\x5f\x6c\x6f\x58\x3c\xf5"
918         "\xb6\x63\x82\x77\x33\x24\xa1\x5f"
919         "\x6a\xca\x43\x6f\xf7\x7e\xff\x02"
920         "\x37\x08\xcc\x40\x5e\x7a\xfd\x6a"
921         "\x6a\x02\x6e\x41\x87\x68\x38\x77"
922         "\xfa\xa9\x44\x43\x2d\xef\x09\xdf",
923         .expected_ss =
924         "\xea\x17\x6f\x7e\x6e\x57\x26\x38"
925         "\x8b\xfb\x41\xeb\xba\xc8\x6d\xa5"
926         "\xa8\x72\xd1\xff\xc9\x47\x3d\xaa"
927         "\x58\x43\x9f\x34\x0f\x8c\xf3\xc9",
928         .b_public =
929         "\xcc\xb4\xda\x74\xb1\x47\x3f\xea"
930         "\x6c\x70\x9e\x38\x2d\xc7\xaa\xb7"
931         "\x29\xb2\x47\x03\x19\xab\xdd\x34"
932         "\xbd\xa8\x2c\x93\xe1\xa4\x74\xd9"
933         "\x64\x63\xf7\x70\x20\x2f\xa4\xe6"
934         "\x9f\x4a\x38\xcc\xc0\x2c\x49\x2f"
935         "\xb1\x32\xbb\xaf\x22\x61\xda\xcb"
936         "\x6f\xdb\xa9\xaa\xfc\x77\x81\xf3",
937         .secret_size = 40,
938         .b_public_size = 64,
939         .expected_a_public_size = 64,
940         .expected_ss_size = 32
941         }, {
942         .secret =
943 #ifdef __LITTLE_ENDIAN
944         "\x02\x00" /* type */
945         "\x08\x00" /* len */
946         "\x02\x00" /* curve_id */
947         "\x00\x00", /* key_size */
948 #else
949         "\x00\x02" /* type */
950         "\x00\x08" /* len */
951         "\x00\x02" /* curve_id */
952         "\x00\x00", /* key_size */
953 #endif
954         .b_secret =
955 #ifdef __LITTLE_ENDIAN
956         "\x02\x00" /* type */
957         "\x28\x00" /* len */
958         "\x02\x00" /* curve_id */
959         "\x20\x00" /* key_size */
960 #else
961         "\x00\x02" /* type */
962         "\x00\x28" /* len */
963         "\x00\x02" /* curve_id */
964         "\x00\x20" /* key_size */
965 #endif
966         "\x24\xd1\x21\xeb\xe5\xcf\x2d\x83"
967         "\xf6\x62\x1b\x6e\x43\x84\x3a\xa3"
968         "\x8b\xe0\x86\xc3\x20\x19\xda\x92"
969         "\x50\x53\x03\xe1\xc0\xea\xb8\x82",
970         .b_public =
971         "\x1a\x7f\xeb\x52\x00\xbd\x3c\x31"
972         "\x7d\xb6\x70\xc1\x86\xa6\xc7\xc4"
973         "\x3b\xc5\x5f\x6c\x6f\x58\x3c\xf5"
974         "\xb6\x63\x82\x77\x33\x24\xa1\x5f"
975         "\x6a\xca\x43\x6f\xf7\x7e\xff\x02"
976         "\x37\x08\xcc\x40\x5e\x7a\xfd\x6a"
977         "\x6a\x02\x6e\x41\x87\x68\x38\x77"
978         "\xfa\xa9\x44\x43\x2d\xef\x09\xdf",
979         .secret_size = 8,
980         .b_secret_size = 40,
981         .b_public_size = 64,
982         .expected_a_public_size = 64,
983         .expected_ss_size = 32,
984         .genkey = true,
985         }
986 };
987
988 /*
989  * MD4 test vectors from RFC1320
990  */
991 static const struct hash_testvec md4_tv_template[] = {
992         {
993                 .plaintext = "",
994                 .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31"
995                           "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0",
996         }, {
997                 .plaintext = "a",
998                 .psize  = 1,
999                 .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46"
1000                           "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24",
1001         }, {
1002                 .plaintext = "abc",
1003                 .psize  = 3,
1004                 .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52"
1005                           "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d",
1006         }, {
1007                 .plaintext = "message digest",
1008                 .psize  = 14,
1009                 .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8"
1010                         "\x18\x87\x48\x06\xe1\xc7\x01\x4b",
1011         }, {
1012                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1013                 .psize  = 26,
1014                 .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd"
1015                           "\xee\xa8\xed\x63\xdf\x41\x2d\xa9",
1016                 .np     = 2,
1017                 .tap    = { 13, 13 },
1018         }, {
1019                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
1020                 .psize  = 62,
1021                 .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35"
1022                           "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4",
1023         }, {
1024                 .plaintext = "123456789012345678901234567890123456789012345678901234567890123"
1025                            "45678901234567890",
1026                 .psize  = 80,
1027                 .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19"
1028                           "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36",
1029         },
1030 };
1031
1032 static const struct hash_testvec sha3_224_tv_template[] = {
1033         {
1034                 .plaintext = "",
1035                 .digest = "\x6b\x4e\x03\x42\x36\x67\xdb\xb7"
1036                                 "\x3b\x6e\x15\x45\x4f\x0e\xb1\xab"
1037                                 "\xd4\x59\x7f\x9a\x1b\x07\x8e\x3f"
1038                                 "\x5b\x5a\x6b\xc7",
1039         }, {
1040                 .plaintext = "a",
1041                 .psize  = 1,
1042                 .digest = "\x9e\x86\xff\x69\x55\x7c\xa9\x5f"
1043                                 "\x40\x5f\x08\x12\x69\x68\x5b\x38"
1044                                 "\xe3\xa8\x19\xb3\x09\xee\x94\x2f"
1045                                 "\x48\x2b\x6a\x8b",
1046         }, {
1047                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1048                                 "jklmklmnlmnomnopnopq",
1049                 .psize  = 56,
1050                 .digest = "\x8a\x24\x10\x8b\x15\x4a\xda\x21"
1051                                 "\xc9\xfd\x55\x74\x49\x44\x79\xba"
1052                                 "\x5c\x7e\x7a\xb7\x6e\xf2\x64\xea"
1053                                 "\xd0\xfc\xce\x33",
1054                 .np     = 2,
1055                 .tap    = { 28, 28 },
1056         }, {
1057                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1058                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1059                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1060                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1061                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1062                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1063                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1064                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1065                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1066                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1067                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1068                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1069                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1070                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1071                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1072                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1073                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1074                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1075                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1076                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1077                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1078                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1079                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1080                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1081                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1082                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1083                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1084                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1085                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1086                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1087                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1088                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1089                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1090                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1091                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1092                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1093                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1094                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1095                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1096                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1097                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1098                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1099                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1100                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1101                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1102                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1103                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1104                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1105                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1106                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1107                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1108                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1109                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1110                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1111                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1112                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1113                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1114                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1115                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1116                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1117                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1118                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1119                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1120                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1121                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1122                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1123                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1124                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1125                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1126                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1127                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1128                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1129                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1130                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1131                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1132                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1133                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1134                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1135                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1136                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1137                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1138                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1139                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1140                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1141                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1142                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1143                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1144                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1145                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1146                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1147                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1148                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1149                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1150                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1151                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1152                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1153                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1154                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1155                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1156                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1157                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1158                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1159                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1160                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1161                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1162                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1163                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1164                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1165                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1166                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1167                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1168                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1169                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1170                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1171                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1172                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1173                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1174                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1175                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1176                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1177                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1178                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1179                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1180                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1181                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1182                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1183                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1184                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1185                 .psize     = 1023,
1186                 .digest    = "\x7d\x0f\x2f\xb7\x65\x3b\xa7\x26"
1187                              "\xc3\x88\x20\x71\x15\x06\xe8\x2d"
1188                              "\xa3\x92\x44\xab\x3e\xe7\xff\x86"
1189                              "\xb6\x79\x10\x72",
1190         },
1191 };
1192
1193 static const struct hash_testvec sha3_256_tv_template[] = {
1194         {
1195                 .plaintext = "",
1196                 .digest = "\xa7\xff\xc6\xf8\xbf\x1e\xd7\x66"
1197                                 "\x51\xc1\x47\x56\xa0\x61\xd6\x62"
1198                                 "\xf5\x80\xff\x4d\xe4\x3b\x49\xfa"
1199                                 "\x82\xd8\x0a\x4b\x80\xf8\x43\x4a",
1200         }, {
1201                 .plaintext = "a",
1202                 .psize  = 1,
1203                 .digest = "\x80\x08\x4b\xf2\xfb\xa0\x24\x75"
1204                                 "\x72\x6f\xeb\x2c\xab\x2d\x82\x15"
1205                                 "\xea\xb1\x4b\xc6\xbd\xd8\xbf\xb2"
1206                                 "\xc8\x15\x12\x57\x03\x2e\xcd\x8b",
1207         }, {
1208                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1209                              "jklmklmnlmnomnopnopq",
1210                 .psize  = 56,
1211                 .digest = "\x41\xc0\xdb\xa2\xa9\xd6\x24\x08"
1212                                 "\x49\x10\x03\x76\xa8\x23\x5e\x2c"
1213                                 "\x82\xe1\xb9\x99\x8a\x99\x9e\x21"
1214                                 "\xdb\x32\xdd\x97\x49\x6d\x33\x76",
1215                 .np     = 2,
1216                 .tap    = { 28, 28 },
1217         }, {
1218                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1219                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1220                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1221                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1222                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1223                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1224                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1225                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1226                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1227                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1228                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1229                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1230                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1231                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1232                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1233                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1234                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1235                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1236                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1237                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1238                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1239                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1240                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1241                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1242                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1243                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1244                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1245                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1246                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1247                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1248                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1249                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1250                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1251                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1252                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1253                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1254                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1255                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1256                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1257                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1258                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1259                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1260                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1261                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1262                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1263                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1264                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1265                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1266                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1267                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1268                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1269                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1270                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1271                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1272                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1273                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1274                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1275                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1276                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1277                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1278                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1279                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1280                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1281                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1282                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1283                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1284                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1285                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1286                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1287                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1288                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1289                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1290                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1291                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1292                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1293                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1294                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1295                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1296                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1297                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1298                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1299                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1300                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1301                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1302                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1303                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1304                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1305                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1306                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1307                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1308                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1309                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1310                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1311                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1312                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1313                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1314                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1315                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1316                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1317                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1318                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1319                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1320                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1321                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1322                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1323                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1324                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1325                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1326                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1327                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1328                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1329                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1330                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1331                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1332                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1333                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1334                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1335                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1336                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1337                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1338                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1339                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1340                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1341                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1342                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1343                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1344                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1345                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1346                 .psize     = 1023,
1347                 .digest    = "\xde\x41\x04\xbd\xda\xda\xd9\x71"
1348                              "\xf7\xfa\x80\xf5\xea\x11\x03\xb1"
1349                              "\x3b\x6a\xbc\x5f\xb9\x66\x26\xf7"
1350                              "\x8a\x97\xbb\xf2\x07\x08\x38\x30",
1351         },
1352 };
1353
1354
1355 static const struct hash_testvec sha3_384_tv_template[] = {
1356         {
1357                 .plaintext = "",
1358                 .digest = "\x0c\x63\xa7\x5b\x84\x5e\x4f\x7d"
1359                                 "\x01\x10\x7d\x85\x2e\x4c\x24\x85"
1360                                 "\xc5\x1a\x50\xaa\xaa\x94\xfc\x61"
1361                                 "\x99\x5e\x71\xbb\xee\x98\x3a\x2a"
1362                                 "\xc3\x71\x38\x31\x26\x4a\xdb\x47"
1363                                 "\xfb\x6b\xd1\xe0\x58\xd5\xf0\x04",
1364         }, {
1365                 .plaintext = "a",
1366                 .psize  = 1,
1367                 .digest = "\x18\x15\xf7\x74\xf3\x20\x49\x1b"
1368                                 "\x48\x56\x9e\xfe\xc7\x94\xd2\x49"
1369                                 "\xee\xb5\x9a\xae\x46\xd2\x2b\xf7"
1370                                 "\x7d\xaf\xe2\x5c\x5e\xdc\x28\xd7"
1371                                 "\xea\x44\xf9\x3e\xe1\x23\x4a\xa8"
1372                                 "\x8f\x61\xc9\x19\x12\xa4\xcc\xd9",
1373         }, {
1374                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1375                              "jklmklmnlmnomnopnopq",
1376                 .psize  = 56,
1377                 .digest = "\x99\x1c\x66\x57\x55\xeb\x3a\x4b"
1378                                 "\x6b\xbd\xfb\x75\xc7\x8a\x49\x2e"
1379                                 "\x8c\x56\xa2\x2c\x5c\x4d\x7e\x42"
1380                                 "\x9b\xfd\xbc\x32\xb9\xd4\xad\x5a"
1381                                 "\xa0\x4a\x1f\x07\x6e\x62\xfe\xa1"
1382                                 "\x9e\xef\x51\xac\xd0\x65\x7c\x22",
1383                 .np     = 2,
1384                 .tap    = { 28, 28 },
1385         }, {
1386                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1387                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1388                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1389                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1390                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1391                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1392                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1393                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1394                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1395                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1396                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1397                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1398                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1399                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1400                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1401                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1402                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1403                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1404                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1405                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1406                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1407                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1408                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1409                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1410                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1411                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1412                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1413                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1414                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1415                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1416                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1417                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1418                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1419                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1420                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1421                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1422                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1423                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1424                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1425                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1426                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1427                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1428                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1429                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1430                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1431                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1432                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1433                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1434                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1435                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1436                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1437                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1438                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1439                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1440                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1441                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1442                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1443                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1444                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1445                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1446                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1447                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1448                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1449                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1450                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1451                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1452                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1453                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1454                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1455                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1456                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1457                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1458                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1459                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1460                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1461                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1462                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1463                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1464                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1465                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1466                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1467                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1468                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1469                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1470                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1471                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1472                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1473                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1474                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1475                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1476                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1477                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1478                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1479                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1480                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1481                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1482                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1483                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1484                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1485                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1486                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1487                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1488                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1489                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1490                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1491                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1492                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1493                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1494                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1495                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1496                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1497                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1498                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1499                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1500                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1501                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1502                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1503                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1504                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1505                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1506                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1507                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1508                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1509                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1510                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1511                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1512                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1513                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1514                 .psize     = 1023,
1515                 .digest    = "\x1b\x19\x4d\x8f\xd5\x36\x87\x71"
1516                              "\xcf\xca\x30\x85\x9b\xc1\x25\xc7"
1517                              "\x00\xcb\x73\x8a\x8e\xd4\xfe\x2b"
1518                              "\x1a\xa2\xdc\x2e\x41\xfd\x52\x51"
1519                              "\xd2\x21\xae\x2d\xc7\xae\x8c\x40"
1520                              "\xb9\xe6\x56\x48\x03\xcd\x88\x6b",
1521         },
1522 };
1523
1524
1525 static const struct hash_testvec sha3_512_tv_template[] = {
1526         {
1527                 .plaintext = "",
1528                 .digest = "\xa6\x9f\x73\xcc\xa2\x3a\x9a\xc5"
1529                                 "\xc8\xb5\x67\xdc\x18\x5a\x75\x6e"
1530                                 "\x97\xc9\x82\x16\x4f\xe2\x58\x59"
1531                                 "\xe0\xd1\xdc\xc1\x47\x5c\x80\xa6"
1532                                 "\x15\xb2\x12\x3a\xf1\xf5\xf9\x4c"
1533                                 "\x11\xe3\xe9\x40\x2c\x3a\xc5\x58"
1534                                 "\xf5\x00\x19\x9d\x95\xb6\xd3\xe3"
1535                                 "\x01\x75\x85\x86\x28\x1d\xcd\x26",
1536         }, {
1537                 .plaintext = "a",
1538                 .psize  = 1,
1539                 .digest = "\x69\x7f\x2d\x85\x61\x72\xcb\x83"
1540                                 "\x09\xd6\xb8\xb9\x7d\xac\x4d\xe3"
1541                                 "\x44\xb5\x49\xd4\xde\xe6\x1e\xdf"
1542                                 "\xb4\x96\x2d\x86\x98\xb7\xfa\x80"
1543                                 "\x3f\x4f\x93\xff\x24\x39\x35\x86"
1544                                 "\xe2\x8b\x5b\x95\x7a\xc3\xd1\xd3"
1545                                 "\x69\x42\x0c\xe5\x33\x32\x71\x2f"
1546                                 "\x99\x7b\xd3\x36\xd0\x9a\xb0\x2a",
1547         }, {
1548                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1549                              "jklmklmnlmnomnopnopq",
1550                 .psize  = 56,
1551                 .digest = "\x04\xa3\x71\xe8\x4e\xcf\xb5\xb8"
1552                                 "\xb7\x7c\xb4\x86\x10\xfc\xa8\x18"
1553                                 "\x2d\xd4\x57\xce\x6f\x32\x6a\x0f"
1554                                 "\xd3\xd7\xec\x2f\x1e\x91\x63\x6d"
1555                                 "\xee\x69\x1f\xbe\x0c\x98\x53\x02"
1556                                 "\xba\x1b\x0d\x8d\xc7\x8c\x08\x63"
1557                                 "\x46\xb5\x33\xb4\x9c\x03\x0d\x99"
1558                                 "\xa2\x7d\xaf\x11\x39\xd6\xe7\x5e",
1559                 .np     = 2,
1560                 .tap    = { 28, 28 },
1561         }, {
1562                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1563                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1564                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1565                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1566                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1567                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1568                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1569                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1570                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1571                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1572                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1573                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1574                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1575                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1576                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1577                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1578                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1579                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1580                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1581                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1582                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1583                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1584                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1585                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1586                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1587                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1588                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1589                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1590                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1591                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1592                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1593                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1594                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1595                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1596                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1597                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1598                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1599                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1600                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1601                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1602                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1603                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1604                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1605                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1606                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1607                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1608                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1609                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1610                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1611                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1612                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1613                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1614                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1615                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1616                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1617                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1618                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1619                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1620                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1621                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1622                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1623                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1624                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1625                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1626                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1627                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1628                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1629                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1630                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1631                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1632                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1633                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1634                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1635                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1636                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1637                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1638                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1639                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1640                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1641                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1642                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1643                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1644                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1645                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1646                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1647                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1648                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1649                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1650                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1651                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1652                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1653                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1654                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1655                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1656                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1657                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1658                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1659                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1660                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1661                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1662                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1663                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1664                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1665                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1666                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1667                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1668                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1669                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1670                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1671                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1672                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1673                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1674                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1675                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1676                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1677                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1678                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1679                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1680                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1681                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1682                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1683                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1684                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1685                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1686                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1687                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1688                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1689                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1690                 .psize     = 1023,
1691                 .digest    = "\x59\xda\x30\xe3\x90\xe4\x3d\xde"
1692                              "\xf0\xc6\x42\x17\xd7\xb2\x26\x47"
1693                              "\x90\x28\xa6\x84\xe8\x49\x7a\x86"
1694                              "\xd6\xb8\x9e\xf8\x07\x59\x21\x03"
1695                              "\xad\xd2\xed\x48\xa3\xb9\xa5\xf0"
1696                              "\xb3\xae\x02\x2b\xb8\xaf\xc3\x3b"
1697                              "\xd6\xb0\x8f\xcb\x76\x8b\xa7\x41"
1698                              "\x32\xc2\x8e\x50\x91\x86\x90\xfb",
1699         },
1700 };
1701
1702
1703 /*
1704  * MD5 test vectors from RFC1321
1705  */
1706 static const struct hash_testvec md5_tv_template[] = {
1707         {
1708                 .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04"
1709                           "\xe9\x80\x09\x98\xec\xf8\x42\x7e",
1710         }, {
1711                 .plaintext = "a",
1712                 .psize  = 1,
1713                 .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8"
1714                           "\x31\xc3\x99\xe2\x69\x77\x26\x61",
1715         }, {
1716                 .plaintext = "abc",
1717                 .psize  = 3,
1718                 .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0"
1719                           "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72",
1720         }, {
1721                 .plaintext = "message digest",
1722                 .psize  = 14,
1723                 .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d"
1724                           "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0",
1725         }, {
1726                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1727                 .psize  = 26,
1728                 .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00"
1729                           "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b",
1730                 .np     = 2,
1731                 .tap    = {13, 13}
1732         }, {
1733                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
1734                 .psize  = 62,
1735                 .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5"
1736                           "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f",
1737         }, {
1738                 .plaintext = "12345678901234567890123456789012345678901234567890123456789012"
1739                            "345678901234567890",
1740                 .psize  = 80,
1741                 .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55"
1742                           "\xac\x49\xda\x2e\x21\x07\xb6\x7a",
1743         }
1744
1745 };
1746
1747 /*
1748  * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E)
1749  */
1750 static const struct hash_testvec rmd128_tv_template[] = {
1751         {
1752                 .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e"
1753                           "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46",
1754         }, {
1755                 .plaintext = "a",
1756                 .psize  = 1,
1757                 .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7"
1758                           "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33",
1759         }, {
1760                 .plaintext = "abc",
1761                 .psize  = 3,
1762                 .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba"
1763                           "\x84\x63\x6b\x0f\x69\x14\x4c\x77",
1764         }, {
1765                 .plaintext = "message digest",
1766                 .psize  = 14,
1767                 .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62"
1768                           "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8",
1769         }, {
1770                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1771                 .psize  = 26,
1772                 .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5"
1773                           "\x10\x71\x49\x22\xb3\x71\x83\x4e",
1774         }, {
1775                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1776                              "fghijklmnopqrstuvwxyz0123456789",
1777                 .psize  = 62,
1778                 .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f"
1779                           "\xae\xa4\x62\x4c\x60\xc5\xc7\x02",
1780         }, {
1781                 .plaintext = "1234567890123456789012345678901234567890"
1782                              "1234567890123456789012345678901234567890",
1783                 .psize  = 80,
1784                 .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb"
1785                           "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3",
1786         }, {
1787                 .plaintext = "abcdbcdecdefdefgefghfghighij"
1788                              "hijkijkljklmklmnlmnomnopnopq",
1789                 .psize  = 56,
1790                 .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d"
1791                           "\xdc\x22\xe8\x8b\x49\x13\x3a\x06",
1792                 .np     = 2,
1793                 .tap    = { 28, 28 },
1794         }, {
1795                 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
1796                              "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
1797                              "lmnopqrsmnopqrstnopqrstu",
1798                 .psize  = 112,
1799                 .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b"
1800                           "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46",
1801         }, {
1802                 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1803                 .psize  = 32,
1804                 .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d"
1805                           "\xe1\x93\xff\x46\xdb\xac\xcf\xd4",
1806         }
1807 };
1808
1809 /*
1810  * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E)
1811  */
1812 static const struct hash_testvec rmd160_tv_template[] = {
1813         {
1814                 .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28"
1815                           "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31",
1816         }, {
1817                 .plaintext = "a",
1818                 .psize  = 1,
1819                 .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae"
1820                           "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe",
1821         }, {
1822                 .plaintext = "abc",
1823                 .psize  = 3,
1824                 .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04"
1825                           "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc",
1826         }, {
1827                 .plaintext = "message digest",
1828                 .psize  = 14,
1829                 .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8"
1830                           "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36",
1831         }, {
1832                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1833                 .psize  = 26,
1834                 .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb"
1835                           "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc",
1836         }, {
1837                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1838                              "fghijklmnopqrstuvwxyz0123456789",
1839                 .psize  = 62,
1840                 .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed"
1841                           "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89",
1842         }, {
1843                 .plaintext = "1234567890123456789012345678901234567890"
1844                              "1234567890123456789012345678901234567890",
1845                 .psize  = 80,
1846                 .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb"
1847                           "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb",
1848         }, {
1849                 .plaintext = "abcdbcdecdefdefgefghfghighij"
1850                              "hijkijkljklmklmnlmnomnopnopq",
1851                 .psize  = 56,
1852                 .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05"
1853                           "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b",
1854                 .np     = 2,
1855                 .tap    = { 28, 28 },
1856         }, {
1857                 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
1858                              "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
1859                              "lmnopqrsmnopqrstnopqrstu",
1860                 .psize  = 112,
1861                 .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91"
1862                           "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45",
1863         }, {
1864                 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1865                 .psize  = 32,
1866                 .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d"
1867                           "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f",
1868         }
1869 };
1870
1871 /*
1872  * RIPEMD-256 test vectors
1873  */
1874 static const struct hash_testvec rmd256_tv_template[] = {
1875         {
1876                 .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18"
1877                           "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a"
1878                           "\x2d\x97\x74\xfb\x1e\x5d\x02\x63"
1879                           "\x80\xae\x01\x68\xe3\xc5\x52\x2d",
1880         }, {
1881                 .plaintext = "a",
1882                 .psize  = 1,
1883                 .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9"
1884                           "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c"
1885                           "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf"
1886                           "\xcd\x88\x3a\x91\x34\x69\x29\x25",
1887         }, {
1888                 .plaintext = "abc",
1889                 .psize  = 3,
1890                 .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb"
1891                           "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1"
1892                           "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e"
1893                           "\x1e\x42\xd2\xe9\x75\x45\x9b\x65",
1894         }, {
1895                 .plaintext = "message digest",
1896                 .psize  = 14,
1897                 .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a"
1898                           "\x51\x4d\x5c\x91\x4c\x39\x2c\x90"
1899                           "\x18\xc7\xc4\x6b\xc1\x44\x65\x55"
1900                           "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e",
1901         }, {
1902                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1903                 .psize  = 26,
1904                 .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16"
1905                           "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc"
1906                           "\x78\x96\x11\x8a\x51\x97\x96\x87"
1907                           "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33",
1908         }, {
1909                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1910                              "fghijklmnopqrstuvwxyz0123456789",
1911                 .psize  = 62,
1912                 .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20"
1913                           "\xb8\x44\x24\xae\x93\x1c\xbb\x1f"
1914                           "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1"
1915                           "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8",
1916         }, {
1917                 .plaintext = "1234567890123456789012345678901234567890"
1918                              "1234567890123456789012345678901234567890",
1919                 .psize  = 80,
1920                 .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa"
1921                           "\xf9\x13\x68\xc0\x6a\x62\x75\xb5"
1922                           "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed"
1923                           "\xfd\x67\x78\xdf\x89\xa8\x90\xdd",
1924         }, {
1925                 .plaintext = "abcdbcdecdefdefgefghfghighij"
1926                              "hijkijkljklmklmnlmnomnopnopq",
1927                 .psize  = 56,
1928                 .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8"
1929                           "\xc8\xd9\x12\x85\x73\xe7\xa9\x80"
1930                           "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e"
1931                           "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f",
1932                 .np     = 2,
1933                 .tap    = { 28, 28 },
1934         }
1935 };
1936
1937 /*
1938  * RIPEMD-320 test vectors
1939  */
1940 static const struct hash_testvec rmd320_tv_template[] = {
1941         {
1942                 .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1"
1943                           "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25"
1944                           "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e"
1945                           "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8",
1946         }, {
1947                 .plaintext = "a",
1948                 .psize  = 1,
1949                 .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5"
1950                           "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57"
1951                           "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54"
1952                           "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d",
1953         }, {
1954                 .plaintext = "abc",
1955                 .psize  = 3,
1956                 .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d"
1957                           "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08"
1958                           "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74"
1959                           "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d",
1960         }, {
1961                 .plaintext = "message digest",
1962                 .psize  = 14,
1963                 .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68"
1964                           "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa"
1965                           "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d"
1966                           "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97",
1967         }, {
1968                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1969                 .psize  = 26,
1970                 .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93"
1971                           "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4"
1972                           "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed"
1973                           "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09",
1974         }, {
1975                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1976                              "fghijklmnopqrstuvwxyz0123456789",
1977                 .psize  = 62,
1978                 .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2"
1979                           "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c"
1980                           "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9"
1981                           "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4",
1982         }, {
1983                 .plaintext = "1234567890123456789012345678901234567890"
1984                              "1234567890123456789012345678901234567890",
1985                 .psize  = 80,
1986                 .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6"
1987                           "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41"
1988                           "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f"
1989                           "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42",
1990         }, {
1991                 .plaintext = "abcdbcdecdefdefgefghfghighij"
1992                              "hijkijkljklmklmnlmnomnopnopq",
1993                 .psize  = 56,
1994                 .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4"
1995                           "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59"
1996                           "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b"
1997                           "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac",
1998                 .np     = 2,
1999                 .tap    = { 28, 28 },
2000         }
2001 };
2002
2003 static const struct hash_testvec crct10dif_tv_template[] = {
2004         {
2005                 .plaintext      = "abc",
2006                 .psize          = 3,
2007                 .digest         = (u8 *)(u16 []){ 0x443b },
2008         }, {
2009                 .plaintext      = "1234567890123456789012345678901234567890"
2010                                   "123456789012345678901234567890123456789",
2011                 .psize          = 79,
2012                 .digest         = (u8 *)(u16 []){ 0x4b70 },
2013                 .np             = 2,
2014                 .tap            = { 63, 16 },
2015         }, {
2016                 .plaintext      = "abcdddddddddddddddddddddddddddddddddddddddd"
2017                                   "ddddddddddddd",
2018                 .psize          = 56,
2019                 .digest         = (u8 *)(u16 []){ 0x9ce3 },
2020                 .np             = 8,
2021                 .tap            = { 1, 2, 28, 7, 6, 5, 4, 3 },
2022         }, {
2023                 .plaintext      = "1234567890123456789012345678901234567890"
2024                                   "1234567890123456789012345678901234567890"
2025                                   "1234567890123456789012345678901234567890"
2026                                   "1234567890123456789012345678901234567890"
2027                                   "1234567890123456789012345678901234567890"
2028                                   "1234567890123456789012345678901234567890"
2029                                   "1234567890123456789012345678901234567890"
2030                                   "123456789012345678901234567890123456789",
2031                 .psize          = 319,
2032                 .digest         = (u8 *)(u16 []){ 0x44c6 },
2033         }, {
2034                 .plaintext      = "1234567890123456789012345678901234567890"
2035                                   "1234567890123456789012345678901234567890"
2036                                   "1234567890123456789012345678901234567890"
2037                                   "1234567890123456789012345678901234567890"
2038                                   "1234567890123456789012345678901234567890"
2039                                   "1234567890123456789012345678901234567890"
2040                                   "1234567890123456789012345678901234567890"
2041                                   "123456789012345678901234567890123456789",
2042                 .psize          = 319,
2043                 .digest         = (u8 *)(u16 []){ 0x44c6 },
2044                 .np             = 4,
2045                 .tap            = { 1, 255, 57, 6 },
2046         }, {
2047                 .plaintext =    "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
2048                                 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
2049                                 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
2050                                 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
2051                                 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
2052                                 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
2053                                 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
2054                                 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
2055                                 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
2056                                 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
2057                                 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
2058                                 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
2059                                 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
2060                                 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
2061                                 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
2062                                 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
2063                                 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
2064                                 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
2065                                 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
2066                                 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
2067                                 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
2068                                 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
2069                                 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
2070                                 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
2071                                 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
2072                                 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
2073                                 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
2074                                 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
2075                                 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
2076                                 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
2077                                 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
2078                                 "\x47\xde\x75\x0c\x80\x17\xae\x22"
2079                                 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
2080                                 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
2081                                 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
2082                                 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
2083                                 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
2084                                 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
2085                                 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
2086                                 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
2087                                 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
2088                                 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
2089                                 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
2090                                 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
2091                                 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
2092                                 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
2093                                 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
2094                                 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
2095                                 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
2096                                 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
2097                                 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
2098                                 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
2099                                 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
2100                                 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
2101                                 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
2102                                 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
2103                                 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
2104                                 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
2105                                 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
2106                                 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
2107                                 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
2108                                 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
2109                                 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
2110                                 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
2111                                 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
2112                                 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
2113                                 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
2114                                 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
2115                                 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
2116                                 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
2117                                 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
2118                                 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
2119                                 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
2120                                 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
2121                                 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
2122                                 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
2123                                 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
2124                                 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
2125                                 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
2126                                 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
2127                                 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
2128                                 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
2129                                 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
2130                                 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
2131                                 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
2132                                 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
2133                                 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
2134                                 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
2135                                 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
2136                                 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
2137                                 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
2138                                 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
2139                                 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
2140                                 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
2141                                 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
2142                                 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
2143                                 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
2144                                 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
2145                                 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
2146                                 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
2147                                 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
2148                                 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
2149                                 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
2150                                 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
2151                                 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
2152                                 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
2153                                 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
2154                                 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
2155                                 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
2156                                 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
2157                                 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
2158                                 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
2159                                 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
2160                                 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
2161                                 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
2162                                 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
2163                                 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
2164                                 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
2165                                 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
2166                                 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
2167                                 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
2168                                 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
2169                                 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
2170                                 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
2171                                 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
2172                                 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
2173                                 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
2174                                 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
2175                                 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
2176                                 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
2177                                 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
2178                                 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
2179                                 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
2180                                 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
2181                                 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
2182                                 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
2183                                 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
2184                                 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
2185                                 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
2186                                 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
2187                                 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
2188                                 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
2189                                 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
2190                                 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
2191                                 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
2192                                 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
2193                                 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
2194                                 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
2195                                 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
2196                                 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
2197                                 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
2198                                 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
2199                                 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
2200                                 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
2201                                 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
2202                                 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
2203                                 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
2204                                 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
2205                                 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
2206                                 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
2207                                 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
2208                                 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
2209                                 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
2210                                 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
2211                                 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
2212                                 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
2213                                 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
2214                                 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
2215                                 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
2216                                 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
2217                                 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
2218                                 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
2219                                 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
2220                                 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
2221                                 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
2222                                 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
2223                                 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
2224                                 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
2225                                 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
2226                                 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
2227                                 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
2228                                 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
2229                                 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
2230                                 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
2231                                 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
2232                                 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
2233                                 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
2234                                 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
2235                                 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
2236                                 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
2237                                 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
2238                                 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
2239                                 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
2240                                 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
2241                                 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
2242                                 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
2243                                 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
2244                                 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
2245                                 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
2246                                 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
2247                                 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
2248                                 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
2249                                 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
2250                                 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
2251                                 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
2252                                 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
2253                                 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
2254                                 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
2255                                 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
2256                                 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
2257                                 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
2258                                 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
2259                                 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
2260                                 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
2261                                 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
2262                                 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
2263                                 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
2264                                 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
2265                                 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
2266                                 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
2267                                 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
2268                                 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
2269                                 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
2270                                 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
2271                                 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
2272                                 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
2273                                 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
2274                                 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
2275                                 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
2276                                 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
2277                                 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
2278                                 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
2279                                 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
2280                                 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
2281                                 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
2282                                 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
2283                                 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
2284                                 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
2285                                 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
2286                                 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
2287                                 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
2288                                 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
2289                                 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
2290                                 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
2291                                 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
2292                                 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
2293                                 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
2294                                 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
2295                                 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
2296                                 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
2297                                 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
2298                                 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
2299                                 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
2300                                 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
2301                                 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
2302                                 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
2303                 .psize = 2048,
2304                 .digest         = (u8 *)(u16 []){ 0x23ca },
2305         }
2306 };
2307
2308 /* Example vectors below taken from
2309  * http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
2310  *
2311  * The rest taken from
2312  * https://github.com/adamws/oscca-sm3
2313  */
2314 static const struct hash_testvec sm3_tv_template[] = {
2315         {
2316                 .plaintext = "",
2317                 .psize = 0,
2318                 .digest = (u8 *)(u8 []) {
2319                         0x1A, 0xB2, 0x1D, 0x83, 0x55, 0xCF, 0xA1, 0x7F,
2320                         0x8e, 0x61, 0x19, 0x48, 0x31, 0xE8, 0x1A, 0x8F,
2321                         0x22, 0xBE, 0xC8, 0xC7, 0x28, 0xFE, 0xFB, 0x74,
2322                         0x7E, 0xD0, 0x35, 0xEB, 0x50, 0x82, 0xAA, 0x2B }
2323         }, {
2324                 .plaintext = "a",
2325                 .psize = 1,
2326                 .digest = (u8 *)(u8 []) {
2327                         0x62, 0x34, 0x76, 0xAC, 0x18, 0xF6, 0x5A, 0x29,
2328                         0x09, 0xE4, 0x3C, 0x7F, 0xEC, 0x61, 0xB4, 0x9C,
2329                         0x7E, 0x76, 0x4A, 0x91, 0xA1, 0x8C, 0xCB, 0x82,
2330                         0xF1, 0x91, 0x7A, 0x29, 0xC8, 0x6C, 0x5E, 0x88 }
2331         }, {
2332                 /* A.1. Example 1 */
2333                 .plaintext = "abc",
2334                 .psize = 3,
2335                 .digest = (u8 *)(u8 []) {
2336                         0x66, 0xC7, 0xF0, 0xF4, 0x62, 0xEE, 0xED, 0xD9,
2337                         0xD1, 0xF2, 0xD4, 0x6B, 0xDC, 0x10, 0xE4, 0xE2,
2338                         0x41, 0x67, 0xC4, 0x87, 0x5C, 0xF2, 0xF7, 0xA2,
2339                         0x29, 0x7D, 0xA0, 0x2B, 0x8F, 0x4B, 0xA8, 0xE0 }
2340         }, {
2341                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
2342                 .psize = 26,
2343                 .digest = (u8 *)(u8 []) {
2344                         0xB8, 0x0F, 0xE9, 0x7A, 0x4D, 0xA2, 0x4A, 0xFC,
2345                         0x27, 0x75, 0x64, 0xF6, 0x6A, 0x35, 0x9E, 0xF4,
2346                         0x40, 0x46, 0x2A, 0xD2, 0x8D, 0xCC, 0x6D, 0x63,
2347                         0xAD, 0xB2, 0x4D, 0x5C, 0x20, 0xA6, 0x15, 0x95 }
2348         }, {
2349                 /* A.1. Example 2 */
2350                 .plaintext = "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdab"
2351                              "cdabcdabcdabcdabcd",
2352                 .psize = 64,
2353                 .digest = (u8 *)(u8 []) {
2354                         0xDE, 0xBE, 0x9F, 0xF9, 0x22, 0x75, 0xB8, 0xA1,
2355                         0x38, 0x60, 0x48, 0x89, 0xC1, 0x8E, 0x5A, 0x4D,
2356                         0x6F, 0xDB, 0x70, 0xE5, 0x38, 0x7E, 0x57, 0x65,
2357                         0x29, 0x3D, 0xCB, 0xA3, 0x9C, 0x0C, 0x57, 0x32 }
2358         }, {
2359                 .plaintext = "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2360                              "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2361                              "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2362                              "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2363                              "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2364                              "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2365                              "abcdabcdabcdabcdabcdabcdabcdabcd",
2366                 .psize = 256,
2367                 .digest = (u8 *)(u8 []) {
2368                         0xB9, 0x65, 0x76, 0x4C, 0x8B, 0xEB, 0xB0, 0x91,
2369                         0xC7, 0x60, 0x2B, 0x74, 0xAF, 0xD3, 0x4E, 0xEF,
2370                         0xB5, 0x31, 0xDC, 0xCB, 0x4E, 0x00, 0x76, 0xD9,
2371                         0xB7, 0xCD, 0x81, 0x31, 0x99, 0xB4, 0x59, 0x71 }
2372         }
2373 };
2374
2375 /*
2376  * SHA1 test vectors  from from FIPS PUB 180-1
2377  * Long vector from CAVS 5.0
2378  */
2379 static const struct hash_testvec sha1_tv_template[] = {
2380         {
2381                 .plaintext = "",
2382                 .psize  = 0,
2383                 .digest = "\xda\x39\xa3\xee\x5e\x6b\x4b\x0d\x32\x55"
2384                           "\xbf\xef\x95\x60\x18\x90\xaf\xd8\x07\x09",
2385         }, {
2386                 .plaintext = "abc",
2387                 .psize  = 3,
2388                 .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e"
2389                           "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d",
2390         }, {
2391                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2392                 .psize  = 56,
2393                 .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae"
2394                           "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1",
2395                 .np     = 2,
2396                 .tap    = { 28, 28 }
2397         }, {
2398                 .plaintext = "\xec\x29\x56\x12\x44\xed\xe7\x06"
2399                              "\xb6\xeb\x30\xa1\xc3\x71\xd7\x44"
2400                              "\x50\xa1\x05\xc3\xf9\x73\x5f\x7f"
2401                              "\xa9\xfe\x38\xcf\x67\xf3\x04\xa5"
2402                              "\x73\x6a\x10\x6e\x92\xe1\x71\x39"
2403                              "\xa6\x81\x3b\x1c\x81\xa4\xf3\xd3"
2404                              "\xfb\x95\x46\xab\x42\x96\xfa\x9f"
2405                              "\x72\x28\x26\xc0\x66\x86\x9e\xda"
2406                              "\xcd\x73\xb2\x54\x80\x35\x18\x58"
2407                              "\x13\xe2\x26\x34\xa9\xda\x44\x00"
2408                              "\x0d\x95\xa2\x81\xff\x9f\x26\x4e"
2409                              "\xcc\xe0\xa9\x31\x22\x21\x62\xd0"
2410                              "\x21\xcc\xa2\x8d\xb5\xf3\xc2\xaa"
2411                              "\x24\x94\x5a\xb1\xe3\x1c\xb4\x13"
2412                              "\xae\x29\x81\x0f\xd7\x94\xca\xd5"
2413                              "\xdf\xaf\x29\xec\x43\xcb\x38\xd1"
2414                              "\x98\xfe\x4a\xe1\xda\x23\x59\x78"
2415                              "\x02\x21\x40\x5b\xd6\x71\x2a\x53"
2416                              "\x05\xda\x4b\x1b\x73\x7f\xce\x7c"
2417                              "\xd2\x1c\x0e\xb7\x72\x8d\x08\x23"
2418                              "\x5a\x90\x11",
2419                 .psize  = 163,
2420                 .digest = "\x97\x01\x11\xc4\xe7\x7b\xcc\x88\xcc\x20"
2421                           "\x45\x9c\x02\xb6\x9b\x4a\xa8\xf5\x82\x17",
2422                 .np     = 4,
2423                 .tap    = { 63, 64, 31, 5 }
2424         }, {
2425                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2426                 .psize  = 64,
2427                 .digest = "\xc8\x71\xf6\x9a\x63\xcc\xa9\x84\x84\x82"
2428                           "\x64\xe7\x79\x95\x5d\xd7\x19\x41\x7c\x91",
2429         }, {
2430                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
2431                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
2432                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
2433                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
2434                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
2435                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
2436                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
2437                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
2438                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
2439                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
2440                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
2441                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
2442                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
2443                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
2444                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
2445                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
2446                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
2447                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
2448                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
2449                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
2450                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
2451                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
2452                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
2453                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
2454                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
2455                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
2456                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
2457                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
2458                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
2459                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
2460                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
2461                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
2462                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
2463                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
2464                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
2465                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2466                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
2467                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
2468                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
2469                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
2470                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
2471                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
2472                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
2473                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
2474                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
2475                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
2476                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
2477                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
2478                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
2479                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
2480                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
2481                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
2482                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
2483                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
2484                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
2485                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
2486                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
2487                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
2488                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
2489                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
2490                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
2491                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
2492                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
2493                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
2494                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
2495                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
2496                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
2497                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
2498                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
2499                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
2500                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
2501                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
2502                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
2503                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
2504                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
2505                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
2506                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
2507                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
2508                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
2509                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
2510                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
2511                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
2512                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
2513                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
2514                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
2515                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
2516                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
2517                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
2518                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
2519                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
2520                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
2521                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
2522                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
2523                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
2524                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
2525                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
2526                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
2527                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
2528                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
2529                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
2530                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
2531                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
2532                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
2533                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
2534                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
2535                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
2536                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
2537                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
2538                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
2539                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
2540                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
2541                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
2542                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
2543                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
2544                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
2545                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
2546                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
2547                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
2548                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
2549                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
2550                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
2551                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
2552                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
2553                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
2554                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
2555                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
2556                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
2557                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
2558                 .psize     = 1023,
2559                 .digest    = "\xb8\xe3\x54\xed\xc5\xfc\xef\xa4"
2560                              "\x55\x73\x4a\x81\x99\xe4\x47\x2a"
2561                              "\x30\xd6\xc9\x85",
2562         }
2563 };
2564
2565
2566 /*
2567  * SHA224 test vectors from from FIPS PUB 180-2
2568  */
2569 static const struct hash_testvec sha224_tv_template[] = {
2570         {
2571                 .plaintext = "",
2572                 .psize  = 0,
2573                 .digest = "\xd1\x4a\x02\x8c\x2a\x3a\x2b\xc9"
2574                           "\x47\x61\x02\xbb\x28\x82\x34\xc4"
2575                           "\x15\xa2\xb0\x1f\x82\x8e\xa6\x2a"
2576                           "\xc5\xb3\xe4\x2f",
2577         }, {
2578                 .plaintext = "abc",
2579                 .psize  = 3,
2580                 .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22"
2581                           "\x86\x42\xA4\x77\xBD\xA2\x55\xB3"
2582                           "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7"
2583                           "\xE3\x6C\x9D\xA7",
2584         }, {
2585                 .plaintext =
2586                 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2587                 .psize  = 56,
2588                 .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC"
2589                           "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50"
2590                           "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19"
2591                           "\x52\x52\x25\x25",
2592                 .np     = 2,
2593                 .tap    = { 28, 28 }
2594         }, {
2595                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2596                 .psize  = 64,
2597                 .digest = "\xc4\xdb\x2b\x3a\x58\xc3\x99\x01"
2598                           "\x42\xfd\x10\x92\xaa\x4e\x04\x08"
2599                           "\x58\xbb\xbb\xe8\xf8\x14\xa7\x0c"
2600                           "\xef\x3b\xcb\x0e",
2601         }, {
2602                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
2603                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
2604                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
2605                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
2606                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
2607                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
2608                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
2609                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
2610                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
2611                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
2612                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
2613                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
2614                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
2615                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
2616                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
2617                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
2618                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
2619                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
2620                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
2621                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
2622                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
2623                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
2624                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
2625                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
2626                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
2627                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
2628                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
2629                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
2630                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
2631                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
2632                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
2633                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
2634                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
2635                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
2636                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
2637                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2638                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
2639                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
2640                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
2641                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
2642                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
2643                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
2644                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
2645                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
2646                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
2647                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
2648                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
2649                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
2650                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
2651                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
2652                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
2653                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
2654                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
2655                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
2656                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
2657                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
2658                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
2659                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
2660                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
2661                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
2662                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
2663                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
2664                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
2665                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
2666                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
2667                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
2668                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
2669                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
2670                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
2671                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
2672                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
2673                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
2674                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
2675                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
2676                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
2677                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
2678                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
2679                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
2680                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
2681                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
2682                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
2683                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
2684                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
2685                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
2686                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
2687                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
2688                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
2689                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
2690                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
2691                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
2692                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
2693                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
2694                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
2695                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
2696                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
2697                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
2698                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
2699                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
2700                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
2701                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
2702                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
2703                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
2704                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
2705                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
2706                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
2707                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
2708                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
2709                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
2710                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
2711                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
2712                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
2713                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
2714                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
2715                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
2716                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
2717                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
2718                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
2719                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
2720                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
2721                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
2722                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
2723                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
2724                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
2725                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
2726                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
2727                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
2728                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
2729                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
2730                 .psize     = 1023,
2731                 .digest    = "\x98\x43\x07\x63\x75\xe0\xa7\x1c"
2732                              "\x78\xb1\x8b\xfd\x04\xf5\x2d\x91"
2733                              "\x20\x48\xa4\x28\xff\x55\xb1\xd3"
2734                              "\xe6\xf9\x4f\xcc",
2735         }
2736 };
2737
2738 /*
2739  * SHA256 test vectors from from NIST
2740  */
2741 static const struct hash_testvec sha256_tv_template[] = {
2742         {
2743                 .plaintext = "",
2744                 .psize  = 0,
2745                 .digest = "\xe3\xb0\xc4\x42\x98\xfc\x1c\x14"
2746                           "\x9a\xfb\xf4\xc8\x99\x6f\xb9\x24"
2747                           "\x27\xae\x41\xe4\x64\x9b\x93\x4c"
2748                           "\xa4\x95\x99\x1b\x78\x52\xb8\x55",
2749         }, {
2750                 .plaintext = "abc",
2751                 .psize  = 3,
2752                 .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea"
2753                           "\x41\x41\x40\xde\x5d\xae\x22\x23"
2754                           "\xb0\x03\x61\xa3\x96\x17\x7a\x9c"
2755                           "\xb4\x10\xff\x61\xf2\x00\x15\xad",
2756         }, {
2757                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2758                 .psize  = 56,
2759                 .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8"
2760                           "\xe5\xc0\x26\x93\x0c\x3e\x60\x39"
2761                           "\xa3\x3c\xe4\x59\x64\xff\x21\x67"
2762                           "\xf6\xec\xed\xd4\x19\xdb\x06\xc1",
2763                 .np     = 2,
2764                 .tap    = { 28, 28 }
2765         }, {
2766                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2767                 .psize  = 64,
2768                 .digest = "\xb5\xfe\xad\x56\x7d\xff\xcb\xa4"
2769                           "\x2c\x32\x29\x32\x19\xbb\xfb\xfa"
2770                           "\xd6\xff\x94\xa3\x72\x91\x85\x66"
2771                           "\x3b\xa7\x87\x77\x58\xa3\x40\x3a",
2772         }, {
2773                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
2774                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
2775                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
2776                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
2777                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
2778                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
2779                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
2780                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
2781                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
2782                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
2783                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
2784                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
2785                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
2786                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
2787                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
2788                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
2789                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
2790                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
2791                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
2792                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
2793                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
2794                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
2795                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
2796                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
2797                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
2798                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
2799                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
2800                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
2801                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
2802                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
2803                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
2804                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
2805                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
2806                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
2807                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
2808                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2809                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
2810                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
2811                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
2812                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
2813                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
2814                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
2815                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
2816                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
2817                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
2818                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
2819                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
2820                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
2821                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
2822                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
2823                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
2824                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
2825                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
2826                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
2827                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
2828                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
2829                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
2830                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
2831                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
2832                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
2833                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
2834                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
2835                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
2836                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
2837                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
2838                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
2839                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
2840                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
2841                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
2842                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
2843                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
2844                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
2845                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
2846                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
2847                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
2848                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
2849                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
2850                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
2851                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
2852                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
2853                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
2854                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
2855                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
2856                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
2857                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
2858                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
2859                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
2860                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
2861                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
2862                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
2863                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
2864                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
2865                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
2866                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
2867                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
2868                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
2869                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
2870                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
2871                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
2872                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
2873                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
2874                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
2875                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
2876                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
2877                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
2878                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
2879                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
2880                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
2881                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
2882                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
2883                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
2884                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
2885                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
2886                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
2887                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
2888                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
2889                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
2890                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
2891                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
2892                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
2893                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
2894                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
2895                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
2896                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
2897                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
2898                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
2899                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
2900                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
2901                 .psize     = 1023,
2902                 .digest    = "\xc5\xce\x0c\xca\x01\x4f\x53\x3a"
2903                              "\x32\x32\x17\xcc\xd4\x6a\x71\xa9"
2904                              "\xf3\xed\x50\x10\x64\x8e\x06\xbe"
2905                              "\x9b\x4a\xa6\xbb\x05\x89\x59\x51",
2906         }
2907 };
2908
2909 /*
2910  * SHA384 test vectors from from NIST and kerneli
2911  */
2912 static const struct hash_testvec sha384_tv_template[] = {
2913         {
2914                 .plaintext = "",
2915                 .psize  = 0,
2916                 .digest = "\x38\xb0\x60\xa7\x51\xac\x96\x38"
2917                           "\x4c\xd9\x32\x7e\xb1\xb1\xe3\x6a"
2918                           "\x21\xfd\xb7\x11\x14\xbe\x07\x43"
2919                           "\x4c\x0c\xc7\xbf\x63\xf6\xe1\xda"
2920                           "\x27\x4e\xde\xbf\xe7\x6f\x65\xfb"
2921                           "\xd5\x1a\xd2\xf1\x48\x98\xb9\x5b",
2922         }, {
2923                 .plaintext= "abc",
2924                 .psize  = 3,
2925                 .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b"
2926                           "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07"
2927                           "\x27\x2c\x32\xab\x0e\xde\xd1\x63"
2928                           "\x1a\x8b\x60\x5a\x43\xff\x5b\xed"
2929                           "\x80\x86\x07\x2b\xa1\xe7\xcc\x23"
2930                           "\x58\xba\xec\xa1\x34\xc8\x25\xa7",
2931         }, {
2932                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2933                 .psize  = 56,
2934                 .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39"
2935                           "\x37\x07\xa6\x5b\x1b\x47\x09\x39"
2936                           "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab"
2937                           "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6"
2938                           "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f"
2939                           "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b",
2940         }, {
2941                 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
2942                            "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
2943                 .psize  = 112,
2944                 .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8"
2945                           "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47"
2946                           "\x53\x11\x1b\x17\x3b\x3b\x05\xd2"
2947                           "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12"
2948                           "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9"
2949                           "\x66\xc3\xe9\xfa\x91\x74\x60\x39",
2950         }, {
2951                 .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
2952                            "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
2953                 .psize  = 104,
2954                 .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb"
2955                           "\xbd\x7e\x2c\x28\x62\xba\x29\x0a"
2956                           "\xd3\x01\x0e\x49\x78\xc1\x98\xdc"
2957                           "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a"
2958                           "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a"
2959                           "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4",
2960                 .np     = 4,
2961                 .tap    = { 26, 26, 26, 26 }
2962         }, {
2963                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
2964                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
2965                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
2966                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
2967                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
2968                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
2969                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
2970                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
2971                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
2972                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
2973                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
2974                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
2975                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
2976                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
2977                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
2978                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
2979                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
2980                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
2981                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
2982                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
2983                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
2984                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
2985                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
2986                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
2987                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
2988                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
2989                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
2990                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
2991                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
2992                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
2993                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
2994                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
2995                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
2996                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
2997                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
2998                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2999                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
3000                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
3001                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
3002                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
3003                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
3004                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
3005                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
3006                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
3007                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
3008                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
3009                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
3010                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
3011                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
3012                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
3013                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
3014                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
3015                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
3016                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
3017                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
3018                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
3019                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
3020                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
3021                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
3022                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
3023                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
3024                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
3025                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
3026                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
3027                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
3028                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
3029                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
3030                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
3031                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
3032                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
3033                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
3034                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
3035                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
3036                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
3037                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
3038                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
3039                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
3040                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
3041                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
3042                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
3043                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
3044                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
3045                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
3046                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
3047                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
3048                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
3049                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
3050                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
3051                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
3052                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
3053                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
3054                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
3055                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
3056                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
3057                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
3058                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
3059                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
3060                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
3061                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
3062                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
3063                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
3064                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
3065                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
3066                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
3067                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
3068                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
3069                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
3070                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
3071                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
3072                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
3073                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
3074                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
3075                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
3076                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
3077                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
3078                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
3079                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
3080                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
3081                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
3082                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
3083                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
3084                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
3085                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
3086                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
3087                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
3088                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
3089                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
3090                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
3091                 .psize     = 1023,
3092                 .digest    = "\x4d\x97\x23\xc8\xea\x7a\x7c\x15"
3093                              "\xb8\xff\x97\x9c\xf5\x13\x4f\x31"
3094                              "\xde\x67\xf7\x24\x73\xcd\x70\x1c"
3095                              "\x03\x4a\xba\x8a\x87\x49\xfe\xdc"
3096                              "\x75\x29\x62\x83\xae\x3f\x17\xab"
3097                              "\xfd\x10\x4d\x8e\x17\x1c\x1f\xca",
3098         }
3099 };
3100
3101 /*
3102  * SHA512 test vectors from from NIST and kerneli
3103  */
3104 static const struct hash_testvec sha512_tv_template[] = {
3105         {
3106                 .plaintext = "",
3107                 .psize  = 0,
3108                 .digest = "\xcf\x83\xe1\x35\x7e\xef\xb8\xbd"
3109                           "\xf1\x54\x28\x50\xd6\x6d\x80\x07"
3110                           "\xd6\x20\xe4\x05\x0b\x57\x15\xdc"
3111                           "\x83\xf4\xa9\x21\xd3\x6c\xe9\xce"
3112                           "\x47\xd0\xd1\x3c\x5d\x85\xf2\xb0"
3113                           "\xff\x83\x18\xd2\x87\x7e\xec\x2f"
3114                           "\x63\xb9\x31\xbd\x47\x41\x7a\x81"
3115                           "\xa5\x38\x32\x7a\xf9\x27\xda\x3e",
3116         }, {
3117                 .plaintext = "abc",
3118                 .psize  = 3,
3119                 .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba"
3120                           "\xcc\x41\x73\x49\xae\x20\x41\x31"
3121                           "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2"
3122                           "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a"
3123                           "\x21\x92\x99\x2a\x27\x4f\xc1\xa8"
3124                           "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd"
3125                           "\x45\x4d\x44\x23\x64\x3c\xe8\x0e"
3126                           "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f",
3127         }, {
3128                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
3129                 .psize  = 56,
3130                 .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a"
3131                           "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16"
3132                           "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8"
3133                           "\x27\x9b\xe3\x31\xa7\x03\xc3\x35"
3134                           "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9"
3135                           "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0"
3136                           "\x31\xad\x85\xc7\xa7\x1d\xd7\x03"
3137                           "\x54\xec\x63\x12\x38\xca\x34\x45",
3138         }, {
3139                 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
3140                            "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
3141                 .psize  = 112,
3142                 .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda"
3143                           "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f"
3144                           "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1"
3145                           "\x72\x99\xae\xad\xb6\x88\x90\x18"
3146                           "\x50\x1d\x28\x9e\x49\x00\xf7\xe4"
3147                           "\x33\x1b\x99\xde\xc4\xb5\x43\x3a"
3148                           "\xc7\xd3\x29\xee\xb6\xdd\x26\x54"
3149                           "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09",
3150         }, {
3151                 .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
3152                            "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
3153                 .psize  = 104,
3154                 .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11"
3155                           "\x33\xb6\x89\x81\x21\xf1\xcf\x3d"
3156                           "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c"
3157                           "\x52\x57\xcf\x06\x99\x11\xf7\x5d"
3158                           "\x8f\x58\x31\xb5\x6e\xbf\xda\x67"
3159                           "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe"
3160                           "\x2b\x28\x70\xf7\x42\xa5\x80\xd8"
3161                           "\xed\xb4\x19\x87\x23\x28\x50\xc9",
3162                 .np     = 4,
3163                 .tap    = { 26, 26, 26, 26 }
3164         }, {
3165                 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
3166                              "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
3167                              "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
3168                              "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
3169                              "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
3170                              "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
3171                              "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
3172                              "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
3173                              "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
3174                              "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
3175                              "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
3176                              "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
3177                              "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
3178                              "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
3179                              "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
3180                              "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
3181                              "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
3182                              "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
3183                              "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
3184                              "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
3185                              "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
3186                              "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
3187                              "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
3188                              "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
3189                              "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
3190                              "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
3191                              "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
3192                              "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
3193                              "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
3194                              "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
3195                              "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
3196                              "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
3197                              "\x53\xea\x81\x18\x8c\x23\xba\x2e"
3198                              "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
3199                              "\x37\xce\x42\xd9\x70\x07\x7b\x12"
3200                              "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
3201                              "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
3202                              "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
3203                              "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
3204                              "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
3205                              "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
3206                              "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
3207                              "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
3208                              "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
3209                              "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
3210                              "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
3211                              "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
3212                              "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
3213                              "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
3214                              "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
3215                              "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
3216                              "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
3217                              "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
3218                              "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
3219                              "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
3220                              "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
3221                              "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
3222                              "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
3223                              "\x38\xcf\x43\xda\x71\x08\x7c\x13"
3224                              "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
3225                              "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
3226                              "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
3227                              "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
3228                              "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
3229                              "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
3230                              "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
3231                              "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
3232                              "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
3233                              "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
3234                              "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
3235                              "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
3236                              "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
3237                              "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
3238                              "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
3239                              "\xef\x63\xfa\x91\x05\x9c\x33\xca"
3240                              "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
3241                              "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
3242                              "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
3243                              "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
3244                              "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
3245                              "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
3246                              "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
3247                              "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
3248                              "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
3249                              "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
3250                              "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
3251                              "\xde\x75\x0c\x80\x17\xae\x22\xb9"
3252                              "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
3253                              "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
3254                              "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
3255                              "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
3256                              "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
3257                              "\x67\xfe\x72\x09\xa0\x14\xab\x42"
3258                              "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
3259                              "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
3260                              "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
3261                              "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
3262                              "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
3263                              "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
3264                              "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
3265                              "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
3266                              "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
3267                              "\x95\x09\xa0\x37\xce\x42\xd9\x70"
3268                              "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
3269                              "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
3270                              "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
3271                              "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
3272                              "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
3273                              "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
3274                              "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
3275                              "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
3276                              "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
3277                              "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
3278                              "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
3279                              "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
3280                              "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
3281                              "\x68\xff\x73\x0a\xa1\x15\xac\x43"
3282                              "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
3283                              "\x29\xc0\x57\xee\x62\xf9\x90\x04"
3284                              "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
3285                              "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
3286                              "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
3287                              "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
3288                              "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
3289                              "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
3290                              "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
3291                              "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
3292                              "\x08\x7c\x13\xaa\x1e\xb5\x4c",
3293                 .psize     = 1023,
3294                 .digest    = "\x76\xc9\xd4\x91\x7a\x5f\x0f\xaa"
3295                              "\x13\x39\xf3\x01\x7a\xfa\xe5\x41"
3296                              "\x5f\x0b\xf8\xeb\x32\xfc\xbf\xb0"
3297                              "\xfa\x8c\xcd\x17\x83\xe2\xfa\xeb"
3298                              "\x1c\x19\xde\xe2\x75\xdc\x34\x64"
3299                              "\x5f\x35\x9c\x61\x2f\x10\xf9\xec"
3300                              "\x59\xca\x9d\xcc\x25\x0c\x43\xba"
3301                              "\x85\xa8\xf8\xfe\xb5\x24\xb2\xee",
3302         }
3303 };
3304
3305
3306 /*
3307  * WHIRLPOOL test vectors from Whirlpool package
3308  * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE
3309  * submission
3310  */
3311 static const struct hash_testvec wp512_tv_template[] = {
3312         {
3313                 .plaintext = "",
3314                 .psize  = 0,
3315                 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
3316                           "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
3317                           "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
3318                           "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
3319                           "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
3320                           "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57"
3321                           "\xEA\x89\x64\xE5\x9B\x63\xD9\x37"
3322                           "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3",
3323
3324
3325         }, {
3326                 .plaintext = "a",
3327                 .psize  = 1,
3328                 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
3329                           "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
3330                           "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
3331                           "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
3332                           "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
3333                           "\x3A\x42\x39\x1A\x39\x14\x5A\x59"
3334                           "\x1A\x92\x20\x0D\x56\x01\x95\xE5"
3335                           "\x3B\x47\x85\x84\xFD\xAE\x23\x1A",
3336         }, {
3337                 .plaintext = "abc",
3338                 .psize  = 3,
3339                 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
3340                           "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
3341                           "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
3342                           "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
3343                           "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
3344                           "\x7D\x0E\x34\x95\x71\x14\xCB\xD6"
3345                           "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82"
3346                           "\xD2\x25\x29\x20\x76\xD4\xEE\xF5",
3347         }, {
3348                 .plaintext = "message digest",
3349                 .psize  = 14,
3350                 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
3351                           "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
3352                           "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
3353                           "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
3354                           "\x84\x21\x55\x76\x59\xEF\x55\xC1"
3355                           "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6"
3356                           "\x92\xED\x92\x00\x52\x83\x8F\x33"
3357                           "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E",
3358         }, {
3359                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
3360                 .psize  = 26,
3361                 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
3362                           "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
3363                           "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
3364                           "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
3365                           "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
3366                           "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6"
3367                           "\xF6\x8F\x67\x3E\x72\x07\x86\x5D"
3368                           "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B",
3369         }, {
3370                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
3371                            "abcdefghijklmnopqrstuvwxyz0123456789",
3372                 .psize  = 62,
3373                 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
3374                           "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
3375                           "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
3376                           "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
3377                           "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
3378                           "\xB7\xCB\x57\x21\x1B\x92\x81\xA6"
3379                           "\x55\x17\xCC\x87\x9D\x7B\x96\x21"
3380                           "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67",
3381         }, {
3382                 .plaintext = "1234567890123456789012345678901234567890"
3383                            "1234567890123456789012345678901234567890",
3384                 .psize  = 80,
3385                 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
3386                           "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
3387                           "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
3388                           "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
3389                           "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
3390                           "\x38\xCD\x04\x7B\x26\x81\xA5\x1A"
3391                           "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B"
3392                           "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B",
3393         }, {
3394                 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
3395                 .psize  = 32,
3396                 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
3397                           "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
3398                           "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
3399                           "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
3400                           "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
3401                           "\x7B\x94\x76\x39\xFE\x05\x0B\x56"
3402                           "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6"
3403                           "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD",
3404         },
3405 };
3406
3407 static const struct hash_testvec wp384_tv_template[] = {
3408         {
3409                 .plaintext = "",
3410                 .psize  = 0,
3411                 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
3412                           "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
3413                           "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
3414                           "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
3415                           "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
3416                           "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57",
3417
3418
3419         }, {
3420                 .plaintext = "a",
3421                 .psize  = 1,
3422                 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
3423                           "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
3424                           "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
3425                           "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
3426                           "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
3427                           "\x3A\x42\x39\x1A\x39\x14\x5A\x59",
3428         }, {
3429                 .plaintext = "abc",
3430                 .psize  = 3,
3431                 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
3432                           "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
3433                           "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
3434                           "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
3435                           "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
3436                           "\x7D\x0E\x34\x95\x71\x14\xCB\xD6",
3437         }, {
3438                 .plaintext = "message digest",
3439                 .psize  = 14,
3440                 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
3441                           "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
3442                           "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
3443                           "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
3444                           "\x84\x21\x55\x76\x59\xEF\x55\xC1"
3445                           "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6",
3446         }, {
3447                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
3448                 .psize  = 26,
3449                 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
3450                           "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
3451                           "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
3452                           "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
3453                           "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
3454                           "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6",
3455         }, {
3456                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
3457                            "abcdefghijklmnopqrstuvwxyz0123456789",
3458                 .psize  = 62,
3459                 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
3460                           "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
3461                           "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
3462                           "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
3463                           "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
3464                           "\xB7\xCB\x57\x21\x1B\x92\x81\xA6",
3465         }, {
3466                 .plaintext = "1234567890123456789012345678901234567890"
3467                            "1234567890123456789012345678901234567890",
3468                 .psize  = 80,
3469                 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
3470                           "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
3471                           "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
3472                           "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
3473                           "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
3474                           "\x38\xCD\x04\x7B\x26\x81\xA5\x1A",
3475         }, {
3476                 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
3477                 .psize  = 32,
3478                 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
3479                           "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
3480                           "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
3481                           "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
3482                           "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
3483                           "\x7B\x94\x76\x39\xFE\x05\x0B\x56",
3484         },
3485 };
3486
3487 static const struct hash_testvec wp256_tv_template[] = {
3488         {
3489                 .plaintext = "",
3490                 .psize  = 0,
3491                 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
3492                           "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
3493                           "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
3494                           "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7",
3495
3496
3497         }, {
3498                 .plaintext = "a",
3499                 .psize  = 1,
3500                 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
3501                           "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
3502                           "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
3503                           "\x73\xC4\x50\x01\xD0\x08\x7B\x42",
3504         }, {
3505                 .plaintext = "abc",
3506                 .psize  = 3,
3507                 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
3508                           "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
3509                           "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
3510                           "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C",
3511         }, {
3512                 .plaintext = "message digest",
3513                 .psize  = 14,
3514                 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
3515                           "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
3516                           "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
3517                           "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B",
3518         }, {
3519                 .plaintext = "abcdefghijklmnopqrstuvwxyz",
3520                 .psize  = 26,
3521                 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
3522                           "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
3523                           "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
3524                           "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B",
3525         }, {
3526                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
3527                            "abcdefghijklmnopqrstuvwxyz0123456789",
3528                 .psize  = 62,
3529                 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
3530                           "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
3531                           "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
3532                           "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E",
3533         }, {
3534                 .plaintext = "1234567890123456789012345678901234567890"
3535                            "1234567890123456789012345678901234567890",
3536                 .psize  = 80,
3537                 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
3538                           "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
3539                           "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
3540                           "\x54\x9C\x4A\xFA\xDB\x60\x14\x29",
3541         }, {
3542                 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
3543                 .psize  = 32,
3544                 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
3545                           "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
3546                           "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
3547                           "\x07\xC5\x62\xF9\x88\xE9\x5C\x69",
3548         },
3549 };
3550
3551 /*
3552  * TIGER test vectors from Tiger website
3553  */
3554 static const struct hash_testvec tgr192_tv_template[] = {
3555         {
3556                 .plaintext = "",
3557                 .psize  = 0,
3558                 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
3559                           "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
3560                           "\xf3\x73\xde\x2d\x49\x58\x4e\x7a",
3561         }, {
3562                 .plaintext = "abc",
3563                 .psize  = 3,
3564                 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
3565                           "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
3566                           "\x93\x5f\x7b\x95\x1c\x13\x29\x51",
3567         }, {
3568                 .plaintext = "Tiger",
3569                 .psize  = 5,
3570                 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
3571                           "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
3572                           "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf",
3573         }, {
3574                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
3575                 .psize  = 64,
3576                 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
3577                           "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
3578                           "\xb5\x86\x44\x50\x34\xa5\xa3\x86",
3579         }, {
3580                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
3581                 .psize  = 64,
3582                 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
3583                           "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
3584                           "\x57\x89\x65\x65\x97\x5f\x91\x97",
3585         }, {
3586                 .plaintext = "Tiger - A Fast New Hash Function, "
3587                            "by Ross Anderson and Eli Biham, "
3588                            "proceedings of Fast Software Encryption 3, "
3589                            "Cambridge, 1996.",
3590                 .psize  = 125,
3591                 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
3592                           "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
3593                           "\xdd\x68\x15\x1d\x50\x39\x74\xfc",
3594         },
3595 };
3596
3597 static const struct hash_testvec tgr160_tv_template[] = {
3598         {
3599                 .plaintext = "",
3600                 .psize  = 0,
3601                 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
3602                           "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
3603                           "\xf3\x73\xde\x2d",
3604         }, {
3605                 .plaintext = "abc",
3606                 .psize  = 3,
3607                 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
3608                           "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
3609                           "\x93\x5f\x7b\x95",
3610         }, {
3611                 .plaintext = "Tiger",
3612                 .psize  = 5,
3613                 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
3614                           "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
3615                           "\x37\x79\x0c\x11",
3616         }, {
3617                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
3618                 .psize  = 64,
3619                 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
3620                           "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
3621                           "\xb5\x86\x44\x50",
3622         }, {
3623                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
3624                 .psize  = 64,
3625                 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
3626                           "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
3627                           "\x57\x89\x65\x65",
3628         }, {
3629                 .plaintext = "Tiger - A Fast New Hash Function, "
3630                            "by Ross Anderson and Eli Biham, "
3631                            "proceedings of Fast Software Encryption 3, "
3632                            "Cambridge, 1996.",
3633                 .psize  = 125,
3634                 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
3635                           "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
3636                           "\xdd\x68\x15\x1d",
3637         },
3638 };
3639
3640 static const struct hash_testvec tgr128_tv_template[] = {
3641         {
3642                 .plaintext = "",
3643                 .psize  = 0,
3644                 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
3645                           "\x16\x16\x6e\x76\xb1\xbb\x92\x5f",
3646         }, {
3647                 .plaintext = "abc",
3648                 .psize  = 3,
3649                 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
3650                           "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf",
3651         }, {
3652                 .plaintext = "Tiger",
3653                 .psize  = 5,
3654                 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
3655                           "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec",
3656         }, {
3657                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
3658                 .psize  = 64,
3659                 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
3660                           "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e",
3661         }, {
3662                 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
3663                 .psize  = 64,
3664                 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
3665                           "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9",
3666         }, {
3667                 .plaintext = "Tiger - A Fast New Hash Function, "
3668                            "by Ross Anderson and Eli Biham, "
3669                            "proceedings of Fast Software Encryption 3, "
3670                            "Cambridge, 1996.",
3671                 .psize  = 125,
3672                 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
3673                           "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24",
3674         },
3675 };
3676
3677 static const struct hash_testvec ghash_tv_template[] =
3678 {
3679         {
3680                 .key    = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03"
3681                           "\xff\xca\xff\x95\xf8\x30\xf0\x61",
3682                 .ksize  = 16,
3683                 .plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0"
3684                              "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
3685                 .psize  = 16,
3686                 .digest = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
3687                           "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
3688         }, {
3689                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3690                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
3691                 .ksize  = 16,
3692                 .plaintext = "what do ya want for nothing?",
3693                 .psize  = 28,
3694                 .digest = "\x3e\x1f\x5c\x4d\x65\xf0\xef\xce"
3695                           "\x0d\x61\x06\x27\x66\x51\xd5\xe2",
3696                 .np     = 2,
3697                 .tap    = {14, 14}
3698         }, {
3699                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3700                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3701                 .ksize  = 16,
3702                 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3703                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3704                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3705                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3706                 .psize  = 50,
3707                 .digest = "\xfb\x49\x8a\x36\xe1\x96\xe1\x96"
3708                           "\xe1\x96\xe1\x96\xe1\x96\xe1\x96",
3709         }, {
3710                 .key    = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
3711                           "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
3712                 .ksize  = 16,
3713                 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3714                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3715                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3716                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3717                 .psize  = 50,
3718                 .digest = "\x2b\x5c\x0c\x7f\x52\xd1\x60\xc2"
3719                           "\x49\xed\x6e\x32\x7a\xa9\xbe\x08",
3720         }, {
3721                 .key    = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0"
3722                           "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
3723                 .ksize  = 16,
3724                 .plaintext = "Test With Truncation",
3725                 .psize  = 20,
3726                 .digest = "\xf8\x94\x87\x2a\x4b\x63\x99\x28"
3727                           "\x23\xf7\x93\xf7\x19\xf5\x96\xd9",
3728         }, {
3729                 .key    = "\x0a\x1b\x2c\x3d\x4e\x5f\x64\x71"
3730                         "\x82\x93\xa4\xb5\xc6\xd7\xe8\xf9",
3731                 .ksize  = 16,
3732                 .plaintext = "\x56\x6f\x72\x20\x6c\x61\x75\x74"
3733                         "\x65\x72\x20\x4c\x61\x75\x73\x63"
3734                         "\x68\x65\x6e\x20\x75\x6e\x64\x20"
3735                         "\x53\x74\x61\x75\x6e\x65\x6e\x20"
3736                         "\x73\x65\x69\x20\x73\x74\x69\x6c"
3737                         "\x6c\x2c\x0a\x64\x75\x20\x6d\x65"
3738                         "\x69\x6e\x20\x74\x69\x65\x66\x74"
3739                         "\x69\x65\x66\x65\x73\x20\x4c\x65"
3740                         "\x62\x65\x6e\x3b\x0a\x64\x61\x73"
3741                         "\x73\x20\x64\x75\x20\x77\x65\x69"
3742                         "\xc3\x9f\x74\x20\x77\x61\x73\x20"
3743                         "\x64\x65\x72\x20\x57\x69\x6e\x64"
3744                         "\x20\x64\x69\x72\x20\x77\x69\x6c"
3745                         "\x6c\x2c\x0a\x65\x68\x20\x6e\x6f"
3746                         "\x63\x68\x20\x64\x69\x65\x20\x42"
3747                         "\x69\x72\x6b\x65\x6e\x20\x62\x65"
3748                         "\x62\x65\x6e\x2e\x0a\x0a\x55\x6e"
3749                         "\x64\x20\x77\x65\x6e\x6e\x20\x64"
3750                         "\x69\x72\x20\x65\x69\x6e\x6d\x61"
3751                         "\x6c\x20\x64\x61\x73\x20\x53\x63"
3752                         "\x68\x77\x65\x69\x67\x65\x6e\x20"
3753                         "\x73\x70\x72\x61\x63\x68\x2c\x0a"
3754                         "\x6c\x61\x73\x73\x20\x64\x65\x69"
3755                         "\x6e\x65\x20\x53\x69\x6e\x6e\x65"
3756                         "\x20\x62\x65\x73\x69\x65\x67\x65"
3757                         "\x6e\x2e\x0a\x4a\x65\x64\x65\x6d"
3758                         "\x20\x48\x61\x75\x63\x68\x65\x20"
3759                         "\x67\x69\x62\x74\x20\x64\x69\x63"
3760                         "\x68\x2c\x20\x67\x69\x62\x20\x6e"
3761                         "\x61\x63\x68\x2c\x0a\x65\x72\x20"
3762                         "\x77\x69\x72\x64\x20\x64\x69\x63"
3763                         "\x68\x20\x6c\x69\x65\x62\x65\x6e"
3764                         "\x20\x75\x6e\x64\x20\x77\x69\x65"
3765                         "\x67\x65\x6e\x2e\x0a\x0a\x55\x6e"
3766                         "\x64\x20\x64\x61\x6e\x6e\x20\x6d"
3767                         "\x65\x69\x6e\x65\x20\x53\x65\x65"
3768                         "\x6c\x65\x20\x73\x65\x69\x74\x20"
3769                         "\x77\x65\x69\x74\x2c\x20\x73\x65"
3770                         "\x69\x20\x77\x65\x69\x74\x2c\x0a"
3771                         "\x64\x61\x73\x73\x20\x64\x69\x72"
3772                         "\x20\x64\x61\x73\x20\x4c\x65\x62"
3773                         "\x65\x6e\x20\x67\x65\x6c\x69\x6e"
3774                         "\x67\x65\x2c\x0a\x62\x72\x65\x69"
3775                         "\x74\x65\x20\x64\x69\x63\x68\x20"
3776                         "\x77\x69\x65\x20\x65\x69\x6e\x20"
3777                         "\x46\x65\x69\x65\x72\x6b\x6c\x65"
3778                         "\x69\x64\x0a\xc3\xbc\x62\x65\x72"
3779                         "\x20\x64\x69\x65\x20\x73\x69\x6e"
3780                         "\x6e\x65\x6e\x64\x65\x6e\x20\x44"
3781                         "\x69\x6e\x67\x65\x2e\x2e\x2e\x0a",
3782                 .psize  = 400,
3783                 .digest = "\xad\xb1\xc1\xe9\x56\x70\x31\x1d"
3784                         "\xbb\x5b\xdf\x5e\x70\x72\x1a\x57",
3785         },
3786 };
3787
3788 /*
3789  * HMAC-MD5 test vectors from RFC2202
3790  * (These need to be fixed to not use strlen).
3791  */
3792 static const struct hash_testvec hmac_md5_tv_template[] =
3793 {
3794         {
3795                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
3796                 .ksize  = 16,
3797                 .plaintext = "Hi There",
3798                 .psize  = 8,
3799                 .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c"
3800                           "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d",
3801         }, {
3802                 .key    = "Jefe",
3803                 .ksize  = 4,
3804                 .plaintext = "what do ya want for nothing?",
3805                 .psize  = 28,
3806                 .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03"
3807                           "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38",
3808                 .np     = 2,
3809                 .tap    = {14, 14}
3810         }, {
3811                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3812                 .ksize  = 16,
3813                 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3814                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3815                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3816                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3817                 .psize  = 50,
3818                 .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88"
3819                           "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6",
3820         }, {
3821                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
3822                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3823                           "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
3824                 .ksize  = 25,
3825                 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3826                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3827                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3828                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3829                 .psize  = 50,
3830                 .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea"
3831                           "\x3a\x75\x16\x47\x46\xff\xaa\x79",
3832         }, {
3833                 .key    = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
3834                 .ksize  = 16,
3835                 .plaintext = "Test With Truncation",
3836                 .psize  = 20,
3837                 .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00"
3838                           "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c",
3839         }, {
3840                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3841                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3842                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3843                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3844                         "\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",
3847                 .ksize  = 80,
3848                 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
3849                 .psize  = 54,
3850                 .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f"
3851                           "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd",
3852         }, {
3853                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3854                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3855                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3856                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3857                         "\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",
3860                 .ksize  = 80,
3861                 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
3862                            "Block-Size Data",
3863                 .psize  = 73,
3864                 .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee"
3865                           "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e",
3866         },
3867 };
3868
3869 /*
3870  * HMAC-RIPEMD128 test vectors from RFC2286
3871  */
3872 static const struct hash_testvec hmac_rmd128_tv_template[] = {
3873         {
3874                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
3875                 .ksize  = 16,
3876                 .plaintext = "Hi There",
3877                 .psize  = 8,
3878                 .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf"
3879                           "\x81\xc1\x72\xe8\x4e\x07\x34\xdb",
3880         }, {
3881                 .key    = "Jefe",
3882                 .ksize  = 4,
3883                 .plaintext = "what do ya want for nothing?",
3884                 .psize  = 28,
3885                 .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34"
3886                           "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b",
3887                 .np     = 2,
3888                 .tap    = { 14, 14 },
3889         }, {
3890                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3891                 .ksize  = 16,
3892                 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3893                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3894                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3895                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3896                 .psize  = 50,
3897                 .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d"
3898                           "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d",
3899         }, {
3900                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
3901                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3902                           "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
3903                 .ksize  = 25,
3904                 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3905                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3906                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3907                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3908                 .psize  = 50,
3909                 .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a"
3910                           "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94",
3911         }, {
3912                 .key    = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
3913                 .ksize  = 16,
3914                 .plaintext = "Test With Truncation",
3915                 .psize  = 20,
3916                 .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03"
3917                           "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a",
3918         }, {
3919                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3920                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3921                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3922                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3923                         "\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",
3926                 .ksize  = 80,
3927                 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
3928                 .psize  = 54,
3929                 .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a"
3930                           "\x1f\x59\xd3\x73\xc1\x50\xac\xbb",
3931         }, {
3932                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3933                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3934                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3935                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3936                         "\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",
3939                 .ksize  = 80,
3940                 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
3941                            "Block-Size Data",
3942                 .psize  = 73,
3943                 .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4"
3944                           "\x06\x90\xc2\x37\x63\x5f\x30\xc5",
3945         },
3946 };
3947
3948 /*
3949  * HMAC-RIPEMD160 test vectors from RFC2286
3950  */
3951 static const struct hash_testvec hmac_rmd160_tv_template[] = {
3952         {
3953                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
3954                 .ksize  = 20,
3955                 .plaintext = "Hi There",
3956                 .psize  = 8,
3957                 .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e"
3958                           "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68",
3959         }, {
3960                 .key    = "Jefe",
3961                 .ksize  = 4,
3962                 .plaintext = "what do ya want for nothing?",
3963                 .psize  = 28,
3964                 .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4"
3965                           "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69",
3966                 .np     = 2,
3967                 .tap    = { 14, 14 },
3968         }, {
3969                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3970                 .ksize  = 20,
3971                 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3972                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3973                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3974                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3975                 .psize  = 50,
3976                 .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4"
3977                           "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1",
3978         }, {
3979                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
3980                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3981                           "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
3982                 .ksize  = 25,
3983                 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3984                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3985                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3986                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3987                 .psize  = 50,
3988                 .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1"
3989                           "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4",
3990         }, {
3991                 .key    = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
3992                 .ksize  = 20,
3993                 .plaintext = "Test With Truncation",
3994                 .psize  = 20,
3995                 .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a"
3996                           "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39",
3997         }, {
3998                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3999                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4000                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4001                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4002                         "\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",
4005                 .ksize  = 80,
4006                 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
4007                 .psize  = 54,
4008                 .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd"
4009                           "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b",
4010         }, {
4011                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4012                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4013                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4014                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4015                         "\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",
4018                 .ksize  = 80,
4019                 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
4020                            "Block-Size Data",
4021                 .psize  = 73,
4022                 .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f"
4023                           "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a",
4024         },
4025 };
4026
4027 /*
4028  * HMAC-SHA1 test vectors from RFC2202
4029  */
4030 static const struct hash_testvec hmac_sha1_tv_template[] = {
4031         {
4032                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
4033                 .ksize  = 20,
4034                 .plaintext = "Hi There",
4035                 .psize  = 8,
4036                 .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64"
4037                           "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1"
4038                           "\x46\xbe",
4039         }, {
4040                 .key    = "Jefe",
4041                 .ksize  = 4,
4042                 .plaintext = "what do ya want for nothing?",
4043                 .psize  = 28,
4044                 .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74"
4045                           "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79",
4046                 .np     = 2,
4047                 .tap    = { 14, 14 }
4048         }, {
4049                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
4050                 .ksize  = 20,
4051                 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4052                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4053                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4054                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
4055                 .psize  = 50,
4056                 .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3"
4057                           "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3",
4058         }, {
4059                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
4060                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4061                           "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
4062                 .ksize  = 25,
4063                 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4064                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4065                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4066                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
4067                 .psize  = 50,
4068                 .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84"
4069                           "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda",
4070         }, {
4071                 .key    = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
4072                 .ksize  = 20,
4073                 .plaintext = "Test With Truncation",
4074                 .psize  = 20,
4075                 .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2"
4076                           "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04",
4077         }, {
4078                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4079                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4080                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4081                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4082                         "\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",
4085                 .ksize  = 80,
4086                 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
4087                 .psize  = 54,
4088                 .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70"
4089                           "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12",
4090         }, {
4091                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4092                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4093                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4094                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4095                         "\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",
4098                 .ksize  = 80,
4099                 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
4100                            "Block-Size Data",
4101                 .psize  = 73,
4102                 .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b"
4103                           "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91",
4104         },
4105 };
4106
4107
4108 /*
4109  * SHA224 HMAC test vectors from RFC4231
4110  */
4111 static const struct hash_testvec hmac_sha224_tv_template[] = {
4112         {
4113                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4114                         "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4115                         "\x0b\x0b\x0b\x0b",
4116                 .ksize  = 20,
4117                 /*  ("Hi There") */
4118                 .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65",
4119                 .psize  = 8,
4120                 .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19"
4121                         "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f"
4122                         "\x47\xb4\xb1\x16\x99\x12\xba\x4f"
4123                         "\x53\x68\x4b\x22",
4124         }, {
4125                 .key    = "Jefe",
4126                 .ksize  = 4,
4127                 /* ("what do ya want for nothing?") */
4128                 .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20"
4129                         "\x79\x61\x20\x77\x61\x6e\x74\x20"
4130                         "\x66\x6f\x72\x20\x6e\x6f\x74\x68"
4131                         "\x69\x6e\x67\x3f",
4132                 .psize  = 28,
4133                 .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf"
4134                         "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f"
4135                         "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00"
4136                         "\x8f\xd0\x5e\x44",
4137                 .np = 4,
4138                 .tap    = { 7, 7, 7, 7 }
4139         }, {
4140                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4141                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4142                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4143                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4144                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4145                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4146                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4147                         "\xaa\xaa\xaa\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",
4157                 .ksize  = 131,
4158                 /* ("Test Using Larger Than Block-Size Key - Hash Key First") */
4159                 .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69"
4160                         "\x6e\x67\x20\x4c\x61\x72\x67\x65"
4161                         "\x72\x20\x54\x68\x61\x6e\x20\x42"
4162                         "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a"
4163                         "\x65\x20\x4b\x65\x79\x20\x2d\x20"
4164                         "\x48\x61\x73\x68\x20\x4b\x65\x79"
4165                         "\x20\x46\x69\x72\x73\x74",
4166                 .psize  = 54,
4167                 .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad"
4168                         "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2"
4169                         "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27"
4170                         "\x3f\xa6\x87\x0e",
4171         }, {
4172                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4173                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4174                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4175                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4176                         "\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",
4189                 .ksize  = 131,
4190                 /* ("This is a test using a larger than block-size key and a")
4191                 (" larger than block-size data. The key needs to be")
4192                         (" hashed before being used by the HMAC algorithm.") */
4193                 .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20"
4194                         "\x61\x20\x74\x65\x73\x74\x20\x75"
4195                         "\x73\x69\x6e\x67\x20\x61\x20\x6c"
4196                         "\x61\x72\x67\x65\x72\x20\x74\x68"
4197                         "\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
4198                         "\x2d\x73\x69\x7a\x65\x20\x6b\x65"
4199                         "\x79\x20\x61\x6e\x64\x20\x61\x20"
4200                         "\x6c\x61\x72\x67\x65\x72\x20\x74"
4201                         "\x68\x61\x6e\x20\x62\x6c\x6f\x63"
4202                         "\x6b\x2d\x73\x69\x7a\x65\x20\x64"
4203                         "\x61\x74\x61\x2e\x20\x54\x68\x65"
4204                         "\x20\x6b\x65\x79\x20\x6e\x65\x65"
4205                         "\x64\x73\x20\x74\x6f\x20\x62\x65"
4206                         "\x20\x68\x61\x73\x68\x65\x64\x20"
4207                         "\x62\x65\x66\x6f\x72\x65\x20\x62"
4208                         "\x65\x69\x6e\x67\x20\x75\x73\x65"
4209                         "\x64\x20\x62\x79\x20\x74\x68\x65"
4210                         "\x20\x48\x4d\x41\x43\x20\x61\x6c"
4211                         "\x67\x6f\x72\x69\x74\x68\x6d\x2e",
4212                 .psize  = 152,
4213                 .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02"
4214                         "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd"
4215                         "\x94\x67\x70\xdb\x9c\x2b\x95\xc9"
4216                         "\xf6\xf5\x65\xd1",
4217         },
4218 };
4219
4220 /*
4221  * HMAC-SHA256 test vectors from
4222  * draft-ietf-ipsec-ciph-sha-256-01.txt
4223  */
4224 static const struct hash_testvec hmac_sha256_tv_template[] = {
4225         {
4226                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
4227                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4228                           "\x11\x12\x13\x14\x15\x16\x17\x18"
4229                           "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
4230                 .ksize  = 32,
4231                 .plaintext = "abc",
4232                 .psize  = 3,
4233                 .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a"
4234                           "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a"
4235                           "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66"
4236                           "\x92\x75\x90\x21\xcf\xab\x81\x81",
4237         }, {
4238                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
4239                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4240                           "\x11\x12\x13\x14\x15\x16\x17\x18"
4241                           "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
4242                 .ksize  = 32,
4243                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
4244                 .psize  = 56,
4245                 .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08"
4246                           "\x18\x4b\xa7\x31\x31\xc5\x3c\xae"
4247                           "\xe6\x98\xe3\x61\x19\x42\x11\x49"
4248                           "\xea\x8c\x71\x24\x56\x69\x7d\x30",
4249         }, {
4250                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
4251                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4252                           "\x11\x12\x13\x14\x15\x16\x17\x18"
4253                           "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
4254                 .ksize  = 32,
4255                 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
4256                            "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
4257                 .psize  = 112,
4258                 .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34"
4259                           "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab"
4260                           "\x73\xac\xf0\xfd\x06\x04\x47\xa5"
4261                           "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3",
4262         }, {
4263                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4264                         "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4265                         "\x0b\x0b\x0b\x0b\x0b\x0b",
4266                 .ksize  = 32,
4267                 .plaintext = "Hi There",
4268                 .psize  = 8,
4269                 .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6"
4270                           "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5"
4271                           "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c"
4272                           "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7",
4273         }, {
4274                 .key    = "Jefe",
4275                 .ksize  = 4,
4276                 .plaintext = "what do ya want for nothing?",
4277                 .psize  = 28,
4278                 .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e"
4279                           "\x6a\x04\x24\x26\x08\x95\x75\xc7"
4280                           "\x5a\x00\x3f\x08\x9d\x27\x39\x83"
4281                           "\x9d\xec\x58\xb9\x64\xec\x38\x43",
4282                 .np     = 2,
4283                 .tap    = { 14, 14 }
4284         }, {
4285                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4286                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4287                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
4288                 .ksize  = 32,
4289                 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4290                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4291                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4292                         "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
4293                 .psize  = 50,
4294                 .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea"
4295                           "\x91\xe5\x3a\xba\x30\x92\xf9\x62"
4296                           "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc"
4297                           "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0",
4298         }, {
4299                 .key    = "\x01\x02\x03\x04\x05\x06\x07\x08"
4300                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4301                           "\x11\x12\x13\x14\x15\x16\x17\x18"
4302                           "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
4303                           "\x21\x22\x23\x24\x25",
4304                 .ksize  = 37,
4305                 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4306                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4307                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4308                         "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
4309                 .psize  = 50,
4310                 .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74"
4311                           "\x4c\x66\xde\xe0\xf8\xf0\x74\x55"
4312                           "\x6e\xc4\xaf\x55\xef\x07\x99\x85"
4313                           "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17",
4314         }, {
4315                 .key    = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
4316                         "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
4317                         "\x0c\x0c\x0c\x0c\x0c\x0c",
4318                 .ksize  = 32,
4319                 .plaintext = "Test With Truncation",
4320                 .psize  = 20,
4321                 .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b"
4322                           "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17"
4323                           "\xd4\xf5\x89\x66\x8a\x58\x7b\x27"
4324                           "\x00\xa9\xc9\x7c\x11\x93\xcf\x42",
4325         }, {
4326                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4327                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4328                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4329                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4330                         "\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",
4333                 .ksize  = 80,
4334                 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
4335                 .psize  = 54,
4336                 .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09"
4337                           "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb"
4338                           "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e"
4339                           "\x7d\xdd\x39\x09\x1b\x32\x35\x2f",
4340         }, {
4341                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4342                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4343                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4344                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4345                         "\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",
4348                 .ksize  = 80,
4349                 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than "
4350                            "One Block-Size Data",
4351                 .psize  = 73,
4352                 .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3"
4353                           "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8"
4354                           "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc"
4355                           "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6",
4356         },
4357 };
4358
4359 static const struct hash_testvec aes_cmac128_tv_template[] = {
4360         { /* From NIST Special Publication 800-38B, AES-128 */
4361                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4362                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4363                 .plaintext      = zeroed_string,
4364                 .digest         = "\xbb\x1d\x69\x29\xe9\x59\x37\x28"
4365                                   "\x7f\xa3\x7d\x12\x9b\x75\x67\x46",
4366                 .psize          = 0,
4367                 .ksize          = 16,
4368         }, {
4369                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4370                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4371                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4372                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a",
4373                 .digest         = "\x07\x0a\x16\xb4\x6b\x4d\x41\x44"
4374                                   "\xf7\x9b\xdd\x9d\xd0\x4a\x28\x7c",
4375                 .psize          = 16,
4376                 .ksize          = 16,
4377         }, {
4378                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4379                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4380                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4381                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4382                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4383                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4384                                   "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11",
4385                 .digest         = "\xdf\xa6\x67\x47\xde\x9a\xe6\x30"
4386                                   "\x30\xca\x32\x61\x14\x97\xc8\x27",
4387                 .psize          = 40,
4388                 .ksize          = 16,
4389         }, {
4390                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4391                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4392                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4393                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4394                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4395                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4396                                   "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
4397                                   "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
4398                                   "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
4399                                   "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
4400                 .digest         = "\x51\xf0\xbe\xbf\x7e\x3b\x9d\x92"
4401                                   "\xfc\x49\x74\x17\x79\x36\x3c\xfe",
4402                 .psize          = 64,
4403                 .ksize          = 16,
4404         }, { /* From NIST Special Publication 800-38B, AES-256 */
4405                 .key            = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
4406                                   "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
4407                                   "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
4408                                   "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
4409                 .plaintext      = zeroed_string,
4410                 .digest         = "\x02\x89\x62\xf6\x1b\x7b\xf8\x9e"
4411                                   "\xfc\x6b\x55\x1f\x46\x67\xd9\x83",
4412                 .psize          = 0,
4413                 .ksize          = 32,
4414         }, {
4415                 .key            = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
4416                                   "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
4417                                   "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
4418                                   "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
4419                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4420                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4421                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4422                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4423                                   "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
4424                                   "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
4425                                   "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
4426                                   "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
4427                 .digest         = "\xe1\x99\x21\x90\x54\x9f\x6e\xd5"
4428                                   "\x69\x6a\x2c\x05\x6c\x31\x54\x10",
4429                 .psize          = 64,
4430                 .ksize          = 32,
4431         }
4432 };
4433
4434 static const struct hash_testvec aes_cbcmac_tv_template[] = {
4435         {
4436                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4437                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4438                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4439                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a",
4440                 .digest         = "\x3a\xd7\x7b\xb4\x0d\x7a\x36\x60"
4441                                   "\xa8\x9e\xca\xf3\x24\x66\xef\x97",
4442                 .psize          = 16,
4443                 .ksize          = 16,
4444         }, {
4445                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4446                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4447                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4448                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4449                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4450                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4451                                   "\x30",
4452                 .digest         = "\x9d\x0d\xd0\x63\xfb\xcb\x24\x43"
4453                                   "\xf8\xf2\x76\x03\xac\x39\xb0\x9d",
4454                 .psize          = 33,
4455                 .ksize          = 16,
4456                 .np             = 2,
4457                 .tap            = { 7, 26 },
4458         }, {
4459                 .key            = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4460                                   "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4461                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4462                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4463                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4464                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4465                                   "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
4466                                   "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
4467                                   "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
4468                                   "\xad\x2b\x41\x7b\xe6\x6c\x37",
4469                 .digest         = "\xc0\x71\x73\xb8\xa0\x2c\x11\x7c"
4470                                   "\xaf\xdc\xb2\xf8\x89\x32\xa3\x3a",
4471                 .psize          = 63,
4472                 .ksize          = 16,
4473         }, {
4474                 .key            = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
4475                                   "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
4476                                   "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
4477                                   "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
4478                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4479                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4480                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4481                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4482                                   "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
4483                                   "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
4484                                   "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
4485                                   "\xad\x2b\x41\x7b\xe6\x6c\x37\x10"
4486                                   "\x1c",
4487                 .digest         = "\x6a\x4e\xdb\x21\x47\x51\xdf\x4f"
4488                                   "\xa8\x4d\x4c\x10\x3b\x72\x7d\xd6",
4489                 .psize          = 65,
4490                 .ksize          = 32,
4491         }
4492 };
4493
4494 static const struct hash_testvec des3_ede_cmac64_tv_template[] = {
4495 /*
4496  * From NIST Special Publication 800-38B, Three Key TDEA
4497  * Corrected test vectors from:
4498  *  http://csrc.nist.gov/publications/nistpubs/800-38B/Updated_CMAC_Examples.pdf
4499  */
4500         {
4501                 .key            = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
4502                                   "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
4503                                   "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
4504                 .plaintext      = zeroed_string,
4505                 .digest         = "\xb7\xa6\x88\xe1\x22\xff\xaf\x95",
4506                 .psize          = 0,
4507                 .ksize          = 24,
4508         }, {
4509                 .key            = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
4510                                   "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
4511                                   "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
4512                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96",
4513                 .digest         = "\x8e\x8f\x29\x31\x36\x28\x37\x97",
4514                 .psize          = 8,
4515                 .ksize          = 24,
4516         }, {
4517                 .key            = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
4518                                   "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
4519                                   "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
4520                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4521                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4522                                   "\xae\x2d\x8a\x57",
4523                 .digest         = "\x74\x3d\xdb\xe0\xce\x2d\xc2\xed",
4524                 .psize          = 20,
4525                 .ksize          = 24,
4526         }, {
4527                 .key            = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
4528                                   "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
4529                                   "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
4530                 .plaintext      = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4531                                   "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4532                                   "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4533                                   "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51",
4534                 .digest         = "\x33\xe6\xb1\x09\x24\x00\xea\xe5",
4535                 .psize          = 32,
4536                 .ksize          = 24,
4537         }
4538 };
4539
4540 static const struct hash_testvec aes_xcbc128_tv_template[] = {
4541         {
4542                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
4543                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4544                 .plaintext = zeroed_string,
4545                 .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c"
4546                           "\x45\x73\xdf\xd5\x84\xd7\x9f\x29",
4547                 .psize  = 0,
4548                 .ksize  = 16,
4549         }, {
4550                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
4551                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4552                 .plaintext = "\x00\x01\x02",
4553                 .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf"
4554                           "\xe7\x21\x9c\xee\xf1\x72\x75\x6f",
4555                 .psize  = 3,
4556                 .ksize  = 16,
4557         } , {
4558                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
4559                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4560                 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
4561                              "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4562                 .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7"
4563                           "\x99\x98\xa4\x39\x4f\xf7\xa2\x63",
4564                 .psize  = 16,
4565                 .ksize  = 16,
4566         }, {
4567                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
4568                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4569                 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
4570                              "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
4571                              "\x10\x11\x12\x13",
4572                 .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15"
4573                           "\xb8\x98\x5c\x63\x05\x5e\xd3\x08",
4574                 .tap    = { 10, 10 },
4575                 .psize  = 20,
4576                 .np     = 2,
4577                 .ksize  = 16,
4578         }, {
4579                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
4580                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4581                 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
4582                              "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
4583                              "\x10\x11\x12\x13\x14\x15\x16\x17"
4584                              "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
4585                 .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3"
4586                           "\x68\x07\x73\x4b\xd5\x28\x3f\xd4",
4587                 .psize  = 32,
4588                 .ksize  = 16,
4589         }, {
4590                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
4591                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4592                 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
4593                              "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
4594                              "\x10\x11\x12\x13\x14\x15\x16\x17"
4595                              "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
4596                              "\x20\x21",
4597                 .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3"
4598                           "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8",
4599                 .tap    = { 17, 17 },
4600                 .psize  = 34,
4601                 .np     = 2,
4602                 .ksize  = 16,
4603         }
4604 };
4605
4606 static const char vmac_string1[128] = {'\x01', '\x01', '\x01', '\x01',
4607                                        '\x02', '\x03', '\x02', '\x02',
4608                                        '\x02', '\x04', '\x01', '\x07',
4609                                        '\x04', '\x01', '\x04', '\x03',};
4610 static const char vmac_string2[128] = {'a', 'b', 'c',};
4611 static const char vmac_string3[128] = {'a', 'b', 'c', 'a', 'b', 'c',
4612                                        'a', 'b', 'c', 'a', 'b', 'c',
4613                                        'a', 'b', 'c', 'a', 'b', 'c',
4614                                        'a', 'b', 'c', 'a', 'b', 'c',
4615                                        'a', 'b', 'c', 'a', 'b', 'c',
4616                                        'a', 'b', 'c', 'a', 'b', 'c',
4617                                        'a', 'b', 'c', 'a', 'b', 'c',
4618                                        'a', 'b', 'c', 'a', 'b', 'c',
4619                                       };
4620
4621 static const char vmac_string4[17] = {'b', 'c', 'e', 'f',
4622                                       'i', 'j', 'l', 'm',
4623                                       'o', 'p', 'r', 's',
4624                                       't', 'u', 'w', 'x', 'z'};
4625
4626 static const char vmac_string5[127] = {'r', 'm', 'b', 't', 'c',
4627                                        'o', 'l', 'k', ']', '%',
4628                                        '9', '2', '7', '!', 'A'};
4629
4630 static const char vmac_string6[129] = {'p', 't', '*', '7', 'l',
4631                                        'i', '!', '#', 'w', '0',
4632                                        'z', '/', '4', 'A', 'n'};
4633
4634 static const struct hash_testvec aes_vmac128_tv_template[] = {
4635         {
4636                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
4637                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4638                 .plaintext = NULL,
4639                 .digest = "\x07\x58\x80\x35\x77\xa4\x7b\x54",
4640                 .psize  = 0,
4641                 .ksize  = 16,
4642         }, {
4643                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
4644                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4645                 .plaintext = vmac_string1,
4646                 .digest = "\xce\xf5\x3c\xd3\xae\x68\x8c\xa1",
4647                 .psize  = 128,
4648                 .ksize  = 16,
4649         }, {
4650                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
4651                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4652                 .plaintext = vmac_string2,
4653                 .digest = "\xc9\x27\xb0\x73\x81\xbd\x14\x2d",
4654                 .psize  = 128,
4655                 .ksize  = 16,
4656         }, {
4657                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
4658                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4659                 .plaintext = vmac_string3,
4660                 .digest = "\x8d\x1a\x95\x8c\x98\x47\x0b\x19",
4661                 .psize  = 128,
4662                 .ksize  = 16,
4663         }, {
4664                 .key    = "abcdefghijklmnop",
4665                 .plaintext = NULL,
4666                 .digest = "\x3b\x89\xa1\x26\x9e\x55\x8f\x84",
4667                 .psize  = 0,
4668                 .ksize  = 16,
4669         }, {
4670                 .key    = "abcdefghijklmnop",
4671                 .plaintext = vmac_string1,
4672                 .digest = "\xab\x5e\xab\xb0\xf6\x8d\x74\xc2",
4673                 .psize  = 128,
4674                 .ksize  = 16,
4675         }, {
4676                 .key    = "abcdefghijklmnop",
4677                 .plaintext = vmac_string2,
4678                 .digest = "\x11\x15\x68\x42\x3d\x7b\x09\xdf",
4679                 .psize  = 128,
4680                 .ksize  = 16,
4681         }, {
4682                 .key    = "abcdefghijklmnop",
4683                 .plaintext = vmac_string3,
4684                 .digest = "\x8b\x32\x8f\xe1\xed\x8f\xfa\xd4",
4685                 .psize  = 128,
4686                 .ksize  = 16,
4687         }, {
4688                 .key = "a09b5cd!f#07K\x00\x00\x00",
4689                 .plaintext = vmac_string4,
4690                 .digest = "\xab\xa5\x0f\xea\x42\x4e\xa1\x5f",
4691                 .psize = sizeof(vmac_string4),
4692                 .ksize = 16,
4693         }, {
4694                 .key = "a09b5cd!f#07K\x00\x00\x00",
4695                 .plaintext = vmac_string5,
4696                 .digest = "\x25\x31\x98\xbc\x1d\xe8\x67\x60",
4697                 .psize = sizeof(vmac_string5),
4698                 .ksize = 16,
4699         }, {
4700                 .key = "a09b5cd!f#07K\x00\x00\x00",
4701                 .plaintext = vmac_string6,
4702                 .digest = "\xc4\xae\x9b\x47\x95\x65\xeb\x41",
4703                 .psize = sizeof(vmac_string6),
4704                 .ksize = 16,
4705         },
4706 };
4707
4708 /*
4709  * SHA384 HMAC test vectors from RFC4231
4710  */
4711
4712 static const struct hash_testvec hmac_sha384_tv_template[] = {
4713         {
4714                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4715                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4716                           "\x0b\x0b\x0b\x0b",
4717                 .ksize  = 20,
4718                 .plaintext = "Hi There",
4719                 .psize  = 8,
4720                 .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62"
4721                           "\x6b\x08\x25\xf4\xab\x46\x90\x7f"
4722                           "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6"
4723                           "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c"
4724                           "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f"
4725                           "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6",
4726         }, {
4727                 .key    = "Jefe",
4728                 .ksize  = 4,
4729                 .plaintext = "what do ya want for nothing?",
4730                 .psize  = 28,
4731                 .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31"
4732                           "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b"
4733                           "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47"
4734                           "\xe4\x2e\xc3\x73\x63\x22\x44\x5e"
4735                           "\x8e\x22\x40\xca\x5e\x69\xe2\xc7"
4736                           "\x8b\x32\x39\xec\xfa\xb2\x16\x49",
4737                 .np     = 4,
4738                 .tap    = { 7, 7, 7, 7 }
4739         }, {
4740                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4741                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4742                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4743                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4744                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4745                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4746                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4747                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4748                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4749                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4750                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4751                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4752                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4753                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4754                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4755                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4756                           "\xaa\xaa\xaa",
4757                 .ksize  = 131,
4758                 .plaintext = "Test Using Larger Than Block-Siz"
4759                            "e Key - Hash Key First",
4760                 .psize  = 54,
4761                 .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90"
4762                           "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4"
4763                           "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f"
4764                           "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6"
4765                           "\x0c\x2e\xf6\xab\x40\x30\xfe\x82"
4766                           "\x96\x24\x8d\xf1\x63\xf4\x49\x52",
4767         }, {
4768                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4769                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4770                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4771                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4772                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4773                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4774                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4775                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4776                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4777                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4778                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4779                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4780                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4781                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4782                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4783                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4784                           "\xaa\xaa\xaa",
4785                 .ksize  = 131,
4786                 .plaintext = "This is a test u"
4787                            "sing a larger th"
4788                            "an block-size ke"
4789                            "y and a larger t"
4790                            "han block-size d"
4791                            "ata. The key nee"
4792                            "ds to be hashed "
4793                            "before being use"
4794                            "d by the HMAC al"
4795                            "gorithm.",
4796                 .psize  = 152,
4797                 .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d"
4798                           "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c"
4799                           "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a"
4800                           "\xdc\xce\xbb\x82\x46\x1e\x99\xc5"
4801                           "\xa6\x78\xcc\x31\xe7\x99\x17\x6d"
4802                           "\x38\x60\xe6\x11\x0c\x46\x52\x3e",
4803         },
4804 };
4805
4806 /*
4807  * SHA512 HMAC test vectors from RFC4231
4808  */
4809
4810 static const struct hash_testvec hmac_sha512_tv_template[] = {
4811         {
4812                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4813                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4814                           "\x0b\x0b\x0b\x0b",
4815                 .ksize  = 20,
4816                 .plaintext = "Hi There",
4817                 .psize  = 8,
4818                 .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d"
4819                           "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0"
4820                           "\x23\x79\xf4\xe2\xce\x4e\xc2\x78"
4821                           "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde"
4822                           "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02"
4823                           "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4"
4824                           "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70"
4825                           "\x2e\x69\x6c\x20\x3a\x12\x68\x54",
4826         }, {
4827                 .key    = "Jefe",
4828                 .ksize  = 4,
4829                 .plaintext = "what do ya want for nothing?",
4830                 .psize  = 28,
4831                 .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2"
4832                           "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3"
4833                           "\x87\xbd\x64\x22\x2e\x83\x1f\xd6"
4834                           "\x10\x27\x0c\xd7\xea\x25\x05\x54"
4835                           "\x97\x58\xbf\x75\xc0\x5a\x99\x4a"
4836                           "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd"
4837                           "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b"
4838                           "\x63\x6e\x07\x0a\x38\xbc\xe7\x37",
4839                 .np     = 4,
4840                 .tap    = { 7, 7, 7, 7 }
4841         }, {
4842                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4843                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4844                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4845                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4846                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4847                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4848                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4849                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4850                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4851                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4852                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4853                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4854                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4855                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4856                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4857                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4858                           "\xaa\xaa\xaa",
4859                 .ksize  = 131,
4860                 .plaintext = "Test Using Large"
4861                            "r Than Block-Siz"
4862                            "e Key - Hash Key"
4863                            " First",
4864                 .psize  = 54,
4865                 .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb"
4866                         "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4"
4867                         "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1"
4868                         "\x12\x1b\x01\x37\x83\xf8\xf3\x52"
4869                         "\x6b\x56\xd0\x37\xe0\x5f\x25\x98"
4870                         "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52"
4871                         "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec"
4872                         "\x8b\x91\x5a\x98\x5d\x78\x65\x98",
4873         }, {
4874                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4875                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4876                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4877                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4878                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4879                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4880                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4881                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4882                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4883                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4884                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4885                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4886                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4887                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4888                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4889                         "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4890                         "\xaa\xaa\xaa",
4891                 .ksize  = 131,
4892                 .plaintext =
4893                           "This is a test u"
4894                           "sing a larger th"
4895                           "an block-size ke"
4896                           "y and a larger t"
4897                           "han block-size d"
4898                           "ata. The key nee"
4899                           "ds to be hashed "
4900                           "before being use"
4901                           "d by the HMAC al"
4902                           "gorithm.",
4903                 .psize  = 152,
4904                 .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba"
4905                         "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd"
4906                         "\xde\xbd\x71\xf8\x86\x72\x89\x86"
4907                         "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44"
4908                         "\xb6\x02\x2c\xac\x3c\x49\x82\xb1"
4909                         "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15"
4910                         "\x13\x46\x76\xfb\x6d\xe0\x44\x60"
4911                         "\x65\xc9\x74\x40\xfa\x8c\x6a\x58",
4912         },
4913 };
4914
4915 static const struct hash_testvec hmac_sha3_224_tv_template[] = {
4916         {
4917                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4918                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4919                           "\x0b\x0b\x0b\x0b",
4920                 .ksize  = 20,
4921                 .plaintext = "Hi There",
4922                 .psize  = 8,
4923                 .digest = "\x3b\x16\x54\x6b\xbc\x7b\xe2\x70"
4924                           "\x6a\x03\x1d\xca\xfd\x56\x37\x3d"
4925                           "\x98\x84\x36\x76\x41\xd8\xc5\x9a"
4926                           "\xf3\xc8\x60\xf7",
4927         }, {
4928                 .key    = "Jefe",
4929                 .ksize  = 4,
4930                 .plaintext = "what do ya want for nothing?",
4931                 .psize  = 28,
4932                 .digest = "\x7f\xdb\x8d\xd8\x8b\xd2\xf6\x0d"
4933                           "\x1b\x79\x86\x34\xad\x38\x68\x11"
4934                           "\xc2\xcf\xc8\x5b\xfa\xf5\xd5\x2b"
4935                           "\xba\xce\x5e\x66",
4936                 .np     = 4,
4937                 .tap    = { 7, 7, 7, 7 }
4938         }, {
4939                 .key    = "\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\xaa\xaa\xaa\xaa\xaa"
4948                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4949                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4950                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4951                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4952                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4953                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4954                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4955                           "\xaa\xaa\xaa",
4956                 .ksize  = 131,
4957                 .plaintext = "Test Using Large"
4958                            "r Than Block-Siz"
4959                            "e Key - Hash Key"
4960                            " First",
4961                 .psize  = 54,
4962                 .digest = "\xb4\xa1\xf0\x4c\x00\x28\x7a\x9b"
4963                           "\x7f\x60\x75\xb3\x13\xd2\x79\xb8"
4964                           "\x33\xbc\x8f\x75\x12\x43\x52\xd0"
4965                           "\x5f\xb9\x99\x5f",
4966         }, {
4967                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4968                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4969                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4970                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4971                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4972                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4973                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4974                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4975                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4976                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4977                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4978                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4979                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4980                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4981                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4982                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4983                           "\xaa\xaa\xaa",
4984                 .ksize  = 131,
4985                 .plaintext =
4986                           "This is a test u"
4987                           "sing a larger th"
4988                           "an block-size ke"
4989                           "y and a larger t"
4990                           "han block-size d"
4991                           "ata. The key nee"
4992                           "ds to be hashed "
4993                           "before being use"
4994                           "d by the HMAC al"
4995                           "gorithm.",
4996                 .psize  = 152,
4997                 .digest = "\x05\xd8\xcd\x6d\x00\xfa\xea\x8d"
4998                           "\x1e\xb6\x8a\xde\x28\x73\x0b\xbd"
4999                           "\x3c\xba\xb6\x92\x9f\x0a\x08\x6b"
5000                           "\x29\xcd\x62\xa0",
5001         },
5002 };
5003
5004 static const struct hash_testvec hmac_sha3_256_tv_template[] = {
5005         {
5006                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5007                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5008                           "\x0b\x0b\x0b\x0b",
5009                 .ksize  = 20,
5010                 .plaintext = "Hi There",
5011                 .psize  = 8,
5012                 .digest = "\xba\x85\x19\x23\x10\xdf\xfa\x96"
5013                           "\xe2\xa3\xa4\x0e\x69\x77\x43\x51"
5014                           "\x14\x0b\xb7\x18\x5e\x12\x02\xcd"
5015                           "\xcc\x91\x75\x89\xf9\x5e\x16\xbb",
5016         }, {
5017                 .key    = "Jefe",
5018                 .ksize  = 4,
5019                 .plaintext = "what do ya want for nothing?",
5020                 .psize  = 28,
5021                 .digest = "\xc7\xd4\x07\x2e\x78\x88\x77\xae"
5022                           "\x35\x96\xbb\xb0\xda\x73\xb8\x87"
5023                           "\xc9\x17\x1f\x93\x09\x5b\x29\x4a"
5024                           "\xe8\x57\xfb\xe2\x64\x5e\x1b\xa5",
5025                 .np     = 4,
5026                 .tap    = { 7, 7, 7, 7 }
5027         }, {
5028                 .key    = "\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\xaa\xaa\xaa\xaa\xaa"
5041                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5042                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5043                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5044                           "\xaa\xaa\xaa",
5045                 .ksize  = 131,
5046                 .plaintext = "Test Using Large"
5047                            "r Than Block-Siz"
5048                            "e Key - Hash Key"
5049                            " First",
5050                 .psize  = 54,
5051                 .digest = "\xed\x73\xa3\x74\xb9\x6c\x00\x52"
5052                           "\x35\xf9\x48\x03\x2f\x09\x67\x4a"
5053                           "\x58\xc0\xce\x55\x5c\xfc\x1f\x22"
5054                           "\x3b\x02\x35\x65\x60\x31\x2c\x3b",
5055         }, {
5056                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5057                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5058                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5059                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5060                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5061                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5062                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5063                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5064                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5065                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5066                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5067                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5068                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5069                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5070                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5071                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5072                           "\xaa\xaa\xaa",
5073                 .ksize  = 131,
5074                 .plaintext =
5075                           "This is a test u"
5076                           "sing a larger th"
5077                           "an block-size ke"
5078                           "y and a larger t"
5079                           "han block-size d"
5080                           "ata. The key nee"
5081                           "ds to be hashed "
5082                           "before being use"
5083                           "d by the HMAC al"
5084                           "gorithm.",
5085                 .psize  = 152,
5086                 .digest = "\x65\xc5\xb0\x6d\x4c\x3d\xe3\x2a"
5087                           "\x7a\xef\x87\x63\x26\x1e\x49\xad"
5088                           "\xb6\xe2\x29\x3e\xc8\xe7\xc6\x1e"
5089                           "\x8d\xe6\x17\x01\xfc\x63\xe1\x23",
5090         },
5091 };
5092
5093 static const struct hash_testvec hmac_sha3_384_tv_template[] = {
5094         {
5095                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5096                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5097                           "\x0b\x0b\x0b\x0b",
5098                 .ksize  = 20,
5099                 .plaintext = "Hi There",
5100                 .psize  = 8,
5101                 .digest = "\x68\xd2\xdc\xf7\xfd\x4d\xdd\x0a"
5102                           "\x22\x40\xc8\xa4\x37\x30\x5f\x61"
5103                           "\xfb\x73\x34\xcf\xb5\xd0\x22\x6e"
5104                           "\x1b\xc2\x7d\xc1\x0a\x2e\x72\x3a"
5105                           "\x20\xd3\x70\xb4\x77\x43\x13\x0e"
5106                           "\x26\xac\x7e\x3d\x53\x28\x86\xbd",
5107         }, {
5108                 .key    = "Jefe",
5109                 .ksize  = 4,
5110                 .plaintext = "what do ya want for nothing?",
5111                 .psize  = 28,
5112                 .digest = "\xf1\x10\x1f\x8c\xbf\x97\x66\xfd"
5113                           "\x67\x64\xd2\xed\x61\x90\x3f\x21"
5114                           "\xca\x9b\x18\xf5\x7c\xf3\xe1\xa2"
5115                           "\x3c\xa1\x35\x08\xa9\x32\x43\xce"
5116                           "\x48\xc0\x45\xdc\x00\x7f\x26\xa2"
5117                           "\x1b\x3f\x5e\x0e\x9d\xf4\xc2\x0a",
5118                 .np     = 4,
5119                 .tap    = { 7, 7, 7, 7 }
5120         }, {
5121                 .key    = "\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\xaa\xaa\xaa\xaa\xaa"
5130                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5131                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5132                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5133                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5134                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5135                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5136                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5137                           "\xaa\xaa\xaa",
5138                 .ksize  = 131,
5139                 .plaintext = "Test Using Large"
5140                            "r Than Block-Siz"
5141                            "e Key - Hash Key"
5142                            " First",
5143                 .psize  = 54,
5144                 .digest = "\x0f\xc1\x95\x13\xbf\x6b\xd8\x78"
5145                           "\x03\x70\x16\x70\x6a\x0e\x57\xbc"
5146                           "\x52\x81\x39\x83\x6b\x9a\x42\xc3"
5147                           "\xd4\x19\xe4\x98\xe0\xe1\xfb\x96"
5148                           "\x16\xfd\x66\x91\x38\xd3\x3a\x11"
5149                           "\x05\xe0\x7c\x72\xb6\x95\x3b\xcc",
5150         }, {
5151                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5152                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5153                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5154                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5155                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5156                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5157                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5158                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5159                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5160                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5161                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5162                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5163                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5164                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5165                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5166                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5167                           "\xaa\xaa\xaa",
5168                 .ksize  = 131,
5169                 .plaintext =
5170                           "This is a test u"
5171                           "sing a larger th"
5172                           "an block-size ke"
5173                           "y and a larger t"
5174                           "han block-size d"
5175                           "ata. The key nee"
5176                           "ds to be hashed "
5177                           "before being use"
5178                           "d by the HMAC al"
5179                           "gorithm.",
5180                 .psize  = 152,
5181                 .digest = "\x02\x6f\xdf\x6b\x50\x74\x1e\x37"
5182                           "\x38\x99\xc9\xf7\xd5\x40\x6d\x4e"
5183                           "\xb0\x9f\xc6\x66\x56\x36\xfc\x1a"
5184                           "\x53\x00\x29\xdd\xf5\xcf\x3c\xa5"
5185                           "\xa9\x00\xed\xce\x01\xf5\xf6\x1e"
5186                           "\x2f\x40\x8c\xdf\x2f\xd3\xe7\xe8",
5187         },
5188 };
5189
5190 static const struct hash_testvec hmac_sha3_512_tv_template[] = {
5191         {
5192                 .key    = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5193                           "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5194                           "\x0b\x0b\x0b\x0b",
5195                 .ksize  = 20,
5196                 .plaintext = "Hi There",
5197                 .psize  = 8,
5198                 .digest = "\xeb\x3f\xbd\x4b\x2e\xaa\xb8\xf5"
5199                           "\xc5\x04\xbd\x3a\x41\x46\x5a\xac"
5200                           "\xec\x15\x77\x0a\x7c\xab\xac\x53"
5201                           "\x1e\x48\x2f\x86\x0b\x5e\xc7\xba"
5202                           "\x47\xcc\xb2\xc6\xf2\xaf\xce\x8f"
5203                           "\x88\xd2\x2b\x6d\xc6\x13\x80\xf2"
5204                           "\x3a\x66\x8f\xd3\x88\x8b\xb8\x05"
5205                           "\x37\xc0\xa0\xb8\x64\x07\x68\x9e",
5206         }, {
5207                 .key    = "Jefe",
5208                 .ksize  = 4,
5209                 .plaintext = "what do ya want for nothing?",
5210                 .psize  = 28,
5211                 .digest = "\x5a\x4b\xfe\xab\x61\x66\x42\x7c"
5212                           "\x7a\x36\x47\xb7\x47\x29\x2b\x83"
5213                           "\x84\x53\x7c\xdb\x89\xaf\xb3\xbf"
5214                           "\x56\x65\xe4\xc5\xe7\x09\x35\x0b"
5215                           "\x28\x7b\xae\xc9\x21\xfd\x7c\xa0"
5216                           "\xee\x7a\x0c\x31\xd0\x22\xa9\x5e"
5217                           "\x1f\xc9\x2b\xa9\xd7\x7d\xf8\x83"
5218                           "\x96\x02\x75\xbe\xb4\xe6\x20\x24",
5219                 .np     = 4,
5220                 .tap    = { 7, 7, 7, 7 }
5221         }, {
5222                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5223                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5224                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5225                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5226                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5227                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5228                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5229                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5230                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5231                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5232                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5233                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5234                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5235                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5236                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5237                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5238                           "\xaa\xaa\xaa",
5239                 .ksize  = 131,
5240                 .plaintext = "Test Using Large"
5241                            "r Than Block-Siz"
5242                            "e Key - Hash Key"
5243                            " First",
5244                 .psize  = 54,
5245                 .digest = "\x00\xf7\x51\xa9\xe5\x06\x95\xb0"
5246                           "\x90\xed\x69\x11\xa4\xb6\x55\x24"
5247                           "\x95\x1c\xdc\x15\xa7\x3a\x5d\x58"
5248                           "\xbb\x55\x21\x5e\xa2\xcd\x83\x9a"
5249                           "\xc7\x9d\x2b\x44\xa3\x9b\xaf\xab"
5250                           "\x27\xe8\x3f\xde\x9e\x11\xf6\x34"
5251                           "\x0b\x11\xd9\x91\xb1\xb9\x1b\xf2"
5252                           "\xee\xe7\xfc\x87\x24\x26\xc3\xa4",
5253         }, {
5254                 .key    = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5255                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5256                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5257                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5258                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5259                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5260                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5261                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5262                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5263                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5264                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5265                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5266                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5267                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5268                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5269                           "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5270                           "\xaa\xaa\xaa",
5271                 .ksize  = 131,
5272                 .plaintext =
5273                           "This is a test u"
5274                           "sing a larger th"
5275                           "an block-size ke"
5276                           "y and a larger t"
5277                           "han block-size d"
5278                           "ata. The key nee"
5279                           "ds to be hashed "
5280                           "before being use"
5281                           "d by the HMAC al"
5282                           "gorithm.",
5283                 .psize  = 152,
5284                 .digest = "\x38\xa4\x56\xa0\x04\xbd\x10\xd3"
5285                           "\x2c\x9a\xb8\x33\x66\x84\x11\x28"
5286                           "\x62\xc3\xdb\x61\xad\xcc\xa3\x18"
5287                           "\x29\x35\x5e\xaf\x46\xfd\x5c\x73"
5288                           "\xd0\x6a\x1f\x0d\x13\xfe\xc9\xa6"
5289                           "\x52\xfb\x38\x11\xb5\x77\xb1\xb1"
5290                           "\xd1\xb9\x78\x9f\x97\xae\x5b\x83"
5291                           "\xc6\xf4\x4d\xfc\xf1\xd6\x7e\xba",
5292         },
5293 };
5294
5295 /*
5296  * Poly1305 test vectors from RFC7539 A.3.
5297  */
5298
5299 static const struct hash_testvec poly1305_tv_template[] = {
5300         { /* Test Vector #1 */
5301                 .plaintext      = "\x00\x00\x00\x00\x00\x00\x00\x00"
5302                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5303                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5304                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5305                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5306                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5307                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5308                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5309                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5310                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5311                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5312                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5313                 .psize          = 96,
5314                 .digest         = "\x00\x00\x00\x00\x00\x00\x00\x00"
5315                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5316         }, { /* Test Vector #2 */
5317                 .plaintext      = "\x00\x00\x00\x00\x00\x00\x00\x00"
5318                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5319                                   "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
5320                                   "\xf0\xef\xca\x96\x22\x7a\x86\x3e"
5321                                   "\x41\x6e\x79\x20\x73\x75\x62\x6d"
5322                                   "\x69\x73\x73\x69\x6f\x6e\x20\x74"
5323                                   "\x6f\x20\x74\x68\x65\x20\x49\x45"
5324                                   "\x54\x46\x20\x69\x6e\x74\x65\x6e"
5325                                   "\x64\x65\x64\x20\x62\x79\x20\x74"
5326                                   "\x68\x65\x20\x43\x6f\x6e\x74\x72"
5327                                   "\x69\x62\x75\x74\x6f\x72\x20\x66"
5328                                   "\x6f\x72\x20\x70\x75\x62\x6c\x69"
5329                                   "\x63\x61\x74\x69\x6f\x6e\x20\x61"
5330                                   "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
5331                                   "\x20\x70\x61\x72\x74\x20\x6f\x66"
5332                                   "\x20\x61\x6e\x20\x49\x45\x54\x46"
5333                                   "\x20\x49\x6e\x74\x65\x72\x6e\x65"
5334                                   "\x74\x2d\x44\x72\x61\x66\x74\x20"
5335                                   "\x6f\x72\x20\x52\x46\x43\x20\x61"
5336                                   "\x6e\x64\x20\x61\x6e\x79\x20\x73"
5337                                   "\x74\x61\x74\x65\x6d\x65\x6e\x74"
5338                                   "\x20\x6d\x61\x64\x65\x20\x77\x69"
5339                                   "\x74\x68\x69\x6e\x20\x74\x68\x65"
5340                                   "\x20\x63\x6f\x6e\x74\x65\x78\x74"
5341                                   "\x20\x6f\x66\x20\x61\x6e\x20\x49"
5342                                   "\x45\x54\x46\x20\x61\x63\x74\x69"
5343                                   "\x76\x69\x74\x79\x20\x69\x73\x20"
5344                                   "\x63\x6f\x6e\x73\x69\x64\x65\x72"
5345                                   "\x65\x64\x20\x61\x6e\x20\x22\x49"
5346                                   "\x45\x54\x46\x20\x43\x6f\x6e\x74"
5347                                   "\x72\x69\x62\x75\x74\x69\x6f\x6e"
5348                                   "\x22\x2e\x20\x53\x75\x63\x68\x20"
5349                                   "\x73\x74\x61\x74\x65\x6d\x65\x6e"
5350                                   "\x74\x73\x20\x69\x6e\x63\x6c\x75"
5351                                   "\x64\x65\x20\x6f\x72\x61\x6c\x20"
5352                                   "\x73\x74\x61\x74\x65\x6d\x65\x6e"
5353                                   "\x74\x73\x20\x69\x6e\x20\x49\x45"
5354                                   "\x54\x46\x20\x73\x65\x73\x73\x69"
5355                                   "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
5356                                   "\x77\x65\x6c\x6c\x20\x61\x73\x20"
5357                                   "\x77\x72\x69\x74\x74\x65\x6e\x20"
5358                                   "\x61\x6e\x64\x20\x65\x6c\x65\x63"
5359                                   "\x74\x72\x6f\x6e\x69\x63\x20\x63"
5360                                   "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
5361                                   "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
5362                                   "\x64\x65\x20\x61\x74\x20\x61\x6e"
5363                                   "\x79\x20\x74\x69\x6d\x65\x20\x6f"
5364                                   "\x72\x20\x70\x6c\x61\x63\x65\x2c"
5365                                   "\x20\x77\x68\x69\x63\x68\x20\x61"
5366                                   "\x72\x65\x20\x61\x64\x64\x72\x65"
5367                                   "\x73\x73\x65\x64\x20\x74\x6f",
5368                 .psize          = 407,
5369                 .digest         = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
5370                                   "\xf0\xef\xca\x96\x22\x7a\x86\x3e",
5371         }, { /* Test Vector #3 */
5372                 .plaintext      = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
5373                                   "\xf0\xef\xca\x96\x22\x7a\x86\x3e"
5374                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5375                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5376                                   "\x41\x6e\x79\x20\x73\x75\x62\x6d"
5377                                   "\x69\x73\x73\x69\x6f\x6e\x20\x74"
5378                                   "\x6f\x20\x74\x68\x65\x20\x49\x45"
5379                                   "\x54\x46\x20\x69\x6e\x74\x65\x6e"
5380                                   "\x64\x65\x64\x20\x62\x79\x20\x74"
5381                                   "\x68\x65\x20\x43\x6f\x6e\x74\x72"
5382                                   "\x69\x62\x75\x74\x6f\x72\x20\x66"
5383                                   "\x6f\x72\x20\x70\x75\x62\x6c\x69"
5384                                   "\x63\x61\x74\x69\x6f\x6e\x20\x61"
5385                                   "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
5386                                   "\x20\x70\x61\x72\x74\x20\x6f\x66"
5387                                   "\x20\x61\x6e\x20\x49\x45\x54\x46"
5388                                   "\x20\x49\x6e\x74\x65\x72\x6e\x65"
5389                                   "\x74\x2d\x44\x72\x61\x66\x74\x20"
5390                                   "\x6f\x72\x20\x52\x46\x43\x20\x61"
5391                                   "\x6e\x64\x20\x61\x6e\x79\x20\x73"
5392                                   "\x74\x61\x74\x65\x6d\x65\x6e\x74"
5393                                   "\x20\x6d\x61\x64\x65\x20\x77\x69"
5394                                   "\x74\x68\x69\x6e\x20\x74\x68\x65"
5395                                   "\x20\x63\x6f\x6e\x74\x65\x78\x74"
5396                                   "\x20\x6f\x66\x20\x61\x6e\x20\x49"
5397                                   "\x45\x54\x46\x20\x61\x63\x74\x69"
5398                                   "\x76\x69\x74\x79\x20\x69\x73\x20"
5399                                   "\x63\x6f\x6e\x73\x69\x64\x65\x72"
5400                                   "\x65\x64\x20\x61\x6e\x20\x22\x49"
5401                                   "\x45\x54\x46\x20\x43\x6f\x6e\x74"
5402                                   "\x72\x69\x62\x75\x74\x69\x6f\x6e"
5403                                   "\x22\x2e\x20\x53\x75\x63\x68\x20"
5404                                   "\x73\x74\x61\x74\x65\x6d\x65\x6e"
5405                                   "\x74\x73\x20\x69\x6e\x63\x6c\x75"
5406                                   "\x64\x65\x20\x6f\x72\x61\x6c\x20"
5407                                   "\x73\x74\x61\x74\x65\x6d\x65\x6e"
5408                                   "\x74\x73\x20\x69\x6e\x20\x49\x45"
5409                                   "\x54\x46\x20\x73\x65\x73\x73\x69"
5410                                   "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
5411                                   "\x77\x65\x6c\x6c\x20\x61\x73\x20"
5412                                   "\x77\x72\x69\x74\x74\x65\x6e\x20"
5413                                   "\x61\x6e\x64\x20\x65\x6c\x65\x63"
5414                                   "\x74\x72\x6f\x6e\x69\x63\x20\x63"
5415                                   "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
5416                                   "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
5417                                   "\x64\x65\x20\x61\x74\x20\x61\x6e"
5418                                   "\x79\x20\x74\x69\x6d\x65\x20\x6f"
5419                                   "\x72\x20\x70\x6c\x61\x63\x65\x2c"
5420                                   "\x20\x77\x68\x69\x63\x68\x20\x61"
5421                                   "\x72\x65\x20\x61\x64\x64\x72\x65"
5422                                   "\x73\x73\x65\x64\x20\x74\x6f",
5423                 .psize          = 407,
5424                 .digest         = "\xf3\x47\x7e\x7c\xd9\x54\x17\xaf"
5425                                   "\x89\xa6\xb8\x79\x4c\x31\x0c\xf0",
5426         }, { /* Test Vector #4 */
5427                 .plaintext      = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
5428                                   "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
5429                                   "\x47\x39\x17\xc1\x40\x2b\x80\x09"
5430                                   "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
5431                                   "\x27\x54\x77\x61\x73\x20\x62\x72"
5432                                   "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
5433                                   "\x6e\x64\x20\x74\x68\x65\x20\x73"
5434                                   "\x6c\x69\x74\x68\x79\x20\x74\x6f"
5435                                   "\x76\x65\x73\x0a\x44\x69\x64\x20"
5436                                   "\x67\x79\x72\x65\x20\x61\x6e\x64"
5437                                   "\x20\x67\x69\x6d\x62\x6c\x65\x20"
5438                                   "\x69\x6e\x20\x74\x68\x65\x20\x77"
5439                                   "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
5440                                   "\x20\x6d\x69\x6d\x73\x79\x20\x77"
5441                                   "\x65\x72\x65\x20\x74\x68\x65\x20"
5442                                   "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
5443                                   "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
5444                                   "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
5445                                   "\x72\x61\x74\x68\x73\x20\x6f\x75"
5446                                   "\x74\x67\x72\x61\x62\x65\x2e",
5447                 .psize          = 159,
5448                 .digest         = "\x45\x41\x66\x9a\x7e\xaa\xee\x61"
5449                                   "\xe7\x08\xdc\x7c\xbc\xc5\xeb\x62",
5450         }, { /* Test Vector #5 */
5451                 .plaintext      = "\x02\x00\x00\x00\x00\x00\x00\x00"
5452                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5453                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5454                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5455                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5456                                   "\xff\xff\xff\xff\xff\xff\xff\xff",
5457                 .psize          = 48,
5458                 .digest         = "\x03\x00\x00\x00\x00\x00\x00\x00"
5459                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5460         }, { /* Test Vector #6 */
5461                 .plaintext      = "\x02\x00\x00\x00\x00\x00\x00\x00"
5462                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5463                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5464                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5465                                   "\x02\x00\x00\x00\x00\x00\x00\x00"
5466                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5467                 .psize          = 48,
5468                 .digest         = "\x03\x00\x00\x00\x00\x00\x00\x00"
5469                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5470         }, { /* Test Vector #7 */
5471                 .plaintext      = "\x01\x00\x00\x00\x00\x00\x00\x00"
5472                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5473                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5474                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5475                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5476                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5477                                   "\xf0\xff\xff\xff\xff\xff\xff\xff"
5478                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5479                                   "\x11\x00\x00\x00\x00\x00\x00\x00"
5480                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5481                 .psize          = 80,
5482                 .digest         = "\x05\x00\x00\x00\x00\x00\x00\x00"
5483                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5484         }, { /* Test Vector #8 */
5485                 .plaintext      = "\x01\x00\x00\x00\x00\x00\x00\x00"
5486                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5487                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5488                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5489                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5490                                   "\xff\xff\xff\xff\xff\xff\xff\xff"
5491                                   "\xfb\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
5492                                   "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
5493                                   "\x01\x01\x01\x01\x01\x01\x01\x01"
5494                                   "\x01\x01\x01\x01\x01\x01\x01\x01",
5495                 .psize          = 80,
5496                 .digest         = "\x00\x00\x00\x00\x00\x00\x00\x00"
5497                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5498         }, { /* Test Vector #9 */
5499                 .plaintext      = "\x02\x00\x00\x00\x00\x00\x00\x00"
5500                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5501                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5502                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5503                                   "\xfd\xff\xff\xff\xff\xff\xff\xff"
5504                                   "\xff\xff\xff\xff\xff\xff\xff\xff",
5505                 .psize          = 48,
5506                 .digest         = "\xfa\xff\xff\xff\xff\xff\xff\xff"
5507                                   "\xff\xff\xff\xff\xff\xff\xff\xff",
5508         }, { /* Test Vector #10 */
5509                 .plaintext      = "\x01\x00\x00\x00\x00\x00\x00\x00"
5510                                   "\x04\x00\x00\x00\x00\x00\x00\x00"
5511                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5512                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5513                                   "\xe3\x35\x94\xd7\x50\x5e\x43\xb9"
5514                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5515                                   "\x33\x94\xd7\x50\x5e\x43\x79\xcd"
5516                                   "\x01\x00\x00\x00\x00\x00\x00\x00"
5517                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5518                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5519                                   "\x01\x00\x00\x00\x00\x00\x00\x00"
5520                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5521                 .psize          = 96,
5522                 .digest         = "\x14\x00\x00\x00\x00\x00\x00\x00"
5523                                   "\x55\x00\x00\x00\x00\x00\x00\x00",
5524         }, { /* Test Vector #11 */
5525                 .plaintext      = "\x01\x00\x00\x00\x00\x00\x00\x00"
5526                                   "\x04\x00\x00\x00\x00\x00\x00\x00"
5527                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5528                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5529                                   "\xe3\x35\x94\xd7\x50\x5e\x43\xb9"
5530                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5531                                   "\x33\x94\xd7\x50\x5e\x43\x79\xcd"
5532                                   "\x01\x00\x00\x00\x00\x00\x00\x00"
5533                                   "\x00\x00\x00\x00\x00\x00\x00\x00"
5534                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5535                 .psize          = 80,
5536                 .digest         = "\x13\x00\x00\x00\x00\x00\x00\x00"
5537                                   "\x00\x00\x00\x00\x00\x00\x00\x00",
5538         },
5539 };
5540
5541 /*
5542  * DES test vectors.
5543  */
5544 static const struct cipher_testvec des_tv_template[] = {
5545         { /* From Applied Cryptography */
5546                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5547                 .klen   = 8,
5548                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
5549                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
5550                 .len    = 8,
5551         }, { /* Same key, different plaintext block */
5552                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5553                 .klen   = 8,
5554                 .ptext  = "\x22\x33\x44\x55\x66\x77\x88\x99",
5555                 .ctext  = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
5556                 .len    = 8,
5557         }, { /* Sbox test from NBS */
5558                 .key    = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
5559                 .klen   = 8,
5560                 .ptext  = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
5561                 .ctext  = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
5562                 .len    = 8,
5563         }, { /* Three blocks */
5564                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5565                 .klen   = 8,
5566                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5567                           "\x22\x33\x44\x55\x66\x77\x88\x99"
5568                           "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
5569                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5570                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
5571                           "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
5572                 .len    = 24,
5573         }, { /* Weak key */
5574                 .fail   = true,
5575                 .wk     = 1,
5576                 .key    = "\x01\x01\x01\x01\x01\x01\x01\x01",
5577                 .klen   = 8,
5578                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
5579                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
5580                 .len    = 8,
5581         }, { /* Two blocks -- for testing encryption across pages */
5582                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5583                 .klen   = 8,
5584                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5585                           "\x22\x33\x44\x55\x66\x77\x88\x99",
5586                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5587                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
5588                 .len    = 16,
5589                 .np     = 2,
5590                 .tap    = { 8, 8 }
5591         }, {
5592                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5593                 .klen   = 8,
5594                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5595                           "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
5596                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5597                           "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
5598                 .len    = 16,
5599                 .np     = 2,
5600                 .tap    = { 8, 8 }
5601         }, {
5602                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5603                 .klen   = 8,
5604                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5605                           "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
5606                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5607                           "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
5608                 .len    = 16,
5609                 .np     = 3,
5610                 .tap    = { 3, 12, 1 }
5611         }, { /* Four blocks -- for testing encryption with chunking */
5612                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5613                 .klen   = 8,
5614                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5615                           "\x22\x33\x44\x55\x66\x77\x88\x99"
5616                           "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
5617                           "\x22\x33\x44\x55\x66\x77\x88\x99",
5618                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5619                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
5620                           "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
5621                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
5622                 .len    = 32,
5623                 .np     = 3,
5624                 .tap    = { 14, 10, 8 }
5625         }, {
5626                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5627                 .klen   = 8,
5628                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5629                           "\x22\x33\x44\x55\x66\x77\x88\x99"
5630                           "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
5631                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5632                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
5633                           "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
5634                 .len    = 24,
5635                 .np     = 4,
5636                 .tap    = { 2, 1, 3, 18 }
5637         }, {
5638                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5639                 .klen   = 8,
5640                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
5641                           "\x22\x33\x44\x55\x66\x77\x88\x99",
5642                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
5643                           "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
5644                 .len    = 16,
5645                 .np     = 5,
5646                 .tap    = { 2, 2, 2, 2, 8 }
5647         }, {
5648                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5649                 .klen   = 8,
5650                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
5651                 .ctext  = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
5652                 .len    = 8,
5653                 .np     = 8,
5654                 .tap    = { 1, 1, 1, 1, 1, 1, 1, 1 }
5655         }, { /* Generated with Crypto++ */
5656                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5657                 .klen   = 8,
5658                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5659                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5660                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5661                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5662                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5663                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5664                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5665                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5666                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5667                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5668                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5669                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5670                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5671                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5672                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5673                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5674                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5675                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5676                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5677                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5678                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5679                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5680                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5681                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5682                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5683                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5684                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5685                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5686                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5687                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5688                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5689                 .ctext  = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
5690                           "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
5691                           "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
5692                           "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
5693                           "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
5694                           "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
5695                           "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
5696                           "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
5697                           "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
5698                           "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
5699                           "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
5700                           "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
5701                           "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
5702                           "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
5703                           "\x2E\x51\x16\xCA\x09\x89\x54\x62"
5704                           "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
5705                           "\x62\xF0\x02\x58\x83\xAF\x30\x87"
5706                           "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
5707                           "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
5708                           "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
5709                           "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
5710                           "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
5711                           "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
5712                           "\xE9\x95\x61\x74\x12\xED\x07\xD7"
5713                           "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
5714                           "\x51\x96\x16\xF7\x94\x61\xB8\x87"
5715                           "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
5716                           "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
5717                           "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
5718                           "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
5719                           "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
5720                 .len    = 248,
5721                 .also_non_np = 1,
5722                 .np     = 3,
5723                 .tap    = { 248 - 10, 2, 8 },
5724         },
5725 };
5726
5727 static const struct cipher_testvec des_cbc_tv_template[] = {
5728         { /* From OpenSSL */
5729                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5730                 .klen   = 8,
5731                 .iv     = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5732                 .ptext  = "\x37\x36\x35\x34\x33\x32\x31\x20"
5733                           "\x4e\x6f\x77\x20\x69\x73\x20\x74"
5734                           "\x68\x65\x20\x74\x69\x6d\x65\x20",
5735                 .ctext  = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
5736                           "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
5737                           "\x46\x8e\x91\x15\x78\x88\xba\x68",
5738                 .len    = 24,
5739         }, { /* FIPS Pub 81 */
5740                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5741                 .klen   = 8,
5742                 .iv     = "\x12\x34\x56\x78\x90\xab\xcd\xef",
5743                 .ptext  = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
5744                 .ctext  = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
5745                 .len    = 8,
5746         }, {
5747                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5748                 .klen   = 8,
5749                 .iv     = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
5750                 .ptext  = "\x68\x65\x20\x74\x69\x6d\x65\x20",
5751                 .ctext  = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
5752                 .len    = 8,
5753         }, {
5754                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5755                 .klen   = 8,
5756                 .iv     = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
5757                 .ptext  = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
5758                 .ctext  = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
5759                 .len    = 8,
5760                 .np     = 2,
5761                 .tap    = { 4, 4 },
5762                 .also_non_np = 1,
5763         }, { /* Copy of openssl vector for chunk testing */
5764              /* From OpenSSL */
5765                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5766                 .klen   = 8,
5767                 .iv     = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5768                 .ptext  = "\x37\x36\x35\x34\x33\x32\x31\x20"
5769                           "\x4e\x6f\x77\x20\x69\x73\x20\x74"
5770                           "\x68\x65\x20\x74\x69\x6d\x65\x20",
5771                 .ctext  = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
5772                           "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
5773                           "\x46\x8e\x91\x15\x78\x88\xba\x68",
5774                 .len    = 24,
5775                 .np     = 2,
5776                 .tap    = { 13, 11 }
5777         }, { /* Generated with Crypto++ */
5778                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5779                 .klen   = 8,
5780                 .iv     = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
5781                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5782                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5783                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5784                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5785                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5786                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5787                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5788                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5789                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5790                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5791                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5792                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5793                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5794                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5795                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5796                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5797                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5798                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5799                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5800                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5801                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5802                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5803                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5804                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5805                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5806                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5807                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5808                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5809                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5810                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5811                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5812                 .ctext  = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
5813                           "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
5814                           "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
5815                           "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
5816                           "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
5817                           "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
5818                           "\x81\x72\x74\xDE\x30\x19\x69\x49"
5819                           "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
5820                           "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
5821                           "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
5822                           "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
5823                           "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
5824                           "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
5825                           "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
5826                           "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
5827                           "\x49\x90\x88\x6A\x09\x8F\x76\x59"
5828                           "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
5829                           "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
5830                           "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
5831                           "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
5832                           "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
5833                           "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
5834                           "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
5835                           "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
5836                           "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
5837                           "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
5838                           "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
5839                           "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
5840                           "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
5841                           "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
5842                           "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
5843                 .len    = 248,
5844                 .also_non_np = 1,
5845                 .np     = 3,
5846                 .tap    = { 248 - 10, 2, 8 },
5847         },
5848 };
5849
5850 static const struct cipher_testvec des_ctr_tv_template[] = {
5851         { /* Generated with Crypto++ */
5852                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5853                 .klen   = 8,
5854                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
5855                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5856                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5857                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5858                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5859                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5860                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5861                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5862                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5863                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5864                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5865                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5866                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5867                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5868                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5869                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5870                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5871                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5872                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5873                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5874                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5875                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5876                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5877                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5878                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5879                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5880                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5881                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5882                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5883                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5884                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5885                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5886                 .ctext  = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
5887                           "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
5888                           "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
5889                           "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
5890                           "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
5891                           "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
5892                           "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
5893                           "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
5894                           "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
5895                           "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
5896                           "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
5897                           "\xBE\x4C\x91\x43\x22\x65\x72\x48"
5898                           "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
5899                           "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
5900                           "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
5901                           "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
5902                           "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
5903                           "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
5904                           "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
5905                           "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
5906                           "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
5907                           "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
5908                           "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
5909                           "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
5910                           "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
5911                           "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
5912                           "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
5913                           "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
5914                           "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
5915                           "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
5916                           "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
5917                 .len    = 248,
5918                 .also_non_np = 1,
5919                 .np     = 3,
5920                 .tap    = { 248 - 10, 2, 8 },
5921         }, { /* Generated with Crypto++ */
5922                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5923                 .klen   = 8,
5924                 .iv     = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
5925                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5926                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5927                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5928                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5929                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5930                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5931                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5932                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5933                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5934                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5935                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5936                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5937                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5938                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5939                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5940                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5941                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5942                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5943                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5944                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5945                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5946                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5947                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5948                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5949                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5950                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5951                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5952                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5953                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5954                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5955                           "\xC6\x2F\xBB\x24\x8D\x19\x82",
5956                 .ctext  = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
5957                           "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
5958                           "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
5959                           "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
5960                           "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
5961                           "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
5962                           "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
5963                           "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
5964                           "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
5965                           "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
5966                           "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
5967                           "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
5968                           "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
5969                           "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
5970                           "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
5971                           "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
5972                           "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
5973                           "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
5974                           "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
5975                           "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
5976                           "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
5977                           "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
5978                           "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
5979                           "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
5980                           "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
5981                           "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
5982                           "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
5983                           "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
5984                           "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
5985                           "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
5986                           "\x91\x45\x05\x3E\x58\xBF\x32",
5987                 .len    = 247,
5988                 .also_non_np = 1,
5989                 .np     = 2,
5990                 .tap    = { 247 - 8, 8 },
5991         },
5992 };
5993
5994 static const struct cipher_testvec des3_ede_tv_template[] = {
5995         { /* These are from openssl */
5996                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
5997                           "\x55\x55\x55\x55\x55\x55\x55\x55"
5998                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5999                 .klen   = 24,
6000                 .ptext  = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
6001                 .ctext  = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
6002                 .len    = 8,
6003         }, {
6004                 .key    = "\x03\x52\x02\x07\x67\x20\x82\x17"
6005                           "\x86\x02\x87\x66\x59\x08\x21\x98"
6006                           "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
6007                 .klen   = 24,
6008                 .ptext  = "\x73\x71\x75\x69\x67\x67\x6c\x65",
6009                 .ctext  = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
6010                 .len    = 8,
6011         }, {
6012                 .key    = "\x10\x46\x10\x34\x89\x98\x80\x20"
6013                           "\x91\x07\xd0\x15\x89\x19\x01\x01"
6014                           "\x19\x07\x92\x10\x98\x1a\x01\x01",
6015                 .klen   = 24,
6016                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00",
6017                 .ctext  = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
6018                 .len    = 8,
6019         }, { /* Generated with Crypto++ */
6020                 .key    = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
6021                           "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
6022                           "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
6023                 .klen   = 24,
6024                 .ptext  = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6025                           "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6026                           "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6027                           "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6028                           "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6029                           "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6030                           "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6031                           "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6032                           "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6033                           "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6034                           "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6035                           "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6036                           "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6037                           "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6038                           "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6039                           "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6040                           "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6041                           "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6042                           "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6043                           "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6044                           "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6045                           "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6046                           "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6047                           "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6048                           "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6049                           "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6050                           "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6051                           "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6052                           "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6053                           "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6054                           "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6055                           "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6056                           "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6057                           "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6058                           "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6059                           "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6060                           "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6061                           "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6062                           "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6063                           "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6064                           "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6065                           "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6066                           "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6067                           "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6068                           "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6069                           "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6070                           "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6071                           "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6072                           "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6073                           "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6074                           "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6075                           "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6076                           "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6077                           "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6078                           "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6079                           "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6080                           "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6081                           "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6082                           "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6083                           "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6084                           "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6085                           "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6086                 .ctext  = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
6087                           "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
6088                           "\x81\x01\x04\x00\x76\xFA\xED\xD3"
6089                           "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
6090                           "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
6091                           "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
6092                           "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
6093                           "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
6094                           "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
6095                           "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
6096                           "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
6097                           "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
6098                           "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
6099                           "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
6100                           "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
6101                           "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
6102                           "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
6103                           "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
6104                           "\x45\x86\x50\x01\x70\x35\x99\x92"
6105                           "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
6106                           "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
6107                           "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
6108                           "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
6109                           "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
6110                           "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
6111                           "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
6112                           "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
6113                           "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
6114                           "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
6115                           "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
6116                           "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
6117                           "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
6118                           "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
6119                           "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
6120                           "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
6121                           "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
6122                           "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
6123                           "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
6124                           "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
6125                           "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
6126                           "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
6127                           "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
6128                           "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
6129                           "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
6130                           "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
6131                           "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
6132                           "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
6133                           "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
6134                           "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
6135                           "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
6136                           "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
6137                           "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
6138                           "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
6139                           "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
6140                           "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
6141                           "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
6142                           "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
6143                           "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
6144                           "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
6145                           "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
6146                           "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
6147                           "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
6148                 .len    = 496,
6149                 .also_non_np = 1,
6150                 .np     = 3,
6151                 .tap    = { 496 - 20, 4, 16 },
6152         },
6153 };
6154
6155 static const struct cipher_testvec des3_ede_cbc_tv_template[] = {
6156         { /* Generated from openssl */
6157                 .key    = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
6158                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
6159                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
6160                 .klen   = 24,
6161                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
6162                 .ptext  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
6163                           "\x53\x20\x63\x65\x65\x72\x73\x74"
6164                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
6165                           "\x20\x79\x65\x53\x72\x63\x74\x65"
6166                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
6167                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
6168                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
6169                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
6170                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
6171                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
6172                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
6173                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
6174                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
6175                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
6176                           "\x63\x65\x65\x72\x73\x74\x54\x20"
6177                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
6178                 .ctext  = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
6179                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
6180                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
6181                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
6182                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
6183                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
6184                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
6185                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
6186                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
6187                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
6188                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
6189                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
6190                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
6191                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
6192                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
6193                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
6194                 .len    = 128,
6195         }, { /* Generated with Crypto++ */
6196                 .key    = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6197                           "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6198                           "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6199                 .klen   = 24,
6200                 .iv     = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
6201                           "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
6202                 .ptext  = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6203                           "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6204                           "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6205                           "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6206                           "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6207                           "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6208                           "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6209                           "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6210                           "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6211                           "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6212                           "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6213                           "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6214                           "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6215                           "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6216                           "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6217                           "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6218                           "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6219                           "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6220                           "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6221                           "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6222                           "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6223                           "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6224                           "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6225                           "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6226                           "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6227                           "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6228                           "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6229                           "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6230                           "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6231                           "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6232                           "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6233                           "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6234                           "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6235                           "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6236                           "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6237                           "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6238                           "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6239                           "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6240                           "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6241                           "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6242                           "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6243                           "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6244                           "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6245                           "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6246                           "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6247                           "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6248                           "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6249                           "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6250                           "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6251                           "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6252                           "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6253                           "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6254                           "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6255                           "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6256                           "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6257                           "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6258                           "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6259                           "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6260                           "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6261                           "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6262                           "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6263                           "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6264                 .ctext  = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
6265                           "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
6266                           "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
6267                           "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
6268                           "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
6269                           "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
6270                           "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
6271                           "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
6272                           "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
6273                           "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
6274                           "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
6275                           "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
6276                           "\x11\x35\x61\x94\x88\x7B\x1C\x48"
6277                           "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
6278                           "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
6279                           "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
6280                           "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
6281                           "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
6282                           "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
6283                           "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
6284                           "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
6285                           "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
6286                           "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
6287                           "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
6288                           "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
6289                           "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
6290                           "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
6291                           "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
6292                           "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
6293                           "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
6294                           "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
6295                           "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
6296                           "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
6297                           "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
6298                           "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
6299                           "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
6300                           "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
6301                           "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
6302                           "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
6303                           "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
6304                           "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
6305                           "\x73\x50\x08\x56\x20\x9B\x94\x23"
6306                           "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
6307                           "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
6308                           "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
6309                           "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
6310                           "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
6311                           "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
6312                           "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
6313                           "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
6314                           "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
6315                           "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
6316                           "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
6317                           "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
6318                           "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
6319                           "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
6320                           "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
6321                           "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
6322                           "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
6323                           "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
6324                           "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
6325                           "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
6326                 .len    = 496,
6327                 .also_non_np = 1,
6328                 .np     = 3,
6329                 .tap    = { 496 - 20, 4, 16 },
6330         },
6331 };
6332
6333 static const struct cipher_testvec des3_ede_ctr_tv_template[] = {
6334         { /* Generated with Crypto++ */
6335                 .key    = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6336                           "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6337                           "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6338                 .klen   = 24,
6339                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
6340                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
6341                 .ptext  = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6342                           "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6343                           "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6344                           "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6345                           "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6346                           "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6347                           "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6348                           "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6349                           "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6350                           "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6351                           "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6352                           "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6353                           "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6354                           "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6355                           "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6356                           "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6357                           "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6358                           "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6359                           "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6360                           "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6361                           "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6362                           "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6363                           "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6364                           "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6365                           "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6366                           "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6367                           "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6368                           "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6369                           "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6370                           "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6371                           "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6372                           "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6373                           "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6374                           "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6375                           "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6376                           "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6377                           "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6378                           "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6379                           "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6380                           "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6381                           "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6382                           "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6383                           "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6384                           "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6385                           "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6386                           "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6387                           "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6388                           "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6389                           "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6390                           "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6391                           "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6392                           "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6393                           "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6394                           "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6395                           "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6396                           "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6397                           "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6398                           "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6399                           "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6400                           "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6401                           "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6402                           "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6403                 .ctext  = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
6404                           "\x19\xCD\x6F\x32\x53\x05\x22\x15"
6405                           "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
6406                           "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
6407                           "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
6408                           "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
6409                           "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
6410                           "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
6411                           "\x13\x78\xDC\x89\x12\x12\x43\xFA"
6412                           "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
6413                           "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
6414                           "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
6415                           "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
6416                           "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
6417                           "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
6418                           "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
6419                           "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
6420                           "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
6421                           "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
6422                           "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
6423                           "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
6424                           "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
6425                           "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
6426                           "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
6427                           "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
6428                           "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
6429                           "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
6430                           "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
6431                           "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
6432                           "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
6433                           "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
6434                           "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
6435                           "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
6436                           "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
6437                           "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
6438                           "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
6439                           "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
6440                           "\x83\x37\x4F\x1F\x48\x30\xED\x04"
6441                           "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
6442                           "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
6443                           "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
6444                           "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
6445                           "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
6446                           "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
6447                           "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
6448                           "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
6449                           "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
6450                           "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
6451                           "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
6452                           "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
6453                           "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
6454                           "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
6455                           "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
6456                           "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
6457                           "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
6458                           "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
6459                           "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
6460                           "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
6461                           "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
6462                           "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
6463                           "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
6464                           "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
6465                 .len    = 496,
6466                 .also_non_np = 1,
6467                 .np     = 3,
6468                 .tap    = { 496 - 20, 4, 16 },
6469         }, { /* Generated with Crypto++ */
6470                 .key    = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6471                           "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6472                           "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6473                 .klen   = 24,
6474                 .iv     = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
6475                           "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
6476                 .ptext  = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6477                           "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6478                           "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6479                           "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6480                           "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6481                           "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6482                           "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6483                           "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6484                           "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6485                           "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6486                           "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6487                           "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6488                           "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6489                           "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6490                           "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6491                           "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6492                           "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6493                           "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6494                           "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6495                           "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6496                           "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6497                           "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6498                           "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6499                           "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6500                           "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6501                           "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6502                           "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6503                           "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6504                           "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6505                           "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6506                           "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6507                           "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6508                           "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6509                           "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6510                           "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6511                           "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6512                           "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6513                           "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6514                           "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6515                           "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6516                           "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6517                           "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6518                           "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6519                           "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6520                           "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6521                           "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6522                           "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6523                           "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6524                           "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6525                           "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6526                           "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6527                           "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6528                           "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6529                           "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6530                           "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6531                           "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6532                           "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6533                           "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6534                           "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6535                           "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6536                           "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6537                           "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
6538                           "\x2E\xB1\x18",
6539                 .ctext  = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
6540                           "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
6541                           "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
6542                           "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
6543                           "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
6544                           "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
6545                           "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
6546                           "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
6547                           "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
6548                           "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
6549                           "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
6550                           "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
6551                           "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
6552                           "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
6553                           "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
6554                           "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
6555                           "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
6556                           "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
6557                           "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
6558                           "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
6559                           "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
6560                           "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
6561                           "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
6562                           "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
6563                           "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
6564                           "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
6565                           "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
6566                           "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
6567                           "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
6568                           "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
6569                           "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
6570                           "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
6571                           "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
6572                           "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
6573                           "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
6574                           "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
6575                           "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
6576                           "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
6577                           "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
6578                           "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
6579                           "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
6580                           "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
6581                           "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
6582                           "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
6583                           "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
6584                           "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
6585                           "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
6586                           "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
6587                           "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
6588                           "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
6589                           "\x8A\x19\x08\xE1\x08\x48\x59\x51"
6590                           "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
6591                           "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
6592                           "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
6593                           "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
6594                           "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
6595                           "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
6596                           "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
6597                           "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
6598                           "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
6599                           "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
6600                           "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
6601                           "\xF2\x79\xD9",
6602                 .len    = 499,
6603                 .also_non_np = 1,
6604                 .np     = 2,
6605                 .tap    = { 499 - 16, 16 },
6606         },
6607 };
6608
6609 /*
6610  * Blowfish test vectors.
6611  */
6612 static const struct cipher_testvec bf_tv_template[] = {
6613         { /* DES test vectors from OpenSSL */
6614                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00",
6615                 .klen   = 8,
6616                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00",
6617                 .ctext  = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
6618                 .len    = 8,
6619         }, {
6620                 .key    = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
6621                 .klen   = 8,
6622                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
6623                 .ctext  = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
6624                 .len    = 8,
6625         }, {
6626                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
6627                 .klen   = 8,
6628                 .ptext  = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6629                 .ctext  = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
6630                 .len    = 8,
6631         }, { /* Vary the keylength... */
6632                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6633                           "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
6634                 .klen   = 16,
6635                 .ptext  = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6636                 .ctext  = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
6637                 .len    = 8,
6638         }, {
6639                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6640                           "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6641                           "\x00\x11\x22\x33\x44",
6642                 .klen   = 21,
6643                 .ptext  = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6644                 .ctext  = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
6645                 .len    = 8,
6646         }, { /* Generated with bf488 */
6647                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6648                           "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6649                           "\x00\x11\x22\x33\x44\x55\x66\x77"
6650                           "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
6651                           "\x58\x40\x23\x64\x1a\xba\x61\x76"
6652                           "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
6653                           "\xff\xff\xff\xff\xff\xff\xff\xff",
6654                 .klen   = 56,
6655                 .ptext  = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6656                 .ctext  = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
6657                 .len    = 8,
6658         }, { /* Generated with Crypto++ */
6659                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6660                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6661                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6662                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6663                 .klen   = 32,
6664                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6665                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6666                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6667                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6668                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6669                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6670                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6671                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6672                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6673                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6674                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6675                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6676                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6677                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6678                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6679                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6680                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6681                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6682                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6683                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6684                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6685                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6686                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6687                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6688                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6689                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6690                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6691                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6692                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6693                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6694                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6695                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6696                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6697                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6698                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6699                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6700                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6701                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6702                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6703                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6704                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6705                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6706                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6707                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6708                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6709                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6710                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6711                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6712                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6713                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6714                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6715                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6716                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6717                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6718                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6719                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6720                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6721                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6722                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6723                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6724                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6725                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6726                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
6727                 .ctext  = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
6728                           "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
6729                           "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
6730                           "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
6731                           "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
6732                           "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
6733                           "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
6734                           "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
6735                           "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
6736                           "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
6737                           "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
6738                           "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
6739                           "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
6740                           "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
6741                           "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
6742                           "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
6743                           "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
6744                           "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
6745                           "\x47\x82\x98\x23\x33\x36\xBC\x1B"
6746                           "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
6747                           "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
6748                           "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
6749                           "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
6750                           "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
6751                           "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
6752                           "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
6753                           "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
6754                           "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
6755                           "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
6756                           "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
6757                           "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
6758                           "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
6759                           "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
6760                           "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
6761                           "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
6762                           "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
6763                           "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
6764                           "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
6765                           "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
6766                           "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
6767                           "\x3E\x42\x14\x49\x88\x51\xBF\x68"
6768                           "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
6769                           "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
6770                           "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
6771                           "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
6772                           "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
6773                           "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
6774                           "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
6775                           "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
6776                           "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
6777                           "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
6778                           "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
6779                           "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
6780                           "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
6781                           "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
6782                           "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
6783                           "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
6784                           "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
6785                           "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
6786                           "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
6787                           "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
6788                           "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
6789                           "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
6790                 .len    = 504,
6791                 .also_non_np = 1,
6792                 .np     = 3,
6793                 .tap    = { 504 - 10, 2, 8 },
6794         },
6795 };
6796
6797 static const struct cipher_testvec bf_cbc_tv_template[] = {
6798         { /* From OpenSSL */
6799                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
6800                           "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
6801                 .klen   = 16,
6802                 .iv     = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6803                 .ptext  = "\x37\x36\x35\x34\x33\x32\x31\x20"
6804                           "\x4e\x6f\x77\x20\x69\x73\x20\x74"
6805                           "\x68\x65\x20\x74\x69\x6d\x65\x20"
6806                           "\x66\x6f\x72\x20\x00\x00\x00\x00",
6807                 .ctext  = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
6808                           "\x05\xb1\x56\xe2\x74\x03\x97\x93"
6809                           "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
6810                           "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
6811                 .len    = 32,
6812         }, { /* Generated with Crypto++ */
6813                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6814                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6815                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6816                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6817                 .klen   = 32,
6818                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
6819                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6820                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6821                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6822                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6823                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6824                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6825                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6826                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6827                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6828                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6829                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6830                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6831                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6832                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6833                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6834                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6835                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6836                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6837                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6838                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6839                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6840                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6841                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6842                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6843                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6844                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6845                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6846                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6847                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6848                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6849                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6850                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6851                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6852                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6853                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6854                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6855                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6856                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6857                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6858                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6859                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6860                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6861                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6862                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6863                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6864                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6865                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6866                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6867                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6868                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6869                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6870                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6871                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6872                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6873                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6874                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6875                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6876                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6877                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6878                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6879                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6880                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6881                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
6882                 .ctext  = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
6883                           "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
6884                           "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
6885                           "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
6886                           "\x01\x9C\x93\x63\x51\x60\x82\xD2"
6887                           "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
6888                           "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
6889                           "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
6890                           "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
6891                           "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
6892                           "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
6893                           "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
6894                           "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
6895                           "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
6896                           "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
6897                           "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
6898                           "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
6899                           "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
6900                           "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
6901                           "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
6902                           "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
6903                           "\x65\xFE\x15\x40\xD0\x62\x41\x02"
6904                           "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
6905                           "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
6906                           "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
6907                           "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
6908                           "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
6909                           "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
6910                           "\x04\xF0\x86\x08\x78\x18\x42\xE0"
6911                           "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
6912                           "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
6913                           "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
6914                           "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
6915                           "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
6916                           "\x97\x18\x92\xFF\x15\x11\xCE\xED"
6917                           "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
6918                           "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
6919                           "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
6920                           "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
6921                           "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
6922                           "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
6923                           "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
6924                           "\x43\x12\x73\x77\xDB\x91\x83\x5B"
6925                           "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
6926                           "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
6927                           "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
6928                           "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
6929                           "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
6930                           "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
6931                           "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
6932                           "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
6933                           "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
6934                           "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
6935                           "\xC5\xF8\x69\x83\x28\x84\x87\x56"
6936                           "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
6937                           "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
6938                           "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
6939                           "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
6940                           "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
6941                           "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
6942                           "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
6943                           "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
6944                           "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
6945                 .len    = 504,
6946                 .also_non_np = 1,
6947                 .np     = 3,
6948                 .tap    = { 504 - 10, 2, 8 },
6949         },
6950 };
6951
6952 static const struct cipher_testvec bf_ctr_tv_template[] = {
6953         { /* Generated with Crypto++ */
6954                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6955                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6956                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6957                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6958                 .klen   = 32,
6959                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
6960                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6961                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6962                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6963                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6964                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6965                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6966                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6967                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6968                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6969                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6970                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6971                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6972                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6973                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6974                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6975                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6976                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6977                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6978                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6979                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6980                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6981                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6982                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6983                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6984                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6985                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6986                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6987                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6988                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6989                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6990                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6991                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6992                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6993                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6994                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6995                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6996                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6997                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6998                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6999                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7000                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7001                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7002                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7003                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7004                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7005                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7006                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7007                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7008                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7009                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7010                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7011                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7012                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7013                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7014                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7015                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7016                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7017                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7018                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7019                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7020                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7021                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7022                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7023                 .ctext  = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7024                           "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7025                           "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7026                           "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
7027                           "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
7028                           "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7029                           "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7030                           "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7031                           "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7032                           "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7033                           "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7034                           "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7035                           "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7036                           "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7037                           "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7038                           "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7039                           "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7040                           "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7041                           "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7042                           "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7043                           "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7044                           "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7045                           "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7046                           "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7047                           "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7048                           "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7049                           "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7050                           "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7051                           "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7052                           "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7053                           "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7054                           "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7055                           "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7056                           "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7057                           "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7058                           "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7059                           "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7060                           "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7061                           "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7062                           "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7063                           "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7064                           "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7065                           "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7066                           "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7067                           "\x82\x63\x11\xB3\x54\x49\x00\x08"
7068                           "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7069                           "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7070                           "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7071                           "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7072                           "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7073                           "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7074                           "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7075                           "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7076                           "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7077                           "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7078                           "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7079                           "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7080                           "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7081                           "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7082                           "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7083                           "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7084                           "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7085                           "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
7086                 .len    = 504,
7087         }, { /* Generated with Crypto++ */
7088                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7089                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7090                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7091                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7092                 .klen   = 32,
7093                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7094                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7095                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7096                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7097                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7098                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7099                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7100                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7101                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7102                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7103                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7104                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7105                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7106                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7107                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7108                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7109                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7110                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7111                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7112                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7113                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7114                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7115                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7116                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7117                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7118                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7119                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7120                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7121                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7122                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7123                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7124                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7125                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7126                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7127                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7128                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7129                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7130                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7131                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7132                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7133                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7134                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7135                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7136                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7137                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7138                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7139                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7140                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7141                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7142                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7143                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7144                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7145                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7146                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7147                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7148                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7149                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7150                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7151                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7152                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7153                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7154                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7155                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7156                           "\x2B\xC2\x59\xF0\x64\xFB\x92",
7157                 .ctext  = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7158                           "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7159                           "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7160                           "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
7161                           "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
7162                           "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7163                           "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7164                           "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7165                           "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7166                           "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7167                           "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7168                           "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7169                           "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7170                           "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7171                           "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7172                           "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7173                           "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7174                           "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7175                           "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7176                           "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7177                           "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7178                           "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7179                           "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7180                           "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7181                           "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7182                           "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7183                           "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7184                           "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7185                           "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7186                           "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7187                           "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7188                           "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7189                           "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7190                           "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7191                           "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7192                           "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7193                           "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7194                           "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7195                           "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7196                           "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7197                           "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7198                           "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7199                           "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7200                           "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7201                           "\x82\x63\x11\xB3\x54\x49\x00\x08"
7202                           "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7203                           "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7204                           "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7205                           "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7206                           "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7207                           "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7208                           "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7209                           "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7210                           "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7211                           "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7212                           "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7213                           "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7214                           "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7215                           "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7216                           "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7217                           "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7218                           "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7219                           "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
7220                 .len    = 503,
7221                 .also_non_np = 1,
7222                 .np     = 2,
7223                 .tap    = { 503 - 8, 8 },
7224         }, { /* Generated with Crypto++ */
7225                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7226                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7227                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7228                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7229                 .klen   = 32,
7230                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
7231                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7232                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7233                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7234                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7235                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7236                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7237                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7238                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7239                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7240                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7241                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7242                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7243                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7244                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7245                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7246                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7247                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7248                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7249                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7250                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7251                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7252                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7253                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7254                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7255                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7256                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7257                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7258                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7259                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7260                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7261                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7262                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7263                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7264                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7265                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7266                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7267                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7268                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7269                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7270                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7271                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7272                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7273                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7274                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7275                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7276                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7277                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7278                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7279                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7280                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7281                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7282                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7283                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7284                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7285                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7286                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7287                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7288                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7289                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7290                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7291                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7292                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7293                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7294                 .ctext  = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
7295                           "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
7296                           "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
7297                           "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
7298                           "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
7299                           "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
7300                           "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
7301                           "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
7302                           "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
7303                           "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
7304                           "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
7305                           "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
7306                           "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
7307                           "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
7308                           "\x0B\x82\x59\x14\x26\x67\x08\x09"
7309                           "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
7310                           "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
7311                           "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
7312                           "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
7313                           "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
7314                           "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
7315                           "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
7316                           "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
7317                           "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
7318                           "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
7319                           "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
7320                           "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
7321                           "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
7322                           "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
7323                           "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
7324                           "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
7325                           "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
7326                           "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
7327                           "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
7328                           "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
7329                           "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
7330                           "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
7331                           "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
7332                           "\xB4\x19\xD8\x19\x45\x66\x27\x02"
7333                           "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
7334                           "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
7335                           "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
7336                           "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
7337                           "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
7338                           "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
7339                           "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
7340                           "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
7341                           "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
7342                           "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
7343                           "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
7344                           "\x91\x51\x4E\x71\xF2\x98\x85\x16"
7345                           "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
7346                           "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
7347                           "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
7348                           "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
7349                           "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
7350                           "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
7351                           "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
7352                           "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
7353                           "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
7354                           "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
7355                           "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
7356                           "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
7357                 .len    = 504,
7358         },
7359 };
7360
7361 /*
7362  * Twofish test vectors.
7363  */
7364 static const struct cipher_testvec tf_tv_template[] = {
7365         {
7366                 .key    = zeroed_string,
7367                 .klen   = 16,
7368                 .ptext  = zeroed_string,
7369                 .ctext  = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
7370                           "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
7371                 .len    = 16,
7372         }, {
7373                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
7374                           "\xfe\xdc\xba\x98\x76\x54\x32\x10"
7375                           "\x00\x11\x22\x33\x44\x55\x66\x77",
7376                 .klen   = 24,
7377                 .ptext  = zeroed_string,
7378                 .ctext  = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
7379                           "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
7380                 .len    = 16,
7381         }, {
7382                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
7383                           "\xfe\xdc\xba\x98\x76\x54\x32\x10"
7384                           "\x00\x11\x22\x33\x44\x55\x66\x77"
7385                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
7386                 .klen   = 32,
7387                 .ptext  = zeroed_string,
7388                 .ctext  = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
7389                           "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
7390                 .len    = 16,
7391         }, { /* Generated with Crypto++ */
7392                 .key    = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
7393                           "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
7394                           "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
7395                           "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
7396                 .klen   = 32,
7397                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7398                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7399                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7400                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7401                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7402                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7403                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7404                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7405                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7406                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7407                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7408                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7409                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7410                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7411                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7412                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7413                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7414                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7415                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7416                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7417                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7418                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7419                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7420                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7421                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7422                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7423                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7424                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7425                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7426                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7427                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7428                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7429                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7430                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7431                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7432                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7433                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7434                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7435                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7436                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7437                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7438                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7439                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7440                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7441                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7442                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7443                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7444                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7445                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7446                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7447                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7448                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7449                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7450                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7451                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7452                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7453                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7454                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7455                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7456                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7457                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7458                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7459                 .ctext  = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
7460                           "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
7461                           "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
7462                           "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
7463                           "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
7464                           "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
7465                           "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
7466                           "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
7467                           "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
7468                           "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
7469                           "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
7470                           "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
7471                           "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
7472                           "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
7473                           "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
7474                           "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
7475                           "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
7476                           "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
7477                           "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
7478                           "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
7479                           "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
7480                           "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
7481                           "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
7482                           "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
7483                           "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
7484                           "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
7485                           "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
7486                           "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
7487                           "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
7488                           "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
7489                           "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
7490                           "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
7491                           "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
7492                           "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
7493                           "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
7494                           "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
7495                           "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
7496                           "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
7497                           "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
7498                           "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
7499                           "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
7500                           "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
7501                           "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
7502                           "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
7503                           "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
7504                           "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
7505                           "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
7506                           "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
7507                           "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
7508                           "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
7509                           "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
7510                           "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
7511                           "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
7512                           "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
7513                           "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
7514                           "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
7515                           "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
7516                           "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
7517                           "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
7518                           "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
7519                           "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
7520                           "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
7521                 .len    = 496,
7522                 .also_non_np = 1,
7523                 .np     = 3,
7524                 .tap    = { 496 - 20, 4, 16 },
7525         },
7526 };
7527
7528 static const struct cipher_testvec tf_cbc_tv_template[] = {
7529         { /* Generated with Nettle */
7530                 .key    = zeroed_string,
7531                 .klen   = 16,
7532                 .iv     = zeroed_string,
7533                 .ptext  = zeroed_string,
7534                 .ctext  = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
7535                           "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
7536                 .len    = 16,
7537         }, {
7538                 .key    = zeroed_string,
7539                 .klen   = 16,
7540                 .iv     = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
7541                           "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
7542                 .ptext  = zeroed_string,
7543                 .ctext  = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
7544                           "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
7545                 .len    = 16,
7546         }, {
7547                 .key    = zeroed_string,
7548                 .klen   = 16,
7549                 .iv     = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
7550                           "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
7551                 .ptext  = zeroed_string,
7552                 .ctext  = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
7553                           "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
7554                 .len    = 16,
7555         }, {
7556                 .key    = zeroed_string,
7557                 .klen   = 16,
7558                 .iv     = zeroed_string,
7559                 .ptext  = zeroed_string,
7560                 .ctext  = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
7561                           "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
7562                           "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
7563                           "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
7564                           "\x05\xef\x8c\x61\xa8\x11\x58\x26"
7565                           "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
7566                 .len    = 48,
7567         }, { /* Generated with Crypto++ */
7568                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7569                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7570                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7571                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7572                 .klen   = 32,
7573                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7574                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7575                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7576                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7577                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7578                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7579                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7580                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7581                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7582                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7583                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7584                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7585                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7586                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7587                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7588                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7589                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7590                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7591                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7592                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7593                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7594                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7595                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7596                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7597                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7598                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7599                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7600                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7601                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7602                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7603                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7604                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7605                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7606                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7607                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7608                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7609                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7610                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7611                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7612                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7613                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7614                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7615                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7616                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7617                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7618                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7619                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7620                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7621                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7622                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7623                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7624                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7625                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7626                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7627                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7628                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7629                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7630                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7631                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7632                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7633                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7634                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7635                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7636                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7637                 .ctext  = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
7638                           "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
7639                           "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
7640                           "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
7641                           "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
7642                           "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
7643                           "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
7644                           "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
7645                           "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
7646                           "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
7647                           "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
7648                           "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
7649                           "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
7650                           "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
7651                           "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
7652                           "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
7653                           "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
7654                           "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
7655                           "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
7656                           "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
7657                           "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
7658                           "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
7659                           "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
7660                           "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
7661                           "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
7662                           "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
7663                           "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
7664                           "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
7665                           "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
7666                           "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
7667                           "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
7668                           "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
7669                           "\x75\x42\x62\x04\x31\x1F\x95\x7C"
7670                           "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
7671                           "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
7672                           "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
7673                           "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
7674                           "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
7675                           "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
7676                           "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
7677                           "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
7678                           "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
7679                           "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
7680                           "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
7681                           "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
7682                           "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
7683                           "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
7684                           "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
7685                           "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
7686                           "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
7687                           "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
7688                           "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
7689                           "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
7690                           "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
7691                           "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
7692                           "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
7693                           "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
7694                           "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
7695                           "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
7696                           "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
7697                           "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
7698                           "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
7699                 .len    = 496,
7700                 .also_non_np = 1,
7701                 .np     = 3,
7702                 .tap    = { 496 - 20, 4, 16 },
7703         },
7704 };
7705
7706 static const struct cipher_testvec tf_ctr_tv_template[] = {
7707         { /* Generated with Crypto++ */
7708                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7709                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7710                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7711                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7712                 .klen   = 32,
7713                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7714                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7715                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7716                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7717                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7718                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7719                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7720                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7721                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7722                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7723                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7724                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7725                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7726                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7727                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7728                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7729                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7730                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7731                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7732                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7733                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7734                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7735                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7736                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7737                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7738                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7739                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7740                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7741                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7742                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7743                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7744                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7745                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7746                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7747                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7748                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7749                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7750                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7751                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7752                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7753                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7754                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7755                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7756                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7757                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7758                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7759                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7760                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7761                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7762                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7763                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7764                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7765                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7766                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7767                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7768                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7769                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7770                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7771                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7772                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7773                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7774                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7775                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7776                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7777                 .ctext  = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
7778                           "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
7779                           "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
7780                           "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
7781                           "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
7782                           "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
7783                           "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
7784                           "\x01\x41\x21\x12\x38\xAB\x52\x4F"
7785                           "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
7786                           "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
7787                           "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
7788                           "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
7789                           "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
7790                           "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
7791                           "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
7792                           "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
7793                           "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
7794                           "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
7795                           "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
7796                           "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
7797                           "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
7798                           "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
7799                           "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
7800                           "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
7801                           "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
7802                           "\x23\x61\x48\xEA\x80\x04\x27\xAA"
7803                           "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
7804                           "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
7805                           "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
7806                           "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
7807                           "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
7808                           "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
7809                           "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
7810                           "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
7811                           "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
7812                           "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
7813                           "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
7814                           "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
7815                           "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
7816                           "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
7817                           "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
7818                           "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
7819                           "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
7820                           "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
7821                           "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
7822                           "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
7823                           "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
7824                           "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
7825                           "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
7826                           "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
7827                           "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
7828                           "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
7829                           "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
7830                           "\x11\xE9\x43\x83\x76\xAA\x53\x37"
7831                           "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
7832                           "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
7833                           "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
7834                           "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
7835                           "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
7836                           "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
7837                           "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
7838                           "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
7839                 .len    = 496,
7840         }, { /* Generated with Crypto++ */
7841                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7842                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7843                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7844                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7845                 .klen   = 32,
7846                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
7847                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
7848                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7849                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7850                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7851                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7852                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7853                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7854                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7855                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7856                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7857                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7858                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7859                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7860                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7861                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7862                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7863                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7864                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7865                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7866                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7867                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7868                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7869                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7870                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7871                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7872                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7873                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7874                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7875                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7876                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7877                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7878                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7879                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7880                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7881                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7882                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7883                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7884                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7885                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7886                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7887                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7888                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7889                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7890                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7891                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7892                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7893                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7894                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7895                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7896                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7897                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7898                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7899                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7900                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7901                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7902                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7903                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7904                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7905                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7906                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7907                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7908                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7909                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
7910                 .ctext  = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
7911                           "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
7912                           "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
7913                           "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
7914                           "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
7915                           "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
7916                           "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
7917                           "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
7918                           "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
7919                           "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
7920                           "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
7921                           "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
7922                           "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
7923                           "\x39\x18\x09\xA4\x82\x59\x78\xE7"
7924                           "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
7925                           "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
7926                           "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
7927                           "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
7928                           "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
7929                           "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
7930                           "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
7931                           "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
7932                           "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
7933                           "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
7934                           "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
7935                           "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
7936                           "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
7937                           "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
7938                           "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
7939                           "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
7940                           "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
7941                           "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
7942                           "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
7943                           "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
7944                           "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
7945                           "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
7946                           "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
7947                           "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
7948                           "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
7949                           "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
7950                           "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
7951                           "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
7952                           "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
7953                           "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
7954                           "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
7955                           "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
7956                           "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
7957                           "\xDE\x55\x1B\x50\x14\x53\x44\x17"
7958                           "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
7959                           "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
7960                           "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
7961                           "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
7962                           "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
7963                           "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
7964                           "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
7965                           "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
7966                           "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
7967                           "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
7968                           "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
7969                           "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
7970                           "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
7971                           "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
7972                 .len    = 496,
7973         }, { /* Generated with Crypto++ */
7974                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7975                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7976                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7977                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7978                 .klen   = 32,
7979                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7980                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
7981                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7982                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7983                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7984                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7985                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7986                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7987                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7988                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7989                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7990                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7991                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7992                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7993                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7994                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7995                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7996                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7997                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7998                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7999                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8000                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8001                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8002                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8003                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8004                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8005                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8006                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8007                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8008                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8009                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8010                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8011                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8012                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8013                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8014                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8015                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8016                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8017                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8018                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8019                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8020                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8021                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8022                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8023                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8024                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8025                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8026                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8027                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8028                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8029                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8030                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8031                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8032                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8033                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8034                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8035                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8036                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8037                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8038                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8039                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8040                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8041                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8042                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8043                           "\x2B\xC2\x59",
8044                 .ctext  = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
8045                           "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
8046                           "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
8047                           "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
8048                           "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
8049                           "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
8050                           "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
8051                           "\x01\x41\x21\x12\x38\xAB\x52\x4F"
8052                           "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
8053                           "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
8054                           "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
8055                           "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
8056                           "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
8057                           "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
8058                           "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
8059                           "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
8060                           "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
8061                           "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
8062                           "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
8063                           "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
8064                           "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
8065                           "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
8066                           "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
8067                           "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
8068                           "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
8069                           "\x23\x61\x48\xEA\x80\x04\x27\xAA"
8070                           "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
8071                           "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
8072                           "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
8073                           "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
8074                           "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
8075                           "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
8076                           "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
8077                           "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
8078                           "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
8079                           "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
8080                           "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
8081                           "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
8082                           "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
8083                           "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
8084                           "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
8085                           "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
8086                           "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
8087                           "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
8088                           "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
8089                           "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
8090                           "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
8091                           "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
8092                           "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
8093                           "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
8094                           "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
8095                           "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
8096                           "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
8097                           "\x11\xE9\x43\x83\x76\xAA\x53\x37"
8098                           "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
8099                           "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
8100                           "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
8101                           "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
8102                           "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
8103                           "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
8104                           "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
8105                           "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
8106                           "\x6C\x82\x9D",
8107                 .len    = 499,
8108                 .also_non_np = 1,
8109                 .np     = 2,
8110                 .tap    = { 499 - 16, 16 },
8111         },
8112 };
8113
8114 static const struct cipher_testvec tf_lrw_tv_template[] = {
8115         /* Generated from AES-LRW test vectors */
8116         {
8117                 .key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
8118                           "\x4c\x26\x84\x14\xb5\x68\x01\x85"
8119                           "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
8120                           "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
8121                 .klen   = 32,
8122                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8123                           "\x00\x00\x00\x00\x00\x00\x00\x01",
8124                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8125                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8126                 .ctext  = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
8127                           "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
8128                 .len    = 16,
8129         }, {
8130                 .key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
8131                           "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
8132                           "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
8133                           "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
8134                 .klen   = 32,
8135                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8136                           "\x00\x00\x00\x00\x00\x00\x00\x02",
8137                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8138                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8139                 .ctext  = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
8140                           "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
8141                 .len    = 16,
8142         }, {
8143                 .key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
8144                           "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
8145                           "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
8146                           "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
8147                 .klen   = 32,
8148                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8149                           "\x00\x00\x00\x02\x00\x00\x00\x00",
8150                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8151                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8152                 .ctext  = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
8153                           "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
8154                 .len    = 16,
8155         }, {
8156                 .key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
8157                           "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
8158                           "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
8159                           "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
8160                           "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
8161                 .klen   = 40,
8162                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8163                           "\x00\x00\x00\x00\x00\x00\x00\x01",
8164                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8165                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8166                 .ctext  = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
8167                           "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
8168                 .len    = 16,
8169         }, {
8170                 .key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
8171                           "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
8172                           "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
8173                           "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
8174                           "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
8175                 .klen   = 40,
8176                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8177                           "\x00\x00\x00\x02\x00\x00\x00\x00",
8178                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8179                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8180                 .ctext  = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
8181                           "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
8182                 .len    = 16,
8183         }, {
8184                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
8185                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
8186                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
8187                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
8188                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
8189                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
8190                 .klen   = 48,
8191                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8192                           "\x00\x00\x00\x00\x00\x00\x00\x01",
8193                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8194                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8195                 .ctext  = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
8196                           "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
8197                 .len    = 16,
8198         }, {
8199                 .key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
8200                           "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
8201                           "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
8202                           "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
8203                           "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
8204                           "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
8205                 .klen   = 48,
8206                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8207                           "\x00\x00\x00\x02\x00\x00\x00\x00",
8208                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
8209                           "\x38\x39\x41\x42\x43\x44\x45\x46",
8210                 .ctext  = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
8211                           "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
8212                 .len    = 16,
8213         }, {
8214                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
8215                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
8216                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
8217                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
8218                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
8219                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
8220                 .klen   = 48,
8221                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8222                           "\x00\x00\x00\x00\x00\x00\x00\x01",
8223                 .ptext  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
8224                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
8225                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
8226                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
8227                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
8228                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
8229                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
8230                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
8231                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
8232                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
8233                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
8234                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
8235                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
8236                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
8237                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
8238                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
8239                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
8240                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
8241                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
8242                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
8243                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
8244                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
8245                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
8246                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
8247                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
8248                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
8249                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
8250                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
8251                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
8252                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
8253                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
8254                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
8255                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
8256                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
8257                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
8258                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
8259                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
8260                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
8261                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
8262                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
8263                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
8264                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
8265                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
8266                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
8267                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
8268                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
8269                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
8270                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
8271                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
8272                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
8273                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
8274                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
8275                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
8276                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
8277                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
8278                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
8279                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
8280                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
8281                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
8282                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
8283                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
8284                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
8285                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
8286                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
8287                 .ctext  = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
8288                           "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
8289                           "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
8290                           "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
8291                           "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
8292                           "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
8293                           "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
8294                           "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
8295                           "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
8296                           "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
8297                           "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
8298                           "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
8299                           "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
8300                           "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
8301                           "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
8302                           "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
8303                           "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
8304                           "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
8305                           "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
8306                           "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
8307                           "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
8308                           "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
8309                           "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
8310                           "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
8311                           "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
8312                           "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
8313                           "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
8314                           "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
8315                           "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
8316                           "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
8317                           "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
8318                           "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
8319                           "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
8320                           "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
8321                           "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
8322                           "\x3e\xae\x71\x90\x07\x70\x1c\x38"
8323                           "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
8324                           "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
8325                           "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
8326                           "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
8327                           "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
8328                           "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
8329                           "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
8330                           "\x93\x51\x1d\x3d\x62\x59\x83\x82"
8331                           "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
8332                           "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
8333                           "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
8334                           "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
8335                           "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
8336                           "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
8337                           "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
8338                           "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
8339                           "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
8340                           "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
8341                           "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
8342                           "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
8343                           "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
8344                           "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
8345                           "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
8346                           "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
8347                           "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
8348                           "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
8349                           "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
8350                           "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
8351                 .len    = 512,
8352                 .also_non_np = 1,
8353                 .np     = 3,
8354                 .tap    = { 512 - 20, 4, 16 },
8355         },
8356 };
8357
8358 static const struct cipher_testvec tf_xts_tv_template[] = {
8359         /* Generated from AES-XTS test vectors */
8360 {
8361                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
8362                           "\x00\x00\x00\x00\x00\x00\x00\x00"
8363                           "\x00\x00\x00\x00\x00\x00\x00\x00"
8364                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8365                 .klen   = 32,
8366                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8367                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8368                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
8369                           "\x00\x00\x00\x00\x00\x00\x00\x00"
8370                           "\x00\x00\x00\x00\x00\x00\x00\x00"
8371                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8372                 .ctext  = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
8373                           "\x30\x74\xe4\x44\x52\x77\x97\x43"
8374                           "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
8375                           "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
8376                 .len    = 32,
8377         }, {
8378                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
8379                           "\x11\x11\x11\x11\x11\x11\x11\x11"
8380                           "\x22\x22\x22\x22\x22\x22\x22\x22"
8381                           "\x22\x22\x22\x22\x22\x22\x22\x22",
8382                 .klen   = 32,
8383                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
8384                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8385                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
8386                           "\x44\x44\x44\x44\x44\x44\x44\x44"
8387                           "\x44\x44\x44\x44\x44\x44\x44\x44"
8388                           "\x44\x44\x44\x44\x44\x44\x44\x44",
8389                 .ctext  = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
8390                           "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
8391                           "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
8392                           "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
8393                 .len    = 32,
8394         }, {
8395                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
8396                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
8397                           "\x22\x22\x22\x22\x22\x22\x22\x22"
8398                           "\x22\x22\x22\x22\x22\x22\x22\x22",
8399                 .klen   = 32,
8400                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
8401                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8402                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
8403                           "\x44\x44\x44\x44\x44\x44\x44\x44"
8404                           "\x44\x44\x44\x44\x44\x44\x44\x44"
8405                           "\x44\x44\x44\x44\x44\x44\x44\x44",
8406                 .ctext  = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
8407                           "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
8408                           "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
8409                           "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
8410                 .len    = 32,
8411         }, {
8412                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
8413                           "\x23\x53\x60\x28\x74\x71\x35\x26"
8414                           "\x31\x41\x59\x26\x53\x58\x97\x93"
8415                           "\x23\x84\x62\x64\x33\x83\x27\x95",
8416                 .klen   = 32,
8417                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
8418                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8419                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8420                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8421                           "\x10\x11\x12\x13\x14\x15\x16\x17"
8422                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8423                           "\x20\x21\x22\x23\x24\x25\x26\x27"
8424                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8425                           "\x30\x31\x32\x33\x34\x35\x36\x37"
8426                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8427                           "\x40\x41\x42\x43\x44\x45\x46\x47"
8428                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8429                           "\x50\x51\x52\x53\x54\x55\x56\x57"
8430                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8431                           "\x60\x61\x62\x63\x64\x65\x66\x67"
8432                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8433                           "\x70\x71\x72\x73\x74\x75\x76\x77"
8434                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8435                           "\x80\x81\x82\x83\x84\x85\x86\x87"
8436                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8437                           "\x90\x91\x92\x93\x94\x95\x96\x97"
8438                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8439                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8440                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8441                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8442                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8443                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8444                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8445                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8446                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8447                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8448                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8449                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8450                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
8451                           "\x00\x01\x02\x03\x04\x05\x06\x07"
8452                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8453                           "\x10\x11\x12\x13\x14\x15\x16\x17"
8454                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8455                           "\x20\x21\x22\x23\x24\x25\x26\x27"
8456                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8457                           "\x30\x31\x32\x33\x34\x35\x36\x37"
8458                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8459                           "\x40\x41\x42\x43\x44\x45\x46\x47"
8460                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8461                           "\x50\x51\x52\x53\x54\x55\x56\x57"
8462                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8463                           "\x60\x61\x62\x63\x64\x65\x66\x67"
8464                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8465                           "\x70\x71\x72\x73\x74\x75\x76\x77"
8466                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8467                           "\x80\x81\x82\x83\x84\x85\x86\x87"
8468                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8469                           "\x90\x91\x92\x93\x94\x95\x96\x97"
8470                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8471                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8472                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8473                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8474                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8475                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8476                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8477                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8478                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8479                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8480                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8481                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8482                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
8483                 .ctext  = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
8484                           "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
8485                           "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
8486                           "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
8487                           "\xea\x35\x35\x8c\xb2\x46\x61\x06"
8488                           "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
8489                           "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
8490                           "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
8491                           "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
8492                           "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
8493                           "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
8494                           "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
8495                           "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
8496                           "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
8497                           "\x01\x73\x68\x32\x25\x19\xfa\xfb"
8498                           "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
8499                           "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
8500                           "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
8501                           "\x39\x80\x39\x09\x97\x65\xf2\x83"
8502                           "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
8503                           "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
8504                           "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
8505                           "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
8506                           "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
8507                           "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
8508                           "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
8509                           "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
8510                           "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
8511                           "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
8512                           "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
8513                           "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
8514                           "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
8515                           "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
8516                           "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
8517                           "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
8518                           "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
8519                           "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
8520                           "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
8521                           "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
8522                           "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
8523                           "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
8524                           "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
8525                           "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
8526                           "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
8527                           "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
8528                           "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
8529                           "\x04\x39\x73\x32\xb2\x86\x79\xe7"
8530                           "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
8531                           "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
8532                           "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
8533                           "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
8534                           "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
8535                           "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
8536                           "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
8537                           "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
8538                           "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
8539                           "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
8540                           "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
8541                           "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
8542                           "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
8543                           "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
8544                           "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
8545                           "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
8546                           "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
8547                 .len    = 512,
8548         }, {
8549                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
8550                           "\x23\x53\x60\x28\x74\x71\x35\x26"
8551                           "\x62\x49\x77\x57\x24\x70\x93\x69"
8552                           "\x99\x59\x57\x49\x66\x96\x76\x27"
8553                           "\x31\x41\x59\x26\x53\x58\x97\x93"
8554                           "\x23\x84\x62\x64\x33\x83\x27\x95"
8555                           "\x02\x88\x41\x97\x16\x93\x99\x37"
8556                           "\x51\x05\x82\x09\x74\x94\x45\x92",
8557                 .klen   = 64,
8558                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
8559                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8560                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8561                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8562                           "\x10\x11\x12\x13\x14\x15\x16\x17"
8563                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8564                           "\x20\x21\x22\x23\x24\x25\x26\x27"
8565                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8566                           "\x30\x31\x32\x33\x34\x35\x36\x37"
8567                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8568                           "\x40\x41\x42\x43\x44\x45\x46\x47"
8569                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8570                           "\x50\x51\x52\x53\x54\x55\x56\x57"
8571                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8572                           "\x60\x61\x62\x63\x64\x65\x66\x67"
8573                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8574                           "\x70\x71\x72\x73\x74\x75\x76\x77"
8575                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8576                           "\x80\x81\x82\x83\x84\x85\x86\x87"
8577                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8578                           "\x90\x91\x92\x93\x94\x95\x96\x97"
8579                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8580                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8581                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8582                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8583                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8584                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8585                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8586                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8587                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8588                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8589                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8590                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8591                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
8592                           "\x00\x01\x02\x03\x04\x05\x06\x07"
8593                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8594                           "\x10\x11\x12\x13\x14\x15\x16\x17"
8595                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8596                           "\x20\x21\x22\x23\x24\x25\x26\x27"
8597                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8598                           "\x30\x31\x32\x33\x34\x35\x36\x37"
8599                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8600                           "\x40\x41\x42\x43\x44\x45\x46\x47"
8601                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8602                           "\x50\x51\x52\x53\x54\x55\x56\x57"
8603                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8604                           "\x60\x61\x62\x63\x64\x65\x66\x67"
8605                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8606                           "\x70\x71\x72\x73\x74\x75\x76\x77"
8607                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8608                           "\x80\x81\x82\x83\x84\x85\x86\x87"
8609                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8610                           "\x90\x91\x92\x93\x94\x95\x96\x97"
8611                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8612                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8613                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8614                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8615                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8616                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8617                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8618                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8619                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8620                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8621                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8622                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8623                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
8624                 .ctext  = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
8625                           "\x35\x39\x71\x88\x76\x1e\xc9\xea"
8626                           "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
8627                           "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
8628                           "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
8629                           "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
8630                           "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
8631                           "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
8632                           "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
8633                           "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
8634                           "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
8635                           "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
8636                           "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
8637                           "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
8638                           "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
8639                           "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
8640                           "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
8641                           "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
8642                           "\x69\x35\x61\x86\xf8\x86\xb9\x89"
8643                           "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
8644                           "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
8645                           "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
8646                           "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
8647                           "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
8648                           "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
8649                           "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
8650                           "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
8651                           "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
8652                           "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
8653                           "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
8654                           "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
8655                           "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
8656                           "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
8657                           "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
8658                           "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
8659                           "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
8660                           "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
8661                           "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
8662                           "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
8663                           "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
8664                           "\xad\x12\x32\x31\x03\xf7\x21\xbe"
8665                           "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
8666                           "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
8667                           "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
8668                           "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
8669                           "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
8670                           "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
8671                           "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
8672                           "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
8673                           "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
8674                           "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
8675                           "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
8676                           "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
8677                           "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
8678                           "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
8679                           "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
8680                           "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
8681                           "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
8682                           "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
8683                           "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
8684                           "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
8685                           "\xf3\xea\x67\x52\x78\xc2\xce\x70"
8686                           "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
8687                           "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
8688                 .len    = 512,
8689                 .also_non_np = 1,
8690                 .np     = 3,
8691                 .tap    = { 512 - 20, 4, 16 },
8692         },
8693 };
8694
8695 /*
8696  * Serpent test vectors.  These are backwards because Serpent writes
8697  * octet sequences in right-to-left mode.
8698  */
8699 static const struct cipher_testvec serpent_tv_template[] = {
8700         {
8701                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8702                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8703                 .ctext  = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
8704                           "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
8705                 .len    = 16,
8706         }, {
8707                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
8708                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8709                 .klen   = 16,
8710                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8711                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8712                 .ctext  = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
8713                           "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
8714                 .len    = 16,
8715         }, {
8716                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
8717                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8718                           "\x10\x11\x12\x13\x14\x15\x16\x17"
8719                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
8720                 .klen   = 32,
8721                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8722                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8723                 .ctext  = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
8724                           "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
8725                 .len    = 16,
8726         }, {
8727                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
8728                 .klen   = 16,
8729                 .ptext  = zeroed_string,
8730                 .ctext  = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
8731                           "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
8732                 .len    = 16,
8733         }, { /* Generated with Crypto++ */
8734                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8735                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8736                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8737                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8738                 .klen   = 32,
8739                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8740                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8741                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8742                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8743                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8744                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8745                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8746                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8747                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8748                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8749                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8750                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8751                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8752                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8753                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8754                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8755                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8756                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8757                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8758                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8759                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8760                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8761                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8762                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8763                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8764                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8765                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8766                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8767                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8768                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8769                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8770                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8771                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8772                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8773                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8774                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8775                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8776                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8777                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8778                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8779                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8780                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8781                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8782                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8783                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8784                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8785                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8786                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8787                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8788                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8789                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8790                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8791                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8792                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8793                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8794                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8795                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8796                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8797                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8798                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8799                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8800                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8801                 .ctext  = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
8802                           "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
8803                           "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
8804                           "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
8805                           "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
8806                           "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
8807                           "\x99\x34\x89\x5B\x54\xE9\x12\x13"
8808                           "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
8809                           "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
8810                           "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
8811                           "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
8812                           "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
8813                           "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
8814                           "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
8815                           "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
8816                           "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
8817                           "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
8818                           "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
8819                           "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
8820                           "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
8821                           "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
8822                           "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
8823                           "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
8824                           "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
8825                           "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
8826                           "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
8827                           "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
8828                           "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
8829                           "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
8830                           "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
8831                           "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
8832                           "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
8833                           "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
8834                           "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
8835                           "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
8836                           "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
8837                           "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
8838                           "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
8839                           "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
8840                           "\x87\x70\x14\xD0\x01\x57\xCB\x42"
8841                           "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
8842                           "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
8843                           "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
8844                           "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
8845                           "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
8846                           "\x71\x80\x05\x35\x3F\x40\x0B\x21"
8847                           "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
8848                           "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
8849                           "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
8850                           "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
8851                           "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
8852                           "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
8853                           "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
8854                           "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
8855                           "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
8856                           "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
8857                           "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
8858                           "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
8859                           "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
8860                           "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
8861                           "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
8862                           "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
8863                 .len    = 496,
8864                 .also_non_np = 1,
8865                 .np     = 3,
8866                 .tap    = { 496 - 20, 4, 16 },
8867         },
8868 };
8869
8870 static const struct cipher_testvec tnepres_tv_template[] = {
8871         { /* KeySize=0 */
8872                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8873                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8874                 .ctext  = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
8875                           "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
8876                 .len    = 16,
8877         },
8878         { /* KeySize=128, PT=0, I=1 */
8879                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
8880                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8881                 .key    = "\x80\x00\x00\x00\x00\x00\x00\x00"
8882                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8883                 .klen   = 16,
8884                 .ctext  = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
8885                           "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
8886                 .len    = 16,
8887         }, { /* KeySize=128 */
8888                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
8889                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8890                 .klen   = 16,
8891                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8892                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8893                 .ctext  = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
8894                           "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
8895                 .len    = 16,
8896         }, { /* KeySize=128, I=121 */
8897                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
8898                 .klen   = 16,
8899                 .ptext  = zeroed_string,
8900                 .ctext  = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
8901                           "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
8902                 .len    = 16,
8903         }, { /* KeySize=192, PT=0, I=1 */
8904                 .key    = "\x80\x00\x00\x00\x00\x00\x00\x00"
8905                           "\x00\x00\x00\x00\x00\x00\x00\x00"
8906                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8907                 .klen   = 24,
8908                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
8909                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8910                 .ctext  = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
8911                           "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
8912                 .len    = 16,
8913         }, { /* KeySize=256, PT=0, I=1 */
8914                 .key    = "\x80\x00\x00\x00\x00\x00\x00\x00"
8915                           "\x00\x00\x00\x00\x00\x00\x00\x00"
8916                           "\x00\x00\x00\x00\x00\x00\x00\x00"
8917                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8918                 .klen   = 32,
8919                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
8920                           "\x00\x00\x00\x00\x00\x00\x00\x00",
8921                 .ctext  = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
8922                           "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
8923                 .len    = 16,
8924         }, { /* KeySize=256, I=257 */
8925                 .key    = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
8926                           "\x17\x16\x15\x14\x13\x12\x11\x10"
8927                           "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
8928                           "\x07\x06\x05\x04\x03\x02\x01\x00",
8929                 .klen   = 32,
8930                 .ptext  = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
8931                           "\x07\x06\x05\x04\x03\x02\x01\x00",
8932                 .ctext  = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
8933                           "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
8934                 .len    = 16,
8935         }, { /* KeySize=256 */
8936                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
8937                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8938                           "\x10\x11\x12\x13\x14\x15\x16\x17"
8939                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
8940                 .klen   = 32,
8941                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
8942                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8943                 .ctext  = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
8944                           "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
8945                 .len    = 16,
8946         }
8947 };
8948
8949 static const struct cipher_testvec serpent_cbc_tv_template[] = {
8950         { /* Generated with Crypto++ */
8951                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8952                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8953                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8954                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8955                 .klen   = 32,
8956                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
8957                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
8958                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8959                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8960                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8961                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8962                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8963                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8964                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8965                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8966                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8967                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8968                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8969                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8970                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8971                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8972                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8973                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8974                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8975                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8976                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8977                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8978                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8979                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8980                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8981                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8982                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8983                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8984                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8985                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8986                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8987                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8988                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8989                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8990                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8991                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8992                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8993                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8994                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8995                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8996                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8997                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8998                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8999                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9000                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9001                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9002                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9003                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9004                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9005                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9006                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9007                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9008                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9009                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9010                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9011                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9012                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9013                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9014                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9015                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9016                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9017                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9018                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9019                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9020                 .ctext  = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
9021                           "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
9022                           "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
9023                           "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
9024                           "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
9025                           "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
9026                           "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
9027                           "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
9028                           "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
9029                           "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
9030                           "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
9031                           "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
9032                           "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
9033                           "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
9034                           "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
9035                           "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
9036                           "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
9037                           "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
9038                           "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
9039                           "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
9040                           "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
9041                           "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
9042                           "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
9043                           "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
9044                           "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
9045                           "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
9046                           "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
9047                           "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
9048                           "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
9049                           "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
9050                           "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
9051                           "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
9052                           "\x81\x92\x66\x67\x15\x1E\x39\x98"
9053                           "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
9054                           "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
9055                           "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
9056                           "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
9057                           "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
9058                           "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
9059                           "\x04\x05\x46\xD3\x90\x0F\x64\x64"
9060                           "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
9061                           "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
9062                           "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
9063                           "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
9064                           "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
9065                           "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
9066                           "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
9067                           "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
9068                           "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
9069                           "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
9070                           "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
9071                           "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
9072                           "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
9073                           "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
9074                           "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
9075                           "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
9076                           "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
9077                           "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
9078                           "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
9079                           "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
9080                           "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
9081                           "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
9082                 .len    = 496,
9083                 .also_non_np = 1,
9084                 .np     = 3,
9085                 .tap    = { 496 - 20, 4, 16 },
9086         },
9087 };
9088
9089 static const struct cipher_testvec serpent_ctr_tv_template[] = {
9090         { /* Generated with Crypto++ */
9091                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9092                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9093                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9094                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9095                 .klen   = 32,
9096                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9097                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9098                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9099                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9100                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9101                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9102                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9103                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9104                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9105                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9106                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9107                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9108                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9109                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9110                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9111                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9112                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9113                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9114                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9115                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9116                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9117                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9118                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9119                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9120                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9121                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9122                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9123                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9124                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9125                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9126                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9127                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9128                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9129                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9130                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9131                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9132                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9133                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9134                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9135                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9136                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9137                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9138                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9139                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9140                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9141                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9142                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9143                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9144                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9145                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9146                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9147                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9148                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9149                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9150                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9151                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9152                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9153                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9154                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9155                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9156                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9157                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9158                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9159                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9160                 .ctext  = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
9161                           "\x37\x69\xE3\x3A\x22\x85\x48\x46"
9162                           "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
9163                           "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
9164                           "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
9165                           "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
9166                           "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
9167                           "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
9168                           "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
9169                           "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
9170                           "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
9171                           "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
9172                           "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
9173                           "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
9174                           "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
9175                           "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
9176                           "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
9177                           "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
9178                           "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
9179                           "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
9180                           "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
9181                           "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
9182                           "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
9183                           "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
9184                           "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
9185                           "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
9186                           "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
9187                           "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
9188                           "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
9189                           "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
9190                           "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
9191                           "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
9192                           "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
9193                           "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
9194                           "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
9195                           "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
9196                           "\x07\x97\x38\x4B\x5C\x56\x98\x67"
9197                           "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
9198                           "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
9199                           "\x18\x06\x15\x9D\x5A\x10\x13\x37"
9200                           "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
9201                           "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
9202                           "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
9203                           "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
9204                           "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
9205                           "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
9206                           "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
9207                           "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
9208                           "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
9209                           "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
9210                           "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
9211                           "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
9212                           "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
9213                           "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
9214                           "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
9215                           "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
9216                           "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
9217                           "\x90\x47\x40\x92\xE6\x69\xD1\x96"
9218                           "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
9219                           "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
9220                           "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
9221                           "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
9222                 .len    = 496,
9223         }, { /* Generated with Crypto++ */
9224                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9225                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9226                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9227                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9228                 .klen   = 32,
9229                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9230                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9231                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9232                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9233                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9234                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9235                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9236                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9237                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9238                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9239                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9240                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9241                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9242                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9243                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9244                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9245                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9246                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9247                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9248                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9249                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9250                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9251                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9252                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9253                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9254                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9255                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9256                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9257                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9258                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9259                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9260                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9261                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9262                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9263                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9264                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9265                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9266                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9267                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9268                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9269                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9270                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9271                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9272                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9273                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9274                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9275                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9276                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9277                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9278                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9279                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9280                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9281                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9282                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9283                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9284                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9285                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9286                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9287                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9288                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9289                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9290                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9291                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9292                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
9293                           "\x2B\xC2\x59",
9294                 .ctext  = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
9295                           "\x37\x69\xE3\x3A\x22\x85\x48\x46"
9296                           "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
9297                           "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
9298                           "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
9299                           "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
9300                           "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
9301                           "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
9302                           "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
9303                           "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
9304                           "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
9305                           "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
9306                           "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
9307                           "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
9308                           "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
9309                           "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
9310                           "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
9311                           "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
9312                           "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
9313                           "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
9314                           "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
9315                           "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
9316                           "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
9317                           "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
9318                           "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
9319                           "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
9320                           "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
9321                           "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
9322                           "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
9323                           "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
9324                           "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
9325                           "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
9326                           "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
9327                           "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
9328                           "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
9329                           "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
9330                           "\x07\x97\x38\x4B\x5C\x56\x98\x67"
9331                           "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
9332                           "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
9333                           "\x18\x06\x15\x9D\x5A\x10\x13\x37"
9334                           "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
9335                           "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
9336                           "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
9337                           "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
9338                           "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
9339                           "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
9340                           "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
9341                           "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
9342                           "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
9343                           "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
9344                           "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
9345                           "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
9346                           "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
9347                           "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
9348                           "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
9349                           "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
9350                           "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
9351                           "\x90\x47\x40\x92\xE6\x69\xD1\x96"
9352                           "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
9353                           "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
9354                           "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
9355                           "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
9356                           "\x38\xE2\xE5",
9357                 .len    = 499,
9358                 .also_non_np = 1,
9359                 .np     = 2,
9360                 .tap    = { 499 - 16, 16 },
9361         }, { /* Generated with Crypto++ */
9362                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9363                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9364                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9365                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9366                 .klen   = 32,
9367                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
9368                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
9369                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9370                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9371                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9372                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9373                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9374                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9375                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9376                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9377                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9378                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9379                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9380                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9381                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9382                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9383                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9384                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9385                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9386                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9387                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9388                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9389                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9390                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9391                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9392                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9393                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9394                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9395                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9396                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9397                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9398                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9399                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9400                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9401                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9402                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9403                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9404                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9405                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9406                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9407                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9408                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9409                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9410                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9411                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9412                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9413                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9414                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9415                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9416                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9417                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9418                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9419                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9420                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9421                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9422                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9423                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9424                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9425                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9426                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9427                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9428                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9429                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9430                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9431                 .ctext  = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
9432                           "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
9433                           "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
9434                           "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
9435                           "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
9436                           "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
9437                           "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
9438                           "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
9439                           "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
9440                           "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
9441                           "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
9442                           "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
9443                           "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
9444                           "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
9445                           "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
9446                           "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
9447                           "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
9448                           "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
9449                           "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
9450                           "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
9451                           "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
9452                           "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
9453                           "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
9454                           "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
9455                           "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
9456                           "\x29\x5E\x01\x47\x13\x32\x78\xBE"
9457                           "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
9458                           "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
9459                           "\x38\x35\x11\x26\x4A\xB4\x06\x32"
9460                           "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
9461                           "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
9462                           "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
9463                           "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
9464                           "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
9465                           "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
9466                           "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
9467                           "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
9468                           "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
9469                           "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
9470                           "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
9471                           "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
9472                           "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
9473                           "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
9474                           "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
9475                           "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
9476                           "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
9477                           "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
9478                           "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
9479                           "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
9480                           "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
9481                           "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
9482                           "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
9483                           "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
9484                           "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
9485                           "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
9486                           "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
9487                           "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
9488                           "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
9489                           "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
9490                           "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
9491                           "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
9492                           "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
9493                 .len    = 496,
9494         },
9495 };
9496
9497 static const struct cipher_testvec serpent_lrw_tv_template[] = {
9498         /* Generated from AES-LRW test vectors */
9499         {
9500                 .key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
9501                           "\x4c\x26\x84\x14\xb5\x68\x01\x85"
9502                           "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
9503                           "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
9504                 .klen   = 32,
9505                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9506                           "\x00\x00\x00\x00\x00\x00\x00\x01",
9507                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9508                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9509                 .ctext  = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
9510                           "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
9511                 .len    = 16,
9512         }, {
9513                 .key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
9514                           "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
9515                           "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
9516                           "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
9517                 .klen   = 32,
9518                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9519                           "\x00\x00\x00\x00\x00\x00\x00\x02",
9520                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9521                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9522                 .ctext  = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
9523                           "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
9524                 .len    = 16,
9525         }, {
9526                 .key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
9527                           "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
9528                           "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
9529                           "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
9530                 .klen   = 32,
9531                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9532                           "\x00\x00\x00\x02\x00\x00\x00\x00",
9533                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9534                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9535                 .ctext  = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
9536                           "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
9537                 .len    = 16,
9538         }, {
9539                 .key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
9540                           "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
9541                           "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
9542                           "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
9543                           "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
9544                 .klen   = 40,
9545                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9546                           "\x00\x00\x00\x00\x00\x00\x00\x01",
9547                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9548                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9549                 .ctext  = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
9550                           "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
9551                 .len    = 16,
9552         }, {
9553                 .key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
9554                           "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
9555                           "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
9556                           "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
9557                           "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
9558                 .klen   = 40,
9559                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9560                           "\x00\x00\x00\x02\x00\x00\x00\x00",
9561                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9562                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9563                 .ctext  = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
9564                           "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
9565                 .len    = 16,
9566         }, {
9567                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
9568                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
9569                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
9570                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
9571                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
9572                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
9573                 .klen   = 48,
9574                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9575                           "\x00\x00\x00\x00\x00\x00\x00\x01",
9576                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9577                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9578                 .ctext  = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
9579                           "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
9580                 .len    = 16,
9581         }, {
9582                 .key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
9583                           "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
9584                           "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
9585                           "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
9586                           "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
9587                           "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
9588                 .klen   = 48,
9589                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9590                           "\x00\x00\x00\x02\x00\x00\x00\x00",
9591                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
9592                           "\x38\x39\x41\x42\x43\x44\x45\x46",
9593                 .ctext  = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
9594                           "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
9595                 .len    = 16,
9596         }, {
9597                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
9598                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
9599                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
9600                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
9601                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
9602                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
9603                 .klen   = 48,
9604                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9605                           "\x00\x00\x00\x00\x00\x00\x00\x01",
9606                 .ptext  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
9607                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
9608                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
9609                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
9610                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
9611                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
9612                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
9613                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
9614                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
9615                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
9616                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
9617                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
9618                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
9619                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
9620                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
9621                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
9622                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
9623                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
9624                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
9625                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
9626                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
9627                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
9628                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
9629                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
9630                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
9631                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
9632                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
9633                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
9634                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
9635                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
9636                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
9637                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
9638                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
9639                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
9640                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
9641                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
9642                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
9643                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
9644                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
9645                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
9646                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
9647                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
9648                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
9649                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
9650                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
9651                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
9652                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
9653                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
9654                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
9655                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
9656                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
9657                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
9658                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
9659                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
9660                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
9661                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
9662                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
9663                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
9664                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
9665                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
9666                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
9667                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
9668                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
9669                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
9670                 .ctext  = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
9671                           "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
9672                           "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
9673                           "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
9674                           "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
9675                           "\xce\xab\xda\x33\x30\x20\x12\xfa"
9676                           "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
9677                           "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
9678                           "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
9679                           "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
9680                           "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
9681                           "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
9682                           "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
9683                           "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
9684                           "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
9685                           "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
9686                           "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
9687                           "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
9688                           "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
9689                           "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
9690                           "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
9691                           "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
9692                           "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
9693                           "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
9694                           "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
9695                           "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
9696                           "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
9697                           "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
9698                           "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
9699                           "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
9700                           "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
9701                           "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
9702                           "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
9703                           "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
9704                           "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
9705                           "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
9706                           "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
9707                           "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
9708                           "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
9709                           "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
9710                           "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
9711                           "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
9712                           "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
9713                           "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
9714                           "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
9715                           "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
9716                           "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
9717                           "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
9718                           "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
9719                           "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
9720                           "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
9721                           "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
9722                           "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
9723                           "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
9724                           "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
9725                           "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
9726                           "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
9727                           "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
9728                           "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
9729                           "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
9730                           "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
9731                           "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
9732                           "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
9733                           "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
9734                 .len    = 512,
9735                 .also_non_np = 1,
9736                 .np     = 3,
9737                 .tap    = { 512 - 20, 4, 16 },
9738         },
9739 };
9740
9741 static const struct cipher_testvec serpent_xts_tv_template[] = {
9742         /* Generated from AES-XTS test vectors */
9743         {
9744                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
9745                           "\x00\x00\x00\x00\x00\x00\x00\x00"
9746                           "\x00\x00\x00\x00\x00\x00\x00\x00"
9747                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9748                 .klen   = 32,
9749                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9750                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9751                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
9752                           "\x00\x00\x00\x00\x00\x00\x00\x00"
9753                           "\x00\x00\x00\x00\x00\x00\x00\x00"
9754                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9755                 .ctext  = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
9756                           "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
9757                           "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
9758                           "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
9759                 .len    = 32,
9760         }, {
9761                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
9762                           "\x11\x11\x11\x11\x11\x11\x11\x11"
9763                           "\x22\x22\x22\x22\x22\x22\x22\x22"
9764                           "\x22\x22\x22\x22\x22\x22\x22\x22",
9765                 .klen   = 32,
9766                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
9767                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9768                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
9769                           "\x44\x44\x44\x44\x44\x44\x44\x44"
9770                           "\x44\x44\x44\x44\x44\x44\x44\x44"
9771                           "\x44\x44\x44\x44\x44\x44\x44\x44",
9772                 .ctext  = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
9773                           "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
9774                           "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
9775                           "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
9776                 .len    = 32,
9777         }, {
9778                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
9779                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
9780                           "\x22\x22\x22\x22\x22\x22\x22\x22"
9781                           "\x22\x22\x22\x22\x22\x22\x22\x22",
9782                 .klen   = 32,
9783                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
9784                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9785                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
9786                           "\x44\x44\x44\x44\x44\x44\x44\x44"
9787                           "\x44\x44\x44\x44\x44\x44\x44\x44"
9788                           "\x44\x44\x44\x44\x44\x44\x44\x44",
9789                 .ctext  = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
9790                           "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
9791                           "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
9792                           "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
9793                 .len    = 32,
9794         }, {
9795                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
9796                           "\x23\x53\x60\x28\x74\x71\x35\x26"
9797                           "\x31\x41\x59\x26\x53\x58\x97\x93"
9798                           "\x23\x84\x62\x64\x33\x83\x27\x95",
9799                 .klen   = 32,
9800                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
9801                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9802                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
9803                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9804                           "\x10\x11\x12\x13\x14\x15\x16\x17"
9805                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9806                           "\x20\x21\x22\x23\x24\x25\x26\x27"
9807                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
9808                           "\x30\x31\x32\x33\x34\x35\x36\x37"
9809                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
9810                           "\x40\x41\x42\x43\x44\x45\x46\x47"
9811                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
9812                           "\x50\x51\x52\x53\x54\x55\x56\x57"
9813                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
9814                           "\x60\x61\x62\x63\x64\x65\x66\x67"
9815                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
9816                           "\x70\x71\x72\x73\x74\x75\x76\x77"
9817                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
9818                           "\x80\x81\x82\x83\x84\x85\x86\x87"
9819                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
9820                           "\x90\x91\x92\x93\x94\x95\x96\x97"
9821                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
9822                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
9823                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
9824                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
9825                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
9826                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
9827                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
9828                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
9829                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
9830                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
9831                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
9832                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
9833                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
9834                           "\x00\x01\x02\x03\x04\x05\x06\x07"
9835                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9836                           "\x10\x11\x12\x13\x14\x15\x16\x17"
9837                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9838                           "\x20\x21\x22\x23\x24\x25\x26\x27"
9839                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
9840                           "\x30\x31\x32\x33\x34\x35\x36\x37"
9841                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
9842                           "\x40\x41\x42\x43\x44\x45\x46\x47"
9843                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
9844                           "\x50\x51\x52\x53\x54\x55\x56\x57"
9845                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
9846                           "\x60\x61\x62\x63\x64\x65\x66\x67"
9847                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
9848                           "\x70\x71\x72\x73\x74\x75\x76\x77"
9849                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
9850                           "\x80\x81\x82\x83\x84\x85\x86\x87"
9851                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
9852                           "\x90\x91\x92\x93\x94\x95\x96\x97"
9853                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
9854                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
9855                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
9856                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
9857                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
9858                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
9859                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
9860                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
9861                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
9862                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
9863                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
9864                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
9865                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
9866                 .ctext  = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
9867                           "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
9868                           "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
9869                           "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
9870                           "\x00\x5c\x75\x14\x06\xd6\x25\x82"
9871                           "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
9872                           "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
9873                           "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
9874                           "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
9875                           "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
9876                           "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
9877                           "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
9878                           "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
9879                           "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
9880                           "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
9881                           "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
9882                           "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
9883                           "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
9884                           "\x58\xfa\x43\x91\x16\x85\x40\xbb"
9885                           "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
9886                           "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
9887                           "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
9888                           "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
9889                           "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
9890                           "\x6e\x29\x60\xbd\x10\x14\x84\x82"
9891                           "\x83\x82\x0c\x63\x73\x92\x02\x7c"
9892                           "\x55\x37\x20\x80\x17\x51\xc8\xbc"
9893                           "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
9894                           "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
9895                           "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
9896                           "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
9897                           "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
9898                           "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
9899                           "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
9900                           "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
9901                           "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
9902                           "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
9903                           "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
9904                           "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
9905                           "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
9906                           "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
9907                           "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
9908                           "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
9909                           "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
9910                           "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
9911                           "\x43\x42\x35\xd0\xcf\xec\x77\x67"
9912                           "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
9913                           "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
9914                           "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
9915                           "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
9916                           "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
9917                           "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
9918                           "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
9919                           "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
9920                           "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
9921                           "\x03\x57\xe6\x98\x52\x2f\x61\x62"
9922                           "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
9923                           "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
9924                           "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
9925                           "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
9926                           "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
9927                           "\xef\x91\x64\x1d\x18\x07\x4e\x31"
9928                           "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
9929                           "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
9930                 .len    = 512,
9931         }, {
9932                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
9933                           "\x23\x53\x60\x28\x74\x71\x35\x26"
9934                           "\x62\x49\x77\x57\x24\x70\x93\x69"
9935                           "\x99\x59\x57\x49\x66\x96\x76\x27"
9936                           "\x31\x41\x59\x26\x53\x58\x97\x93"
9937                           "\x23\x84\x62\x64\x33\x83\x27\x95"
9938                           "\x02\x88\x41\x97\x16\x93\x99\x37"
9939                           "\x51\x05\x82\x09\x74\x94\x45\x92",
9940                 .klen   = 64,
9941                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
9942                           "\x00\x00\x00\x00\x00\x00\x00\x00",
9943                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
9944                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9945                           "\x10\x11\x12\x13\x14\x15\x16\x17"
9946                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9947                           "\x20\x21\x22\x23\x24\x25\x26\x27"
9948                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
9949                           "\x30\x31\x32\x33\x34\x35\x36\x37"
9950                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
9951                           "\x40\x41\x42\x43\x44\x45\x46\x47"
9952                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
9953                           "\x50\x51\x52\x53\x54\x55\x56\x57"
9954                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
9955                           "\x60\x61\x62\x63\x64\x65\x66\x67"
9956                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
9957                           "\x70\x71\x72\x73\x74\x75\x76\x77"
9958                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
9959                           "\x80\x81\x82\x83\x84\x85\x86\x87"
9960                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
9961                           "\x90\x91\x92\x93\x94\x95\x96\x97"
9962                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
9963                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
9964                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
9965                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
9966                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
9967                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
9968                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
9969                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
9970                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
9971                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
9972                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
9973                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
9974                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
9975                           "\x00\x01\x02\x03\x04\x05\x06\x07"
9976                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9977                           "\x10\x11\x12\x13\x14\x15\x16\x17"
9978                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9979                           "\x20\x21\x22\x23\x24\x25\x26\x27"
9980                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
9981                           "\x30\x31\x32\x33\x34\x35\x36\x37"
9982                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
9983                           "\x40\x41\x42\x43\x44\x45\x46\x47"
9984                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
9985                           "\x50\x51\x52\x53\x54\x55\x56\x57"
9986                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
9987                           "\x60\x61\x62\x63\x64\x65\x66\x67"
9988                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
9989                           "\x70\x71\x72\x73\x74\x75\x76\x77"
9990                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
9991                           "\x80\x81\x82\x83\x84\x85\x86\x87"
9992                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
9993                           "\x90\x91\x92\x93\x94\x95\x96\x97"
9994                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
9995                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
9996                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
9997                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
9998                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
9999                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10000                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10001                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10002                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10003                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10004                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10005                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10006                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10007                 .ctext  = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
10008                           "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
10009                           "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
10010                           "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
10011                           "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
10012                           "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
10013                           "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
10014                           "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
10015                           "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
10016                           "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
10017                           "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
10018                           "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
10019                           "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
10020                           "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
10021                           "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
10022                           "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
10023                           "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
10024                           "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
10025                           "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
10026                           "\xec\x9a\xda\x64\x96\xb5\x61\xff"
10027                           "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
10028                           "\x81\x85\x14\xa8\x59\xac\x8c\x94"
10029                           "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
10030                           "\x82\xc6\x4d\xca\x86\xea\x53\x28"
10031                           "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
10032                           "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
10033                           "\x05\xca\x81\x7b\xda\xa2\xde\x63"
10034                           "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
10035                           "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
10036                           "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
10037                           "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
10038                           "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
10039                           "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
10040                           "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
10041                           "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
10042                           "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
10043                           "\xfd\x43\x7d\xda\x42\x51\x87\x43"
10044                           "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
10045                           "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
10046                           "\x27\x5f\x11\xac\x71\xc7\x48\x46"
10047                           "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
10048                           "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
10049                           "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
10050                           "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
10051                           "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
10052                           "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
10053                           "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
10054                           "\x50\x88\x97\x40\x69\xb1\x37\xf5"
10055                           "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
10056                           "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
10057                           "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
10058                           "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
10059                           "\xc1\x16\x73\x50\x77\xba\xa6\x65"
10060                           "\x20\x2d\xb0\x02\x27\x89\xda\x99"
10061                           "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
10062                           "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
10063                           "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
10064                           "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
10065                           "\xa3\x0e\x33\x74\x40\x18\x39\x72"
10066                           "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
10067                           "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
10068                           "\x30\x05\xc8\x92\x98\x80\xff\x7a"
10069                           "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
10070                           "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
10071                 .len    = 512,
10072                 .also_non_np = 1,
10073                 .np     = 3,
10074                 .tap    = { 512 - 20, 4, 16 },
10075         },
10076 };
10077
10078 /*
10079  * SM4 test vector taken from the draft RFC
10080  * https://tools.ietf.org/html/draft-crypto-sm4-00#ref-GBT.32907-2016
10081  */
10082
10083 static const struct cipher_testvec sm4_tv_template[] = {
10084         { /* SM4 Appendix A: Example Calculations. Example 1. */
10085                 .key    = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
10086                           "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
10087                 .klen   = 16,
10088                 .ptext  = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
10089                           "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
10090                 .ctext  = "\x68\x1E\xDF\x34\xD2\x06\x96\x5E"
10091                           "\x86\xB3\xE9\x4F\x53\x6E\x42\x46",
10092                 .len    = 16,
10093         }, { /*
10094               *  SM4 Appendix A: Example Calculations.
10095               *  Last 10 iterations of Example 2.
10096               */
10097                 .key    = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
10098                           "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
10099                 .klen   = 16,
10100                 .ptext  = "\x99\x4a\xc3\xe7\xc3\x57\x89\x6a"
10101                           "\x81\xfc\xa8\xe\x38\x3e\xef\x80"
10102                           "\xb1\x98\xf2\xde\x3f\x4b\xae\xd1"
10103                           "\xf0\xf1\x30\x4c\x1\x27\x5a\x8f"
10104                           "\x45\xe1\x39\xb7\xae\xff\x1f\x27"
10105                           "\xad\x57\x15\xab\x31\x5d\xc\xef"
10106                           "\x8c\xc8\x80\xbd\x11\x98\xf3\x7b"
10107                           "\xa2\xdd\x14\x20\xf9\xe8\xbb\x82"
10108                           "\xf7\x32\xca\x4b\xa8\xf7\xb3\x4d"
10109                           "\x27\xd1\xcd\xe6\xb6\x65\x5a\x23"
10110                           "\xc2\xf3\x54\x84\x53\xe3\xb9\x20"
10111                           "\xa5\x37\x0\xbe\xe7\x7b\x48\xfb"
10112                           "\x21\x3d\x9e\x48\x1d\x9e\xf5\xbf"
10113                           "\x77\xd5\xb4\x4a\x53\x71\x94\x7a"
10114                           "\x88\xa6\x6e\x6\x93\xca\x43\xa5"
10115                           "\xc4\xf6\xcd\x53\x4b\x7b\x8e\xfe"
10116                           "\xb4\x28\x7c\x42\x29\x32\x5d\x88"
10117                           "\xed\xce\x0\x19\xe\x16\x2\x6e"
10118                           "\x87\xff\x2c\xac\xe8\xe7\xe9\xbf"
10119                           "\x31\x51\xec\x47\xc3\x51\x83\xc1",
10120                 .ctext  = "\xb1\x98\xf2\xde\x3f\x4b\xae\xd1"
10121                           "\xf0\xf1\x30\x4c\x1\x27\x5a\x8f"
10122                           "\x45\xe1\x39\xb7\xae\xff\x1f\x27"
10123                           "\xad\x57\x15\xab\x31\x5d\xc\xef"
10124                           "\x8c\xc8\x80\xbd\x11\x98\xf3\x7b"
10125                           "\xa2\xdd\x14\x20\xf9\xe8\xbb\x82"
10126                           "\xf7\x32\xca\x4b\xa8\xf7\xb3\x4d"
10127                           "\x27\xd1\xcd\xe6\xb6\x65\x5a\x23"
10128                           "\xc2\xf3\x54\x84\x53\xe3\xb9\x20"
10129                           "\xa5\x37\x0\xbe\xe7\x7b\x48\xfb"
10130                           "\x21\x3d\x9e\x48\x1d\x9e\xf5\xbf"
10131                           "\x77\xd5\xb4\x4a\x53\x71\x94\x7a"
10132                           "\x88\xa6\x6e\x6\x93\xca\x43\xa5"
10133                           "\xc4\xf6\xcd\x53\x4b\x7b\x8e\xfe"
10134                           "\xb4\x28\x7c\x42\x29\x32\x5d\x88"
10135                           "\xed\xce\x0\x19\xe\x16\x2\x6e"
10136                           "\x87\xff\x2c\xac\xe8\xe7\xe9\xbf"
10137                           "\x31\x51\xec\x47\xc3\x51\x83\xc1"
10138                           "\x59\x52\x98\xc7\xc6\xfd\x27\x1f"
10139                           "\x4\x2\xf8\x4\xc3\x3d\x3f\x66",
10140                 .len    = 160
10141         }
10142 };
10143
10144 /*
10145  * Speck test vectors taken from the original paper:
10146  * "The Simon and Speck Families of Lightweight Block Ciphers"
10147  * https://eprint.iacr.org/2013/404.pdf
10148  *
10149  * Note that the paper does not make byte and word order clear.  But it was
10150  * confirmed with the authors that the intended orders are little endian byte
10151  * order and (y, x) word order.  Equivalently, the printed test vectors, when
10152  * looking at only the bytes (ignoring the whitespace that divides them into
10153  * words), are backwards: the left-most byte is actually the one with the
10154  * highest memory address, while the right-most byte is actually the one with
10155  * the lowest memory address.
10156  */
10157
10158 static const struct cipher_testvec speck128_tv_template[] = {
10159         { /* Speck128/128 */
10160                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
10161                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
10162                 .klen   = 16,
10163                 .ptext  = "\x20\x6d\x61\x64\x65\x20\x69\x74"
10164                           "\x20\x65\x71\x75\x69\x76\x61\x6c",
10165                 .ctext  = "\x18\x0d\x57\x5c\xdf\xfe\x60\x78"
10166                           "\x65\x32\x78\x79\x51\x98\x5d\xa6",
10167                 .len    = 16,
10168         }, { /* Speck128/192 */
10169                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
10170                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10171                           "\x10\x11\x12\x13\x14\x15\x16\x17",
10172                 .klen   = 24,
10173                 .ptext  = "\x65\x6e\x74\x20\x74\x6f\x20\x43"
10174                           "\x68\x69\x65\x66\x20\x48\x61\x72",
10175                 .ctext  = "\x86\x18\x3c\xe0\x5d\x18\xbc\xf9"
10176                           "\x66\x55\x13\x13\x3a\xcf\xe4\x1b",
10177                 .len    = 16,
10178         }, { /* Speck128/256 */
10179                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
10180                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10181                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10182                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
10183                 .klen   = 32,
10184                 .ptext  = "\x70\x6f\x6f\x6e\x65\x72\x2e\x20"
10185                           "\x49\x6e\x20\x74\x68\x6f\x73\x65",
10186                 .ctext  = "\x43\x8f\x18\x9c\x8d\xb4\xee\x4e"
10187                           "\x3e\xf5\xc0\x05\x04\x01\x09\x41",
10188                 .len    = 16,
10189         },
10190 };
10191
10192 /*
10193  * Speck128-XTS test vectors, taken from the AES-XTS test vectors with the
10194  * ciphertext recomputed with Speck128 as the cipher
10195  */
10196 static const struct cipher_testvec speck128_xts_tv_template[] = {
10197         {
10198                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
10199                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10200                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10201                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10202                 .klen   = 32,
10203                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10204                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10205                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
10206                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10207                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10208                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10209                 .ctext  = "\xbe\xa0\xe7\x03\xd7\xfe\xab\x62"
10210                           "\x3b\x99\x4a\x64\x74\x77\xac\xed"
10211                           "\xd8\xf4\xa6\xcf\xae\xb9\x07\x42"
10212                           "\x51\xd9\xb6\x1d\xe0\x5e\xbc\x54",
10213                 .len    = 32,
10214         }, {
10215                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
10216                           "\x11\x11\x11\x11\x11\x11\x11\x11"
10217                           "\x22\x22\x22\x22\x22\x22\x22\x22"
10218                           "\x22\x22\x22\x22\x22\x22\x22\x22",
10219                 .klen   = 32,
10220                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
10221                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10222                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
10223                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10224                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10225                           "\x44\x44\x44\x44\x44\x44\x44\x44",
10226                 .ctext  = "\xfb\x53\x81\x75\x6f\x9f\x34\xad"
10227                           "\x7e\x01\xed\x7b\xcc\xda\x4e\x4a"
10228                           "\xd4\x84\xa4\x53\xd5\x88\x73\x1b"
10229                           "\xfd\xcb\xae\x0d\xf3\x04\xee\xe6",
10230                 .len    = 32,
10231         }, {
10232                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
10233                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
10234                           "\x22\x22\x22\x22\x22\x22\x22\x22"
10235                           "\x22\x22\x22\x22\x22\x22\x22\x22",
10236                 .klen   = 32,
10237                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
10238                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10239                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
10240                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10241                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10242                           "\x44\x44\x44\x44\x44\x44\x44\x44",
10243                 .ctext  = "\x21\x52\x84\x15\xd1\xf7\x21\x55"
10244                           "\xd9\x75\x4a\xd3\xc5\xdb\x9f\x7d"
10245                           "\xda\x63\xb2\xf1\x82\xb0\x89\x59"
10246                           "\x86\xd4\xaa\xaa\xdd\xff\x4f\x92",
10247                 .len    = 32,
10248         }, {
10249                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
10250                           "\x23\x53\x60\x28\x74\x71\x35\x26"
10251                           "\x31\x41\x59\x26\x53\x58\x97\x93"
10252                           "\x23\x84\x62\x64\x33\x83\x27\x95",
10253                 .klen   = 32,
10254                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10255                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10256                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
10257                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10258                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10259                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10260                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10261                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10262                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10263                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10264                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10265                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10266                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10267                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10268                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10269                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10270                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10271                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10272                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10273                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10274                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10275                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10276                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10277                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10278                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10279                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10280                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10281                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10282                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10283                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10284                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10285                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10286                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10287                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10288                           "\x00\x01\x02\x03\x04\x05\x06\x07"
10289                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10290                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10291                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10292                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10293                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10294                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10295                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10296                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10297                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10298                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10299                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10300                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10301                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10302                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10303                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10304                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10305                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10306                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10307                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10308                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10309                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10310                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10311                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10312                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10313                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10314                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10315                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10316                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10317                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10318                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10319                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10320                 .ctext  = "\x57\xb5\xf8\x71\x6e\x6d\xdd\x82"
10321                           "\x53\xd0\xed\x2d\x30\xc1\x20\xef"
10322                           "\x70\x67\x5e\xff\x09\x70\xbb\xc1"
10323                           "\x3a\x7b\x48\x26\xd9\x0b\xf4\x48"
10324                           "\xbe\xce\xb1\xc7\xb2\x67\xc4\xa7"
10325                           "\x76\xf8\x36\x30\xb7\xb4\x9a\xd9"
10326                           "\xf5\x9d\xd0\x7b\xc1\x06\x96\x44"
10327                           "\x19\xc5\x58\x84\x63\xb9\x12\x68"
10328                           "\x68\xc7\xaa\x18\x98\xf2\x1f\x5c"
10329                           "\x39\xa6\xd8\x32\x2b\xc3\x51\xfd"
10330                           "\x74\x79\x2e\xb4\x44\xd7\x69\xc4"
10331                           "\xfc\x29\xe6\xed\x26\x1e\xa6\x9d"
10332                           "\x1c\xbe\x00\x0e\x7f\x3a\xca\xfb"
10333                           "\x6d\x13\x65\xa0\xf9\x31\x12\xe2"
10334                           "\x26\xd1\xec\x2b\x0a\x8b\x59\x99"
10335                           "\xa7\x49\xa0\x0e\x09\x33\x85\x50"
10336                           "\xc3\x23\xca\x7a\xdd\x13\x45\x5f"
10337                           "\xde\x4c\xa7\xcb\x00\x8a\x66\x6f"
10338                           "\xa2\xb6\xb1\x2e\xe1\xa0\x18\xf6"
10339                           "\xad\xf3\xbd\xeb\xc7\xef\x55\x4f"
10340                           "\x79\x91\x8d\x36\x13\x7b\xd0\x4a"
10341                           "\x6c\x39\xfb\x53\xb8\x6f\x02\x51"
10342                           "\xa5\x20\xac\x24\x1c\x73\x59\x73"
10343                           "\x58\x61\x3a\x87\x58\xb3\x20\x56"
10344                           "\x39\x06\x2b\x4d\xd3\x20\x2b\x89"
10345                           "\x3f\xa2\xf0\x96\xeb\x7f\xa4\xcd"
10346                           "\x11\xae\xbd\xcb\x3a\xb4\xd9\x91"
10347                           "\x09\x35\x71\x50\x65\xac\x92\xe3"
10348                           "\x7b\x32\xc0\x7a\xdd\xd4\xc3\x92"
10349                           "\x6f\xeb\x79\xde\x6f\xd3\x25\xc9"
10350                           "\xcd\x63\xf5\x1e\x7a\x3b\x26\x9d"
10351                           "\x77\x04\x80\xa9\xbf\x38\xb5\xbd"
10352                           "\xb8\x05\x07\xbd\xfd\xab\x7b\xf8"
10353                           "\x2a\x26\xcc\x49\x14\x6d\x55\x01"
10354                           "\x06\x94\xd8\xb2\x2d\x53\x83\x1b"
10355                           "\x8f\xd4\xdd\x57\x12\x7e\x18\xba"
10356                           "\x8e\xe2\x4d\x80\xef\x7e\x6b\x9d"
10357                           "\x24\xa9\x60\xa4\x97\x85\x86\x2a"
10358                           "\x01\x00\x09\xf1\xcb\x4a\x24\x1c"
10359                           "\xd8\xf6\xe6\x5b\xe7\x5d\xf2\xc4"
10360                           "\x97\x1c\x10\xc6\x4d\x66\x4f\x98"
10361                           "\x87\x30\xac\xd5\xea\x73\x49\x10"
10362                           "\x80\xea\xe5\x5f\x4d\x5f\x03\x33"
10363                           "\x66\x02\x35\x3d\x60\x06\x36\x4f"
10364                           "\x14\x1c\xd8\x07\x1f\x78\xd0\xf8"
10365                           "\x4f\x6c\x62\x7c\x15\xa5\x7c\x28"
10366                           "\x7c\xcc\xeb\x1f\xd1\x07\x90\x93"
10367                           "\x7e\xc2\xa8\x3a\x80\xc0\xf5\x30"
10368                           "\xcc\x75\xcf\x16\x26\xa9\x26\x3b"
10369                           "\xe7\x68\x2f\x15\x21\x5b\xe4\x00"
10370                           "\xbd\x48\x50\xcd\x75\x70\xc4\x62"
10371                           "\xbb\x41\xfb\x89\x4a\x88\x3b\x3b"
10372                           "\x51\x66\x02\x69\x04\x97\x36\xd4"
10373                           "\x75\xae\x0b\xa3\x42\xf8\xca\x79"
10374                           "\x8f\x93\xe9\xcc\x38\xbd\xd6\xd2"
10375                           "\xf9\x70\x4e\xc3\x6a\x8e\x25\xbd"
10376                           "\xea\x15\x5a\xa0\x85\x7e\x81\x0d"
10377                           "\x03\xe7\x05\x39\xf5\x05\x26\xee"
10378                           "\xec\xaa\x1f\x3d\xc9\x98\x76\x01"
10379                           "\x2c\xf4\xfc\xa3\x88\x77\x38\xc4"
10380                           "\x50\x65\x50\x6d\x04\x1f\xdf\x5a"
10381                           "\xaa\xf2\x01\xa9\xc1\x8d\xee\xca"
10382                           "\x47\x26\xef\x39\xb8\xb4\xf2\xd1"
10383                           "\xd6\xbb\x1b\x2a\xc1\x34\x14\xcf",
10384                 .len    = 512,
10385         }, {
10386                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
10387                           "\x23\x53\x60\x28\x74\x71\x35\x26"
10388                           "\x62\x49\x77\x57\x24\x70\x93\x69"
10389                           "\x99\x59\x57\x49\x66\x96\x76\x27"
10390                           "\x31\x41\x59\x26\x53\x58\x97\x93"
10391                           "\x23\x84\x62\x64\x33\x83\x27\x95"
10392                           "\x02\x88\x41\x97\x16\x93\x99\x37"
10393                           "\x51\x05\x82\x09\x74\x94\x45\x92",
10394                 .klen   = 64,
10395                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
10396                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10397                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
10398                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10399                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10400                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10401                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10402                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10403                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10404                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10405                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10406                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10407                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10408                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10409                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10410                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10411                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10412                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10413                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10414                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10415                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10416                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10417                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10418                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10419                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10420                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10421                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10422                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10423                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10424                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10425                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10426                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10427                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10428                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10429                           "\x00\x01\x02\x03\x04\x05\x06\x07"
10430                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10431                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10432                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10433                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10434                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10435                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10436                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10437                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10438                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10439                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10440                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10441                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10442                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10443                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10444                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10445                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10446                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10447                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10448                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10449                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10450                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10451                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10452                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10453                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10454                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10455                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10456                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10457                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10458                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10459                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10460                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10461                 .ctext  = "\xc5\x85\x2a\x4b\x73\xe4\xf6\xf1"
10462                           "\x7e\xf9\xf6\xe9\xa3\x73\x36\xcb"
10463                           "\xaa\xb6\x22\xb0\x24\x6e\x3d\x73"
10464                           "\x92\x99\xde\xd3\x76\xed\xcd\x63"
10465                           "\x64\x3a\x22\x57\xc1\x43\x49\xd4"
10466                           "\x79\x36\x31\x19\x62\xae\x10\x7e"
10467                           "\x7d\xcf\x7a\xe2\x6b\xce\x27\xfa"
10468                           "\xdc\x3d\xd9\x83\xd3\x42\x4c\xe0"
10469                           "\x1b\xd6\x1d\x1a\x6f\xd2\x03\x00"
10470                           "\xfc\x81\x99\x8a\x14\x62\xf5\x7e"
10471                           "\x0d\xe7\x12\xe8\x17\x9d\x0b\xec"
10472                           "\xe2\xf7\xc9\xa7\x63\xd1\x79\xb6"
10473                           "\x62\x62\x37\xfe\x0a\x4c\x4a\x37"
10474                           "\x70\xc7\x5e\x96\x5f\xbc\x8e\x9e"
10475                           "\x85\x3c\x4f\x26\x64\x85\xbc\x68"
10476                           "\xb0\xe0\x86\x5e\x26\x41\xce\x11"
10477                           "\x50\xda\x97\x14\xe9\x9e\xc7\x6d"
10478                           "\x3b\xdc\x43\xde\x2b\x27\x69\x7d"
10479                           "\xfc\xb0\x28\xbd\x8f\xb1\xc6\x31"
10480                           "\x14\x4d\xf0\x74\x37\xfd\x07\x25"
10481                           "\x96\x55\xe5\xfc\x9e\x27\x2a\x74"
10482                           "\x1b\x83\x4d\x15\x83\xac\x57\xa0"
10483                           "\xac\xa5\xd0\x38\xef\x19\x56\x53"
10484                           "\x25\x4b\xfc\xce\x04\x23\xe5\x6b"
10485                           "\xf6\xc6\x6c\x32\x0b\xb3\x12\xc5"
10486                           "\xed\x22\x34\x1c\x5d\xed\x17\x06"
10487                           "\x36\xa3\xe6\x77\xb9\x97\x46\xb8"
10488                           "\xe9\x3f\x7e\xc7\xbc\x13\x5c\xdc"
10489                           "\x6e\x3f\x04\x5e\xd1\x59\xa5\x82"
10490                           "\x35\x91\x3d\x1b\xe4\x97\x9f\x92"
10491                           "\x1c\x5e\x5f\x6f\x41\xd4\x62\xa1"
10492                           "\x8d\x39\xfc\x42\xfb\x38\x80\xb9"
10493                           "\x0a\xe3\xcc\x6a\x93\xd9\x7a\xb1"
10494                           "\xe9\x69\xaf\x0a\x6b\x75\x38\xa7"
10495                           "\xa1\xbf\xf7\xda\x95\x93\x4b\x78"
10496                           "\x19\xf5\x94\xf9\xd2\x00\x33\x37"
10497                           "\xcf\xf5\x9e\x9c\xf3\xcc\xa6\xee"
10498                           "\x42\xb2\x9e\x2c\x5f\x48\x23\x26"
10499                           "\x15\x25\x17\x03\x3d\xfe\x2c\xfc"
10500                           "\xeb\xba\xda\xe0\x00\x05\xb6\xa6"
10501                           "\x07\xb3\xe8\x36\x5b\xec\x5b\xbf"
10502                           "\xd6\x5b\x00\x74\xc6\x97\xf1\x6a"
10503                           "\x49\xa1\xc3\xfa\x10\x52\xb9\x14"
10504                           "\xad\xb7\x73\xf8\x78\x12\xc8\x59"
10505                           "\x17\x80\x4c\x57\x39\xf1\x6d\x80"
10506                           "\x25\x77\x0f\x5e\x7d\xf0\xaf\x21"
10507                           "\xec\xce\xb7\xc8\x02\x8a\xed\x53"
10508                           "\x2c\x25\x68\x2e\x1f\x85\x5e\x67"
10509                           "\xd1\x07\x7a\x3a\x89\x08\xe0\x34"
10510                           "\xdc\xdb\x26\xb4\x6b\x77\xfc\x40"
10511                           "\x31\x15\x72\xa0\xf0\x73\xd9\x3b"
10512                           "\xd5\xdb\xfe\xfc\x8f\xa9\x44\xa2"
10513                           "\x09\x9f\xc6\x33\xe5\xe2\x88\xe8"
10514                           "\xf3\xf0\x1a\xf4\xce\x12\x0f\xd6"
10515                           "\xf7\x36\xe6\xa4\xf4\x7a\x10\x58"
10516                           "\xcc\x1f\x48\x49\x65\x47\x75\xe9"
10517                           "\x28\xe1\x65\x7b\xf2\xc4\xb5\x07"
10518                           "\xf2\xec\x76\xd8\x8f\x09\xf3\x16"
10519                           "\xa1\x51\x89\x3b\xeb\x96\x42\xac"
10520                           "\x65\xe0\x67\x63\x29\xdc\xb4\x7d"
10521                           "\xf2\x41\x51\x6a\xcb\xde\x3c\xfb"
10522                           "\x66\x8d\x13\xca\xe0\x59\x2a\x00"
10523                           "\xc9\x53\x4c\xe6\x9e\xe2\x73\xd5"
10524                           "\x67\x19\xb2\xbd\x9a\x63\xd7\x5c",
10525                 .len    = 512,
10526                 .also_non_np = 1,
10527                 .np     = 3,
10528                 .tap    = { 512 - 20, 4, 16 },
10529         }
10530 };
10531
10532 static const struct cipher_testvec speck64_tv_template[] = {
10533         { /* Speck64/96 */
10534                 .key    = "\x00\x01\x02\x03\x08\x09\x0a\x0b"
10535                           "\x10\x11\x12\x13",
10536                 .klen   = 12,
10537                 .ptext  = "\x65\x61\x6e\x73\x20\x46\x61\x74",
10538                 .ctext  = "\x6c\x94\x75\x41\xec\x52\x79\x9f",
10539                 .len    = 8,
10540         }, { /* Speck64/128 */
10541                 .key    = "\x00\x01\x02\x03\x08\x09\x0a\x0b"
10542                           "\x10\x11\x12\x13\x18\x19\x1a\x1b",
10543                 .klen   = 16,
10544                 .ptext  = "\x2d\x43\x75\x74\x74\x65\x72\x3b",
10545                 .ctext  = "\x8b\x02\x4e\x45\x48\xa5\x6f\x8c",
10546                 .len    = 8,
10547         },
10548 };
10549
10550 /*
10551  * Speck64-XTS test vectors, taken from the AES-XTS test vectors with the
10552  * ciphertext recomputed with Speck64 as the cipher, and key lengths adjusted
10553  */
10554 static const struct cipher_testvec speck64_xts_tv_template[] = {
10555         {
10556                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
10557                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10558                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10559                 .klen   = 24,
10560                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10561                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10562                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
10563                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10564                           "\x00\x00\x00\x00\x00\x00\x00\x00"
10565                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10566                 .ctext  = "\x84\xaf\x54\x07\x19\xd4\x7c\xa6"
10567                           "\xe4\xfe\xdf\xc4\x1f\x34\xc3\xc2"
10568                           "\x80\xf5\x72\xe7\xcd\xf0\x99\x22"
10569                           "\x35\xa7\x2f\x06\xef\xdc\x51\xaa",
10570                 .len    = 32,
10571         }, {
10572                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
10573                           "\x11\x11\x11\x11\x11\x11\x11\x11"
10574                           "\x22\x22\x22\x22\x22\x22\x22\x22",
10575                 .klen   = 24,
10576                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
10577                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10578                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
10579                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10580                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10581                           "\x44\x44\x44\x44\x44\x44\x44\x44",
10582                 .ctext  = "\x12\x56\x73\xcd\x15\x87\xa8\x59"
10583                           "\xcf\x84\xae\xd9\x1c\x66\xd6\x9f"
10584                           "\xb3\x12\x69\x7e\x36\xeb\x52\xff"
10585                           "\x62\xdd\xba\x90\xb3\xe1\xee\x99",
10586                 .len    = 32,
10587         }, {
10588                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
10589                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
10590                           "\x22\x22\x22\x22\x22\x22\x22\x22",
10591                 .klen   = 24,
10592                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
10593                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10594                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
10595                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10596                           "\x44\x44\x44\x44\x44\x44\x44\x44"
10597                           "\x44\x44\x44\x44\x44\x44\x44\x44",
10598                 .ctext  = "\x15\x1b\xe4\x2c\xa2\x5a\x2d\x2c"
10599                           "\x27\x36\xc0\xbf\x5d\xea\x36\x37"
10600                           "\x2d\x1a\x88\xbc\x66\xb5\xd0\x0b"
10601                           "\xa1\xbc\x19\xb2\x0f\x3b\x75\x34",
10602                 .len    = 32,
10603         }, {
10604                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
10605                           "\x23\x53\x60\x28\x74\x71\x35\x26"
10606                           "\x31\x41\x59\x26\x53\x58\x97\x93",
10607                 .klen   = 24,
10608                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
10609                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10610                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
10611                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10612                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10613                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10614                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10615                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10616                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10617                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10618                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10619                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10620                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10621                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10622                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10623                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10624                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10625                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10626                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10627                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10628                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10629                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10630                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10631                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10632                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10633                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10634                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10635                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10636                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10637                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10638                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10639                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10640                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10641                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10642                           "\x00\x01\x02\x03\x04\x05\x06\x07"
10643                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10644                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10645                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10646                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10647                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10648                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10649                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10650                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10651                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10652                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10653                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10654                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10655                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10656                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10657                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10658                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10659                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10660                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10661                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10662                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10663                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10664                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10665                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10666                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10667                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10668                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10669                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10670                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10671                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10672                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10673                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10674                 .ctext  = "\xaf\xa1\x81\xa6\x32\xbb\x15\x8e"
10675                           "\xf8\x95\x2e\xd3\xe6\xee\x7e\x09"
10676                           "\x0c\x1a\xf5\x02\x97\x8b\xe3\xb3"
10677                           "\x11\xc7\x39\x96\xd0\x95\xf4\x56"
10678                           "\xf4\xdd\x03\x38\x01\x44\x2c\xcf"
10679                           "\x88\xae\x8e\x3c\xcd\xe7\xaa\x66"
10680                           "\xfe\x3d\xc6\xfb\x01\x23\x51\x43"
10681                           "\xd5\xd2\x13\x86\x94\x34\xe9\x62"
10682                           "\xf9\x89\xe3\xd1\x7b\xbe\xf8\xef"
10683                           "\x76\x35\x04\x3f\xdb\x23\x9d\x0b"
10684                           "\x85\x42\xb9\x02\xd6\xcc\xdb\x96"
10685                           "\xa7\x6b\x27\xb6\xd4\x45\x8f\x7d"
10686                           "\xae\xd2\x04\xd5\xda\xc1\x7e\x24"
10687                           "\x8c\x73\xbe\x48\x7e\xcf\x65\x28"
10688                           "\x29\xe5\xbe\x54\x30\xcb\x46\x95"
10689                           "\x4f\x2e\x8a\x36\xc8\x27\xc5\xbe"
10690                           "\xd0\x1a\xaf\xab\x26\xcd\x9e\x69"
10691                           "\xa1\x09\x95\x71\x26\xe9\xc4\xdf"
10692                           "\xe6\x31\xc3\x46\xda\xaf\x0b\x41"
10693                           "\x1f\xab\xb1\x8e\xd6\xfc\x0b\xb3"
10694                           "\x82\xc0\x37\x27\xfc\x91\xa7\x05"
10695                           "\xfb\xc5\xdc\x2b\x74\x96\x48\x43"
10696                           "\x5d\x9c\x19\x0f\x60\x63\x3a\x1f"
10697                           "\x6f\xf0\x03\xbe\x4d\xfd\xc8\x4a"
10698                           "\xc6\xa4\x81\x6d\xc3\x12\x2a\x5c"
10699                           "\x07\xff\xf3\x72\x74\x48\xb5\x40"
10700                           "\x50\xb5\xdd\x90\x43\x31\x18\x15"
10701                           "\x7b\xf2\xa6\xdb\x83\xc8\x4b\x4a"
10702                           "\x29\x93\x90\x8b\xda\x07\xf0\x35"
10703                           "\x6d\x90\x88\x09\x4e\x83\xf5\x5b"
10704                           "\x94\x12\xbb\x33\x27\x1d\x3f\x23"
10705                           "\x51\xa8\x7c\x07\xa2\xae\x77\xa6"
10706                           "\x50\xfd\xcc\xc0\x4f\x80\x7a\x9f"
10707                           "\x66\xdd\xcd\x75\x24\x8b\x33\xf7"
10708                           "\x20\xdb\x83\x9b\x4f\x11\x63\x6e"
10709                           "\xcf\x37\xef\xc9\x11\x01\x5c\x45"
10710                           "\x32\x99\x7c\x3c\x9e\x42\x89\xe3"
10711                           "\x70\x6d\x15\x9f\xb1\xe6\xb6\x05"
10712                           "\xfe\x0c\xb9\x49\x2d\x90\x6d\xcc"
10713                           "\x5d\x3f\xc1\xfe\x89\x0a\x2e\x2d"
10714                           "\xa0\xa8\x89\x3b\x73\x39\xa5\x94"
10715                           "\x4c\xa4\xa6\xbb\xa7\x14\x46\x89"
10716                           "\x10\xff\xaf\xef\xca\xdd\x4f\x80"
10717                           "\xb3\xdf\x3b\xab\xd4\xe5\x5a\xc7"
10718                           "\x33\xca\x00\x8b\x8b\x3f\xea\xec"
10719                           "\x68\x8a\xc2\x6d\xfd\xd4\x67\x0f"
10720                           "\x22\x31\xe1\x0e\xfe\x5a\x04\xd5"
10721                           "\x64\xa3\xf1\x1a\x76\x28\xcc\x35"
10722                           "\x36\xa7\x0a\x74\xf7\x1c\x44\x9b"
10723                           "\xc7\x1b\x53\x17\x02\xea\xd1\xad"
10724                           "\x13\x51\x73\xc0\xa0\xb2\x05\x32"
10725                           "\xa8\xa2\x37\x2e\xe1\x7a\x3a\x19"
10726                           "\x26\xb4\x6c\x62\x5d\xb3\x1a\x1d"
10727                           "\x59\xda\xee\x1a\x22\x18\xda\x0d"
10728                           "\x88\x0f\x55\x8b\x72\x62\xfd\xc1"
10729                           "\x69\x13\xcd\x0d\x5f\xc1\x09\x52"
10730                           "\xee\xd6\xe3\x84\x4d\xee\xf6\x88"
10731                           "\xaf\x83\xdc\x76\xf4\xc0\x93\x3f"
10732                           "\x4a\x75\x2f\xb0\x0b\x3e\xc4\x54"
10733                           "\x7d\x69\x8d\x00\x62\x77\x0d\x14"
10734                           "\xbe\x7c\xa6\x7d\xc5\x24\x4f\xf3"
10735                           "\x50\xf7\x5f\xf4\xc2\xca\x41\x97"
10736                           "\x37\xbe\x75\x74\xcd\xf0\x75\x6e"
10737                           "\x25\x23\x94\xbd\xda\x8d\xb0\xd4",
10738                 .len    = 512,
10739         }, {
10740                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
10741                           "\x23\x53\x60\x28\x74\x71\x35\x26"
10742                           "\x62\x49\x77\x57\x24\x70\x93\x69"
10743                           "\x99\x59\x57\x49\x66\x96\x76\x27",
10744                 .klen   = 32,
10745                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
10746                           "\x00\x00\x00\x00\x00\x00\x00\x00",
10747                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
10748                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10749                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10750                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10751                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10752                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10753                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10754                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10755                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10756                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10757                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10758                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10759                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10760                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10761                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10762                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10763                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10764                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10765                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10766                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10767                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10768                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10769                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10770                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10771                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10772                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10773                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10774                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10775                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10776                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10777                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10778                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10779                           "\x00\x01\x02\x03\x04\x05\x06\x07"
10780                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10781                           "\x10\x11\x12\x13\x14\x15\x16\x17"
10782                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10783                           "\x20\x21\x22\x23\x24\x25\x26\x27"
10784                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10785                           "\x30\x31\x32\x33\x34\x35\x36\x37"
10786                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10787                           "\x40\x41\x42\x43\x44\x45\x46\x47"
10788                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10789                           "\x50\x51\x52\x53\x54\x55\x56\x57"
10790                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10791                           "\x60\x61\x62\x63\x64\x65\x66\x67"
10792                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10793                           "\x70\x71\x72\x73\x74\x75\x76\x77"
10794                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10795                           "\x80\x81\x82\x83\x84\x85\x86\x87"
10796                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10797                           "\x90\x91\x92\x93\x94\x95\x96\x97"
10798                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10799                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10800                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10801                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10802                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10803                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10804                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10805                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10806                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10807                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10808                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10809                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10810                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10811                 .ctext  = "\x55\xed\x71\xd3\x02\x8e\x15\x3b"
10812                           "\xc6\x71\x29\x2d\x3e\x89\x9f\x59"
10813                           "\x68\x6a\xcc\x8a\x56\x97\xf3\x95"
10814                           "\x4e\x51\x08\xda\x2a\xf8\x6f\x3c"
10815                           "\x78\x16\xea\x80\xdb\x33\x75\x94"
10816                           "\xf9\x29\xc4\x2b\x76\x75\x97\xc7"
10817                           "\xf2\x98\x2c\xf9\xff\xc8\xd5\x2b"
10818                           "\x18\xf1\xaf\xcf\x7c\xc5\x0b\xee"
10819                           "\xad\x3c\x76\x7c\xe6\x27\xa2\x2a"
10820                           "\xe4\x66\xe1\xab\xa2\x39\xfc\x7c"
10821                           "\xf5\xec\x32\x74\xa3\xb8\x03\x88"
10822                           "\x52\xfc\x2e\x56\x3f\xa1\xf0\x9f"
10823                           "\x84\x5e\x46\xed\x20\x89\xb6\x44"
10824                           "\x8d\xd0\xed\x54\x47\x16\xbe\x95"
10825                           "\x8a\xb3\x6b\x72\xc4\x32\x52\x13"
10826                           "\x1b\xb0\x82\xbe\xac\xf9\x70\xa6"
10827                           "\x44\x18\xdd\x8c\x6e\xca\x6e\x45"
10828                           "\x8f\x1e\x10\x07\x57\x25\x98\x7b"
10829                           "\x17\x8c\x78\xdd\x80\xa7\xd9\xd8"
10830                           "\x63\xaf\xb9\x67\x57\xfd\xbc\xdb"
10831                           "\x44\xe9\xc5\x65\xd1\xc7\x3b\xff"
10832                           "\x20\xa0\x80\x1a\xc3\x9a\xad\x5e"
10833                           "\x5d\x3b\xd3\x07\xd9\xf5\xfd\x3d"
10834                           "\x4a\x8b\xa8\xd2\x6e\x7a\x51\x65"
10835                           "\x6c\x8e\x95\xe0\x45\xc9\x5f\x4a"
10836                           "\x09\x3c\x3d\x71\x7f\x0c\x84\x2a"
10837                           "\xc8\x48\x52\x1a\xc2\xd5\xd6\x78"
10838                           "\x92\x1e\xa0\x90\x2e\xea\xf0\xf3"
10839                           "\xdc\x0f\xb1\xaf\x0d\x9b\x06\x2e"
10840                           "\x35\x10\x30\x82\x0d\xe7\xc5\x9b"
10841                           "\xde\x44\x18\xbd\x9f\xd1\x45\xa9"
10842                           "\x7b\x7a\x4a\xad\x35\x65\x27\xca"
10843                           "\xb2\xc3\xd4\x9b\x71\x86\x70\xee"
10844                           "\xf1\x89\x3b\x85\x4b\x5b\xaa\xaf"
10845                           "\xfc\x42\xc8\x31\x59\xbe\x16\x60"
10846                           "\x4f\xf9\xfa\x12\xea\xd0\xa7\x14"
10847                           "\xf0\x7a\xf3\xd5\x8d\xbd\x81\xef"
10848                           "\x52\x7f\x29\x51\x94\x20\x67\x3c"
10849                           "\xd1\xaf\x77\x9f\x22\x5a\x4e\x63"
10850                           "\xe7\xff\x73\x25\xd1\xdd\x96\x8a"
10851                           "\x98\x52\x6d\xf3\xac\x3e\xf2\x18"
10852                           "\x6d\xf6\x0a\x29\xa6\x34\x3d\xed"
10853                           "\xe3\x27\x0d\x9d\x0a\x02\x44\x7e"
10854                           "\x5a\x7e\x67\x0f\x0a\x9e\xd6\xad"
10855                           "\x91\xe6\x4d\x81\x8c\x5c\x59\xaa"
10856                           "\xfb\xeb\x56\x53\xd2\x7d\x4c\x81"
10857                           "\x65\x53\x0f\x41\x11\xbd\x98\x99"
10858                           "\xf9\xc6\xfa\x51\x2e\xa3\xdd\x8d"
10859                           "\x84\x98\xf9\x34\xed\x33\x2a\x1f"
10860                           "\x82\xed\xc1\x73\x98\xd3\x02\xdc"
10861                           "\xe6\xc2\x33\x1d\xa2\xb4\xca\x76"
10862                           "\x63\x51\x34\x9d\x96\x12\xae\xce"
10863                           "\x83\xc9\x76\x5e\xa4\x1b\x53\x37"
10864                           "\x17\xd5\xc0\x80\x1d\x62\xf8\x3d"
10865                           "\x54\x27\x74\xbb\x10\x86\x57\x46"
10866                           "\x68\xe1\xed\x14\xe7\x9d\xfc\x84"
10867                           "\x47\xbc\xc2\xf8\x19\x4b\x99\xcf"
10868                           "\x7a\xe9\xc4\xb8\x8c\x82\x72\x4d"
10869                           "\x7b\x4f\x38\x55\x36\x71\x64\xc1"
10870                           "\xfc\x5c\x75\x52\x33\x02\x18\xf8"
10871                           "\x17\xe1\x2b\xc2\x43\x39\xbd\x76"
10872                           "\x9b\x63\x76\x32\x2f\x19\x72\x10"
10873                           "\x9f\x21\x0c\xf1\x66\x50\x7f\xa5"
10874                           "\x0d\x1f\x46\xe0\xba\xd3\x2f\x3c",
10875                 .len    = 512,
10876                 .also_non_np = 1,
10877                 .np     = 3,
10878                 .tap    = { 512 - 20, 4, 16 },
10879         }
10880 };
10881
10882 /* Cast6 test vectors from RFC 2612 */
10883 static const struct cipher_testvec cast6_tv_template[] = {
10884         {
10885                 .key    = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
10886                           "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
10887                 .klen   = 16,
10888                 .ptext  = zeroed_string,
10889                 .ctext  = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
10890                           "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
10891                 .len    = 16,
10892         }, {
10893                 .key    = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
10894                           "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
10895                           "\xba\xc7\x7a\x77\x17\x94\x28\x63",
10896                 .klen   = 24,
10897                 .ptext  = zeroed_string,
10898                 .ctext  = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
10899                           "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
10900                 .len    = 16,
10901         }, {
10902                 .key    = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
10903                           "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
10904                           "\x8d\x7c\x47\xce\x26\x49\x08\x46"
10905                           "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
10906                 .klen   = 32,
10907                 .ptext  = zeroed_string,
10908                 .ctext  = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
10909                           "\xc9\x87\x01\x36\x55\x33\x17\xfa",
10910                 .len    = 16,
10911         }, { /* Generated from TF test vectors */
10912                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10913                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10914                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10915                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10916                 .klen   = 32,
10917                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10918                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
10919                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10920                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10921                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10922                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10923                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10924                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10925                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10926                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10927                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10928                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10929                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10930                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10931                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10932                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10933                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10934                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10935                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10936                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10937                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10938                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10939                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10940                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10941                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10942                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10943                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10944                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10945                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10946                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10947                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10948                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10949                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10950                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10951                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10952                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10953                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10954                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10955                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10956                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10957                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10958                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10959                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10960                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10961                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10962                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10963                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10964                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10965                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10966                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10967                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10968                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10969                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10970                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10971                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10972                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10973                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10974                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10975                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10976                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10977                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10978                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10979                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10980                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
10981                 .ctext  = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
10982                           "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
10983                           "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
10984                           "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
10985                           "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
10986                           "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
10987                           "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
10988                           "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
10989                           "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
10990                           "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
10991                           "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
10992                           "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
10993                           "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
10994                           "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
10995                           "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
10996                           "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
10997                           "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
10998                           "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
10999                           "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
11000                           "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
11001                           "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
11002                           "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
11003                           "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
11004                           "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
11005                           "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
11006                           "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
11007                           "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
11008                           "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
11009                           "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
11010                           "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
11011                           "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
11012                           "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
11013                           "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
11014                           "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
11015                           "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
11016                           "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
11017                           "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
11018                           "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
11019                           "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
11020                           "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
11021                           "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
11022                           "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
11023                           "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
11024                           "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
11025                           "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
11026                           "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
11027                           "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
11028                           "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
11029                           "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
11030                           "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
11031                           "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
11032                           "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
11033                           "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
11034                           "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
11035                           "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
11036                           "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
11037                           "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
11038                           "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
11039                           "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
11040                           "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
11041                           "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
11042                           "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
11043                 .len    = 496,
11044                 .also_non_np = 1,
11045                 .np     = 3,
11046                 .tap    = { 496 - 20, 4, 16 },
11047         },
11048 };
11049
11050 static const struct cipher_testvec cast6_cbc_tv_template[] = {
11051         { /* Generated from TF test vectors */
11052                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11053                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11054                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11055                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11056                 .klen   = 32,
11057                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11058                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11059                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11060                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11061                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11062                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11063                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11064                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11065                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11066                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11067                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11068                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11069                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11070                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11071                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11072                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11073                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11074                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11075                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11076                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11077                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11078                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11079                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11080                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11081                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11082                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11083                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11084                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11085                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11086                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11087                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11088                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11089                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11090                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11091                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11092                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11093                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11094                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11095                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11096                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11097                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11098                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11099                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11100                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11101                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11102                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11103                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11104                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11105                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11106                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11107                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11108                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11109                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11110                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11111                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11112                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11113                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11114                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11115                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11116                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11117                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11118                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11119                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11120                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11121                 .ctext  = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
11122                           "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
11123                           "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
11124                           "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
11125                           "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
11126                           "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
11127                           "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
11128                           "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
11129                           "\x57\x95\xE1\x21\x26\x10\x9A\x21"
11130                           "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
11131                           "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
11132                           "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
11133                           "\x23\x16\x47\x72\x81\x13\x3A\x72"
11134                           "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
11135                           "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
11136                           "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
11137                           "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
11138                           "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
11139                           "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
11140                           "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
11141                           "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
11142                           "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
11143                           "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
11144                           "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
11145                           "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
11146                           "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
11147                           "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
11148                           "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
11149                           "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
11150                           "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
11151                           "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
11152                           "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
11153                           "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
11154                           "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
11155                           "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
11156                           "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
11157                           "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
11158                           "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
11159                           "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
11160                           "\x73\x3F\x12\x91\x47\x54\xBA\x39"
11161                           "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
11162                           "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
11163                           "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
11164                           "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
11165                           "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
11166                           "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
11167                           "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
11168                           "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
11169                           "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
11170                           "\x80\x21\x83\x58\x3C\x76\xFD\x28"
11171                           "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
11172                           "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
11173                           "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
11174                           "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
11175                           "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
11176                           "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
11177                           "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
11178                           "\x56\x4D\x82\x62\x37\xA3\x48\x01"
11179                           "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
11180                           "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
11181                           "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
11182                           "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
11183                 .len    = 496,
11184                 .also_non_np = 1,
11185                 .np     = 3,
11186                 .tap    = { 496 - 20, 4, 16 },
11187         },
11188 };
11189
11190 static const struct cipher_testvec cast6_ctr_tv_template[] = {
11191         { /* Generated from TF test vectors */
11192                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11193                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11194                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11195                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11196                 .klen   = 32,
11197                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11198                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11199                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11200                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11201                           "\x3A",
11202                 .ctext  = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
11203                           "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
11204                           "\x57",
11205                 .len    = 17,
11206         }, { /* Generated from TF test vectors */
11207                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11208                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11209                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11210                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11211                 .klen   = 32,
11212                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11213                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11214                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11215                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11216                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11217                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11218                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11219                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11220                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11221                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11222                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11223                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11224                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11225                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11226                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11227                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11228                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11229                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11230                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11231                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11232                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11233                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11234                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11235                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11236                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11237                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11238                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11239                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11240                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11241                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11242                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11243                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11244                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11245                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11246                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11247                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11248                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11249                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11250                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11251                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11252                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11253                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11254                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11255                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11256                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11257                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11258                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11259                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11260                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11261                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11262                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11263                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11264                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11265                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11266                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11267                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11268                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11269                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11270                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11271                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11272                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11273                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11274                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11275                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11276                 .ctext  = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
11277                           "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
11278                           "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
11279                           "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
11280                           "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
11281                           "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
11282                           "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
11283                           "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
11284                           "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
11285                           "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
11286                           "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
11287                           "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
11288                           "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
11289                           "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
11290                           "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
11291                           "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
11292                           "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
11293                           "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
11294                           "\x49\x61\x22\x52\x64\x8C\x46\x41"
11295                           "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
11296                           "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
11297                           "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
11298                           "\x00\x14\x15\x59\xC1\x30\x64\xAF"
11299                           "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
11300                           "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
11301                           "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
11302                           "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
11303                           "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
11304                           "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
11305                           "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
11306                           "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
11307                           "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
11308                           "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
11309                           "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
11310                           "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
11311                           "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
11312                           "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
11313                           "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
11314                           "\x60\x40\x38\x90\x20\x46\xC7\xB3"
11315                           "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
11316                           "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
11317                           "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
11318                           "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
11319                           "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
11320                           "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
11321                           "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
11322                           "\x73\xFC\x91\xAB\x79\x41\x23\x14"
11323                           "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
11324                           "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
11325                           "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
11326                           "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
11327                           "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
11328                           "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
11329                           "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
11330                           "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
11331                           "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
11332                           "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
11333                           "\x19\x35\x88\x22\x45\x59\x0E\x8F"
11334                           "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
11335                           "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
11336                           "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
11337                           "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
11338                 .len    = 496,
11339                 .also_non_np = 1,
11340                 .np     = 3,
11341                 .tap    = { 496 - 20, 4, 16 },
11342         },
11343 };
11344
11345 static const struct cipher_testvec cast6_lrw_tv_template[] = {
11346         { /* Generated from TF test vectors */
11347                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
11348                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
11349                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
11350                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
11351                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
11352                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
11353                 .klen   = 48,
11354                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
11355                           "\x00\x00\x00\x00\x00\x00\x00\x01",
11356                 .ptext  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
11357                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
11358                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
11359                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
11360                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
11361                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
11362                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
11363                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
11364                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
11365                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
11366                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
11367                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
11368                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
11369                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
11370                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
11371                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
11372                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
11373                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
11374                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
11375                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
11376                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
11377                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
11378                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
11379                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
11380                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
11381                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
11382                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
11383                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
11384                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
11385                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
11386                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
11387                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
11388                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
11389                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
11390                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
11391                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
11392                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
11393                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
11394                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
11395                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
11396                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
11397                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
11398                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
11399                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
11400                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
11401                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
11402                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
11403                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
11404                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
11405                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
11406                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
11407                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
11408                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
11409                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
11410                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
11411                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
11412                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
11413                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
11414                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
11415                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
11416                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
11417                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
11418                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
11419                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
11420                 .ctext  = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
11421                           "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
11422                           "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
11423                           "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
11424                           "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
11425                           "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
11426                           "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
11427                           "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
11428                           "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
11429                           "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
11430                           "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
11431                           "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
11432                           "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
11433                           "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
11434                           "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
11435                           "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
11436                           "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
11437                           "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
11438                           "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
11439                           "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
11440                           "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
11441                           "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
11442                           "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
11443                           "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
11444                           "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
11445                           "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
11446                           "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
11447                           "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
11448                           "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
11449                           "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
11450                           "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
11451                           "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
11452                           "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
11453                           "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
11454                           "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
11455                           "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
11456                           "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
11457                           "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
11458                           "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
11459                           "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
11460                           "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
11461                           "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
11462                           "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
11463                           "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
11464                           "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
11465                           "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
11466                           "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
11467                           "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
11468                           "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
11469                           "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
11470                           "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
11471                           "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
11472                           "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
11473                           "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
11474                           "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
11475                           "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
11476                           "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
11477                           "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
11478                           "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
11479                           "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
11480                           "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
11481                           "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
11482                           "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
11483                           "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
11484                 .len    = 512,
11485                 .also_non_np = 1,
11486                 .np     = 3,
11487                 .tap    = { 512 - 20, 4, 16 },
11488         },
11489 };
11490
11491 static const struct cipher_testvec cast6_xts_tv_template[] = {
11492         { /* Generated from TF test vectors */
11493                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
11494                           "\x23\x53\x60\x28\x74\x71\x35\x26"
11495                           "\x62\x49\x77\x57\x24\x70\x93\x69"
11496                           "\x99\x59\x57\x49\x66\x96\x76\x27"
11497                           "\x31\x41\x59\x26\x53\x58\x97\x93"
11498                           "\x23\x84\x62\x64\x33\x83\x27\x95"
11499                           "\x02\x88\x41\x97\x16\x93\x99\x37"
11500                           "\x51\x05\x82\x09\x74\x94\x45\x92",
11501                 .klen   = 64,
11502                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
11503                           "\x00\x00\x00\x00\x00\x00\x00\x00",
11504                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
11505                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11506                           "\x10\x11\x12\x13\x14\x15\x16\x17"
11507                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11508                           "\x20\x21\x22\x23\x24\x25\x26\x27"
11509                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11510                           "\x30\x31\x32\x33\x34\x35\x36\x37"
11511                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11512                           "\x40\x41\x42\x43\x44\x45\x46\x47"
11513                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11514                           "\x50\x51\x52\x53\x54\x55\x56\x57"
11515                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11516                           "\x60\x61\x62\x63\x64\x65\x66\x67"
11517                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11518                           "\x70\x71\x72\x73\x74\x75\x76\x77"
11519                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11520                           "\x80\x81\x82\x83\x84\x85\x86\x87"
11521                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11522                           "\x90\x91\x92\x93\x94\x95\x96\x97"
11523                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11524                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11525                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11526                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11527                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11528                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11529                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11530                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11531                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11532                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11533                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11534                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11535                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
11536                           "\x00\x01\x02\x03\x04\x05\x06\x07"
11537                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11538                           "\x10\x11\x12\x13\x14\x15\x16\x17"
11539                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11540                           "\x20\x21\x22\x23\x24\x25\x26\x27"
11541                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11542                           "\x30\x31\x32\x33\x34\x35\x36\x37"
11543                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11544                           "\x40\x41\x42\x43\x44\x45\x46\x47"
11545                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11546                           "\x50\x51\x52\x53\x54\x55\x56\x57"
11547                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11548                           "\x60\x61\x62\x63\x64\x65\x66\x67"
11549                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11550                           "\x70\x71\x72\x73\x74\x75\x76\x77"
11551                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11552                           "\x80\x81\x82\x83\x84\x85\x86\x87"
11553                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11554                           "\x90\x91\x92\x93\x94\x95\x96\x97"
11555                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11556                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11557                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11558                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11559                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11560                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11561                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11562                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11563                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11564                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11565                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11566                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11567                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
11568                 .ctext  = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
11569                           "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
11570                           "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
11571                           "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
11572                           "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
11573                           "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
11574                           "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
11575                           "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
11576                           "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
11577                           "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
11578                           "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
11579                           "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
11580                           "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
11581                           "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
11582                           "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
11583                           "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
11584                           "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
11585                           "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
11586                           "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
11587                           "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
11588                           "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
11589                           "\x71\x38\x17\x91\x44\xE8\xFC\x65"
11590                           "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
11591                           "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
11592                           "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
11593                           "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
11594                           "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
11595                           "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
11596                           "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
11597                           "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
11598                           "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
11599                           "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
11600                           "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
11601                           "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
11602                           "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
11603                           "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
11604                           "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
11605                           "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
11606                           "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
11607                           "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
11608                           "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
11609                           "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
11610                           "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
11611                           "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
11612                           "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
11613                           "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
11614                           "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
11615                           "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
11616                           "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
11617                           "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
11618                           "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
11619                           "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
11620                           "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
11621                           "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
11622                           "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
11623                           "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
11624                           "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
11625                           "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
11626                           "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
11627                           "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
11628                           "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
11629                           "\x45\x72\x80\x17\x81\xBD\x9D\x62"
11630                           "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
11631                           "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
11632                 .len    = 512,
11633                 .also_non_np = 1,
11634                 .np     = 3,
11635                 .tap    = { 512 - 20, 4, 16 },
11636         },
11637 };
11638
11639 /*
11640  * AES test vectors.
11641  */
11642 static const struct cipher_testvec aes_tv_template[] = {
11643         { /* From FIPS-197 */
11644                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
11645                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11646                 .klen   = 16,
11647                 .ptext  = "\x00\x11\x22\x33\x44\x55\x66\x77"
11648                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
11649                 .ctext  = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
11650                           "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
11651                 .len    = 16,
11652         }, {
11653                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
11654                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11655                           "\x10\x11\x12\x13\x14\x15\x16\x17",
11656                 .klen   = 24,
11657                 .ptext  = "\x00\x11\x22\x33\x44\x55\x66\x77"
11658                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
11659                 .ctext  = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
11660                           "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
11661                 .len    = 16,
11662         }, {
11663                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
11664                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11665                           "\x10\x11\x12\x13\x14\x15\x16\x17"
11666                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
11667                 .klen   = 32,
11668                 .ptext  = "\x00\x11\x22\x33\x44\x55\x66\x77"
11669                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
11670                 .ctext  = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
11671                           "\xea\xfc\x49\x90\x4b\x49\x60\x89",
11672                 .len    = 16,
11673         }, { /* Generated with Crypto++ */
11674                 .key    = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
11675                           "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
11676                           "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
11677                           "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
11678                 .klen   = 32,
11679                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
11680                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
11681                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
11682                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
11683                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
11684                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
11685                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
11686                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
11687                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
11688                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
11689                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
11690                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
11691                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
11692                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
11693                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
11694                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
11695                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
11696                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
11697                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
11698                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
11699                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
11700                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
11701                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
11702                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
11703                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
11704                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
11705                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
11706                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
11707                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
11708                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
11709                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
11710                           "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
11711                           "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
11712                           "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
11713                           "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
11714                           "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
11715                           "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
11716                           "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
11717                           "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
11718                           "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
11719                           "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
11720                           "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
11721                           "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
11722                           "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
11723                           "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
11724                           "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
11725                           "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
11726                           "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
11727                           "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
11728                           "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
11729                           "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
11730                           "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
11731                           "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
11732                           "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
11733                           "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
11734                           "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
11735                           "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
11736                           "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
11737                           "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
11738                           "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
11739                           "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
11740                           "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
11741                 .ctext  = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
11742                           "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
11743                           "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
11744                           "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
11745                           "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
11746                           "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
11747                           "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
11748                           "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
11749                           "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
11750                           "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
11751                           "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
11752                           "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
11753                           "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
11754                           "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
11755                           "\x41\x72\x51\x97\x1D\x07\x49\xA0"
11756                           "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
11757                           "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
11758                           "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
11759                           "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
11760                           "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
11761                           "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
11762                           "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
11763                           "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
11764                           "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
11765                           "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
11766                           "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
11767                           "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
11768                           "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
11769                           "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
11770                           "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
11771                           "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
11772                           "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
11773                           "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
11774                           "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
11775                           "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
11776                           "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
11777                           "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
11778                           "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
11779                           "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
11780                           "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
11781                           "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
11782                           "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
11783                           "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
11784                           "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
11785                           "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
11786                           "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
11787                           "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
11788                           "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
11789                           "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
11790                           "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
11791                           "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
11792                           "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
11793                           "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
11794                           "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
11795                           "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
11796                           "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
11797                           "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
11798                           "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
11799                           "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
11800                           "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
11801                           "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
11802                           "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
11803                 .len    = 496,
11804                 .also_non_np = 1,
11805                 .np     = 3,
11806                 .tap    = { 496 - 20, 4, 16 },
11807         },
11808 };
11809
11810 static const struct cipher_testvec aes_cbc_tv_template[] = {
11811         { /* From RFC 3602 */
11812                 .key    = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
11813                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
11814                 .klen   = 16,
11815                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
11816                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
11817                 .ptext  = "Single block msg",
11818                 .ctext  = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
11819                           "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
11820                 .len    = 16,
11821                 .also_non_np = 1,
11822                 .np     = 8,
11823                 .tap    = { 3, 2, 3, 2, 3, 1, 1, 1 },
11824         }, {
11825                 .key    = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
11826                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
11827                 .klen   = 16,
11828                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
11829                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
11830                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
11831                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11832                           "\x10\x11\x12\x13\x14\x15\x16\x17"
11833                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
11834                 .ctext  = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
11835                           "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
11836                           "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
11837                           "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
11838                 .len    = 32,
11839         }, { /* From NIST SP800-38A */
11840                 .key    = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
11841                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
11842                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
11843                 .klen   = 24,
11844                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
11845                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11846                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
11847                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
11848                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
11849                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
11850                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
11851                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
11852                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
11853                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
11854                 .ctext  = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
11855                           "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
11856                           "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
11857                           "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
11858                           "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
11859                           "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
11860                           "\x08\xb0\xe2\x79\x88\x59\x88\x81"
11861                           "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
11862                 .len    = 64,
11863         }, {
11864                 .key    = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
11865                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
11866                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
11867                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
11868                 .klen   = 32,
11869                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
11870                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11871                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
11872                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
11873                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
11874                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
11875                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
11876                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
11877                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
11878                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
11879                 .ctext  = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
11880                           "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
11881                           "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
11882                           "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
11883                           "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
11884                           "\xa5\x30\xe2\x63\x04\x23\x14\x61"
11885                           "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
11886                           "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
11887                 .len    = 64,
11888         }, { /* Generated with Crypto++ */
11889                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
11890                           "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
11891                           "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
11892                           "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
11893                 .klen   = 32,
11894                 .iv     = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
11895                           "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
11896                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
11897                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
11898                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
11899                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
11900                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
11901                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
11902                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
11903                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
11904                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
11905                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
11906                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
11907                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
11908                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
11909                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
11910                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
11911                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
11912                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
11913                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
11914                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
11915                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
11916                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
11917                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
11918                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
11919                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
11920                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
11921                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
11922                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
11923                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
11924                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
11925                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
11926                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
11927                           "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
11928                           "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
11929                           "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
11930                           "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
11931                           "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
11932                           "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
11933                           "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
11934                           "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
11935                           "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
11936                           "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
11937                           "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
11938                           "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
11939                           "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
11940                           "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
11941                           "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
11942                           "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
11943                           "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
11944                           "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
11945                           "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
11946                           "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
11947                           "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
11948                           "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
11949                           "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
11950                           "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
11951                           "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
11952                           "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
11953                           "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
11954                           "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
11955                           "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
11956                           "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
11957                           "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
11958                 .ctext  = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
11959                           "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
11960                           "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
11961                           "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
11962                           "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
11963                           "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
11964                           "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
11965                           "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
11966                           "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
11967                           "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
11968                           "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
11969                           "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
11970                           "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
11971                           "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
11972                           "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
11973                           "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
11974                           "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
11975                           "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
11976                           "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
11977                           "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
11978                           "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
11979                           "\x16\x24\x02\x07\x48\xAE\xF2\x31"
11980                           "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
11981                           "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
11982                           "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
11983                           "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
11984                           "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
11985                           "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
11986                           "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
11987                           "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
11988                           "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
11989                           "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
11990                           "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
11991                           "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
11992                           "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
11993                           "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
11994                           "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
11995                           "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
11996                           "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
11997                           "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
11998                           "\x22\x39\x7B\x16\x03\x01\x69\xAF"
11999                           "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
12000                           "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
12001                           "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
12002                           "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
12003                           "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
12004                           "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
12005                           "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
12006                           "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
12007                           "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
12008                           "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
12009                           "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
12010                           "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
12011                           "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
12012                           "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
12013                           "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
12014                           "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
12015                           "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
12016                           "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
12017                           "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
12018                           "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
12019                           "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
12020                 .len    = 496,
12021                 .also_non_np = 1,
12022                 .np     = 3,
12023                 .tap    = { 496 - 20, 4, 16 },
12024         },
12025 };
12026
12027 static const struct aead_testvec hmac_md5_ecb_cipher_null_enc_tv_template[] = {
12028         { /* Input data from RFC 2410 Case 1 */
12029 #ifdef __LITTLE_ENDIAN
12030                 .key    = "\x08\x00"            /* rta length */
12031                           "\x01\x00"            /* rta type */
12032 #else
12033                 .key    = "\x00\x08"            /* rta length */
12034                           "\x00\x01"            /* rta type */
12035 #endif
12036                           "\x00\x00\x00\x00"    /* enc key length */
12037                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12038                           "\x00\x00\x00\x00\x00\x00\x00\x00",
12039                 .klen   = 8 + 16 + 0,
12040                 .iv     = "",
12041                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
12042                 .ilen   = 8,
12043                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
12044                           "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
12045                           "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
12046                 .rlen   = 8 + 16,
12047         }, { /* Input data from RFC 2410 Case 2 */
12048 #ifdef __LITTLE_ENDIAN
12049                 .key    = "\x08\x00"            /* rta length */
12050                           "\x01\x00"            /* rta type */
12051 #else
12052                 .key    = "\x00\x08"            /* rta length */
12053                           "\x00\x01"            /* rta type */
12054 #endif
12055                           "\x00\x00\x00\x00"    /* enc key length */
12056                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12057                           "\x00\x00\x00\x00\x00\x00\x00\x00",
12058                 .klen   = 8 + 16 + 0,
12059                 .iv     = "",
12060                 .input  = "Network Security People Have A Strange Sense Of Humor",
12061                 .ilen   = 53,
12062                 .result = "Network Security People Have A Strange Sense Of Humor"
12063                           "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
12064                           "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
12065                 .rlen   = 53 + 16,
12066         },
12067 };
12068
12069 static const struct aead_testvec hmac_md5_ecb_cipher_null_dec_tv_template[] = {
12070         {
12071 #ifdef __LITTLE_ENDIAN
12072                 .key    = "\x08\x00"            /* rta length */
12073                           "\x01\x00"            /* rta type */
12074 #else
12075                 .key    = "\x00\x08"            /* rta length */
12076                           "\x00\x01"            /* rta type */
12077 #endif
12078                           "\x00\x00\x00\x00"    /* enc key length */
12079                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12080                           "\x00\x00\x00\x00\x00\x00\x00\x00",
12081                 .klen   = 8 + 16 + 0,
12082                 .iv     = "",
12083                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef"
12084                           "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
12085                           "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
12086                 .ilen   = 8 + 16,
12087                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
12088                 .rlen   = 8,
12089         }, {
12090 #ifdef __LITTLE_ENDIAN
12091                 .key    = "\x08\x00"            /* rta length */
12092                           "\x01\x00"            /* rta type */
12093 #else
12094                 .key    = "\x00\x08"            /* rta length */
12095                           "\x00\x01"            /* rta type */
12096 #endif
12097                           "\x00\x00\x00\x00"    /* enc key length */
12098                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12099                           "\x00\x00\x00\x00\x00\x00\x00\x00",
12100                 .klen   = 8 + 16 + 0,
12101                 .iv     = "",
12102                 .input  = "Network Security People Have A Strange Sense Of Humor"
12103                           "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
12104                           "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
12105                 .ilen   = 53 + 16,
12106                 .result = "Network Security People Have A Strange Sense Of Humor",
12107                 .rlen   = 53,
12108         },
12109 };
12110
12111 static const struct aead_testvec hmac_sha1_aes_cbc_enc_tv_temp[] = {
12112         { /* RFC 3602 Case 1 */
12113 #ifdef __LITTLE_ENDIAN
12114                 .key    = "\x08\x00"            /* rta length */
12115                           "\x01\x00"            /* rta type */
12116 #else
12117                 .key    = "\x00\x08"            /* rta length */
12118                           "\x00\x01"            /* rta type */
12119 #endif
12120                           "\x00\x00\x00\x10"    /* enc key length */
12121                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12122                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12123                           "\x00\x00\x00\x00"
12124                           "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
12125                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
12126                 .klen   = 8 + 20 + 16,
12127                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
12128                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
12129                 .assoc  = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
12130                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
12131                 .alen   = 16,
12132                 .input  = "Single block msg",
12133                 .ilen   = 16,
12134                 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
12135                           "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
12136                           "\x1b\x13\xcb\xaf\x89\x5e\xe1\x2c"
12137                           "\x13\xc5\x2e\xa3\xcc\xed\xdc\xb5"
12138                           "\x03\x71\xa2\x06",
12139                 .rlen   = 16 + 20,
12140         }, { /* RFC 3602 Case 2 */
12141 #ifdef __LITTLE_ENDIAN
12142                 .key    = "\x08\x00"            /* rta length */
12143                           "\x01\x00"            /* rta type */
12144 #else
12145                 .key    = "\x00\x08"            /* rta length */
12146                           "\x00\x01"            /* rta type */
12147 #endif
12148                           "\x00\x00\x00\x10"    /* enc key length */
12149                           "\x20\x21\x22\x23\x24\x25\x26\x27"
12150                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12151                           "\x30\x31\x32\x33"
12152                           "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
12153                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
12154                 .klen   = 8 + 20 + 16,
12155                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
12156                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
12157                 .assoc  = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
12158                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
12159                 .alen   = 16,
12160                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
12161                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12162                           "\x10\x11\x12\x13\x14\x15\x16\x17"
12163                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
12164                 .ilen   = 32,
12165                 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
12166                           "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
12167                           "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
12168                           "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
12169                           "\xad\x9b\x4c\x5c\x85\xe1\xda\xae"
12170                           "\xee\x81\x4e\xd7\xdb\x74\xcf\x58"
12171                           "\x65\x39\xf8\xde",
12172                 .rlen   = 32 + 20,
12173         }, { /* RFC 3602 Case 3 */
12174 #ifdef __LITTLE_ENDIAN
12175                 .key    = "\x08\x00"            /* rta length */
12176                           "\x01\x00"            /* rta type */
12177 #else
12178                 .key    = "\x00\x08"            /* rta length */
12179                           "\x00\x01"            /* rta type */
12180 #endif
12181                           "\x00\x00\x00\x10"    /* enc key length */
12182                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12183                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12184                           "\x22\x33\x44\x55"
12185                           "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
12186                           "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
12187                 .klen   = 8 + 20 + 16,
12188                 .iv     = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
12189                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
12190                 .assoc  = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
12191                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
12192                 .alen   = 16,
12193                 .input  = "This is a 48-byte message (exactly 3 AES blocks)",
12194                 .ilen   = 48,
12195                 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
12196                           "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
12197                           "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
12198                           "\x50\x69\x39\x27\x67\x72\xf8\xd5"
12199                           "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
12200                           "\x85\x79\x69\x5d\x83\xba\x26\x84"
12201                           "\xc2\xec\x0c\xf8\x7f\x05\xba\xca"
12202                           "\xff\xee\x4c\xd0\x93\xe6\x36\x7f"
12203                           "\x8d\x62\xf2\x1e",
12204                 .rlen   = 48 + 20,
12205         }, { /* RFC 3602 Case 4 */
12206 #ifdef __LITTLE_ENDIAN
12207                 .key    = "\x08\x00"            /* rta length */
12208                           "\x01\x00"            /* rta type */
12209 #else
12210                 .key    = "\x00\x08"            /* rta length */
12211                           "\x00\x01"            /* rta type */
12212 #endif
12213                           "\x00\x00\x00\x10"    /* enc key length */
12214                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12215                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12216                           "\x22\x33\x44\x55"
12217                           "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
12218                           "\xbc\x46\x90\x3d\xba\x29\x03\x49",
12219                 .klen   = 8 + 20 + 16,
12220                 .iv     = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
12221                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
12222                 .assoc  = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
12223                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
12224                 .alen   = 16,
12225                 .input  = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
12226                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
12227                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
12228                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
12229                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
12230                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
12231                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
12232                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
12233                 .ilen   = 64,
12234                 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
12235                           "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
12236                           "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
12237                           "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
12238                           "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
12239                           "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
12240                           "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
12241                           "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
12242                           "\x1c\x45\x57\xa9\x56\xcb\xa9\x2d"
12243                           "\x18\xac\xf1\xc7\x5d\xd1\xcd\x0d"
12244                           "\x1d\xbe\xc6\xe9",
12245                 .rlen   = 64 + 20,
12246         }, { /* RFC 3602 Case 5 */
12247 #ifdef __LITTLE_ENDIAN
12248                 .key    = "\x08\x00"            /* rta length */
12249                           "\x01\x00"            /* rta type */
12250 #else
12251                 .key    = "\x00\x08"            /* rta length */
12252                           "\x00\x01"            /* rta type */
12253 #endif
12254                           "\x00\x00\x00\x10"    /* enc key length */
12255                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12256                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12257                           "\x22\x33\x44\x55"
12258                           "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
12259                           "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
12260                 .klen   = 8 + 20 + 16,
12261                 .iv     = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
12262                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
12263                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
12264                           "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
12265                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
12266                 .alen   = 24,
12267                 .input  = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
12268                           "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
12269                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12270                           "\x10\x11\x12\x13\x14\x15\x16\x17"
12271                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
12272                           "\x20\x21\x22\x23\x24\x25\x26\x27"
12273                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12274                           "\x30\x31\x32\x33\x34\x35\x36\x37"
12275                           "\x01\x02\x03\x04\x05\x06\x07\x08"
12276                           "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
12277                 .ilen   = 80,
12278                 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
12279                           "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
12280                           "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
12281                           "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
12282                           "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
12283                           "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
12284                           "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
12285                           "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
12286                           "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
12287                           "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
12288                           "\x58\xc6\x84\x75\xe4\xe9\x6b\x0c"
12289                           "\xe1\xc5\x0b\x73\x4d\x82\x55\xa8"
12290                           "\x85\xe1\x59\xf7",
12291                 .rlen   = 80 + 20,
12292        }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
12293 #ifdef __LITTLE_ENDIAN
12294                 .key    = "\x08\x00"            /* rta length */
12295                           "\x01\x00"            /* rta type */
12296 #else
12297                 .key    = "\x00\x08"            /* rta length */
12298                           "\x00\x01"            /* rta type */
12299 #endif
12300                           "\x00\x00\x00\x18"    /* enc key length */
12301                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12302                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12303                           "\x22\x33\x44\x55"
12304                           "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
12305                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
12306                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
12307                 .klen   = 8 + 20 + 24,
12308                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
12309                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12310                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
12311                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12312                 .alen   = 16,
12313                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
12314                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12315                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12316                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12317                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12318                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12319                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12320                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
12321                 .ilen   = 64,
12322                 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
12323                           "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
12324                           "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
12325                           "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
12326                           "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
12327                           "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
12328                           "\x08\xb0\xe2\x79\x88\x59\x88\x81"
12329                           "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
12330                           "\x73\xe3\x19\x3f\x8b\xc9\xc6\xf4"
12331                           "\x5a\xf1\x5b\xa8\x98\x07\xc5\x36"
12332                           "\x47\x4c\xfc\x36",
12333                 .rlen   = 64 + 20,
12334         }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
12335 #ifdef __LITTLE_ENDIAN
12336                 .key    = "\x08\x00"            /* rta length */
12337                           "\x01\x00"            /* rta type */
12338 #else
12339                 .key    = "\x00\x08"            /* rta length */
12340                           "\x00\x01"            /* rta type */
12341 #endif
12342                           "\x00\x00\x00\x20"    /* enc key length */
12343                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12344                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12345                           "\x22\x33\x44\x55"
12346                           "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
12347                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
12348                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
12349                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
12350                 .klen   = 8 + 20 + 32,
12351                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
12352                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12353                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
12354                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12355                 .alen   = 16,
12356                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
12357                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12358                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12359                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12360                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12361                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12362                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12363                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
12364                 .ilen   = 64,
12365                 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
12366                           "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
12367                           "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
12368                           "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
12369                           "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
12370                           "\xa5\x30\xe2\x63\x04\x23\x14\x61"
12371                           "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
12372                           "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
12373                           "\xa3\xe8\x9b\x17\xe3\xf4\x7f\xde"
12374                           "\x1b\x9f\xc6\x81\x26\x43\x4a\x87"
12375                           "\x51\xee\xd6\x4e",
12376                 .rlen   = 64 + 20,
12377         },
12378 };
12379
12380 static const struct aead_testvec hmac_sha1_ecb_cipher_null_enc_tv_temp[] = {
12381         { /* Input data from RFC 2410 Case 1 */
12382 #ifdef __LITTLE_ENDIAN
12383                 .key    = "\x08\x00"            /* rta length */
12384                           "\x01\x00"            /* rta type */
12385 #else
12386                 .key    = "\x00\x08"            /* rta length */
12387                           "\x00\x01"            /* rta type */
12388 #endif
12389                           "\x00\x00\x00\x00"    /* enc key length */
12390                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12391                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12392                           "\x00\x00\x00\x00",
12393                 .klen   = 8 + 20 + 0,
12394                 .iv     = "",
12395                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
12396                 .ilen   = 8,
12397                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
12398                           "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
12399                           "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
12400                           "\x8c\x5e\xe4\x08",
12401                 .rlen   = 8 + 20,
12402         }, { /* Input data from RFC 2410 Case 2 */
12403 #ifdef __LITTLE_ENDIAN
12404                 .key    = "\x08\x00"            /* rta length */
12405                           "\x01\x00"            /* rta type */
12406 #else
12407                 .key    = "\x00\x08"            /* rta length */
12408                           "\x00\x01"            /* rta type */
12409 #endif
12410                           "\x00\x00\x00\x00"    /* enc key length */
12411                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12412                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12413                           "\x00\x00\x00\x00",
12414                 .klen   = 8 + 20 + 0,
12415                 .iv     = "",
12416                 .input  = "Network Security People Have A Strange Sense Of Humor",
12417                 .ilen   = 53,
12418                 .result = "Network Security People Have A Strange Sense Of Humor"
12419                           "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
12420                           "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
12421                           "\x91\x56\xe4\xd6",
12422                 .rlen   = 53 + 20,
12423         },
12424 };
12425
12426 static const struct aead_testvec hmac_sha1_ecb_cipher_null_dec_tv_temp[] = {
12427         {
12428 #ifdef __LITTLE_ENDIAN
12429                 .key    = "\x08\x00"            /* rta length */
12430                           "\x01\x00"            /* rta type */
12431 #else
12432                 .key    = "\x00\x08"            /* rta length */
12433                           "\x00\x01"            /* rta type */
12434 #endif
12435                           "\x00\x00\x00\x00"    /* enc key length */
12436                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12437                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12438                           "\x00\x00\x00\x00",
12439                 .klen   = 8 + 20 + 0,
12440                 .iv     = "",
12441                 .input  = "\x01\x23\x45\x67\x89\xab\xcd\xef"
12442                           "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
12443                           "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
12444                           "\x8c\x5e\xe4\x08",
12445                 .ilen   = 8 + 20,
12446                 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
12447                 .rlen   = 8,
12448         }, {
12449 #ifdef __LITTLE_ENDIAN
12450                 .key    = "\x08\x00"            /* rta length */
12451                           "\x01\x00"            /* rta type */
12452 #else
12453                 .key    = "\x00\x08"            /* rta length */
12454                           "\x00\x01"            /* rta type */
12455 #endif
12456                           "\x00\x00\x00\x00"    /* enc key length */
12457                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12458                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12459                           "\x00\x00\x00\x00",
12460                 .klen   = 8 + 20 + 0,
12461                 .iv     = "",
12462                 .input  = "Network Security People Have A Strange Sense Of Humor"
12463                           "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
12464                           "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
12465                           "\x91\x56\xe4\xd6",
12466                 .ilen   = 53 + 20,
12467                 .result = "Network Security People Have A Strange Sense Of Humor",
12468                 .rlen   = 53,
12469         },
12470 };
12471
12472 static const struct aead_testvec hmac_sha256_aes_cbc_enc_tv_temp[] = {
12473         { /* RFC 3602 Case 1 */
12474 #ifdef __LITTLE_ENDIAN
12475                 .key    = "\x08\x00"            /* rta length */
12476                           "\x01\x00"            /* rta type */
12477 #else
12478                 .key    = "\x00\x08"            /* rta length */
12479                           "\x00\x01"            /* rta type */
12480 #endif
12481                           "\x00\x00\x00\x10"    /* enc key length */
12482                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12483                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12484                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12485                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12486                           "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
12487                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
12488                 .klen   = 8 + 32 + 16,
12489                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
12490                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
12491                 .assoc  = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
12492                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
12493                 .alen   = 16,
12494                 .input  = "Single block msg",
12495                 .ilen   = 16,
12496                 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
12497                           "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
12498                           "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc"
12499                           "\x38\x06\x38\x51\xb4\xb8\xf3\x5b"
12500                           "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5"
12501                           "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5",
12502                 .rlen   = 16 + 32,
12503         }, { /* RFC 3602 Case 2 */
12504 #ifdef __LITTLE_ENDIAN
12505                 .key    = "\x08\x00"            /* rta length */
12506                           "\x01\x00"            /* rta type */
12507 #else
12508                 .key    = "\x00\x08"            /* rta length */
12509                           "\x00\x01"            /* rta type */
12510 #endif
12511                           "\x00\x00\x00\x10"    /* enc key length */
12512                           "\x20\x21\x22\x23\x24\x25\x26\x27"
12513                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12514                           "\x30\x31\x32\x33\x34\x35\x36\x37"
12515                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
12516                           "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
12517                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
12518                 .klen   = 8 + 32 + 16,
12519                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
12520                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
12521                 .assoc  = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
12522                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
12523                 .alen   = 16,
12524                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
12525                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12526                           "\x10\x11\x12\x13\x14\x15\x16\x17"
12527                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
12528                 .ilen   = 32,
12529                 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
12530                           "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
12531                           "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
12532                           "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
12533                           "\xf5\x33\x53\xf3\x68\x85\x2a\x99"
12534                           "\x0e\x06\x58\x8f\xba\xf6\x06\xda"
12535                           "\x49\x69\x0d\x5b\xd4\x36\x06\x62"
12536                           "\x35\x5e\x54\x58\x53\x4d\xdf\xbf",
12537                 .rlen   = 32 + 32,
12538         }, { /* RFC 3602 Case 3 */
12539 #ifdef __LITTLE_ENDIAN
12540                 .key    = "\x08\x00"            /* rta length */
12541                           "\x01\x00"            /* rta type */
12542 #else
12543                 .key    = "\x00\x08"            /* rta length */
12544                           "\x00\x01"            /* rta type */
12545 #endif
12546                           "\x00\x00\x00\x10"    /* enc key length */
12547                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12548                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12549                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12550                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12551                           "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
12552                           "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
12553                 .klen   = 8 + 32 + 16,
12554                 .iv     = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
12555                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
12556                 .assoc  = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
12557                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
12558                 .alen   = 16,
12559                 .input  = "This is a 48-byte message (exactly 3 AES blocks)",
12560                 .ilen   = 48,
12561                 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
12562                           "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
12563                           "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
12564                           "\x50\x69\x39\x27\x67\x72\xf8\xd5"
12565                           "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
12566                           "\x85\x79\x69\x5d\x83\xba\x26\x84"
12567                           "\x68\xb9\x3e\x90\x38\xa0\x88\x01"
12568                           "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d"
12569                           "\x24\x78\xfb\xbe\x02\xe0\x4f\x40"
12570                           "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a",
12571                 .rlen   = 48 + 32,
12572         }, { /* RFC 3602 Case 4 */
12573 #ifdef __LITTLE_ENDIAN
12574                 .key    = "\x08\x00"            /* rta length */
12575                           "\x01\x00"            /* rta type */
12576 #else
12577                 .key    = "\x00\x08"            /* rta length */
12578                           "\x00\x01"            /* rta type */
12579 #endif
12580                           "\x00\x00\x00\x10"    /* enc key length */
12581                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12582                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12583                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12584                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12585                           "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
12586                           "\xbc\x46\x90\x3d\xba\x29\x03\x49",
12587                 .klen   = 8 + 32 + 16,
12588                 .iv     = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
12589                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
12590                 .assoc  = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
12591                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
12592                 .alen   = 16,
12593                 .input  = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
12594                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
12595                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
12596                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
12597                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
12598                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
12599                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
12600                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
12601                 .ilen   = 64,
12602                 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
12603                           "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
12604                           "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
12605                           "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
12606                           "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
12607                           "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
12608                           "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
12609                           "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
12610                           "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2"
12611                           "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8"
12612                           "\x3f\x54\xe2\x49\x39\xe3\x71\x25"
12613                           "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64",
12614                 .rlen   = 64 + 32,
12615         }, { /* RFC 3602 Case 5 */
12616 #ifdef __LITTLE_ENDIAN
12617                 .key    = "\x08\x00"            /* rta length */
12618                           "\x01\x00"            /* rta type */
12619 #else
12620                 .key    = "\x00\x08"            /* rta length */
12621                           "\x00\x01"            /* rta type */
12622 #endif
12623                           "\x00\x00\x00\x10"    /* enc key length */
12624                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12625                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12626                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12627                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12628                           "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
12629                           "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
12630                 .klen   = 8 + 32 + 16,
12631                 .iv     = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
12632                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
12633                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
12634                           "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
12635                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
12636                 .alen   = 24,
12637                 .input  = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
12638                           "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
12639                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12640                           "\x10\x11\x12\x13\x14\x15\x16\x17"
12641                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
12642                           "\x20\x21\x22\x23\x24\x25\x26\x27"
12643                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12644                           "\x30\x31\x32\x33\x34\x35\x36\x37"
12645                           "\x01\x02\x03\x04\x05\x06\x07\x08"
12646                           "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
12647                 .ilen   = 80,
12648                 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
12649                           "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
12650                           "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
12651                           "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
12652                           "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
12653                           "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
12654                           "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
12655                           "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
12656                           "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
12657                           "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
12658                           "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8"
12659                           "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7"
12660                           "\x73\xc3\x46\x20\x2c\xb1\xef\x68"
12661                           "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf",
12662                 .rlen   = 80 + 32,
12663        }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
12664 #ifdef __LITTLE_ENDIAN
12665                 .key    = "\x08\x00"            /* rta length */
12666                           "\x01\x00"            /* rta type */
12667 #else
12668                 .key    = "\x00\x08"            /* rta length */
12669                           "\x00\x01"            /* rta type */
12670 #endif
12671                           "\x00\x00\x00\x18"    /* enc key length */
12672                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12673                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12674                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12675                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12676                           "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
12677                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
12678                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
12679                 .klen   = 8 + 32 + 24,
12680                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
12681                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12682                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
12683                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12684                 .alen   = 16,
12685                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
12686                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12687                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12688                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12689                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12690                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12691                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12692                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
12693                 .ilen   = 64,
12694                 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
12695                           "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
12696                           "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
12697                           "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
12698                           "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
12699                           "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
12700                           "\x08\xb0\xe2\x79\x88\x59\x88\x81"
12701                           "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
12702                           "\x2f\xee\x5f\xdb\x66\xfe\x79\x09"
12703                           "\x61\x81\x31\xea\x5b\x3d\x8e\xfb"
12704                           "\xca\x71\x85\x93\xf7\x85\x55\x8b"
12705                           "\x7a\xe4\x94\xca\x8b\xba\x19\x33",
12706                 .rlen   = 64 + 32,
12707         }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
12708 #ifdef __LITTLE_ENDIAN
12709                 .key    = "\x08\x00"            /* rta length */
12710                           "\x01\x00"            /* rta type */
12711 #else
12712                 .key    = "\x00\x08"            /* rta length */
12713                           "\x00\x01"            /* rta type */
12714 #endif
12715                           "\x00\x00\x00\x20"    /* enc key length */
12716                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12717                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12718                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12719                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12720                           "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
12721                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
12722                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
12723                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
12724                 .klen   = 8 + 32 + 32,
12725                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
12726                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12727                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
12728                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12729                 .alen   = 16,
12730                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
12731                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12732                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12733                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12734                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12735                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12736                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12737                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
12738                 .ilen   = 64,
12739                 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
12740                           "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
12741                           "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
12742                           "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
12743                           "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
12744                           "\xa5\x30\xe2\x63\x04\x23\x14\x61"
12745                           "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
12746                           "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
12747                           "\x24\x29\xed\xc2\x31\x49\xdb\xb1"
12748                           "\x8f\x74\xbd\x17\x92\x03\xbe\x8f"
12749                           "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0"
12750                           "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f",
12751                 .rlen   = 64 + 32,
12752         },
12753 };
12754
12755 static const struct aead_testvec hmac_sha512_aes_cbc_enc_tv_temp[] = {
12756         { /* RFC 3602 Case 1 */
12757 #ifdef __LITTLE_ENDIAN
12758                 .key    = "\x08\x00"            /* rta length */
12759                           "\x01\x00"            /* rta type */
12760 #else
12761                 .key    = "\x00\x08"            /* rta length */
12762                           "\x00\x01"            /* rta type */
12763 #endif
12764                           "\x00\x00\x00\x10"    /* enc key length */
12765                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12766                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12767                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12768                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12769                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12770                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12771                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12772                           "\x00\x00\x00\x00\x00\x00\x00\x00"
12773                           "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
12774                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
12775                 .klen   = 8 + 64 + 16,
12776                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
12777                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
12778                 .assoc  = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
12779                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
12780                 .alen   = 16,
12781                 .input  = "Single block msg",
12782                 .ilen   = 16,
12783                 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
12784                           "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
12785                           "\x3f\xdc\xad\x90\x03\x63\x5e\x68"
12786                           "\xc3\x13\xdd\xa4\x5c\x4d\x54\xa7"
12787                           "\x19\x6e\x03\x75\x2b\xa1\x62\xce"
12788                           "\xe0\xc6\x96\x75\xb2\x14\xca\x96"
12789                           "\xec\xbd\x50\x08\x07\x64\x1a\x49"
12790                           "\xe8\x9a\x7c\x06\x3d\xcb\xff\xb2"
12791                           "\xfa\x20\x89\xdd\x9c\xac\x9e\x16"
12792                           "\x18\x8a\xa0\x6d\x01\x6c\xa3\x3a",
12793                 .rlen   = 16 + 64,
12794         }, { /* RFC 3602 Case 2 */
12795 #ifdef __LITTLE_ENDIAN
12796                 .key    = "\x08\x00"            /* rta length */
12797                           "\x01\x00"            /* rta type */
12798 #else
12799                 .key    = "\x00\x08"            /* rta length */
12800                           "\x00\x01"            /* rta type */
12801 #endif
12802                           "\x00\x00\x00\x10"    /* enc key length */
12803                           "\x20\x21\x22\x23\x24\x25\x26\x27"
12804                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12805                           "\x30\x31\x32\x33\x34\x35\x36\x37"
12806                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
12807                           "\x40\x41\x42\x43\x44\x45\x46\x47"
12808                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
12809                           "\x50\x51\x52\x53\x54\x55\x56\x57"
12810                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
12811                           "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
12812                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
12813                 .klen   = 8 + 64 + 16,
12814                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
12815                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
12816                 .assoc  = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
12817                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
12818                 .alen   = 16,
12819                 .input  = "\x00\x01\x02\x03\x04\x05\x06\x07"
12820                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12821                           "\x10\x11\x12\x13\x14\x15\x16\x17"
12822                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
12823                 .ilen   = 32,
12824                 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
12825                           "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
12826                           "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
12827                           "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
12828                           "\xda\xb2\x0c\xb2\x26\xc4\xd5\xef"
12829                           "\x60\x38\xa4\x5e\x9a\x8c\x1b\x41"
12830                           "\x03\x9f\xc4\x64\x7f\x01\x42\x9b"
12831                           "\x0e\x1b\xea\xef\xbc\x88\x19\x5e"
12832                           "\x31\x7e\xc2\x95\xfc\x09\x32\x0a"
12833                           "\x46\x32\x7c\x41\x9c\x59\x3e\xe9"
12834                           "\x8f\x9f\xd4\x31\xd6\x22\xbd\xf8"
12835                           "\xf7\x0a\x94\xe5\xa9\xc3\xf6\x9d",
12836                 .rlen   = 32 + 64,
12837         }, { /* RFC 3602 Case 3 */
12838 #ifdef __LITTLE_ENDIAN
12839                 .key    = "\x08\x00"            /* rta length */
12840                           "\x01\x00"            /* rta type */
12841 #else
12842                 .key    = "\x00\x08"            /* rta length */
12843                           "\x00\x01"            /* rta type */
12844 #endif
12845                           "\x00\x00\x00\x10"    /* enc key length */
12846                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12847                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12848                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12849                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12850                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
12851                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
12852                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
12853                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
12854                           "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
12855                           "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
12856                 .klen   = 8 + 64 + 16,
12857                 .iv     = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
12858                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
12859                 .assoc  = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
12860                           "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
12861                 .alen   = 16,
12862                 .input  = "This is a 48-byte message (exactly 3 AES blocks)",
12863                 .ilen   = 48,
12864                 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
12865                           "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
12866                           "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
12867                           "\x50\x69\x39\x27\x67\x72\xf8\xd5"
12868                           "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
12869                           "\x85\x79\x69\x5d\x83\xba\x26\x84"
12870                           "\x64\x19\x17\x5b\x57\xe0\x21\x0f"
12871                           "\xca\xdb\xa1\x26\x38\x14\xa2\x69"
12872                           "\xdb\x54\x67\x80\xc0\x54\xe0\xfd"
12873                           "\x3e\x91\xe7\x91\x7f\x13\x38\x44"
12874                           "\xb7\xb1\xd6\xc8\x7d\x48\x8d\x41"
12875                           "\x08\xea\x29\x6c\x74\x67\x3f\xb0"
12876                           "\xac\x7f\x5c\x1d\xf5\xee\x22\x66"
12877                           "\x27\xa6\xb6\x13\xba\xba\xf0\xc2",
12878                 .rlen   = 48 + 64,
12879         }, { /* RFC 3602 Case 4 */
12880 #ifdef __LITTLE_ENDIAN
12881                 .key    = "\x08\x00"            /* rta length */
12882                           "\x01\x00"            /* rta type */
12883 #else
12884                 .key    = "\x00\x08"            /* rta length */
12885                           "\x00\x01"            /* rta type */
12886 #endif
12887                           "\x00\x00\x00\x10"    /* enc key length */
12888                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12889                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12890                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12891                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12892                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
12893                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
12894                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
12895                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
12896                           "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
12897                           "\xbc\x46\x90\x3d\xba\x29\x03\x49",
12898                 .klen   = 8 + 64 + 16,
12899                 .iv     = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
12900                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
12901                 .assoc  = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
12902                           "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
12903                 .alen   = 16,
12904                 .input  = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
12905                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
12906                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
12907                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
12908                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
12909                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
12910                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
12911                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
12912                 .ilen   = 64,
12913                 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
12914                           "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
12915                           "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
12916                           "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
12917                           "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
12918                           "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
12919                           "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
12920                           "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
12921                           "\x82\xcd\x42\x28\x21\x20\x15\xcc"
12922                           "\xb7\xb2\x48\x40\xc7\x64\x41\x3a"
12923                           "\x61\x32\x82\x85\xcf\x27\xed\xb4"
12924                           "\xe4\x68\xa2\xf5\x79\x26\x27\xb2"
12925                           "\x51\x67\x6a\xc4\xf0\x66\x55\x50"
12926                           "\xbc\x6f\xed\xd5\x8d\xde\x23\x7c"
12927                           "\x62\x98\x14\xd7\x2f\x37\x8d\xdf"
12928                           "\xf4\x33\x80\xeb\x8e\xb4\xa4\xda",
12929                 .rlen   = 64 + 64,
12930         }, { /* RFC 3602 Case 5 */
12931 #ifdef __LITTLE_ENDIAN
12932                 .key    = "\x08\x00"            /* rta length */
12933                           "\x01\x00"            /* rta type */
12934 #else
12935                 .key    = "\x00\x08"            /* rta length */
12936                           "\x00\x01"            /* rta type */
12937 #endif
12938                           "\x00\x00\x00\x10"    /* enc key length */
12939                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12940                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12941                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12942                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12943                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
12944                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
12945                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
12946                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
12947                           "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
12948                           "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
12949                 .klen   = 8 + 64 + 16,
12950                 .iv     = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
12951                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
12952                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
12953                           "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
12954                           "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
12955                 .alen   = 24,
12956                 .input  = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
12957                           "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
12958                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12959                           "\x10\x11\x12\x13\x14\x15\x16\x17"
12960                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
12961                           "\x20\x21\x22\x23\x24\x25\x26\x27"
12962                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12963                           "\x30\x31\x32\x33\x34\x35\x36\x37"
12964                           "\x01\x02\x03\x04\x05\x06\x07\x08"
12965                           "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
12966                 .ilen   = 80,
12967                 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
12968                           "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
12969                           "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
12970                           "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
12971                           "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
12972                           "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
12973                           "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
12974                           "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
12975                           "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
12976                           "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
12977                           "\x74\x84\x94\xe2\xd7\x7a\xf9\xbf"
12978                           "\x00\x8a\xa2\xd5\xb7\xf3\x60\xcf"
12979                           "\xa0\x47\xdf\x4e\x09\xf4\xb1\x7f"
12980                           "\x14\xd9\x3d\x53\x8e\x12\xb3\x00"
12981                           "\x4c\x0a\x4e\x32\x40\x43\x88\xce"
12982                           "\x92\x26\xc1\x76\x20\x11\xeb\xba"
12983                           "\x62\x4f\x9a\x62\x25\xc3\x75\x80"
12984                           "\xb7\x0a\x17\xf5\xd7\x94\xb4\x14",
12985                 .rlen   = 80 + 64,
12986        }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
12987 #ifdef __LITTLE_ENDIAN
12988                 .key    = "\x08\x00"            /* rta length */
12989                           "\x01\x00"            /* rta type */
12990 #else
12991                 .key    = "\x00\x08"            /* rta length */
12992                           "\x00\x01"            /* rta type */
12993 #endif
12994                           "\x00\x00\x00\x18"    /* enc key length */
12995                           "\x11\x22\x33\x44\x55\x66\x77\x88"
12996                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12997                           "\x22\x33\x44\x55\x66\x77\x88\x99"
12998                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12999                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
13000                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13001                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
13002                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
13003                           "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
13004                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
13005                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
13006                 .klen   = 8 + 64 + 24,
13007                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
13008                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13009                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
13010                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13011                 .alen   = 16,
13012                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13013                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13014                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13015                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13016                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13017                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13018                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13019                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13020                 .ilen   = 64,
13021                 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
13022                           "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
13023                           "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
13024                           "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
13025                           "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
13026                           "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
13027                           "\x08\xb0\xe2\x79\x88\x59\x88\x81"
13028                           "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
13029                           "\x77\x4b\x69\x9d\x3a\x0d\xb4\x99"
13030                           "\x8f\xc6\x8e\x0e\x72\x58\xe3\x56"
13031                           "\xbb\x21\xd2\x7d\x93\x11\x17\x91"
13032                           "\xc4\x83\xfd\x0a\xea\x71\xfe\x77"
13033                           "\xae\x6f\x0a\xa5\xf0\xcf\xe1\x35"
13034                           "\xba\x03\xd5\x32\xfa\x5f\x41\x58"
13035                           "\x8d\x43\x98\xa7\x94\x16\x07\x02"
13036                           "\x0f\xb6\x81\x50\x28\x95\x2e\x75",
13037                 .rlen   = 64 + 64,
13038         }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
13039 #ifdef __LITTLE_ENDIAN
13040                 .key    = "\x08\x00"            /* rta length */
13041                           "\x01\x00"            /* rta type */
13042 #else
13043                 .key    = "\x00\x08"            /* rta length */
13044                           "\x00\x01"            /* rta type */
13045 #endif
13046                           "\x00\x00\x00\x20"    /* enc key length */
13047                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13048                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13049                           "\x22\x33\x44\x55\x66\x77\x88\x99"
13050                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13051                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
13052                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13053                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
13054                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
13055                           "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
13056                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
13057                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
13058                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
13059                 .klen   = 8 + 64 + 32,
13060                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07"
13061                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13062                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
13063                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13064                 .alen   = 16,
13065                 .input  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13066                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13067                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13068                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13069                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13070                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13071                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13072                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13073                 .ilen   = 64,
13074                 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
13075                           "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
13076                           "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
13077                           "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
13078                           "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
13079                           "\xa5\x30\xe2\x63\x04\x23\x14\x61"
13080                           "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
13081                           "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
13082                           "\xb2\x27\x69\x7f\x45\x64\x79\x2b"
13083                           "\xb7\xb8\x4c\xd4\x75\x94\x68\x40"
13084                           "\x2a\xea\x91\xc7\x3f\x7c\xed\x7b"
13085                           "\x95\x2c\x9b\xa8\xf5\xe5\x52\x8d"
13086                           "\x6b\xe1\xae\xf1\x74\xfa\x0d\x0c"
13087                           "\xe3\x8d\x64\xc3\x8d\xff\x7c\x8c"
13088                           "\xdb\xbf\xa0\xb4\x01\xa2\xa8\xa2"
13089                           "\x2c\xb1\x62\x2c\x10\xca\xf1\x21",
13090                 .rlen   = 64 + 64,
13091         },
13092 };
13093
13094 static const struct aead_testvec hmac_sha1_des_cbc_enc_tv_temp[] = {
13095         { /*Generated with cryptopp*/
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\x08"    /* 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"
13107                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
13108                 .klen   = 8 + 20 + 8,
13109                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13110                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13111                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13112                 .alen   = 16,
13113                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13114                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13115                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13116                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13117                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13118                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13119                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13120                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13121                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13122                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13123                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13124                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13125                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13126                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13127                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13128                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13129                 .ilen   = 128,
13130                 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
13131                           "\x54\x31\x85\x37\xed\x6b\x01\x8d"
13132                           "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
13133                           "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
13134                           "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
13135                           "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
13136                           "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
13137                           "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
13138                           "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
13139                           "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
13140                           "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
13141                           "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
13142                           "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
13143                           "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
13144                           "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
13145                           "\x53\xba\xe1\x76\xe3\x82\x07\x86"
13146                           "\x95\x16\x20\x09\xf5\x95\x19\xfd"
13147                           "\x3c\xc7\xe0\x42\xc0\x14\x69\xfa"
13148                           "\x5c\x44\xa9\x37",
13149                           .rlen = 128 + 20,
13150         },
13151 };
13152
13153 static const struct aead_testvec hmac_sha224_des_cbc_enc_tv_temp[] = {
13154         { /*Generated with cryptopp*/
13155 #ifdef __LITTLE_ENDIAN
13156                 .key    = "\x08\x00"            /* rta length */
13157                           "\x01\x00"            /* rta type */
13158 #else
13159                 .key    = "\x00\x08"            /* rta length */
13160                           "\x00\x01"            /* rta type */
13161 #endif
13162                           "\x00\x00\x00\x08"    /* enc key length */
13163                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13164                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13165                   "\x22\x33\x44\x55\x66\x77\x88\x99"
13166                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
13167                 .klen   = 8 + 24 + 8,
13168                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13169                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13170                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13171                 .alen   = 16,
13172                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13173                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13174                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13175                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13176                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13177                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13178                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13179                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13180                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13181                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13182                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13183                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13184                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13185                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13186                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13187                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13188                 .ilen   = 128,
13189                 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
13190                           "\x54\x31\x85\x37\xed\x6b\x01\x8d"
13191                           "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
13192                           "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
13193                           "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
13194                           "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
13195                           "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
13196                           "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
13197                           "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
13198                           "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
13199                           "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
13200                           "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
13201                   "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
13202                           "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
13203                           "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
13204                           "\x53\xba\xe1\x76\xe3\x82\x07\x86"
13205                           "\x9c\x2d\x7e\xee\x20\x34\x55\x0a"
13206                           "\xce\xb5\x4e\x64\x53\xe7\xbf\x91"
13207                           "\xab\xd4\xd9\xda\xc9\x12\xae\xf7",
13208                 .rlen   = 128 + 24,
13209         },
13210 };
13211
13212 static const struct aead_testvec hmac_sha256_des_cbc_enc_tv_temp[] = {
13213         { /*Generated with cryptopp*/
13214 #ifdef __LITTLE_ENDIAN
13215                 .key    = "\x08\x00"            /* rta length */
13216                           "\x01\x00"            /* rta type */
13217 #else
13218                 .key    = "\x00\x08"            /* rta length */
13219                           "\x00\x01"            /* rta type */
13220 #endif
13221                           "\x00\x00\x00\x08"    /* enc key length */
13222                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13223                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13224                           "\x22\x33\x44\x55\x66\x77\x88\x99"
13225                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13226                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
13227                 .klen   = 8 + 32 + 8,
13228                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13229                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13230                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13231                 .alen   = 16,
13232                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13233                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13234                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13235                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13236                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13237                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13238                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13239                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13240                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13241                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13242                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13243                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13244                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13245                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13246                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13247                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13248                 .ilen   = 128,
13249                 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
13250                           "\x54\x31\x85\x37\xed\x6b\x01\x8d"
13251                           "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
13252                           "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
13253                           "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
13254                           "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
13255                           "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
13256                           "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
13257                           "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
13258                           "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
13259                           "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
13260                   "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
13261                           "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
13262                   "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
13263                   "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
13264                           "\x53\xba\xe1\x76\xe3\x82\x07\x86"
13265                           "\xc6\x58\xa1\x60\x70\x91\x39\x36"
13266                           "\x50\xf6\x5d\xab\x4b\x51\x4e\x5e"
13267                           "\xde\x63\xde\x76\x52\xde\x9f\xba"
13268                           "\x90\xcf\x15\xf2\xbb\x6e\x84\x00",
13269                 .rlen   = 128 + 32,
13270         },
13271 };
13272
13273 static const struct aead_testvec hmac_sha384_des_cbc_enc_tv_temp[] = {
13274         { /*Generated with cryptopp*/
13275 #ifdef __LITTLE_ENDIAN
13276                 .key    = "\x08\x00"            /* rta length */
13277                           "\x01\x00"            /* rta type */
13278 #else
13279                 .key    = "\x00\x08"            /* rta length */
13280                           "\x00\x01"            /* rta type */
13281 #endif
13282                           "\x00\x00\x00\x08"    /* enc key length */
13283                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13284                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13285                           "\x22\x33\x44\x55\x66\x77\x88\x99"
13286                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13287                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
13288                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13289                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
13290                 .klen   = 8 + 48 + 8,
13291                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13292                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13293                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13294                 .alen   = 16,
13295                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13296                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13297                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13298                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13299                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13300                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13301                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13302                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13303                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13304                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13305                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13306                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13307                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13308                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13309                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13310                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13311                 .ilen   = 128,
13312                 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
13313                           "\x54\x31\x85\x37\xed\x6b\x01\x8d"
13314                           "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
13315                           "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
13316                           "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
13317                           "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
13318                           "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
13319                           "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
13320                           "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
13321                           "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
13322                           "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
13323                           "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
13324                           "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
13325                           "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
13326                           "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
13327                           "\x53\xba\xe1\x76\xe3\x82\x07\x86"
13328                           "\xa8\x8e\x9c\x74\x8c\x2b\x99\xa0"
13329                           "\xc8\x8c\xef\x25\x07\x83\x11\x3a"
13330                           "\x31\x8d\xbe\x3b\x6a\xd7\x96\xfe"
13331                           "\x5e\x67\xb5\x74\xe7\xe7\x85\x61"
13332                           "\x6a\x95\x26\x75\xcc\x53\x89\xf3"
13333                           "\x74\xc9\x2a\x76\x20\xa2\x64\x62",
13334                 .rlen   = 128 + 48,
13335         },
13336 };
13337
13338 static const struct aead_testvec hmac_sha512_des_cbc_enc_tv_temp[] = {
13339         { /*Generated with cryptopp*/
13340 #ifdef __LITTLE_ENDIAN
13341                 .key    = "\x08\x00"            /* rta length */
13342                   "\x01\x00"            /* rta type */
13343 #else
13344                 .key    = "\x00\x08"            /* rta length */
13345                           "\x00\x01"            /* rta type */
13346 #endif
13347                           "\x00\x00\x00\x08"    /* enc key length */
13348                   "\x11\x22\x33\x44\x55\x66\x77\x88"
13349                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13350                           "\x22\x33\x44\x55\x66\x77\x88\x99"
13351                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13352                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
13353                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13354                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
13355                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
13356                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
13357                 .klen   = 8 + 64 + 8,
13358                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13359                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13360                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13361                 .alen   = 16,
13362                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13363                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13364                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13365                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13366                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13367                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13368                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13369                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13370                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13371                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13372                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13373                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13374                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13375                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13376                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13377                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13378                 .ilen   = 128,
13379                 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
13380                           "\x54\x31\x85\x37\xed\x6b\x01\x8d"
13381                           "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
13382                           "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
13383                           "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
13384                           "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
13385                           "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
13386                   "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
13387                           "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
13388                   "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
13389                           "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
13390                           "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
13391                           "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
13392                           "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
13393                   "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
13394                           "\x53\xba\xe1\x76\xe3\x82\x07\x86"
13395                           "\xc6\x2c\x73\x88\xb0\x9d\x5f\x3e"
13396                           "\x5b\x78\xca\x0e\xab\x8a\xa3\xbb"
13397                           "\xd9\x1d\xc3\xe3\x05\xac\x76\xfb"
13398                           "\x58\x83\xda\x67\xfb\x21\x24\xa2"
13399                           "\xb1\xa7\xd7\x66\xa6\x8d\xa6\x93"
13400                           "\x97\xe2\xe3\xb8\xaa\x48\x85\xee"
13401                           "\x8c\xf6\x07\x95\x1f\xa6\x6c\x96"
13402                           "\x99\xc7\x5c\x8d\xd8\xb5\x68\x7b",
13403                 .rlen   = 128 + 64,
13404         },
13405 };
13406
13407 static const struct aead_testvec hmac_sha1_des3_ede_cbc_enc_tv_temp[] = {
13408         { /*Generated with cryptopp*/
13409 #ifdef __LITTLE_ENDIAN
13410                 .key    = "\x08\x00"            /* rta length */
13411                           "\x01\x00"            /* rta type */
13412 #else
13413                 .key    = "\x00\x08"            /* rta length */
13414                           "\x00\x01"            /* rta type */
13415 #endif
13416                           "\x00\x00\x00\x18"    /* enc key length */
13417                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13418                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13419                           "\x22\x33\x44\x55"
13420                   "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
13421                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
13422                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
13423                 .klen   = 8 + 20 + 24,
13424                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13425                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13426                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13427                 .alen   = 16,
13428                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13429                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13430                   "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13431                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13432                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13433                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13434                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13435                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13436                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13437                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13438                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13439                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13440                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13441                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13442                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13443                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13444                 .ilen   = 128,
13445                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
13446                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
13447                   "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
13448                   "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
13449                   "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
13450                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
13451                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
13452                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
13453                   "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
13454                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
13455                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
13456                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
13457                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
13458                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
13459                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
13460                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
13461                           "\x67\x6d\xb1\xf5\xb8\x10\xdc\xc6"
13462                           "\x75\x86\x96\x6b\xb1\xc5\xe4\xcf"
13463                           "\xd1\x60\x91\xb3",
13464                           .rlen = 128 + 20,
13465         },
13466 };
13467
13468 static const struct aead_testvec hmac_sha224_des3_ede_cbc_enc_tv_temp[] = {
13469         { /*Generated with cryptopp*/
13470 #ifdef __LITTLE_ENDIAN
13471                 .key    = "\x08\x00"            /* rta length */
13472                           "\x01\x00"            /* rta type */
13473 #else
13474                 .key    = "\x00\x08"            /* rta length */
13475                           "\x00\x01"            /* rta type */
13476 #endif
13477                           "\x00\x00\x00\x18"    /* enc key length */
13478                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13479                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13480                           "\x22\x33\x44\x55\x66\x77\x88\x99"
13481                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
13482                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
13483                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
13484                 .klen   = 8 + 24 + 24,
13485                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13486                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13487                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13488                 .alen   = 16,
13489                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13490                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13491                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13492                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13493                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13494                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13495                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13496                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13497                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13498                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13499                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13500                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13501                   "\x72\x63\x74\x65\x20\x73\x6f\x54"
13502                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13503                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13504                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13505                 .ilen   = 128,
13506                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
13507                   "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
13508                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
13509                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
13510                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
13511                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
13512                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
13513                   "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
13514                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
13515                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
13516                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
13517                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
13518                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
13519                   "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
13520                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
13521                   "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
13522                           "\x15\x24\x7f\x5a\x45\x4a\x66\xce"
13523                           "\x2b\x0b\x93\x99\x2f\x9d\x0c\x6c"
13524                           "\x56\x1f\xe1\xa6\x41\xb2\x4c\xd0",
13525                           .rlen = 128 + 24,
13526         },
13527 };
13528
13529 static const struct aead_testvec hmac_sha256_des3_ede_cbc_enc_tv_temp[] = {
13530         { /*Generated with cryptopp*/
13531 #ifdef __LITTLE_ENDIAN
13532                 .key    = "\x08\x00"            /* rta length */
13533                           "\x01\x00"            /* rta type */
13534 #else
13535                 .key    = "\x00\x08"            /* rta length */
13536                           "\x00\x01"            /* rta type */
13537 #endif
13538                           "\x00\x00\x00\x18"    /* enc key length */
13539                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13540                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13541                           "\x22\x33\x44\x55\x66\x77\x88\x99"
13542                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13543                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
13544                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
13545                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
13546                 .klen   = 8 + 32 + 24,
13547                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13548                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13549                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13550                 .alen   = 16,
13551                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13552                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13553                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13554                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13555                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13556                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13557                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13558                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13559                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13560                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13561                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13562                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13563                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13564                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13565                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13566                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13567                 .ilen   = 128,
13568                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
13569                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
13570                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
13571                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
13572                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
13573                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
13574                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
13575                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
13576                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
13577                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
13578                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
13579                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
13580                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
13581                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
13582                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
13583                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
13584                           "\x73\xb0\xea\x9f\xe8\x18\x80\xd6"
13585                           "\x56\x38\x44\xc0\xdb\xe3\x4f\x71"
13586                           "\xf7\xce\xd1\xd3\xf8\xbd\x3e\x4f"
13587                           "\xca\x43\x95\xdf\x80\x61\x81\xa9",
13588                 .rlen   = 128 + 32,
13589         },
13590 };
13591
13592 static const struct aead_testvec hmac_sha384_des3_ede_cbc_enc_tv_temp[] = {
13593         { /*Generated with cryptopp*/
13594 #ifdef __LITTLE_ENDIAN
13595                 .key    = "\x08\x00"            /* rta length */
13596                           "\x01\x00"            /* rta type */
13597 #else
13598                 .key    = "\x00\x08"            /* rta length */
13599                           "\x00\x01"            /* rta type */
13600 #endif
13601                           "\x00\x00\x00\x18"    /* enc key length */
13602                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13603                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13604                           "\x22\x33\x44\x55\x66\x77\x88\x99"
13605                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13606                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
13607                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13608                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
13609                           "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
13610                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
13611                 .klen   = 8 + 48 + 24,
13612                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13613                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13614                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13615                 .alen   = 16,
13616                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13617                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13618                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13619                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13620                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13621                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13622                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13623                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13624                           "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13625                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13626                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13627                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13628                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13629                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13630                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13631                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13632                 .ilen   = 128,
13633                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
13634                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
13635                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
13636                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
13637                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
13638                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
13639                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
13640                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
13641                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
13642                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
13643                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
13644                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
13645                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
13646                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
13647                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
13648                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
13649                           "\x6d\x77\xfc\x80\x9d\x8a\x9c\xb7"
13650                   "\x70\xe7\x93\xbf\x73\xe6\x9f\x83"
13651                           "\x99\x62\x23\xe6\x5b\xd0\xda\x18"
13652                           "\xa4\x32\x8a\x0b\x46\xd7\xf0\x39"
13653                           "\x36\x5d\x13\x2f\x86\x10\x78\xd6"
13654                           "\xd6\xbe\x5c\xb9\x15\x89\xf9\x1b",
13655                 .rlen   = 128 + 48,
13656         },
13657 };
13658
13659 static const struct aead_testvec hmac_sha512_des3_ede_cbc_enc_tv_temp[] = {
13660         { /*Generated with cryptopp*/
13661 #ifdef __LITTLE_ENDIAN
13662                 .key    = "\x08\x00"            /* rta length */
13663                           "\x01\x00"            /* rta type */
13664 #else
13665                 .key    = "\x00\x08"            /* rta length */
13666                           "\x00\x01"            /* rta type */
13667 #endif
13668                           "\x00\x00\x00\x18"    /* enc key length */
13669                           "\x11\x22\x33\x44\x55\x66\x77\x88"
13670                           "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13671                           "\x22\x33\x44\x55\x66\x77\x88\x99"
13672                           "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13673                           "\x33\x44\x55\x66\x77\x88\x99\xaa"
13674                           "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13675                           "\x44\x55\x66\x77\x88\x99\xaa\xbb"
13676                           "\xcc\xdd\xee\xff\x11\x22\x33\x44"
13677                           "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
13678                   "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
13679                           "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
13680                 .klen   = 8 + 64 + 24,
13681                 .iv     = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13682                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x01"
13683                           "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13684                 .alen   = 16,
13685                 .input  = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13686                           "\x53\x20\x63\x65\x65\x72\x73\x74"
13687                           "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13688                           "\x20\x79\x65\x53\x72\x63\x74\x65"
13689                           "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13690                           "\x79\x6e\x53\x20\x63\x65\x65\x72"
13691                           "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13692                           "\x6e\x61\x20\x79\x65\x53\x72\x63"
13693                   "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13694                           "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13695                           "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13696                           "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13697                           "\x72\x63\x74\x65\x20\x73\x6f\x54"
13698                           "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13699                           "\x63\x65\x65\x72\x73\x74\x54\x20"
13700                           "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13701                 .ilen   = 128,
13702                 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
13703                           "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
13704                           "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
13705                           "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
13706                           "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
13707                           "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
13708                           "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
13709                           "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
13710                           "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
13711                           "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
13712                           "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
13713                           "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
13714                           "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
13715                           "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
13716                           "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
13717                           "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
13718                           "\x41\xb5\x1f\xbb\xbd\x4e\xb8\x32"
13719                           "\x22\x86\x4e\x57\x1b\x2a\xd8\x6e"
13720                           "\xa9\xfb\xc8\xf3\xbf\x2d\xae\x2b"
13721                           "\x3b\xbc\x41\xe8\x38\xbb\xf1\x60"
13722                           "\x4c\x68\xa9\x4e\x8c\x73\xa7\xc0"
13723                           "\x2a\x74\xd4\x65\x12\xcb\x55\xf2"
13724                           "\xd5\x02\x6d\xe6\xaf\xc9\x2f\xf2"
13725                           "\x57\xaa\x85\xf7\xf3\x6a\xcb\xdb",
13726                 .rlen   = 128 + 64,
13727         },
13728 };
13729
13730 static const struct cipher_testvec aes_lrw_tv_template[] = {
13731         /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
13732         { /* LRW-32-AES 1 */
13733                 .key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
13734                           "\x4c\x26\x84\x14\xb5\x68\x01\x85"
13735                           "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
13736                           "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
13737                 .klen   = 32,
13738                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13739                           "\x00\x00\x00\x00\x00\x00\x00\x01",
13740                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13741                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13742                 .ctext  = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
13743                           "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
13744                 .len    = 16,
13745         }, { /* LRW-32-AES 2 */
13746                 .key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
13747                           "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
13748                           "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
13749                           "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
13750                 .klen   = 32,
13751                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13752                           "\x00\x00\x00\x00\x00\x00\x00\x02",
13753                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13754                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13755                 .ctext  = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
13756                           "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
13757                 .len    = 16,
13758         }, { /* LRW-32-AES 3 */
13759                 .key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
13760                           "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
13761                           "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
13762                           "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
13763                 .klen   = 32,
13764                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13765                           "\x00\x00\x00\x02\x00\x00\x00\x00",
13766                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13767                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13768                 .ctext  = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
13769                           "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
13770                 .len    = 16,
13771         }, { /* LRW-32-AES 4 */
13772                 .key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
13773                           "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
13774                           "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
13775                           "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
13776                           "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
13777                 .klen   = 40,
13778                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13779                           "\x00\x00\x00\x00\x00\x00\x00\x01",
13780                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13781                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13782                 .ctext  = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
13783                           "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
13784                 .len    = 16,
13785         }, { /* LRW-32-AES 5 */
13786                 .key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
13787                           "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
13788                           "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
13789                           "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
13790                           "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
13791                 .klen   = 40,
13792                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13793                           "\x00\x00\x00\x02\x00\x00\x00\x00",
13794                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13795                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13796                 .ctext  = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
13797                           "\xc8\x60\x48\x02\x87\xe3\x34\x06",
13798                 .len    = 16,
13799         }, { /* LRW-32-AES 6 */
13800                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
13801                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
13802                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
13803                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
13804                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
13805                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
13806                 .klen   = 48,
13807                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13808                           "\x00\x00\x00\x00\x00\x00\x00\x01",
13809                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13810                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13811                 .ctext  = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
13812                           "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
13813                 .len    = 16,
13814         }, { /* LRW-32-AES 7 */
13815                 .key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
13816                           "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
13817                           "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
13818                           "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
13819                           "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
13820                           "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
13821                 .klen   = 48,
13822                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13823                           "\x00\x00\x00\x02\x00\x00\x00\x00",
13824                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
13825                           "\x38\x39\x41\x42\x43\x44\x45\x46",
13826                 .ctext  = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
13827                           "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
13828                 .len    = 16,
13829         }, {
13830 /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
13831                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
13832                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
13833                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
13834                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
13835                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
13836                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
13837                 .klen   = 48,
13838                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13839                           "\x00\x00\x00\x00\x00\x00\x00\x01",
13840                 .ptext  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
13841                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
13842                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
13843                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
13844                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
13845                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
13846                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
13847                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
13848                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
13849                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
13850                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
13851                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
13852                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
13853                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
13854                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
13855                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
13856                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
13857                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
13858                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
13859                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
13860                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
13861                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
13862                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
13863                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
13864                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
13865                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
13866                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
13867                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
13868                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
13869                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
13870                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
13871                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
13872                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
13873                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
13874                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
13875                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
13876                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
13877                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
13878                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
13879                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
13880                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
13881                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
13882                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
13883                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
13884                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
13885                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
13886                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
13887                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
13888                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
13889                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
13890                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
13891                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
13892                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
13893                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
13894                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
13895                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
13896                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
13897                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
13898                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
13899                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
13900                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
13901                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
13902                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
13903                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
13904                 .ctext  = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
13905                           "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
13906                           "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
13907                           "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
13908                           "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
13909                           "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
13910                           "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
13911                           "\xe8\x58\x46\x97\x39\x51\x07\xde"
13912                           "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
13913                           "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
13914                           "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
13915                           "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
13916                           "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
13917                           "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
13918                           "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
13919                           "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
13920                           "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
13921                           "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
13922                           "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
13923                           "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
13924                           "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
13925                           "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
13926                           "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
13927                           "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
13928                           "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
13929                           "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
13930                           "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
13931                           "\x41\x30\x58\xc5\x62\x74\x52\x1d"
13932                           "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
13933                           "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
13934                           "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
13935                           "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
13936                           "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
13937                           "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
13938                           "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
13939                           "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
13940                           "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
13941                           "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
13942                           "\xb8\x79\x78\x97\x94\xff\x72\x13"
13943                           "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
13944                           "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
13945                           "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
13946                           "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
13947                           "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
13948                           "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
13949                           "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
13950                           "\x1e\x86\x53\x11\x53\x94\x00\xee"
13951                           "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
13952                           "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
13953                           "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
13954                           "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
13955                           "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
13956                           "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
13957                           "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
13958                           "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
13959                           "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
13960                           "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
13961                           "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
13962                           "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
13963                           "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
13964                           "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
13965                           "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
13966                           "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
13967                           "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
13968                 .len    = 512,
13969                 .also_non_np = 1,
13970                 .np     = 3,
13971                 .tap    = { 512 - 20, 4, 16 },
13972         }
13973 };
13974
13975 static const struct cipher_testvec aes_xts_tv_template[] = {
13976         /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
13977         { /* XTS-AES 1 */
13978                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
13979                           "\x00\x00\x00\x00\x00\x00\x00\x00"
13980                           "\x00\x00\x00\x00\x00\x00\x00\x00"
13981                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13982                 .klen   = 32,
13983                 .fips_skip = 1,
13984                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
13985                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13986                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
13987                           "\x00\x00\x00\x00\x00\x00\x00\x00"
13988                           "\x00\x00\x00\x00\x00\x00\x00\x00"
13989                           "\x00\x00\x00\x00\x00\x00\x00\x00",
13990                 .ctext  = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
13991                           "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
13992                           "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
13993                           "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
13994                 .len    = 32,
13995         }, { /* XTS-AES 2 */
13996                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
13997                           "\x11\x11\x11\x11\x11\x11\x11\x11"
13998                           "\x22\x22\x22\x22\x22\x22\x22\x22"
13999                           "\x22\x22\x22\x22\x22\x22\x22\x22",
14000                 .klen   = 32,
14001                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
14002                           "\x00\x00\x00\x00\x00\x00\x00\x00",
14003                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
14004                           "\x44\x44\x44\x44\x44\x44\x44\x44"
14005                           "\x44\x44\x44\x44\x44\x44\x44\x44"
14006                           "\x44\x44\x44\x44\x44\x44\x44\x44",
14007                 .ctext  = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
14008                           "\x39\x33\x40\x38\xac\xef\x83\x8b"
14009                           "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
14010                           "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
14011                 .len    = 32,
14012         }, { /* XTS-AES 3 */
14013                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
14014                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
14015                           "\x22\x22\x22\x22\x22\x22\x22\x22"
14016                           "\x22\x22\x22\x22\x22\x22\x22\x22",
14017                 .klen   = 32,
14018                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
14019                           "\x00\x00\x00\x00\x00\x00\x00\x00",
14020                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
14021                           "\x44\x44\x44\x44\x44\x44\x44\x44"
14022                           "\x44\x44\x44\x44\x44\x44\x44\x44"
14023                           "\x44\x44\x44\x44\x44\x44\x44\x44",
14024                 .ctext  = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
14025                           "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
14026                           "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
14027                           "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
14028                 .len    = 32,
14029         }, { /* XTS-AES 4 */
14030                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
14031                           "\x23\x53\x60\x28\x74\x71\x35\x26"
14032                           "\x31\x41\x59\x26\x53\x58\x97\x93"
14033                           "\x23\x84\x62\x64\x33\x83\x27\x95",
14034                 .klen   = 32,
14035                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
14036                           "\x00\x00\x00\x00\x00\x00\x00\x00",
14037                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
14038                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14039                           "\x10\x11\x12\x13\x14\x15\x16\x17"
14040                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14041                           "\x20\x21\x22\x23\x24\x25\x26\x27"
14042                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14043                           "\x30\x31\x32\x33\x34\x35\x36\x37"
14044                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14045                           "\x40\x41\x42\x43\x44\x45\x46\x47"
14046                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14047                           "\x50\x51\x52\x53\x54\x55\x56\x57"
14048                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14049                           "\x60\x61\x62\x63\x64\x65\x66\x67"
14050                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14051                           "\x70\x71\x72\x73\x74\x75\x76\x77"
14052                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14053                           "\x80\x81\x82\x83\x84\x85\x86\x87"
14054                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14055                           "\x90\x91\x92\x93\x94\x95\x96\x97"
14056                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14057                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14058                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14059                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14060                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14061                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14062                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14063                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14064                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14065                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14066                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14067                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14068                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
14069                           "\x00\x01\x02\x03\x04\x05\x06\x07"
14070                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14071                           "\x10\x11\x12\x13\x14\x15\x16\x17"
14072                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14073                           "\x20\x21\x22\x23\x24\x25\x26\x27"
14074                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14075                           "\x30\x31\x32\x33\x34\x35\x36\x37"
14076                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14077                           "\x40\x41\x42\x43\x44\x45\x46\x47"
14078                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14079                           "\x50\x51\x52\x53\x54\x55\x56\x57"
14080                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14081                           "\x60\x61\x62\x63\x64\x65\x66\x67"
14082                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14083                           "\x70\x71\x72\x73\x74\x75\x76\x77"
14084                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14085                           "\x80\x81\x82\x83\x84\x85\x86\x87"
14086                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14087                           "\x90\x91\x92\x93\x94\x95\x96\x97"
14088                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14089                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14090                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14091                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14092                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14093                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14094                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14095                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14096                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14097                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14098                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14099                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14100                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
14101                 .ctext  = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
14102                           "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
14103                           "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
14104                           "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
14105                           "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
14106                           "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
14107                           "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
14108                           "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
14109                           "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
14110                           "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
14111                           "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
14112                           "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
14113                           "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
14114                           "\x22\x97\x61\x46\xae\x20\xce\x84"
14115                           "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
14116                           "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
14117                           "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
14118                           "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
14119                           "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
14120                           "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
14121                           "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
14122                           "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
14123                           "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
14124                           "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
14125                           "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
14126                           "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
14127                           "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
14128                           "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
14129                           "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
14130                           "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
14131                           "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
14132                           "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
14133                           "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
14134                           "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
14135                           "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
14136                           "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
14137                           "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
14138                           "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
14139                           "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
14140                           "\x55\xef\x52\x97\xca\x67\xe9\xf3"
14141                           "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
14142                           "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
14143                           "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
14144                           "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
14145                           "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
14146                           "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
14147                           "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
14148                           "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
14149                           "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
14150                           "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
14151                           "\x18\x84\x69\x77\xae\x11\x9f\x7a"
14152                           "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
14153                           "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
14154                           "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
14155                           "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
14156                           "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
14157                           "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
14158                           "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
14159                           "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
14160                           "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
14161                           "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
14162                           "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
14163                           "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
14164                           "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
14165                 .len    = 512,
14166         }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
14167                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
14168                           "\x23\x53\x60\x28\x74\x71\x35\x26"
14169                           "\x62\x49\x77\x57\x24\x70\x93\x69"
14170                           "\x99\x59\x57\x49\x66\x96\x76\x27"
14171                           "\x31\x41\x59\x26\x53\x58\x97\x93"
14172                           "\x23\x84\x62\x64\x33\x83\x27\x95"
14173                           "\x02\x88\x41\x97\x16\x93\x99\x37"
14174                           "\x51\x05\x82\x09\x74\x94\x45\x92",
14175                 .klen   = 64,
14176                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
14177                           "\x00\x00\x00\x00\x00\x00\x00\x00",
14178                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
14179                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14180                           "\x10\x11\x12\x13\x14\x15\x16\x17"
14181                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14182                           "\x20\x21\x22\x23\x24\x25\x26\x27"
14183                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14184                           "\x30\x31\x32\x33\x34\x35\x36\x37"
14185                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14186                           "\x40\x41\x42\x43\x44\x45\x46\x47"
14187                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14188                           "\x50\x51\x52\x53\x54\x55\x56\x57"
14189                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14190                           "\x60\x61\x62\x63\x64\x65\x66\x67"
14191                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14192                           "\x70\x71\x72\x73\x74\x75\x76\x77"
14193                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14194                           "\x80\x81\x82\x83\x84\x85\x86\x87"
14195                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14196                           "\x90\x91\x92\x93\x94\x95\x96\x97"
14197                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14198                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14199                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14200                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14201                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14202                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14203                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14204                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14205                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14206                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14207                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14208                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14209                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
14210                           "\x00\x01\x02\x03\x04\x05\x06\x07"
14211                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14212                           "\x10\x11\x12\x13\x14\x15\x16\x17"
14213                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14214                           "\x20\x21\x22\x23\x24\x25\x26\x27"
14215                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14216                           "\x30\x31\x32\x33\x34\x35\x36\x37"
14217                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14218                           "\x40\x41\x42\x43\x44\x45\x46\x47"
14219                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14220                           "\x50\x51\x52\x53\x54\x55\x56\x57"
14221                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14222                           "\x60\x61\x62\x63\x64\x65\x66\x67"
14223                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14224                           "\x70\x71\x72\x73\x74\x75\x76\x77"
14225                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14226                           "\x80\x81\x82\x83\x84\x85\x86\x87"
14227                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14228                           "\x90\x91\x92\x93\x94\x95\x96\x97"
14229                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14230                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14231                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14232                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14233                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14234                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14235                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14236                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14237                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14238                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14239                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14240                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14241                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
14242                 .ctext  = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
14243                           "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
14244                           "\xea\x00\x80\x3f\x5e\x48\x23\x57"
14245                           "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
14246                           "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
14247                           "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
14248                           "\x68\x0a\x86\xac\x35\xad\xfc\x33"
14249                           "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
14250                           "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
14251                           "\xb1\x08\xfd\x10\x98\xba\xec\x70"
14252                           "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
14253                           "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
14254                           "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
14255                           "\xae\xba\x12\x29\x61\xd0\x3a\x75"
14256                           "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
14257                           "\x00\x02\x08\x87\x89\x14\x29\xca"
14258                           "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
14259                           "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
14260                           "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
14261                           "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
14262                           "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
14263                           "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
14264                           "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
14265                           "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
14266                           "\x93\xec\x05\xc5\x2e\x04\x93\xef"
14267                           "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
14268                           "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
14269                           "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
14270                           "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
14271                           "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
14272                           "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
14273                           "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
14274                           "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
14275                           "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
14276                           "\xbc\x48\x14\x57\x77\x8f\x61\x60"
14277                           "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
14278                           "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
14279                           "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
14280                           "\xf4\xc3\x33\xec\x44\x23\x88\x51"
14281                           "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
14282                           "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
14283                           "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
14284                           "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
14285                           "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
14286                           "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
14287                           "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
14288                           "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
14289                           "\x92\x5f\xed\xc4\xae\x74\xff\xac"
14290                           "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
14291                           "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
14292                           "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
14293                           "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
14294                           "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
14295                           "\x94\x30\x54\xff\x84\x01\x14\x93"
14296                           "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
14297                           "\x53\x76\x44\x1a\x77\xed\x43\x85"
14298                           "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
14299                           "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
14300                           "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
14301                           "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
14302                           "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
14303                           "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
14304                           "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
14305                           "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
14306                 .len    = 512,
14307                 .also_non_np = 1,
14308                 .np     = 3,
14309                 .tap    = { 512 - 20, 4, 16 },
14310         }
14311 };
14312
14313 static const struct cipher_testvec aes_ctr_tv_template[] = {
14314         { /* From NIST Special Publication 800-38A, Appendix F.5 */
14315                 .key    = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
14316                           "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
14317                 .klen   = 16,
14318                 .iv     = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14319                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
14320                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
14321                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14322                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14323                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14324                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14325                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14326                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14327                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
14328                 .ctext  = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
14329                           "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
14330                           "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
14331                           "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
14332                           "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
14333                           "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
14334                           "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
14335                           "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
14336                 .len    = 64,
14337         }, {
14338                 .key    = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
14339                           "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
14340                           "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
14341                 .klen   = 24,
14342                 .iv     = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14343                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
14344                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
14345                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14346                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14347                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14348                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14349                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14350                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14351                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
14352                 .ctext  = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
14353                           "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
14354                           "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
14355                           "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
14356                           "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
14357                           "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
14358                           "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
14359                           "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
14360                 .len    = 64,
14361         }, {
14362                 .key    = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
14363                           "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
14364                           "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
14365                           "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
14366                 .klen   = 32,
14367                 .iv     = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14368                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
14369                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
14370                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14371                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14372                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14373                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14374                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14375                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14376                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
14377                 .ctext  = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
14378                           "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
14379                           "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
14380                           "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
14381                           "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
14382                           "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
14383                           "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
14384                           "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
14385                 .len    = 64,
14386         }, { /* Generated with Crypto++ */
14387                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
14388                           "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
14389                           "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
14390                           "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
14391                 .klen   = 32,
14392                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
14393                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
14394                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
14395                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
14396                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
14397                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
14398                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
14399                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
14400                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
14401                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
14402                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
14403                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
14404                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
14405                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
14406                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
14407                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
14408                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
14409                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
14410                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
14411                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
14412                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
14413                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
14414                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
14415                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
14416                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
14417                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
14418                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
14419                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
14420                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
14421                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
14422                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
14423                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
14424                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
14425                           "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
14426                           "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
14427                           "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
14428                           "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
14429                           "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
14430                           "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
14431                           "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
14432                           "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
14433                           "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
14434                           "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
14435                           "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
14436                           "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
14437                           "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
14438                           "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
14439                           "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
14440                           "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
14441                           "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
14442                           "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
14443                           "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
14444                           "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
14445                           "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
14446                           "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
14447                           "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
14448                           "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
14449                           "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
14450                           "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
14451                           "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
14452                           "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
14453                           "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
14454                           "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
14455                           "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
14456                 .ctext  = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
14457                           "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
14458                           "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
14459                           "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
14460                           "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
14461                           "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
14462                           "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
14463                           "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
14464                           "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
14465                           "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
14466                           "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
14467                           "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
14468                           "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
14469                           "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
14470                           "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
14471                           "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
14472                           "\x34\x4B\x31\x69\x84\x66\x96\x44"
14473                           "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
14474                           "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
14475                           "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
14476                           "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
14477                           "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
14478                           "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
14479                           "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
14480                           "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
14481                           "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
14482                           "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
14483                           "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
14484                           "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
14485                           "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
14486                           "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
14487                           "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
14488                           "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
14489                           "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
14490                           "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
14491                           "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
14492                           "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
14493                           "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
14494                           "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
14495                           "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
14496                           "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
14497                           "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
14498                           "\x85\x99\x22\xE8\x91\x38\x70\x83"
14499                           "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
14500                           "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
14501                           "\x2F\x69\xEE\x84\x36\x44\x76\x98"
14502                           "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
14503                           "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
14504                           "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
14505                           "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
14506                           "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
14507                           "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
14508                           "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
14509                           "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
14510                           "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
14511                           "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
14512                           "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
14513                           "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
14514                           "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
14515                           "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
14516                           "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
14517                           "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
14518                 .len    = 496,
14519                 .also_non_np = 1,
14520                 .np     = 3,
14521                 .tap    = { 496 - 20, 4, 16 },
14522         }, { /* Generated with Crypto++ */
14523                 .key    = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
14524                           "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
14525                           "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
14526                           "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
14527                 .klen   = 32,
14528                 .iv     = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
14529                           "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
14530                 .ptext  = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
14531                           "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
14532                           "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
14533                           "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
14534                           "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
14535                           "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
14536                           "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
14537                           "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
14538                           "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
14539                           "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
14540                           "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
14541                           "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
14542                           "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
14543                           "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
14544                           "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
14545                           "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
14546                           "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
14547                           "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
14548                           "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
14549                           "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
14550                           "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
14551                           "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
14552                           "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
14553                           "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
14554                           "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
14555                           "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
14556                           "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
14557                           "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
14558                           "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
14559                           "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
14560                           "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
14561                           "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
14562                           "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
14563                           "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
14564                           "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
14565                           "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
14566                           "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
14567                           "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
14568                           "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
14569                           "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
14570                           "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
14571                           "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
14572                           "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
14573                           "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
14574                           "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
14575                           "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
14576                           "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
14577                           "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
14578                           "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
14579                           "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
14580                           "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
14581                           "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
14582                           "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
14583                           "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
14584                           "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
14585                           "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
14586                           "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
14587                           "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
14588                           "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
14589                           "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
14590                           "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
14591                           "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
14592                           "\x7B\xE4\x4D",
14593                 .ctext  = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
14594                           "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
14595                           "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
14596                           "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
14597                           "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
14598                           "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
14599                           "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
14600                           "\x75\xDE\x71\x86\x3C\x98\x23\x44"
14601                           "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
14602                           "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
14603                           "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
14604                           "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
14605                           "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
14606                           "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
14607                           "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
14608                           "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
14609                           "\xA8\x28\x69\x65\x31\xE1\x45\x83"
14610                           "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
14611                           "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
14612                           "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
14613                           "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
14614                           "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
14615                           "\x45\x18\x18\x74\x19\xAD\x71\x01"
14616                           "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
14617                           "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
14618                           "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
14619                           "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
14620                           "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
14621                           "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
14622                           "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
14623                           "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
14624                           "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
14625                           "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
14626                           "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
14627                           "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
14628                           "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
14629                           "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
14630                           "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
14631                           "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
14632                           "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
14633                           "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
14634                           "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
14635                           "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
14636                           "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
14637                           "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
14638                           "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
14639                           "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
14640                           "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
14641                           "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
14642                           "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
14643                           "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
14644                           "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
14645                           "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
14646                           "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
14647                           "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
14648                           "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
14649                           "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
14650                           "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
14651                           "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
14652                           "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
14653                           "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
14654                           "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
14655                           "\xFB\xF2\x3F",
14656                 .len    = 499,
14657                 .also_non_np = 1,
14658                 .np     = 2,
14659                 .tap    = { 499 - 16, 16 },
14660         },
14661 };
14662
14663 static const struct cipher_testvec aes_ctr_rfc3686_tv_template[] = {
14664         { /* From RFC 3686 */
14665                 .key    = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
14666                           "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
14667                           "\x00\x00\x00\x30",
14668                 .klen   = 20,
14669                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
14670                 .ptext  = "Single block msg",
14671                 .ctext  = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
14672                           "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
14673                 .len    = 16,
14674         }, {
14675                 .key    = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
14676                           "\x43\xd6\xce\x1f\x32\x53\x91\x63"
14677                           "\x00\x6c\xb6\xdb",
14678                 .klen   = 20,
14679                 .iv     = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
14680                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
14681                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14682                           "\x10\x11\x12\x13\x14\x15\x16\x17"
14683                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
14684                 .ctext  = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
14685                           "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
14686                           "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
14687                           "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
14688                 .len    = 32,
14689         }, {
14690                 .key    = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
14691                           "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
14692                           "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
14693                           "\x00\x00\x00\x48",
14694                 .klen   = 28,
14695                 .iv     = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
14696                 .ptext  = "Single block msg",
14697                 .ctext  = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
14698                           "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
14699                 .len    = 16,
14700         }, {
14701                 .key    = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
14702                           "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
14703                           "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
14704                           "\x00\x96\xb0\x3b",
14705                 .klen   = 28,
14706                 .iv     = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
14707                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
14708                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14709                           "\x10\x11\x12\x13\x14\x15\x16\x17"
14710                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
14711                 .ctext  = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
14712                           "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
14713                           "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
14714                           "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
14715                 .len    = 32,
14716         }, {
14717                 .key    = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
14718                           "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
14719                           "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
14720                           "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
14721                           "\x00\x00\x00\x60",
14722                 .klen   = 36,
14723                 .iv     = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
14724                 .ptext  = "Single block msg",
14725                 .ctext  = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
14726                           "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
14727                 .len    = 16,
14728         }, {
14729                 .key    = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
14730                           "\x07\x96\x36\x58\x79\xef\xf8\x86"
14731                           "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
14732                           "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
14733                           "\x00\xfa\xac\x24",
14734                 .klen   = 36,
14735                 .iv     = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
14736                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
14737                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14738                           "\x10\x11\x12\x13\x14\x15\x16\x17"
14739                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
14740                 .ctext  = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
14741                           "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
14742                           "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
14743                           "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
14744                 .len    = 32,
14745         }, {
14746         // generated using Crypto++
14747                 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
14748                         "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14749                         "\x10\x11\x12\x13\x14\x15\x16\x17"
14750                         "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14751                         "\x00\x00\x00\x00",
14752                 .klen = 32 + 4,
14753                 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
14754                 .ptext =
14755                         "\x00\x01\x02\x03\x04\x05\x06\x07"
14756                         "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14757                         "\x10\x11\x12\x13\x14\x15\x16\x17"
14758                         "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14759                         "\x20\x21\x22\x23\x24\x25\x26\x27"
14760                         "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14761                         "\x30\x31\x32\x33\x34\x35\x36\x37"
14762                         "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14763                         "\x40\x41\x42\x43\x44\x45\x46\x47"
14764                         "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14765                         "\x50\x51\x52\x53\x54\x55\x56\x57"
14766                         "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14767                         "\x60\x61\x62\x63\x64\x65\x66\x67"
14768                         "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14769                         "\x70\x71\x72\x73\x74\x75\x76\x77"
14770                         "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14771                         "\x80\x81\x82\x83\x84\x85\x86\x87"
14772                         "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14773                         "\x90\x91\x92\x93\x94\x95\x96\x97"
14774                         "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14775                         "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14776                         "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14777                         "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14778                         "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14779                         "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14780                         "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14781                         "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14782                         "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14783                         "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14784                         "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14785                         "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14786                         "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
14787                         "\x00\x03\x06\x09\x0c\x0f\x12\x15"
14788                         "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
14789                         "\x30\x33\x36\x39\x3c\x3f\x42\x45"
14790                         "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
14791                         "\x60\x63\x66\x69\x6c\x6f\x72\x75"
14792                         "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
14793                         "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
14794                         "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
14795                         "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
14796                         "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
14797                         "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
14798                         "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
14799                         "\x20\x23\x26\x29\x2c\x2f\x32\x35"
14800                         "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
14801                         "\x50\x53\x56\x59\x5c\x5f\x62\x65"
14802                         "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
14803                         "\x80\x83\x86\x89\x8c\x8f\x92\x95"
14804                         "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
14805                         "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
14806                         "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
14807                         "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
14808                         "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
14809                         "\x10\x13\x16\x19\x1c\x1f\x22\x25"
14810                         "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
14811                         "\x40\x43\x46\x49\x4c\x4f\x52\x55"
14812                         "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
14813                         "\x70\x73\x76\x79\x7c\x7f\x82\x85"
14814                         "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
14815                         "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
14816                         "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
14817                         "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
14818                         "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
14819                         "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
14820                         "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
14821                         "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
14822                         "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
14823                         "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
14824                         "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
14825                         "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
14826                         "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
14827                         "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
14828                         "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
14829                         "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
14830                         "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
14831                         "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
14832                         "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
14833                         "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
14834                         "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
14835                         "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
14836                         "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
14837                         "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
14838                         "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
14839                         "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
14840                         "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
14841                         "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
14842                         "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
14843                         "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
14844                         "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
14845                         "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
14846                         "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
14847                         "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
14848                         "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
14849                         "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
14850                         "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
14851                         "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
14852                         "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
14853                         "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
14854                         "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
14855                         "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
14856                         "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
14857                         "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
14858                         "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
14859                         "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
14860                         "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
14861                         "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
14862                         "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
14863                         "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
14864                         "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
14865                         "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
14866                         "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
14867                         "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
14868                         "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
14869                         "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
14870                         "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
14871                         "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
14872                         "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
14873                         "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
14874                         "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
14875                         "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
14876                         "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
14877                         "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
14878                         "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
14879                         "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
14880                         "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
14881                         "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
14882                         "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
14883                         "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
14884                         "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
14885                         "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
14886                         "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
14887                         "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
14888                         "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
14889                         "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
14890                         "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
14891                         "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
14892                         "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
14893                         "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
14894                         "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
14895                         "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
14896                         "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
14897                         "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
14898                         "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
14899                         "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
14900                         "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
14901                         "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
14902                         "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
14903                         "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
14904                         "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
14905                         "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
14906                         "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
14907                         "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
14908                         "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
14909                         "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
14910                         "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
14911                         "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
14912                         "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
14913                         "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
14914                         "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
14915                         "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
14916                         "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
14917                         "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
14918                         "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
14919                         "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
14920                         "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
14921                         "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
14922                         "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
14923                         "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
14924                         "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
14925                         "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
14926                         "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
14927                         "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
14928                         "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
14929                         "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
14930                         "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
14931                         "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
14932                         "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
14933                         "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
14934                         "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
14935                         "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
14936                         "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
14937                         "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
14938                         "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
14939                         "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
14940                         "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
14941                         "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
14942                         "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
14943                         "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
14944                         "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
14945                         "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
14946                         "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
14947                         "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
14948                         "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
14949                         "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
14950                         "\x38\x45\x52\x5f\x6c\x79\x86\x93"
14951                         "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
14952                         "\x08\x15\x22\x2f\x3c\x49\x56\x63"
14953                         "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
14954                         "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
14955                         "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
14956                         "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
14957                         "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
14958                         "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
14959                         "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
14960                         "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
14961                         "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
14962                         "\x18\x25\x32\x3f\x4c\x59\x66\x73"
14963                         "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
14964                         "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
14965                         "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
14966                         "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
14967                         "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
14968                         "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
14969                         "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
14970                         "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
14971                         "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
14972                         "\x28\x35\x42\x4f\x5c\x69\x76\x83"
14973                         "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
14974                         "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
14975                         "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
14976                         "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
14977                         "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
14978                         "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
14979                         "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
14980                         "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
14981                         "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
14982                         "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
14983                         "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
14984                         "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
14985                         "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
14986                         "\x48\x57\x66\x75\x84\x93\xa2\xb1"
14987                         "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
14988                         "\x38\x47\x56\x65\x74\x83\x92\xa1"
14989                         "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
14990                         "\x28\x37\x46\x55\x64\x73\x82\x91"
14991                         "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
14992                         "\x18\x27\x36\x45\x54\x63\x72\x81"
14993                         "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
14994                         "\x08\x17\x26\x35\x44\x53\x62\x71"
14995                         "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
14996                         "\xf8\x07\x16\x25\x34\x43\x52\x61"
14997                         "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
14998                         "\xe8\xf7\x06\x15\x24\x33\x42\x51"
14999                         "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
15000                         "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
15001                         "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
15002                         "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
15003                         "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
15004                         "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
15005                         "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
15006                         "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
15007                         "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
15008                         "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
15009                         "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
15010                         "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
15011                         "\x00\x11\x22\x33\x44\x55\x66\x77"
15012                         "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
15013                         "\x10\x21\x32\x43\x54\x65\x76\x87"
15014                         "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
15015                         "\x20\x31\x42\x53\x64\x75\x86\x97"
15016                         "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
15017                         "\x30\x41\x52\x63\x74\x85\x96\xa7"
15018                         "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
15019                         "\x40\x51\x62\x73\x84\x95\xa6\xb7"
15020                         "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
15021                         "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
15022                         "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
15023                         "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
15024                         "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
15025                         "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
15026                         "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
15027                         "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
15028                         "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
15029                         "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
15030                         "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
15031                         "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
15032                         "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
15033                         "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
15034                         "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
15035                         "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
15036                         "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
15037                         "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
15038                         "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
15039                         "\xe0\xf1\x02\x13\x24\x35\x46\x57"
15040                         "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
15041                         "\xf0\x01\x12\x23\x34\x45\x56\x67"
15042                         "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
15043                         "\x00\x13\x26\x39\x4c\x5f\x72\x85"
15044                         "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
15045                         "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
15046                         "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
15047                         "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
15048                         "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
15049                         "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
15050                         "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
15051                         "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
15052                         "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
15053                         "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
15054                         "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
15055                         "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
15056                         "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
15057                         "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
15058                         "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
15059                         "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
15060                         "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
15061                         "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
15062                         "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
15063                         "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
15064                         "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
15065                         "\x10\x23\x36\x49\x5c\x6f\x82\x95"
15066                         "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
15067                         "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
15068                         "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
15069                         "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
15070                         "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
15071                         "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
15072                         "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
15073                         "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
15074                         "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
15075                         "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
15076                         "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
15077                         "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
15078                         "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
15079                         "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
15080                         "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
15081                         "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
15082                         "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
15083                         "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
15084                         "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
15085                         "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
15086                         "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
15087                         "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
15088                         "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
15089                         "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
15090                         "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
15091                         "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
15092                         "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
15093                         "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
15094                         "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
15095                         "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
15096                         "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
15097                         "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
15098                         "\x18\x2d\x42\x57\x6c\x81\x96\xab"
15099                         "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
15100                         "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
15101                         "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
15102                         "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
15103                         "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
15104                         "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
15105                         "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
15106                         "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
15107                         "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
15108                         "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
15109                         "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
15110                         "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
15111                         "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
15112                         "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
15113                         "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
15114                         "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
15115                         "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
15116                         "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
15117                         "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
15118                         "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
15119                         "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
15120                         "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
15121                         "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
15122                         "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
15123                         "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
15124                         "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
15125                         "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
15126                         "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
15127                         "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
15128                         "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
15129                         "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
15130                         "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
15131                         "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
15132                         "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
15133                         "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
15134                         "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
15135                         "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
15136                         "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
15137                         "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
15138                         "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
15139                         "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
15140                         "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
15141                         "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
15142                         "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
15143                         "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
15144                         "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
15145                         "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
15146                         "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
15147                         "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
15148                         "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
15149                         "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
15150                         "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
15151                         "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
15152                         "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
15153                         "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
15154                         "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
15155                         "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
15156                         "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
15157                         "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
15158                         "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
15159                         "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
15160                         "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
15161                         "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
15162                         "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
15163                         "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
15164                         "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
15165                         "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
15166                         "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
15167                         "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
15168                         "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
15169                         "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
15170                         "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
15171                         "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
15172                         "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
15173                         "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
15174                         "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
15175                         "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
15176                         "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
15177                         "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
15178                         "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
15179                         "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
15180                         "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
15181                         "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
15182                         "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
15183                         "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
15184                         "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
15185                         "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
15186                         "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
15187                         "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
15188                         "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
15189                         "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
15190                         "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
15191                         "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
15192                         "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
15193                         "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
15194                         "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
15195                         "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
15196                         "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
15197                         "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
15198                         "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
15199                         "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
15200                         "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
15201                         "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
15202                         "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
15203                         "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
15204                         "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
15205                         "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
15206                         "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
15207                         "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
15208                         "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
15209                         "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
15210                         "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
15211                         "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
15212                         "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
15213                         "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
15214                         "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
15215                         "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
15216                         "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
15217                         "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
15218                         "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
15219                         "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
15220                         "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
15221                         "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
15222                         "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
15223                         "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
15224                         "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
15225                         "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
15226                         "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
15227                         "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
15228                         "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
15229                         "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
15230                         "\x78\x95\xb2\xcf\xec\x09\x26\x43"
15231                         "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
15232                         "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
15233                         "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
15234                         "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
15235                         "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
15236                         "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
15237                         "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
15238                         "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
15239                         "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
15240                         "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
15241                         "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
15242                         "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
15243                         "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
15244                         "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
15245                         "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
15246                         "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
15247                         "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
15248                         "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
15249                         "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
15250                         "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
15251                         "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
15252                         "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
15253                         "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
15254                         "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
15255                         "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
15256                         "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
15257                         "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
15258                         "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
15259                         "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
15260                         "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
15261                         "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
15262                         "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
15263                         "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
15264                         "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
15265                         "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
15266                         "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
15267                         "\x00\x21\x42\x63",
15268                 .ctext =
15269                         "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
15270                         "\xae\xff\x91\x3a\x44\xcf\x38\x32"
15271                         "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
15272                         "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
15273                         "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
15274                         "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
15275                         "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
15276                         "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
15277                         "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
15278                         "\x18\xff\x75\x6d\x06\x2d\x00\xab"
15279                         "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
15280                         "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
15281                         "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
15282                         "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
15283                         "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
15284                         "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
15285                         "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
15286                         "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
15287                         "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
15288                         "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
15289                         "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
15290                         "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
15291                         "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
15292                         "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
15293                         "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
15294                         "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
15295                         "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
15296                         "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
15297                         "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
15298                         "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
15299                         "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
15300                         "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
15301                         "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
15302                         "\x6a\x25\x15\x33\x4e\x45\x08\xec"
15303                         "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
15304                         "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
15305                         "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
15306                         "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
15307                         "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
15308                         "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
15309                         "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
15310                         "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
15311                         "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
15312                         "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
15313                         "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
15314                         "\x04\x02\xef\xd3\x44\xde\x76\x31"
15315                         "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
15316                         "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
15317                         "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
15318                         "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
15319                         "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
15320                         "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
15321                         "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
15322                         "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
15323                         "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
15324                         "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
15325                         "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
15326                         "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
15327                         "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
15328                         "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
15329                         "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
15330                         "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
15331                         "\x32\x03\xed\xf0\x50\x1c\x56\x39"
15332                         "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
15333                         "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
15334                         "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
15335                         "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
15336                         "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
15337                         "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
15338                         "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
15339                         "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
15340                         "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
15341                         "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
15342                         "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
15343                         "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
15344                         "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
15345                         "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
15346                         "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
15347                         "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
15348                         "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
15349                         "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
15350                         "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
15351                         "\x69\x3a\x29\x23\xac\x86\x32\xa5"
15352                         "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
15353                         "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
15354                         "\x59\x6a\xd3\x50\x59\x43\x59\xde"
15355                         "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
15356                         "\x18\x34\x0d\x1a\x63\x33\xed\x10"
15357                         "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
15358                         "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
15359                         "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
15360                         "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
15361                         "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
15362                         "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
15363                         "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
15364                         "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
15365                         "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
15366                         "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
15367                         "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
15368                         "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
15369                         "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
15370                         "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
15371                         "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
15372                         "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
15373                         "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
15374                         "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
15375                         "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
15376                         "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
15377                         "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
15378                         "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
15379                         "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
15380                         "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
15381                         "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
15382                         "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
15383                         "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
15384                         "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
15385                         "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
15386                         "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
15387                         "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
15388                         "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
15389                         "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
15390                         "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
15391                         "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
15392                         "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
15393                         "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
15394                         "\x26\x39\x83\x94\xef\x27\xd8\x53"
15395                         "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
15396                         "\x43\x7c\x95\x0a\x53\xef\x66\xda"
15397                         "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
15398                         "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
15399                         "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
15400                         "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
15401                         "\x88\xee\x73\xcf\x66\x2f\x52\x56"
15402                         "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
15403                         "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
15404                         "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
15405                         "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
15406                         "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
15407                         "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
15408                         "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
15409                         "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
15410                         "\xba\x61\x34\x38\x7c\xda\x48\x3e"
15411                         "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
15412                         "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
15413                         "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
15414                         "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
15415                         "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
15416                         "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
15417                         "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
15418                         "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
15419                         "\x35\x12\xe3\x36\x28\x27\x36\x58"
15420                         "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
15421                         "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
15422                         "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
15423                         "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
15424                         "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
15425                         "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
15426                         "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
15427                         "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
15428                         "\x89\xf3\x78\x35\x44\x62\x78\x72"
15429                         "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
15430                         "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
15431                         "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
15432                         "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
15433                         "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
15434                         "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
15435                         "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
15436                         "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
15437                         "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
15438                         "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
15439                         "\xd2\x49\x77\x81\x6d\x90\x70\xae"
15440                         "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
15441                         "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
15442                         "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
15443                         "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
15444                         "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
15445                         "\x45\x42\x27\x75\x50\xe5\xee\xb8"
15446                         "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
15447                         "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
15448                         "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
15449                         "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
15450                         "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
15451                         "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
15452                         "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
15453                         "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
15454                         "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
15455                         "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
15456                         "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
15457                         "\xa9\x21\x2b\x92\x94\x87\x62\x57"
15458                         "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
15459                         "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
15460                         "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
15461                         "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
15462                         "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
15463                         "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
15464                         "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
15465                         "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
15466                         "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
15467                         "\x69\x34\x78\x61\x24\x21\x9c\x8a"
15468                         "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
15469                         "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
15470                         "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
15471                         "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
15472                         "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
15473                         "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
15474                         "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
15475                         "\xb1\x95\x28\x86\x20\xe9\x17\x49"
15476                         "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
15477                         "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
15478                         "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
15479                         "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
15480                         "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
15481                         "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
15482                         "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
15483                         "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
15484                         "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
15485                         "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
15486                         "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
15487                         "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
15488                         "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
15489                         "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
15490                         "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
15491                         "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
15492                         "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
15493                         "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
15494                         "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
15495                         "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
15496                         "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
15497                         "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
15498                         "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
15499                         "\x29\x90\x46\x30\x92\x69\x7d\x13"
15500                         "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
15501                         "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
15502                         "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
15503                         "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
15504                         "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
15505                         "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
15506                         "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
15507                         "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
15508                         "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
15509                         "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
15510                         "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
15511                         "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
15512                         "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
15513                         "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
15514                         "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
15515                         "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
15516                         "\x77\x65\x08\x60\x11\x76\x4c\x8d"
15517                         "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
15518                         "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
15519                         "\x03\xd1\x24\x95\xec\x6d\xab\x38"
15520                         "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
15521                         "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
15522                         "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
15523                         "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
15524                         "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
15525                         "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
15526                         "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
15527                         "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
15528                         "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
15529                         "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
15530                         "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
15531                         "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
15532                         "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
15533                         "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
15534                         "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
15535                         "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
15536                         "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
15537                         "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
15538                         "\xe5\x79\x81\x73\xcd\x43\x59\x68"
15539                         "\x73\x02\x3b\x78\x21\x72\x43\x00"
15540                         "\x49\x17\xf7\x00\xaf\x68\x24\x53"
15541                         "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
15542                         "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
15543                         "\x11\x94\x13\x69\x51\x09\x28\xde"
15544                         "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
15545                         "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
15546                         "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
15547                         "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
15548                         "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
15549                         "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
15550                         "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
15551                         "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
15552                         "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
15553                         "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
15554                         "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
15555                         "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
15556                         "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
15557                         "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
15558                         "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
15559                         "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
15560                         "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
15561                         "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
15562                         "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
15563                         "\x69\xdc\xab\x24\x57\x60\x47\xc1"
15564                         "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
15565                         "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
15566                         "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
15567                         "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
15568                         "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
15569                         "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
15570                         "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
15571                         "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
15572                         "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
15573                         "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
15574                         "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
15575                         "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
15576                         "\x85\x62\x82\x70\x18\xe2\x9a\x78"
15577                         "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
15578                         "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
15579                         "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
15580                         "\x35\xf3\x61\x06\x72\x84\xc4\x32"
15581                         "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
15582                         "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
15583                         "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
15584                         "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
15585                         "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
15586                         "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
15587                         "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
15588                         "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
15589                         "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
15590                         "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
15591                         "\x4f\x73\x38\x09\x75\x64\x48\xe0"
15592                         "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
15593                         "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
15594                         "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
15595                         "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
15596                         "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
15597                         "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
15598                         "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
15599                         "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
15600                         "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
15601                         "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
15602                         "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
15603                         "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
15604                         "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
15605                         "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
15606                         "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
15607                         "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
15608                         "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
15609                         "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
15610                         "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
15611                         "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
15612                         "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
15613                         "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
15614                         "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
15615                         "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
15616                         "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
15617                         "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
15618                         "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
15619                         "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
15620                         "\xce\x4d\x5f\x18\x60\xce\x87\x22"
15621                         "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
15622                         "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
15623                         "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
15624                         "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
15625                         "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
15626                         "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
15627                         "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
15628                         "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
15629                         "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
15630                         "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
15631                         "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
15632                         "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
15633                         "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
15634                         "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
15635                         "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
15636                         "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
15637                         "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
15638                         "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
15639                         "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
15640                         "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
15641                         "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
15642                         "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
15643                         "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
15644                         "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
15645                         "\xce\x54\xf9\x18\x58\xb5\xff\x44"
15646                         "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
15647                         "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
15648                         "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
15649                         "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
15650                         "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
15651                         "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
15652                         "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
15653                         "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
15654                         "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
15655                         "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
15656                         "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
15657                         "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
15658                         "\x0c\xd6\x04\x14\xde\x51\x74\x75"
15659                         "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
15660                         "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
15661                         "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
15662                         "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
15663                         "\x75\x46\x65\x4e\x07\x34\x37\xa3"
15664                         "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
15665                         "\x69\x24\x0e\x38\x67\x43\x8c\xde"
15666                         "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
15667                         "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
15668                         "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
15669                         "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
15670                         "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
15671                         "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
15672                         "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
15673                         "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
15674                         "\x91\x7d\x62\x64\x96\x72\xde\xfc"
15675                         "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
15676                         "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
15677                         "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
15678                         "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
15679                         "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
15680                         "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
15681                         "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
15682                         "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
15683                         "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
15684                         "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
15685                         "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
15686                         "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
15687                         "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
15688                         "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
15689                         "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
15690                         "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
15691                         "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
15692                         "\xae\xed\x39\x88\x42\x11\x3c\xed"
15693                         "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
15694                         "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
15695                         "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
15696                         "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
15697                         "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
15698                         "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
15699                         "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
15700                         "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
15701                         "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
15702                         "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
15703                         "\x34\x17\xde\xba\x47\xf1\x06\x18"
15704                         "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
15705                         "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
15706                         "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
15707                         "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
15708                         "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
15709                         "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
15710                         "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
15711                         "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
15712                         "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
15713                         "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
15714                         "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
15715                         "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
15716                         "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
15717                         "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
15718                         "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
15719                         "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
15720                         "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
15721                         "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
15722                         "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
15723                         "\x2c\x56\x39\x79\x0f\x69\x44\x75"
15724                         "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
15725                         "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
15726                         "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
15727                         "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
15728                         "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
15729                         "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
15730                         "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
15731                         "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
15732                         "\x63\x9b\xce\x61\x24\x79\xc0\x70"
15733                         "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
15734                         "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
15735                         "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
15736                         "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
15737                         "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
15738                         "\x74\x56\x58\x40\x02\x37\x52\x2c"
15739                         "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
15740                         "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
15741                         "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
15742                         "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
15743                         "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
15744                         "\xed\x38\x80\x36\x72\x43\x27\x49"
15745                         "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
15746                         "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
15747                         "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
15748                         "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
15749                         "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
15750                         "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
15751                         "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
15752                         "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
15753                         "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
15754                         "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
15755                         "\x12\xee\x30\xfe\xd8\x30\xef\x34"
15756                         "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
15757                         "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
15758                         "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
15759                         "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
15760                         "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
15761                         "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
15762                         "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
15763                         "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
15764                         "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
15765                         "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
15766                         "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
15767                         "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
15768                         "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
15769                         "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
15770                         "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
15771                         "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
15772                         "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
15773                         "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
15774                         "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
15775                         "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
15776                         "\x44\x12\xfb\x73\x77\xd4\x13\x39"
15777                         "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
15778                         "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
15779                         "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
15780                         "\x4b\xef\x31\x18\xea\xac\xb1\x84"
15781                         "\x21\xed\xda\x86",
15782                 .len    = 4100,
15783                 .np     = 2,
15784                 .tap    = { 4064, 36 },
15785         },
15786 };
15787
15788 static const struct cipher_testvec aes_ofb_tv_template[] = {
15789          /* From NIST Special Publication 800-38A, Appendix F.5 */
15790         {
15791                 .key    = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
15792                           "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
15793                 .klen   = 16,
15794                 .iv     = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
15795                           "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15796                 .ptext  = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15797                           "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15798                           "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15799                           "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15800                           "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15801                           "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15802                           "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15803                           "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15804                 .ctext  = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
15805                           "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
15806                           "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
15807                           "\x3c\x52\xda\xc5\x4e\xd8\x25"
15808                           "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
15809                           "\x44\xf7\xa8\x22\x60\xed\xcc"
15810                           "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
15811                           "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
15812                 .len    = 64,
15813         }
15814 };
15815
15816 static const struct aead_testvec aes_gcm_enc_tv_template[] = {
15817         { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
15818                 .key    = zeroed_string,
15819                 .klen   = 16,
15820                 .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
15821                           "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
15822                 .rlen   = 16,
15823         }, {
15824                 .key    = zeroed_string,
15825                 .klen   = 16,
15826                 .input  = zeroed_string,
15827                 .ilen   = 16,
15828                 .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
15829                           "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
15830                           "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
15831                           "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
15832                 .rlen   = 32,
15833         }, {
15834                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15835                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
15836                 .klen   = 16,
15837                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15838                           "\xde\xca\xf8\x88",
15839                 .input  = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15840                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15841                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15842                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15843                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15844                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15845                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15846                           "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
15847                 .ilen   = 64,
15848                 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
15849                           "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
15850                           "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
15851                           "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
15852                           "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
15853                           "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
15854                           "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
15855                           "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
15856                           "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
15857                           "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
15858                 .rlen   = 80,
15859         }, {
15860                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15861                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
15862                 .klen   = 16,
15863                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15864                           "\xde\xca\xf8\x88",
15865                 .input  = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15866                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15867                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15868                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15869                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15870                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15871                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15872                           "\xba\x63\x7b\x39",
15873                 .ilen   = 60,
15874                 .assoc  = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15875                           "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15876                           "\xab\xad\xda\xd2",
15877                 .alen   = 20,
15878                 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
15879                           "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
15880                           "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
15881                           "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
15882                           "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
15883                           "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
15884                           "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
15885                           "\x3d\x58\xe0\x91"
15886                           "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
15887                           "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
15888                 .rlen   = 76,
15889         }, {
15890                 .key    = zeroed_string,
15891                 .klen   = 24,
15892                 .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
15893                           "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
15894                 .rlen   = 16,
15895         }, {
15896                 .key    = zeroed_string,
15897                 .klen   = 24,
15898                 .input  = zeroed_string,
15899                 .ilen   = 16,
15900                 .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
15901                           "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
15902                           "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
15903                           "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
15904                 .rlen   = 32,
15905         }, {
15906                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15907                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15908                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
15909                 .klen   = 24,
15910                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15911                           "\xde\xca\xf8\x88",
15912                 .input  = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15913                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15914                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15915                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15916                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15917                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15918                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15919                           "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
15920                 .ilen   = 64,
15921                 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
15922                           "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
15923                           "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
15924                           "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
15925                           "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
15926                           "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
15927                           "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
15928                           "\xcc\xda\x27\x10\xac\xad\xe2\x56"
15929                           "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
15930                           "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
15931                 .rlen   = 80,
15932         }, {
15933                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15934                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15935                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
15936                 .klen   = 24,
15937                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15938                           "\xde\xca\xf8\x88",
15939                 .input  = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15940                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15941                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15942                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15943                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15944                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15945                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15946                           "\xba\x63\x7b\x39",
15947                 .ilen   = 60,
15948                 .assoc  = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15949                           "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15950                           "\xab\xad\xda\xd2",
15951                 .alen   = 20,
15952                 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
15953                           "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
15954                           "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
15955                           "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
15956                           "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
15957                           "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
15958                           "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
15959                           "\xcc\xda\x27\x10"
15960                           "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
15961                           "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
15962                 .rlen   = 76,
15963                 .np     = 2,
15964                 .tap    = { 32, 28 },
15965                 .anp    = 2,
15966                 .atap   = { 8, 12 }
15967         }, {
15968                 .key    = zeroed_string,
15969                 .klen   = 32,
15970                 .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
15971                           "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
15972                 .rlen   = 16,
15973         }
15974 };
15975
15976 static const struct aead_testvec aes_gcm_dec_tv_template[] = {
15977         { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
15978                 .key    = zeroed_string,
15979                 .klen   = 32,
15980                 .input  = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
15981                           "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
15982                           "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
15983                           "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
15984                 .ilen   = 32,
15985                 .result  = zeroed_string,
15986                 .rlen   = 16,
15987         }, {
15988                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15989                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15990                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15991                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
15992                 .klen   = 32,
15993                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15994                           "\xde\xca\xf8\x88",
15995                 .input  = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
15996                           "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
15997                           "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
15998                           "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
15999                           "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
16000                           "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
16001                           "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
16002                           "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
16003                           "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
16004                           "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
16005                 .ilen   = 80,
16006                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
16007                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
16008                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
16009                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
16010                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
16011                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
16012                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
16013                           "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
16014                 .rlen   = 64,
16015         }, {
16016                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16017                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16018                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16019                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
16020                 .klen   = 32,
16021                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
16022                           "\xde\xca\xf8\x88",
16023                 .input  = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
16024                           "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
16025                           "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
16026                           "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
16027                           "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
16028                           "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
16029                           "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
16030                           "\xbc\xc9\xf6\x62"
16031                           "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
16032                           "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
16033                 .ilen   = 76,
16034                 .assoc  = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
16035                           "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
16036                           "\xab\xad\xda\xd2",
16037                 .alen   = 20,
16038                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
16039                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
16040                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
16041                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
16042                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
16043                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
16044                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
16045                           "\xba\x63\x7b\x39",
16046                 .rlen   = 60,
16047                 .np     = 2,
16048                 .tap    = { 48, 28 },
16049                 .anp    = 3,
16050                 .atap   = { 8, 8, 4 }
16051         }, {
16052                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16053                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
16054                 .klen   = 16,
16055                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
16056                           "\xde\xca\xf8\x88",
16057                 .input  = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
16058                           "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
16059                           "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
16060                           "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
16061                           "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
16062                           "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
16063                           "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
16064                           "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
16065                           "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
16066                           "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
16067                 .ilen   = 80,
16068                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
16069                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
16070                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
16071                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
16072                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
16073                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
16074                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
16075                           "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
16076                 .rlen   = 64,
16077         }, {
16078                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16079                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
16080                 .klen   = 16,
16081                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
16082                           "\xde\xca\xf8\x88",
16083                 .input  = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
16084                           "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
16085                           "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
16086                           "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
16087                           "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
16088                           "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
16089                           "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
16090                           "\x3d\x58\xe0\x91"
16091                           "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
16092                           "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
16093                 .ilen   = 76,
16094                 .assoc  = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
16095                           "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
16096                           "\xab\xad\xda\xd2",
16097                 .alen   = 20,
16098                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
16099                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
16100                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
16101                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
16102                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
16103                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
16104                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
16105                           "\xba\x63\x7b\x39",
16106                 .rlen   = 60,
16107         }, {
16108                 .key    = zeroed_string,
16109                 .klen   = 24,
16110                 .input  = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
16111                           "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
16112                           "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
16113                           "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
16114                 .ilen   = 32,
16115                 .result  = zeroed_string,
16116                 .rlen   = 16,
16117         }, {
16118                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16119                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16120                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
16121                 .klen   = 24,
16122                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
16123                           "\xde\xca\xf8\x88",
16124                 .input  = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
16125                           "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
16126                           "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
16127                           "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
16128                           "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
16129                           "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
16130                           "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
16131                           "\xcc\xda\x27\x10\xac\xad\xe2\x56"
16132                           "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
16133                           "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
16134                 .ilen   = 80,
16135                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
16136                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
16137                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
16138                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
16139                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
16140                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
16141                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
16142                           "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
16143                 .rlen   = 64,
16144         }, {
16145                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16146                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16147                           "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
16148                 .klen   = 24,
16149                 .iv     = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
16150                           "\xde\xca\xf8\x88",
16151                 .input  = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
16152                           "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
16153                           "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
16154                           "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
16155                           "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
16156                           "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
16157                           "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
16158                           "\xcc\xda\x27\x10"
16159                           "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
16160                           "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
16161                 .ilen   = 76,
16162                 .assoc  = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
16163                           "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
16164                           "\xab\xad\xda\xd2",
16165                 .alen   = 20,
16166                 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
16167                           "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
16168                           "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
16169                           "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
16170                           "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
16171                           "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
16172                           "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
16173                           "\xba\x63\x7b\x39",
16174                 .rlen   = 60,
16175         }
16176 };
16177
16178 static const struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = {
16179         { /* Generated using Crypto++ */
16180                 .key    = zeroed_string,
16181                 .klen   = 20,
16182                 .iv     = zeroed_string,
16183                 .input  = zeroed_string,
16184                 .ilen   = 16,
16185                 .assoc  = zeroed_string,
16186                 .alen   = 16,
16187                 .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
16188                           "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
16189                           "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
16190                           "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
16191                 .rlen   = 32,
16192         },{
16193                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16194                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16195                           "\x00\x00\x00\x00",
16196                 .klen   = 20,
16197                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
16198                 .input  = zeroed_string,
16199                 .ilen   = 16,
16200                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x00"
16201                           "\x00\x00\x00\x00\x00\x00\x00\x01",
16202                 .alen   = 16,
16203                 .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
16204                           "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
16205                           "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
16206                           "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
16207                 .rlen   = 32,
16208
16209         }, {
16210                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16211                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16212                           "\x00\x00\x00\x00",
16213                 .klen   = 20,
16214                 .iv     = zeroed_string,
16215                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16216                           "\x01\x01\x01\x01\x01\x01\x01\x01",
16217                 .ilen   = 16,
16218                 .assoc  = zeroed_string,
16219                 .alen   = 16,
16220                 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
16221                           "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
16222                           "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
16223                           "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
16224                 .rlen   = 32,
16225         }, {
16226                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16227                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16228                           "\x00\x00\x00\x00",
16229                 .klen   = 20,
16230                 .iv     = zeroed_string,
16231                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16232                           "\x01\x01\x01\x01\x01\x01\x01\x01",
16233                 .ilen   = 16,
16234                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16235                           "\x00\x00\x00\x00\x00\x00\x00\x00",
16236                 .alen   = 16,
16237                 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
16238                           "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
16239                           "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
16240                           "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
16241                 .rlen   = 32,
16242         }, {
16243                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16244                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16245                           "\x00\x00\x00\x00",
16246                 .klen   = 20,
16247                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
16248                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16249                           "\x01\x01\x01\x01\x01\x01\x01\x01",
16250                 .ilen   = 16,
16251                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16252                           "\x00\x00\x00\x00\x00\x00\x00\x01",
16253                 .alen   = 16,
16254                 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
16255                           "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
16256                           "\x64\x50\xF9\x32\x13\xFB\x74\x61"
16257                           "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
16258                 .rlen   = 32,
16259         }, {
16260                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16261                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16262                           "\x00\x00\x00\x00",
16263                 .klen   = 20,
16264                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
16265                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16266                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16267                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16268                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16269                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16270                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16271                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16272                           "\x01\x01\x01\x01\x01\x01\x01\x01",
16273                 .ilen   = 64,
16274                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16275                           "\x00\x00\x00\x00\x00\x00\x00\x01",
16276                 .alen   = 16,
16277                 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
16278                           "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
16279                           "\x98\x14\xA1\x42\x37\x80\xFD\x90"
16280                           "\x68\x12\x01\xA8\x91\x89\xB9\x83"
16281                           "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
16282                           "\x94\x5F\x18\x12\xBA\x27\x09\x39"
16283                           "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
16284                           "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
16285                           "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
16286                           "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
16287                 .rlen   = 80,
16288         }, {
16289                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
16290                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16291                           "\x00\x00\x00\x00",
16292                 .klen   = 20,
16293                 .iv     = "\x00\x00\x45\x67\x89\xab\xcd\xef",
16294                 .input  = "\xff\xff\xff\xff\xff\xff\xff\xff"
16295                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16296                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16297                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16298                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16299                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16300                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16301                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16302                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16303                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16304                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16305                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16306                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16307                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16308                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16309                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16310                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16311                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16312                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16313                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16314                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16315                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16316                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16317                           "\xff\xff\xff\xff\xff\xff\xff\xff",
16318                 .ilen   = 192,
16319                 .assoc  = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
16320                           "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
16321                           "\x89\xab\xcd\xef",
16322                 .alen   = 20,
16323                 .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
16324                           "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
16325                           "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
16326                           "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
16327                           "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
16328                           "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
16329                           "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
16330                           "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
16331                           "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
16332                           "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
16333                           "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
16334                           "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
16335                           "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
16336                           "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
16337                           "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
16338                           "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
16339                           "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
16340                           "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
16341                           "\x7E\x13\x06\x82\x08\x17\xA4\x35"
16342                           "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
16343                           "\xA3\x05\x38\x95\x20\x1A\x47\x04"
16344                           "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
16345                           "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
16346                           "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
16347                           "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
16348                           "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
16349                 .rlen   = 208,
16350         }, { /* From draft-mcgrew-gcm-test-01 */
16351                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
16352                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
16353                           "\x2E\x44\x3B\x68",
16354                 .klen   = 20,
16355                 .iv     = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
16356                 .input  = "\x45\x00\x00\x48\x69\x9A\x00\x00"
16357                           "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
16358                           "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
16359                           "\x38\xD3\x01\x00\x00\x01\x00\x00"
16360                           "\x00\x00\x00\x00\x04\x5F\x73\x69"
16361                           "\x70\x04\x5F\x75\x64\x70\x03\x73"
16362                           "\x69\x70\x09\x63\x79\x62\x65\x72"
16363                           "\x63\x69\x74\x79\x02\x64\x6B\x00"
16364                           "\x00\x21\x00\x01\x01\x02\x02\x01",
16365                 .ilen   = 72,
16366                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
16367                           "\x00\x00\x00\x00\x49\x56\xED\x7E"
16368                           "\x3B\x24\x4C\xFE",
16369                 .alen   = 20,
16370                 .result = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
16371                           "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
16372                           "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
16373                           "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
16374                           "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
16375                           "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
16376                           "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
16377                           "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
16378                           "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
16379                           "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
16380                           "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
16381                 .rlen   = 88,
16382         }, {
16383                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
16384                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
16385                           "\xCA\xFE\xBA\xBE",
16386                 .klen   = 20,
16387                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
16388                 .input  = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
16389                           "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
16390                           "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
16391                           "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
16392                           "\x00\x01\x00\x00\x00\x00\x00\x00"
16393                           "\x03\x73\x69\x70\x09\x63\x79\x62"
16394                           "\x65\x72\x63\x69\x74\x79\x02\x64"
16395                           "\x6B\x00\x00\x01\x00\x01\x00\x01",
16396                 .ilen   = 64,
16397                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
16398                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
16399                 .alen   = 16,
16400                 .result = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
16401                           "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
16402                           "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
16403                           "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
16404                           "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
16405                           "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
16406                           "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
16407                           "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
16408                           "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
16409                           "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
16410                 .rlen   = 80,
16411         }, {
16412                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16413                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16414                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16415                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16416                           "\x11\x22\x33\x44",
16417                 .klen   = 36,
16418                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
16419                 .input  = "\x45\x00\x00\x30\x69\xA6\x40\x00"
16420                           "\x80\x06\x26\x90\xC0\xA8\x01\x02"
16421                           "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
16422                           "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
16423                           "\x70\x02\x40\x00\x20\xBF\x00\x00"
16424                           "\x02\x04\x05\xB4\x01\x01\x04\x02"
16425                           "\x01\x02\x02\x01",
16426                 .ilen   = 52,
16427                 .assoc  = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
16428                           "\x01\x02\x03\x04\x05\x06\x07\x08",
16429                 .alen   = 16,
16430                 .result = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
16431                           "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
16432                           "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
16433                           "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
16434                           "\x74\x8A\x63\x79\x85\x77\x1D\x34"
16435                           "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
16436                           "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
16437                           "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
16438                           "\x15\x95\x6C\x96",
16439                 .rlen   = 68,
16440         }, {
16441                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
16442                           "\x00\x00\x00\x00\x00\x00\x00\x00"
16443                           "\x00\x00\x00\x00",
16444                 .klen   = 20,
16445                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
16446                 .input  = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
16447                           "\x80\x01\xCB\x7A\x40\x67\x93\x18"
16448                           "\x01\x01\x01\x01\x08\x00\x07\x5C"
16449                           "\x02\x00\x44\x00\x61\x62\x63\x64"
16450                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16451                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16452                           "\x75\x76\x77\x61\x62\x63\x64\x65"
16453                           "\x66\x67\x68\x69\x01\x02\x02\x01",
16454                 .ilen   = 64,
16455                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x01"
16456                           "\x00\x00\x00\x00\x00\x00\x00\x00",
16457                 .alen   = 16,
16458                 .result = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
16459                           "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
16460                           "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
16461                           "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
16462                           "\x45\x64\x76\x49\x27\x19\xFF\xB6"
16463                           "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
16464                           "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
16465                           "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
16466                           "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
16467                           "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
16468                 .rlen   = 80,
16469         }, {
16470                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16471                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16472                           "\x57\x69\x0E\x43",
16473                 .klen   = 20,
16474                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16475                 .input  = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
16476                           "\x80\x01\xCB\x7C\x40\x67\x93\x18"
16477                           "\x01\x01\x01\x01\x08\x00\x08\x5C"
16478                           "\x02\x00\x43\x00\x61\x62\x63\x64"
16479                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16480                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16481                           "\x75\x76\x77\x61\x62\x63\x64\x65"
16482                           "\x66\x67\x68\x69\x01\x02\x02\x01",
16483                 .ilen   = 64,
16484                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
16485                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
16486                           "\xA2\xFC\xA1\xA3",
16487                 .alen   = 20,
16488                 .result = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
16489                           "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
16490                           "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
16491                           "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
16492                           "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
16493                           "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
16494                           "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
16495                           "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
16496                           "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
16497                           "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
16498                 .rlen   = 80,
16499         }, {
16500                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16501                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16502                           "\x57\x69\x0E\x43",
16503                 .klen   = 20,
16504                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16505                 .input  = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
16506                           "\x80\x01\x44\x1F\x40\x67\x93\xB6"
16507                           "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
16508                           "\x01\x02\x02\x01",
16509                 .ilen   = 28,
16510                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
16511                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
16512                           "\xA2\xFC\xA1\xA3",
16513                 .alen   = 20,
16514                 .result = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
16515                           "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
16516                           "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
16517                           "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
16518                           "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
16519                           "\xE7\xD0\x5D\x35",
16520                 .rlen   = 44,
16521         }, {
16522                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
16523                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
16524                           "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
16525                           "\xCA\xFE\xBA\xBE",
16526                 .klen   = 28,
16527                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
16528                 .input  = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
16529                           "\x40\x06\x78\x80\x0A\x01\x03\x8F"
16530                           "\x0A\x01\x06\x12\x80\x23\x06\xB8"
16531                           "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
16532                           "\x50\x10\x16\xD0\x75\x68\x00\x01",
16533                 .ilen   = 40,
16534                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
16535                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
16536                 .alen   = 16,
16537                 .result = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
16538                           "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
16539                           "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
16540                           "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
16541                           "\x31\x5B\x27\x45\x21\x44\xCC\x77"
16542                           "\x95\x45\x7B\x96\x52\x03\x7F\x53"
16543                           "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
16544                 .rlen   = 56,
16545         }, {
16546                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16547                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16548                           "\xDE\xCA\xF8\x88",
16549                 .klen   = 20,
16550                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
16551                 .input  = "\x45\x00\x00\x49\x33\xBA\x00\x00"
16552                           "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
16553                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
16554                           "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
16555                           "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
16556                           "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
16557                           "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
16558                           "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
16559                           "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
16560                           "\x23\x01\x01\x01",
16561                 .ilen   = 76,
16562                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
16563                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
16564                           "\xCE\xFA\xCE\x74",
16565                 .alen   = 20,
16566                 .result = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
16567                           "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
16568                           "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
16569                           "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
16570                           "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
16571                           "\x84\xE6\x58\x63\x96\x5D\x74\x72"
16572                           "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
16573                           "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
16574                           "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
16575                           "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
16576                           "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
16577                           "\x69\x62\x34\x36",
16578                 .rlen   = 92,
16579         }, {
16580                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16581                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16582                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16583                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16584                           "\x73\x61\x6C\x74",
16585                 .klen   = 36,
16586                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
16587                 .input  = "\x45\x08\x00\x28\x73\x2C\x00\x00"
16588                           "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
16589                           "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
16590                           "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
16591                           "\x50\x10\x1F\x64\x6D\x54\x00\x01",
16592                 .ilen   = 40,
16593                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
16594                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
16595                           "\x69\x76\x65\x63",
16596                 .alen   = 20,
16597                 .result = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
16598                           "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
16599                           "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
16600                           "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
16601                           "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
16602                           "\x45\x16\x26\xC2\x41\x57\x71\xE3"
16603                           "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
16604                 .rlen   = 56,
16605         }, {
16606                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16607                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16608                           "\x57\x69\x0E\x43",
16609                 .klen   = 20,
16610                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16611                 .input  = "\x45\x00\x00\x49\x33\x3E\x00\x00"
16612                           "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
16613                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
16614                           "\x00\x35\xCB\x45\x80\x03\x02\x5B"
16615                           "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
16616                           "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
16617                           "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
16618                           "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
16619                           "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
16620                           "\x15\x01\x01\x01",
16621                 .ilen   = 76,
16622                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
16623                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
16624                           "\xA2\xFC\xA1\xA3",
16625                 .alen   = 20,
16626                 .result = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
16627                           "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
16628                           "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
16629                           "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
16630                           "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
16631                           "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
16632                           "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
16633                           "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
16634                           "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
16635                           "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
16636                           "\x76\x91\x89\x60\x97\x63\xB8\xE1"
16637                           "\x8C\xAA\x81\xE2",
16638                 .rlen   = 92,
16639         }, {
16640                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16641                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16642                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16643                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16644                           "\x73\x61\x6C\x74",
16645                 .klen   = 36,
16646                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
16647                 .input  = "\x63\x69\x73\x63\x6F\x01\x72\x75"
16648                           "\x6C\x65\x73\x01\x74\x68\x65\x01"
16649                           "\x6E\x65\x74\x77\x65\x01\x64\x65"
16650                           "\x66\x69\x6E\x65\x01\x74\x68\x65"
16651                           "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
16652                           "\x67\x69\x65\x73\x01\x74\x68\x61"
16653                           "\x74\x77\x69\x6C\x6C\x01\x64\x65"
16654                           "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
16655                           "\x72\x72\x6F\x77\x01\x02\x02\x01",
16656                 .ilen   = 72,
16657                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
16658                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
16659                           "\x69\x76\x65\x63",
16660                 .alen   = 20,
16661                 .result = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
16662                           "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
16663                           "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
16664                           "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
16665                           "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
16666                           "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
16667                           "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
16668                           "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
16669                           "\x12\xA4\x93\x63\x41\x23\x64\xF8"
16670                           "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
16671                           "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
16672                 .rlen   = 88,
16673         }, {
16674                 .key    = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
16675                           "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
16676                           "\xD9\x66\x42\x67",
16677                 .klen   = 20,
16678                 .iv     = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
16679                 .input  = "\x01\x02\x02\x01",
16680                 .ilen   = 4,
16681                 .assoc  = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
16682                           "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
16683                 .alen   = 16,
16684                 .result = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
16685                           "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
16686                           "\x04\xBE\xF2\x70",
16687                 .rlen   = 20,
16688         }, {
16689                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16690                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16691                           "\xDE\xCA\xF8\x88",
16692                 .klen   = 20,
16693                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
16694                 .input  = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
16695                           "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
16696                           "\x62\x65\x00\x01",
16697                 .ilen   = 20,
16698                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
16699                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
16700                           "\xCE\xFA\xCE\x74",
16701                 .alen   = 20,
16702                 .result = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
16703                           "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
16704                           "\x43\x33\x21\x64\x41\x25\x03\x52"
16705                           "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
16706                           "\x43\xAF\x8C\x3E",
16707                 .rlen   = 36,
16708         }, {
16709                 .key    = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
16710                           "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
16711                           "\x61\x61\x6E\x64\x64\x6F\x69\x74"
16712                           "\x62\x65\x66\x6F\x72\x65\x69\x61"
16713                           "\x74\x75\x72\x6E",
16714                 .klen   = 36,
16715                 .iv     = "\x33\x30\x21\x69\x67\x65\x74\x6D",
16716                 .input  = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
16717                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
16718                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
16719                           "\x02\x00\x07\x00\x61\x62\x63\x64"
16720                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16721                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16722                           "\x01\x02\x02\x01",
16723                 .ilen   = 52,
16724                 .assoc  = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
16725                           "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
16726                           "\x67\x65\x74\x6D",
16727                 .alen   = 20,
16728                 .result = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
16729                           "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
16730                           "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
16731                           "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
16732                           "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
16733                           "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
16734                           "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
16735                           "\x94\x5F\x66\x93\x68\x66\x1A\x32"
16736                           "\x9F\xB4\xC0\x53",
16737                 .rlen   = 68,
16738         }, {
16739                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16740                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16741                           "\x57\x69\x0E\x43",
16742                 .klen   = 20,
16743                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16744                 .input  = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
16745                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
16746                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
16747                           "\x02\x00\x07\x00\x61\x62\x63\x64"
16748                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16749                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16750                           "\x01\x02\x02\x01",
16751                 .ilen   = 52,
16752                 .assoc  = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
16753                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
16754                           "\xA2\xFC\xA1\xA3",
16755                 .alen   = 20,
16756                 .result = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
16757                           "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
16758                           "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
16759                           "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
16760                           "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
16761                           "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
16762                           "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
16763                           "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
16764                           "\x40\xD7\xCB\x05",
16765                 .rlen   = 68,
16766         }, {
16767                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
16768                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
16769                           "\x22\x43\x3C\x64",
16770                 .klen   = 20,
16771                 .iv     = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
16772                 .input  = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
16773                           "\x61\x62\x63\x64\x65\x66\x67\x68"
16774                           "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
16775                           "\x71\x72\x73\x74\x01\x02\x02\x01",
16776                 .ilen   = 32,
16777                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
16778                           "\x00\x00\x00\x07\x48\x55\xEC\x7D"
16779                           "\x3A\x23\x4B\xFD",
16780                 .alen   = 20,
16781                 .result = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
16782                           "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
16783                           "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
16784                           "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
16785                           "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
16786                           "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
16787                 .rlen   = 48,
16788         }
16789 };
16790
16791 static const struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = {
16792         { /* Generated using Crypto++ */
16793                 .key    = zeroed_string,
16794                 .klen   = 20,
16795                 .iv     = zeroed_string,
16796                 .input  = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
16797                           "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
16798                           "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
16799                           "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
16800                 .ilen   = 32,
16801                 .assoc  = zeroed_string,
16802                 .alen   = 16,
16803                 .result = zeroed_string,
16804                 .rlen   = 16,
16805
16806         },{
16807                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16808                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16809                           "\x00\x00\x00\x00",
16810                 .klen   = 20,
16811                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
16812                 .input  = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
16813                           "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
16814                           "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
16815                           "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
16816                 .ilen   = 32,
16817                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x00"
16818                           "\x00\x00\x00\x00\x00\x00\x00\x01",
16819                 .alen   = 16,
16820                 .result = zeroed_string,
16821                 .rlen   = 16,
16822         }, {
16823                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16824                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16825                           "\x00\x00\x00\x00",
16826                 .klen   = 20,
16827                 .iv     = zeroed_string,
16828                 .input  = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
16829                           "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
16830                           "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
16831                           "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
16832                 .ilen   = 32,
16833                 .assoc  = zeroed_string,
16834                 .alen   = 16,
16835                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
16836                           "\x01\x01\x01\x01\x01\x01\x01\x01",
16837                 .rlen   = 16,
16838         }, {
16839                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16840                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16841                           "\x00\x00\x00\x00",
16842                 .klen   = 20,
16843                 .iv     = zeroed_string,
16844                 .input  = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
16845                           "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
16846                           "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
16847                           "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
16848                 .ilen   = 32,
16849                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16850                           "\x00\x00\x00\x00\x00\x00\x00\x00",
16851                 .alen   = 16,
16852                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
16853                           "\x01\x01\x01\x01\x01\x01\x01\x01",
16854                 .rlen   = 16,
16855
16856         }, {
16857                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16858                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16859                           "\x00\x00\x00\x00",
16860                 .klen   = 20,
16861                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
16862                 .input  = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
16863                           "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
16864                           "\x64\x50\xF9\x32\x13\xFB\x74\x61"
16865                           "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
16866                 .ilen   = 32,
16867                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16868                           "\x00\x00\x00\x00\x00\x00\x00\x01",
16869                 .alen   = 16,
16870                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
16871                           "\x01\x01\x01\x01\x01\x01\x01\x01",
16872                 .rlen   = 16,
16873         }, {
16874                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16875                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16876                           "\x00\x00\x00\x00",
16877                 .klen   = 20,
16878                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
16879                 .input  = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
16880                           "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
16881                           "\x98\x14\xA1\x42\x37\x80\xFD\x90"
16882                           "\x68\x12\x01\xA8\x91\x89\xB9\x83"
16883                           "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
16884                           "\x94\x5F\x18\x12\xBA\x27\x09\x39"
16885                           "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
16886                           "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
16887                           "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
16888                           "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
16889                 .ilen   = 80,
16890                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
16891                           "\x00\x00\x00\x00\x00\x00\x00\x01",
16892                 .alen   = 16,
16893                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
16894                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16895                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16896                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16897                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16898                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16899                           "\x01\x01\x01\x01\x01\x01\x01\x01"
16900                           "\x01\x01\x01\x01\x01\x01\x01\x01",
16901                 .rlen   = 64,
16902         }, {
16903                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
16904                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16905                           "\x00\x00\x00\x00",
16906                 .klen   = 20,
16907                 .iv     = "\x00\x00\x45\x67\x89\xab\xcd\xef",
16908                 .input  = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
16909                           "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
16910                           "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
16911                           "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
16912                           "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
16913                           "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
16914                           "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
16915                           "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
16916                           "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
16917                           "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
16918                           "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
16919                           "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
16920                           "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
16921                           "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
16922                           "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
16923                           "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
16924                           "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
16925                           "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
16926                           "\x7E\x13\x06\x82\x08\x17\xA4\x35"
16927                           "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
16928                           "\xA3\x05\x38\x95\x20\x1A\x47\x04"
16929                           "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
16930                           "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
16931                           "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
16932                           "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
16933                           "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
16934                 .ilen   = 208,
16935                 .assoc  = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
16936                           "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
16937                           "\x89\xab\xcd\xef",
16938                 .alen   = 20,
16939                 .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
16940                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16941                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16942                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16943                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16944                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16945                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16946                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16947                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16948                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16949                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16950                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16951                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16952                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16953                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16954                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16955                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16956                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16957                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16958                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16959                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16960                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16961                           "\xff\xff\xff\xff\xff\xff\xff\xff"
16962                           "\xff\xff\xff\xff\xff\xff\xff\xff",
16963                 .rlen   = 192,
16964         }, {
16965                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
16966                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
16967                           "\x2E\x44\x3B\x68",
16968                 .klen   = 20,
16969                 .iv     = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
16970                 .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
16971                           "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
16972                           "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
16973                           "\x38\xD3\x01\x00\x00\x01\x00\x00"
16974                           "\x00\x00\x00\x00\x04\x5F\x73\x69"
16975                           "\x70\x04\x5F\x75\x64\x70\x03\x73"
16976                           "\x69\x70\x09\x63\x79\x62\x65\x72"
16977                           "\x63\x69\x74\x79\x02\x64\x6B\x00"
16978                           "\x00\x21\x00\x01\x01\x02\x02\x01",
16979                 .rlen   = 72,
16980                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
16981                           "\x00\x00\x00\x00\x49\x56\xED\x7E"
16982                           "\x3B\x24\x4C\xFE",
16983                 .alen   = 20,
16984                 .input  = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
16985                           "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
16986                           "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
16987                           "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
16988                           "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
16989                           "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
16990                           "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
16991                           "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
16992                           "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
16993                           "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
16994                           "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
16995                 .ilen   = 88,
16996         }, {
16997                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
16998                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
16999                           "\xCA\xFE\xBA\xBE",
17000                 .klen   = 20,
17001                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17002                 .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
17003                           "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
17004                           "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
17005                           "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
17006                           "\x00\x01\x00\x00\x00\x00\x00\x00"
17007                           "\x03\x73\x69\x70\x09\x63\x79\x62"
17008                           "\x65\x72\x63\x69\x74\x79\x02\x64"
17009                           "\x6B\x00\x00\x01\x00\x01\x00\x01",
17010                 .rlen   = 64,
17011                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
17012                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17013                 .alen   = 16,
17014                 .input  = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
17015                           "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
17016                           "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
17017                           "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
17018                           "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
17019                           "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
17020                           "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
17021                           "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
17022                           "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
17023                           "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
17024                 .ilen   = 80,
17025         }, {
17026                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17027                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17028                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17029                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17030                           "\x11\x22\x33\x44",
17031                 .klen   = 36,
17032                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
17033                 .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
17034                           "\x80\x06\x26\x90\xC0\xA8\x01\x02"
17035                           "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
17036                           "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
17037                           "\x70\x02\x40\x00\x20\xBF\x00\x00"
17038                           "\x02\x04\x05\xB4\x01\x01\x04\x02"
17039                           "\x01\x02\x02\x01",
17040                 .rlen   = 52,
17041                 .assoc  = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
17042                           "\x01\x02\x03\x04\x05\x06\x07\x08",
17043                 .alen   = 16,
17044                 .input  = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
17045                           "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
17046                           "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
17047                           "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
17048                           "\x74\x8A\x63\x79\x85\x77\x1D\x34"
17049                           "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
17050                           "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
17051                           "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
17052                           "\x15\x95\x6C\x96",
17053                 .ilen   = 68,
17054         }, {
17055                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
17056                           "\x00\x00\x00\x00\x00\x00\x00\x00"
17057                           "\x00\x00\x00\x00",
17058                 .klen   = 20,
17059                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
17060                 .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
17061                           "\x80\x01\xCB\x7A\x40\x67\x93\x18"
17062                           "\x01\x01\x01\x01\x08\x00\x07\x5C"
17063                           "\x02\x00\x44\x00\x61\x62\x63\x64"
17064                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
17065                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
17066                           "\x75\x76\x77\x61\x62\x63\x64\x65"
17067                           "\x66\x67\x68\x69\x01\x02\x02\x01",
17068                 .rlen   = 64,
17069                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x01"
17070                           "\x00\x00\x00\x00\x00\x00\x00\x00",
17071                 .alen   = 16,
17072                 .input  = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
17073                           "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
17074                           "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
17075                           "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
17076                           "\x45\x64\x76\x49\x27\x19\xFF\xB6"
17077                           "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
17078                           "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
17079                           "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
17080                           "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
17081                           "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
17082                 .ilen   = 80,
17083         }, {
17084                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
17085                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
17086                           "\x57\x69\x0E\x43",
17087                 .klen   = 20,
17088                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
17089                 .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
17090                           "\x80\x01\xCB\x7C\x40\x67\x93\x18"
17091                           "\x01\x01\x01\x01\x08\x00\x08\x5C"
17092                           "\x02\x00\x43\x00\x61\x62\x63\x64"
17093                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
17094                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
17095                           "\x75\x76\x77\x61\x62\x63\x64\x65"
17096                           "\x66\x67\x68\x69\x01\x02\x02\x01",
17097                 .rlen   = 64,
17098                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
17099                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
17100                           "\xA2\xFC\xA1\xA3",
17101                 .alen   = 20,
17102                 .input  = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
17103                           "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
17104                           "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
17105                           "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
17106                           "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
17107                           "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
17108                           "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
17109                           "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
17110                           "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
17111                           "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
17112                 .ilen   = 80,
17113         }, {
17114                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
17115                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
17116                           "\x57\x69\x0E\x43",
17117                 .klen   = 20,
17118                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
17119                 .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
17120                           "\x80\x01\x44\x1F\x40\x67\x93\xB6"
17121                           "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
17122                           "\x01\x02\x02\x01",
17123                 .rlen   = 28,
17124                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
17125                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
17126                           "\xA2\xFC\xA1\xA3",
17127                 .alen   = 20,
17128                 .input  = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
17129                           "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
17130                           "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
17131                           "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
17132                           "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
17133                           "\xE7\xD0\x5D\x35",
17134                 .ilen   = 44,
17135         }, {
17136                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
17137                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
17138                           "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
17139                           "\xCA\xFE\xBA\xBE",
17140                 .klen   = 28,
17141                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17142                 .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
17143                           "\x40\x06\x78\x80\x0A\x01\x03\x8F"
17144                           "\x0A\x01\x06\x12\x80\x23\x06\xB8"
17145                           "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
17146                           "\x50\x10\x16\xD0\x75\x68\x00\x01",
17147                 .rlen   = 40,
17148                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
17149                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17150                 .alen   = 16,
17151                 .input  = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
17152                           "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
17153                           "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
17154                           "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
17155                           "\x31\x5B\x27\x45\x21\x44\xCC\x77"
17156                           "\x95\x45\x7B\x96\x52\x03\x7F\x53"
17157                           "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
17158                 .ilen   = 56,
17159         }, {
17160                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17161                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17162                           "\xDE\xCA\xF8\x88",
17163                 .klen   = 20,
17164                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
17165                 .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
17166                           "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
17167                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
17168                           "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
17169                           "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
17170                           "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
17171                           "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
17172                           "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
17173                           "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
17174                           "\x23\x01\x01\x01",
17175                 .rlen   = 76,
17176                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
17177                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
17178                           "\xCE\xFA\xCE\x74",
17179                 .alen   = 20,
17180                 .input  = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
17181                           "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
17182                           "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
17183                           "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
17184                           "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
17185                           "\x84\xE6\x58\x63\x96\x5D\x74\x72"
17186                           "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
17187                           "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
17188                           "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
17189                           "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
17190                           "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
17191                           "\x69\x62\x34\x36",
17192                 .ilen   = 92,
17193         }, {
17194                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17195                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17196                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17197                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17198                           "\x73\x61\x6C\x74",
17199                 .klen   = 36,
17200                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
17201                 .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
17202                           "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
17203                           "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
17204                           "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
17205                           "\x50\x10\x1F\x64\x6D\x54\x00\x01",
17206                 .rlen   = 40,
17207                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
17208                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
17209                           "\x69\x76\x65\x63",
17210                 .alen   = 20,
17211                 .input  = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
17212                           "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
17213                           "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
17214                           "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
17215                           "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
17216                           "\x45\x16\x26\xC2\x41\x57\x71\xE3"
17217                           "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
17218                 .ilen   = 56,
17219         }, {
17220                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
17221                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
17222                           "\x57\x69\x0E\x43",
17223                 .klen   = 20,
17224                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
17225                 .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
17226                           "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
17227                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
17228                           "\x00\x35\xCB\x45\x80\x03\x02\x5B"
17229                           "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
17230                           "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
17231                           "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
17232                           "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
17233                           "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
17234                           "\x15\x01\x01\x01",
17235                 .rlen   = 76,
17236                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
17237                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
17238                           "\xA2\xFC\xA1\xA3",
17239                 .alen   = 20,
17240                 .input  = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
17241                           "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
17242                           "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
17243                           "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
17244                           "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
17245                           "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
17246                           "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
17247                           "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
17248                           "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
17249                           "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
17250                           "\x76\x91\x89\x60\x97\x63\xB8\xE1"
17251                           "\x8C\xAA\x81\xE2",
17252                 .ilen   = 92,
17253         }, {
17254                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17255                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17256                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17257                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17258                           "\x73\x61\x6C\x74",
17259                 .klen   = 36,
17260                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
17261                 .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
17262                           "\x6C\x65\x73\x01\x74\x68\x65\x01"
17263                           "\x6E\x65\x74\x77\x65\x01\x64\x65"
17264                           "\x66\x69\x6E\x65\x01\x74\x68\x65"
17265                           "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
17266                           "\x67\x69\x65\x73\x01\x74\x68\x61"
17267                           "\x74\x77\x69\x6C\x6C\x01\x64\x65"
17268                           "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
17269                           "\x72\x72\x6F\x77\x01\x02\x02\x01",
17270                 .rlen   = 72,
17271                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
17272                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
17273                           "\x69\x76\x65\x63",
17274                 .alen   = 20,
17275                 .input  = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
17276                           "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
17277                           "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
17278                           "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
17279                           "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
17280                           "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
17281                           "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
17282                           "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
17283                           "\x12\xA4\x93\x63\x41\x23\x64\xF8"
17284                           "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
17285                           "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
17286                 .ilen   = 88,
17287         }, {
17288                 .key    = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
17289                           "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
17290                           "\xD9\x66\x42\x67",
17291                 .klen   = 20,
17292                 .iv     = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
17293                 .result = "\x01\x02\x02\x01",
17294                 .rlen   = 4,
17295                 .assoc  = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
17296                           "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
17297                 .alen   = 16,
17298                 .input  = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
17299                           "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
17300                           "\x04\xBE\xF2\x70",
17301                 .ilen   = 20,
17302         }, {
17303                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17304                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17305                           "\xDE\xCA\xF8\x88",
17306                 .klen   = 20,
17307                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
17308                 .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
17309                           "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
17310                           "\x62\x65\x00\x01",
17311                 .rlen   = 20,
17312                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
17313                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
17314                           "\xCE\xFA\xCE\x74",
17315                 .alen   = 20,
17316                 .input  = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
17317                           "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
17318                           "\x43\x33\x21\x64\x41\x25\x03\x52"
17319                           "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
17320                           "\x43\xAF\x8C\x3E",
17321                 .ilen   = 36,
17322         }, {
17323                 .key    = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
17324                           "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
17325                           "\x61\x61\x6E\x64\x64\x6F\x69\x74"
17326                           "\x62\x65\x66\x6F\x72\x65\x69\x61"
17327                           "\x74\x75\x72\x6E",
17328                 .klen   = 36,
17329                 .iv     = "\x33\x30\x21\x69\x67\x65\x74\x6D",
17330                 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
17331                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
17332                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
17333                           "\x02\x00\x07\x00\x61\x62\x63\x64"
17334                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
17335                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
17336                           "\x01\x02\x02\x01",
17337                 .rlen   = 52,
17338                 .assoc  = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
17339                           "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
17340                           "\x67\x65\x74\x6D",
17341                 .alen   = 20,
17342                 .input  = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
17343                           "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
17344                           "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
17345                           "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
17346                           "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
17347                           "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
17348                           "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
17349                           "\x94\x5F\x66\x93\x68\x66\x1A\x32"
17350                           "\x9F\xB4\xC0\x53",
17351                 .ilen   = 68,
17352         }, {
17353                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
17354                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
17355                           "\x57\x69\x0E\x43",
17356                 .klen   = 20,
17357                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
17358                 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
17359                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
17360                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
17361                           "\x02\x00\x07\x00\x61\x62\x63\x64"
17362                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
17363                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
17364                           "\x01\x02\x02\x01",
17365                 .rlen   = 52,
17366                 .assoc  = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
17367                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
17368                           "\xA2\xFC\xA1\xA3",
17369                 .alen   = 20,
17370                 .input  = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
17371                           "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
17372                           "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
17373                           "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
17374                           "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
17375                           "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
17376                           "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
17377                           "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
17378                           "\x40\xD7\xCB\x05",
17379                 .ilen   = 68,
17380         }, {
17381                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
17382                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
17383                           "\x22\x43\x3C\x64",
17384                 .klen   = 20,
17385                 .iv     = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
17386                 .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
17387                           "\x61\x62\x63\x64\x65\x66\x67\x68"
17388                           "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
17389                           "\x71\x72\x73\x74\x01\x02\x02\x01",
17390                 .rlen   = 32,
17391                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
17392                           "\x00\x00\x00\x07\x48\x55\xEC\x7D"
17393                           "\x3A\x23\x4B\xFD",
17394                 .alen   = 20,
17395                 .input  = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
17396                           "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
17397                           "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
17398                           "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
17399                           "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
17400                           "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
17401                 .ilen   = 48,
17402         }
17403 };
17404
17405 static const struct aead_testvec aes_gcm_rfc4543_enc_tv_template[] = {
17406         { /* From draft-mcgrew-gcm-test-01 */
17407                 .key    = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
17408                           "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
17409                           "\x22\x43\x3c\x64",
17410                 .klen   = 20,
17411                 .iv     = zeroed_string,
17412                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x07"
17413                           "\x00\x00\x00\x00\x00\x00\x00\x00",
17414                 .alen   = 16,
17415                 .input  = "\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                 .ilen   = 52,
17423                 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
17424                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
17425                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
17426                           "\x02\x00\x07\x00\x61\x62\x63\x64"
17427                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
17428                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
17429                           "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
17430                           "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
17431                           "\xe4\x09\x9a\xaa",
17432                 .rlen   = 68,
17433         }
17434 };
17435
17436 static const struct aead_testvec aes_gcm_rfc4543_dec_tv_template[] = {
17437         { /* From draft-mcgrew-gcm-test-01 */
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     = zeroed_string,
17443                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x07"
17444                           "\x00\x00\x00\x00\x00\x00\x00\x00",
17445                 .alen   = 16,
17446                 .input  = "\x45\x00\x00\x30\xda\x3a\x00\x00"
17447                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
17448                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
17449                           "\x02\x00\x07\x00\x61\x62\x63\x64"
17450                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
17451                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
17452                           "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
17453                           "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
17454                           "\xe4\x09\x9a\xaa",
17455                 .ilen   = 68,
17456                 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
17457                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
17458                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
17459                           "\x02\x00\x07\x00\x61\x62\x63\x64"
17460                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
17461                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
17462                           "\x01\x02\x02\x01",
17463                 .rlen   = 52,
17464         }, { /* nearly same as previous, but should fail */
17465                 .key    = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
17466                           "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
17467                           "\x22\x43\x3c\x64",
17468                 .klen   = 20,
17469                 .iv     = zeroed_string,
17470                 .assoc  = "\x00\x00\x43\x21\x00\x00\x00\x07"
17471                           "\x00\x00\x00\x00\x00\x00\x00\x00",
17472                 .alen   = 16,
17473                 .input  = "\x45\x00\x00\x30\xda\x3a\x00\x00"
17474                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
17475                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
17476                           "\x02\x00\x07\x00\x61\x62\x63\x64"
17477                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
17478                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
17479                           "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
17480                           "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
17481                           "\x00\x00\x00\x00",
17482                 .ilen   = 68,
17483                 .novrfy = 1,
17484                 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
17485                           "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
17486                           "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
17487                           "\x02\x00\x07\x00\x61\x62\x63\x64"
17488                           "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
17489                           "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
17490                           "\x01\x02\x02\x01",
17491                 .rlen   = 52,
17492         },
17493 };
17494
17495 static const struct aead_testvec aes_ccm_enc_tv_template[] = {
17496         { /* From RFC 3610 */
17497                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17498                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17499                 .klen   = 16,
17500                 .iv     = "\x01\x00\x00\x00\x03\x02\x01\x00"
17501                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17502                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07",
17503                 .alen   = 8,
17504                 .input  = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17505                           "\x10\x11\x12\x13\x14\x15\x16\x17"
17506                           "\x18\x19\x1a\x1b\x1c\x1d\x1e",
17507                 .ilen   = 23,
17508                 .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
17509                           "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
17510                           "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
17511                           "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
17512                 .rlen   = 31,
17513         }, {
17514                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17515                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17516                 .klen   = 16,
17517                 .iv     = "\x01\x00\x00\x00\x07\x06\x05\x04"
17518                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17519                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
17520                           "\x08\x09\x0a\x0b",
17521                 .alen   = 12,
17522                 .input  = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
17523                           "\x14\x15\x16\x17\x18\x19\x1a\x1b"
17524                           "\x1c\x1d\x1e\x1f",
17525                 .ilen   = 20,
17526                 .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
17527                           "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
17528                           "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
17529                           "\x7d\x9c\x2d\x93",
17530                 .rlen   = 28,
17531         }, {
17532                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17533                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17534                 .klen   = 16,
17535                 .iv     = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
17536                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17537                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07",
17538                 .alen   = 8,
17539                 .input  = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17540                           "\x10\x11\x12\x13\x14\x15\x16\x17"
17541                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
17542                           "\x20",
17543                 .ilen   = 25,
17544                 .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
17545                           "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
17546                           "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
17547                           "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
17548                           "\x7e\x5f\x4e",
17549                 .rlen   = 35,
17550         }, {
17551                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17552                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17553                 .klen   = 16,
17554                 .iv     = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
17555                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17556                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
17557                           "\x08\x09\x0a\x0b",
17558                 .alen   = 12,
17559                 .input  = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
17560                           "\x14\x15\x16\x17\x18\x19\x1a\x1b"
17561                           "\x1c\x1d\x1e",
17562                 .ilen   = 19,
17563                 .result = "\x07\x34\x25\x94\x15\x77\x85\x15"
17564                           "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
17565                           "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
17566                           "\x4d\x99\x99\x88\xdd",
17567                 .rlen   = 29,
17568         }, {
17569                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17570                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17571                 .klen   = 16,
17572                 .iv     = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
17573                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17574                 .assoc  = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
17575                 .alen   = 8,
17576                 .input  = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
17577                           "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
17578                           "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
17579                 .ilen   = 24,
17580                 .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
17581                           "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
17582                           "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
17583                           "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
17584                 .rlen   = 32,
17585         }, {
17586                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17587                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17588                 .klen   = 16,
17589                 .iv     = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
17590                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17591                 .assoc  = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
17592                           "\x20\xea\x60\xc0",
17593                 .alen   = 12,
17594                 .input  = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
17595                           "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
17596                           "\x3a\x80\x3b\xa8\x7f",
17597                 .ilen   = 21,
17598                 .result = "\x00\x97\x69\xec\xab\xdf\x48\x62"
17599                           "\x55\x94\xc5\x92\x51\xe6\x03\x57"
17600                           "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
17601                           "\x5a\xe0\x70\x45\x51",
17602                 .rlen   = 29,
17603         }, {
17604                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17605                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17606                 .klen   = 16,
17607                 .iv     = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
17608                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17609                 .assoc  = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
17610                 .alen   = 8,
17611                 .input  = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
17612                           "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
17613                           "\x98\x09\xd6\x7d\xbe\xdd\x18",
17614                 .ilen   = 23,
17615                 .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
17616                           "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
17617                           "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
17618                           "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
17619                           "\xba",
17620                 .rlen   = 33,
17621         }, {
17622                 /* This is taken from FIPS CAVS. */
17623                 .key    = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
17624                           "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e",
17625                 .klen   = 16,
17626                 .iv     = "\x03\x96\xac\x59\x30\x07\xa1\xe2\xa2\xc7\x55\x24\0\0\0\0",
17627                 .alen   = 0,
17628                 .input  = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
17629                           "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
17630                           "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
17631                           "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
17632                 .ilen   = 32,
17633                 .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
17634                           "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
17635                           "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
17636                           "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
17637                           "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
17638                           "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
17639                 .rlen   = 48,
17640         }, {
17641                 .key    = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
17642                           "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3",
17643                 .klen   = 16,
17644                 .iv     = "\x03\x4f\xa3\x19\xd3\x01\x5a\xd8"
17645                           "\x30\x60\x15\x56\x00\x00\x00\x00",
17646                 .assoc  = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
17647                           "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
17648                           "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
17649                           "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
17650                 .alen   = 32,
17651                 .input  = "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
17652                           "\xa9\x28\x63\xba\x12\xa3\x14\x85"
17653                           "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
17654                           "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
17655                 .ilen   = 32,
17656                 .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
17657                           "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
17658                           "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
17659                           "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
17660                           "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
17661                           "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
17662                 .rlen   = 48,
17663         }, {
17664                 .key    = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
17665                           "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
17666                           "\x53\x14\x73\x66\x8d\x88\xf6\x80",
17667                 .klen   = 24,
17668                 .iv     = "\x03\xa0\x20\x35\x26\xf2\x21\x8d"
17669                           "\x50\x20\xda\xe2\x00\x00\x00\x00",
17670                 .assoc  = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
17671                           "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
17672                           "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
17673                           "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
17674                 .alen   = 32,
17675                 .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
17676                           "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
17677                 .rlen   = 16,
17678         }, {
17679                 .key    = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
17680                           "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
17681                           "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01",
17682                 .klen   = 24,
17683                 .iv     = "\x03\xd6\x3c\x8c\x86\x84\xb6\xcd"
17684                           "\xef\x09\x2e\x94\x00\x00\x00\x00",
17685                 .assoc  = "\x02\x65\x78\x3c\xe9\x21\x30\x91"
17686                           "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
17687                           "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
17688                           "\xe3\x00\x73\x69\x84\x69\x87\x79",
17689                 .alen   = 32,
17690                 .input  = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
17691                           "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
17692                           "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
17693                           "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
17694                 .ilen   = 32,
17695                 .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
17696                           "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
17697                           "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
17698                           "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
17699                           "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
17700                           "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
17701                 .rlen   = 48,
17702         }, {
17703                 .key    = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
17704                           "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
17705                           "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
17706                           "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b",
17707                 .klen   = 32,
17708                 .iv     = "\x03\x1e\x29\x91\xad\x8e\xc1\x53"
17709                           "\x0a\xcf\x2d\xbe\x00\x00\x00\x00",
17710                 .assoc  = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
17711                           "\x78\x2b\x94\x02\x29\x0f\x42\x27"
17712                           "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
17713                           "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
17714                 .alen   = 32,
17715                 .input  = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
17716                           "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
17717                           "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
17718                           "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
17719                 .ilen   = 32,
17720                 .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96"
17721                           "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
17722                           "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
17723                           "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
17724                           "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
17725                 .rlen   = 40,
17726         }, {
17727                 .key    = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
17728                           "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
17729                           "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
17730                           "\x09\x75\x9a\x9b\x3c\x9b\x27\x39",
17731                 .klen   = 32,
17732                 .iv     = "\x03\xf9\xd9\x4e\x63\xb5\x3d\x9d"
17733                           "\x43\xf6\x1e\x50\0\0\0\0",
17734                 .assoc  = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
17735                           "\x13\x02\x01\x0c\x83\x4c\x96\x35"
17736                           "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
17737                           "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
17738                 .alen   = 32,
17739                 .input  = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
17740                           "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
17741                           "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
17742                           "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
17743                 .ilen   = 32,
17744                 .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
17745                           "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
17746                           "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
17747                           "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
17748                           "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
17749                           "\x7b\x72\x8a\xf7",
17750                 .rlen   = 44,
17751         }, {
17752                 .key    = "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
17753                           "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
17754                           "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
17755                           "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b",
17756                 .klen   = 32,
17757                 .iv     = "\x03\x24\xa7\x8b\x07\xcb\xcc\x0e"
17758                           "\xe6\x33\xbf\xf5\x00\x00\x00\x00",
17759                 .assoc  = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
17760                           "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
17761                           "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
17762                           "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
17763                 .alen   = 32,
17764                 .input  = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
17765                           "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
17766                           "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
17767                           "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
17768                 .ilen   = 32,
17769                 .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
17770                           "\xef\xbb\x80\x21\x04\x6c\x58\x09"
17771                           "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
17772                           "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
17773                           "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
17774                           "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
17775                 .rlen   = 48,
17776         }
17777 };
17778
17779 static const struct aead_testvec aes_ccm_dec_tv_template[] = {
17780         { /* From RFC 3610 */
17781                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17782                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17783                 .klen   = 16,
17784                 .iv     = "\x01\x00\x00\x00\x03\x02\x01\x00"
17785                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17786                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07",
17787                 .alen   = 8,
17788                 .input  = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
17789                           "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
17790                           "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
17791                           "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
17792                 .ilen   = 31,
17793                 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17794                           "\x10\x11\x12\x13\x14\x15\x16\x17"
17795                           "\x18\x19\x1a\x1b\x1c\x1d\x1e",
17796                 .rlen   = 23,
17797         }, {
17798                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17799                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17800                 .klen   = 16,
17801                 .iv     = "\x01\x00\x00\x00\x07\x06\x05\x04"
17802                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17803                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
17804                           "\x08\x09\x0a\x0b",
17805                 .alen   = 12,
17806                 .input  = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
17807                           "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
17808                           "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
17809                           "\x7d\x9c\x2d\x93",
17810                 .ilen   = 28,
17811                 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
17812                           "\x14\x15\x16\x17\x18\x19\x1a\x1b"
17813                           "\x1c\x1d\x1e\x1f",
17814                 .rlen   = 20,
17815         }, {
17816                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17817                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17818                 .klen   = 16,
17819                 .iv     = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
17820                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17821                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07",
17822                 .alen   = 8,
17823                 .input  = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
17824                           "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
17825                           "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
17826                           "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
17827                           "\x7e\x5f\x4e",
17828                 .ilen   = 35,
17829                 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17830                           "\x10\x11\x12\x13\x14\x15\x16\x17"
17831                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
17832                           "\x20",
17833                 .rlen   = 25,
17834         }, {
17835                 .key    = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17836                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17837                 .klen   = 16,
17838                 .iv     = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
17839                           "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17840                 .assoc  = "\x00\x01\x02\x03\x04\x05\x06\x07"
17841                           "\x08\x09\x0a\x0b",
17842                 .alen   = 12,
17843                 .input  = "\x07\x34\x25\x94\x15\x77\x85\x15"
17844                           "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
17845                           "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
17846                           "\x4d\x99\x99\x88\xdd",
17847                 .ilen   = 29,
17848                 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
17849                           "\x14\x15\x16\x17\x18\x19\x1a\x1b"
17850                           "\x1c\x1d\x1e",
17851                 .rlen   = 19,
17852         }, {
17853                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17854                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17855                 .klen   = 16,
17856                 .iv     = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
17857                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17858                 .assoc  = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
17859                 .alen   = 8,
17860                 .input  = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
17861                           "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
17862                           "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
17863                           "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
17864                 .ilen   = 32,
17865                 .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
17866                           "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
17867                           "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
17868                 .rlen   = 24,
17869         }, {
17870                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17871                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17872                 .klen   = 16,
17873                 .iv     = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
17874                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17875                 .assoc  = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
17876                           "\x20\xea\x60\xc0",
17877                 .alen   = 12,
17878                 .input  = "\x00\x97\x69\xec\xab\xdf\x48\x62"
17879                           "\x55\x94\xc5\x92\x51\xe6\x03\x57"
17880                           "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
17881                           "\x5a\xe0\x70\x45\x51",
17882                 .ilen   = 29,
17883                 .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
17884                           "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
17885                           "\x3a\x80\x3b\xa8\x7f",
17886                 .rlen   = 21,
17887         }, {
17888                 .key    = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17889                           "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17890                 .klen   = 16,
17891                 .iv     = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
17892                           "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17893                 .assoc  = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
17894                 .alen   = 8,
17895                 .input  = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
17896                           "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
17897                           "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
17898                           "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
17899                           "\xba",
17900                 .ilen   = 33,
17901                 .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
17902                           "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
17903                           "\x98\x09\xd6\x7d\xbe\xdd\x18",
17904                 .rlen   = 23,
17905         }, {
17906                 /* This is taken from FIPS CAVS. */
17907                 .key    = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
17908                           "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
17909                 .klen   = 16,
17910                 .iv     = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
17911                           "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
17912                 .alen   = 0,
17913                 .input  = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
17914                 .ilen   = 8,
17915                 .result = "\x00",
17916                 .rlen   = 0,
17917                 .novrfy = 1,
17918         }, {
17919                 .key    = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
17920                           "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
17921                 .klen   = 16,
17922                 .iv     = "\x03\xaf\x94\x87\x78\x35\x82\x81"
17923                           "\x7f\x88\x94\x68\x00\x00\x00\x00",
17924                 .alen   = 0,
17925                 .input  = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
17926                 .ilen   = 8,
17927                 .result = "\x00",
17928                 .rlen   = 0,
17929         }, {
17930                 .key    = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
17931                           "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
17932                 .klen   = 16,
17933                 .iv     = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
17934                           "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
17935                 .assoc  = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
17936                           "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
17937                           "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
17938                           "\xd8\x94\x99\x91\x81\x54\x62\x57",
17939                 .alen   = 32,
17940                 .input  = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
17941                           "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
17942                           "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
17943                           "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
17944                           "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
17945                           "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
17946                 .ilen   = 48,
17947                 .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
17948                           "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
17949                           "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
17950                           "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
17951                 .rlen   = 32,
17952                 .novrfy = 1,
17953         }, {
17954                 .key    = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
17955                           "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
17956                 .klen   = 16,
17957                 .iv     = "\x03\x05\xe0\xc9\x0f\xed\x34\xea"
17958                           "\x97\xd4\x3b\xdf\x00\x00\x00\x00",
17959                 .assoc  = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
17960                           "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
17961                           "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
17962                           "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
17963                 .alen   = 32,
17964                 .input  = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
17965                           "\xad\x83\x52\x6d\x71\x03\x25\x1c"
17966                           "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
17967                           "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
17968                           "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
17969                           "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
17970                 .ilen   = 48,
17971                 .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
17972                           "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
17973                           "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
17974                           "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
17975                 .rlen   = 32,
17976         }, {
17977                 .key    = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
17978                           "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
17979                           "\xa4\x48\x93\x39\x26\x71\x4a\xc6",
17980                 .klen   = 24,
17981                 .iv     = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
17982                           "\x57\xba\xfd\x9e\x00\x00\x00\x00",
17983                 .assoc  = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
17984                           "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
17985                           "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
17986                           "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
17987                 .alen   = 32,
17988                 .input  = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
17989                 .ilen   = 8,
17990                 .result = "\x00",
17991                 .rlen   = 0,
17992         }, {
17993                 .key    = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
17994                           "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
17995                           "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
17996                 .klen   = 24,
17997                 .iv     = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
17998                           "\x57\xba\xfd\x9e\x00\x00\x00\x00",
17999                 .assoc  = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
18000                           "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
18001                           "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
18002                           "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
18003                 .alen   = 32,
18004                 .input  = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
18005                           "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
18006                           "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
18007                           "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
18008                           "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
18009                 .ilen   = 40,
18010                 .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
18011                           "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
18012                           "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
18013                           "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
18014                 .rlen   = 32,
18015         }, {
18016                 .key    = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
18017                           "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
18018                           "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
18019                 .klen   = 24,
18020                 .iv     = "\x03\xd1\xfc\x57\x9c\xfe\xb8\x9c"
18021                           "\xad\x71\xaa\x1f\x00\x00\x00\x00",
18022                 .assoc  = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
18023                           "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
18024                           "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
18025                           "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
18026                 .alen   = 32,
18027                 .input  = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
18028                           "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
18029                           "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
18030                           "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
18031                           "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
18032                           "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
18033                 .ilen   = 48,
18034                 .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
18035                           "\x99\x2a\xa8\xca\x04\x25\x45\x90"
18036                           "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
18037                           "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
18038                 .rlen   = 32,
18039                 .novrfy = 1,
18040         }, {
18041                 .key    = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
18042                           "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
18043                           "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
18044                           "\x0e\x85\xbc\x33\xad\x0f\x2b\xff",
18045                 .klen   = 32,
18046                 .iv     = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
18047                           "\x57\xba\xfd\x9e\x00\x00\x00\x00",
18048                 .alen   = 0,
18049                 .input  = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
18050                 .ilen   = 8,
18051                 .result = "\x00",
18052                 .rlen   = 0,
18053         }, {
18054                 .key    = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
18055                           "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
18056                           "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
18057                           "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb",
18058                 .klen   = 32,
18059                 .iv     = "\x03\x85\x34\x66\x42\xc8\x92\x0f"
18060                           "\x36\x58\xe0\x6b\x00\x00\x00\x00",
18061                 .alen   = 0,
18062                 .input  = "\x48\x01\x5e\x02\x24\x04\x66\x47"
18063                           "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
18064                           "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
18065                           "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
18066                           "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
18067                           "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
18068                 .ilen   = 48,
18069                 .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
18070                           "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
18071                           "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
18072                           "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
18073                 .rlen   = 32,
18074                 .novrfy = 1,
18075         }, {
18076                 .key    = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
18077                           "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
18078                           "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
18079                           "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b",
18080                 .klen   = 32,
18081                 .iv     = "\x03\xcf\x76\x3f\xd9\x95\x75\x8f"
18082                           "\x44\x89\x40\x7b\x00\x00\x00\x00",
18083                 .assoc  = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
18084                           "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
18085                           "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
18086                           "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
18087                 .alen   = 32,
18088                 .input  = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
18089                           "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
18090                           "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
18091                           "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
18092                           "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
18093                           "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
18094                 .ilen   = 48,
18095                 .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
18096                           "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
18097                           "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
18098                           "\x04\x49\x3b\x19\x93\x57\x25\x5d",
18099                 .rlen   = 32,
18100         },
18101 };
18102
18103 /*
18104  * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
18105  * use a 13-byte nonce, we only support an 11-byte nonce.  Worse,
18106  * they use AD lengths which are not valid ESP header lengths.
18107  *
18108  * These vectors are copied/generated from the ones for rfc4106 with
18109  * the key truncated by one byte..
18110  */
18111 static const struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = {
18112         { /* Generated using Crypto++ */
18113                 .key    = zeroed_string,
18114                 .klen   = 19,
18115                 .iv     = zeroed_string,
18116                 .input  = zeroed_string,
18117                 .ilen   = 16,
18118                 .assoc  = zeroed_string,
18119                 .alen   = 16,
18120                 .result = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
18121                           "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
18122                           "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
18123                           "\x27\x50\x01\xAC\x03\x33\x39\xFB",
18124                 .rlen   = 32,
18125         },{
18126                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18127                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18128                           "\x00\x00\x00",
18129                 .klen   = 19,
18130                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
18131                 .input  = zeroed_string,
18132                 .ilen   = 16,
18133                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x00"
18134                           "\x00\x00\x00\x00\x00\x00\x00\x01",
18135                 .alen   = 16,
18136                 .result = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
18137                           "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
18138                           "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
18139                           "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
18140                 .rlen   = 32,
18141
18142         }, {
18143                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18144                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18145                           "\x00\x00\x00",
18146                 .klen   = 19,
18147                 .iv     = zeroed_string,
18148                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18149                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18150                 .ilen   = 16,
18151                 .assoc  = zeroed_string,
18152                 .alen   = 16,
18153                 .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
18154                           "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
18155                           "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
18156                           "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
18157                 .rlen   = 32,
18158         }, {
18159                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18160                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18161                           "\x00\x00\x00",
18162                 .klen   = 19,
18163                 .iv     = zeroed_string,
18164                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18165                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18166                 .ilen   = 16,
18167                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18168                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18169                 .alen   = 16,
18170                 .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
18171                           "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
18172                           "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
18173                           "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
18174                 .rlen   = 32,
18175         }, {
18176                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18177                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18178                           "\x00\x00\x00",
18179                 .klen   = 19,
18180                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
18181                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18182                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18183                 .ilen   = 16,
18184                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18185                           "\x00\x00\x00\x00\x00\x00\x00\x01",
18186                 .alen   = 16,
18187                 .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
18188                           "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
18189                           "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
18190                           "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
18191                 .rlen   = 32,
18192         }, {
18193                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18194                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18195                           "\x00\x00\x00",
18196                 .klen   = 19,
18197                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
18198                 .input  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18199                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18200                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18201                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18202                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18203                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18204                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18205                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18206                 .ilen   = 64,
18207                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18208                           "\x00\x00\x00\x00\x00\x00\x00\x01",
18209                 .alen   = 16,
18210                 .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
18211                           "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
18212                           "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
18213                           "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
18214                           "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
18215                           "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
18216                           "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
18217                           "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
18218                           "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
18219                           "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
18220                 .rlen   = 80,
18221         }, {
18222                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
18223                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18224                           "\x00\x00\x00",
18225                 .klen   = 19,
18226                 .iv     = "\x00\x00\x45\x67\x89\xab\xcd\xef",
18227                 .input  = "\xff\xff\xff\xff\xff\xff\xff\xff"
18228                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18229                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18230                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18231                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18232                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18233                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18234                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18235                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18236                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18237                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18238                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18239                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18240                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18241                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18242                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18243                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18244                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18245                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18246                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18247                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18248                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18249                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18250                           "\xff\xff\xff\xff\xff\xff\xff\xff",
18251                 .ilen   = 192,
18252                 .assoc  = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
18253                           "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
18254                           "\x89\xab\xcd\xef",
18255                 .alen   = 20,
18256                 .result = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
18257                           "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
18258                           "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
18259                           "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
18260                           "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
18261                           "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
18262                           "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
18263                           "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
18264                           "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
18265                           "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
18266                           "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
18267                           "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
18268                           "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
18269                           "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
18270                           "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
18271                           "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
18272                           "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
18273                           "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
18274                           "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
18275                           "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
18276                           "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
18277                           "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
18278                           "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
18279                           "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
18280                           "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
18281                           "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
18282                 .rlen   = 208,
18283         }, { /* From draft-mcgrew-gcm-test-01 */
18284                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
18285                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
18286                           "\x2E\x44\x3B",
18287                 .klen   = 19,
18288                 .iv     = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
18289                 .input  = "\x45\x00\x00\x48\x69\x9A\x00\x00"
18290                           "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
18291                           "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
18292                           "\x38\xD3\x01\x00\x00\x01\x00\x00"
18293                           "\x00\x00\x00\x00\x04\x5F\x73\x69"
18294                           "\x70\x04\x5F\x75\x64\x70\x03\x73"
18295                           "\x69\x70\x09\x63\x79\x62\x65\x72"
18296                           "\x63\x69\x74\x79\x02\x64\x6B\x00"
18297                           "\x00\x21\x00\x01\x01\x02\x02\x01",
18298                 .ilen   = 72,
18299                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
18300                           "\x00\x00\x00\x00\x49\x56\xED\x7E"
18301                           "\x3B\x24\x4C\xFE",
18302                 .alen   = 20,
18303                 .result = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
18304                           "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
18305                           "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
18306                           "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
18307                           "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
18308                           "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
18309                           "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
18310                           "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
18311                           "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
18312                           "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
18313                           "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
18314                 .rlen   = 88,
18315         }, {
18316                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18317                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
18318                           "\xCA\xFE\xBA",
18319                 .klen   = 19,
18320                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18321                 .input  = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
18322                           "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
18323                           "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
18324                           "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
18325                           "\x00\x01\x00\x00\x00\x00\x00\x00"
18326                           "\x03\x73\x69\x70\x09\x63\x79\x62"
18327                           "\x65\x72\x63\x69\x74\x79\x02\x64"
18328                           "\x6B\x00\x00\x01\x00\x01\x00\x01",
18329                 .ilen   = 64,
18330                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
18331                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18332                 .alen   = 16,
18333                 .result = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
18334                           "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
18335                           "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
18336                           "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
18337                           "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
18338                           "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
18339                           "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
18340                           "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
18341                           "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
18342                           "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
18343                 .rlen   = 80,
18344         }, {
18345                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18346                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18347                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18348                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18349                           "\x11\x22\x33",
18350                 .klen   = 35,
18351                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
18352                 .input  = "\x45\x00\x00\x30\x69\xA6\x40\x00"
18353                           "\x80\x06\x26\x90\xC0\xA8\x01\x02"
18354                           "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
18355                           "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
18356                           "\x70\x02\x40\x00\x20\xBF\x00\x00"
18357                           "\x02\x04\x05\xB4\x01\x01\x04\x02"
18358                           "\x01\x02\x02\x01",
18359                 .ilen   = 52,
18360                 .assoc  = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
18361                           "\x01\x02\x03\x04\x05\x06\x07\x08",
18362                 .alen   = 16,
18363                 .result = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
18364                           "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
18365                           "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
18366                           "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
18367                           "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
18368                           "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
18369                           "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
18370                           "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
18371                           "\x5A\x48\x6A\x3E",
18372                 .rlen   = 68,
18373         }, {
18374                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
18375                           "\x00\x00\x00\x00\x00\x00\x00\x00"
18376                           "\x00\x00\x00",
18377                 .klen   = 19,
18378                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
18379                 .input  = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
18380                           "\x80\x01\xCB\x7A\x40\x67\x93\x18"
18381                           "\x01\x01\x01\x01\x08\x00\x07\x5C"
18382                           "\x02\x00\x44\x00\x61\x62\x63\x64"
18383                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18384                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18385                           "\x75\x76\x77\x61\x62\x63\x64\x65"
18386                           "\x66\x67\x68\x69\x01\x02\x02\x01",
18387                 .ilen   = 64,
18388                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x01"
18389                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18390                 .alen   = 16,
18391                 .result = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
18392                           "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
18393                           "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
18394                           "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
18395                           "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
18396                           "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
18397                           "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
18398                           "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
18399                           "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
18400                           "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
18401                 .rlen   = 80,
18402         }, {
18403                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18404                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18405                           "\x57\x69\x0E",
18406                 .klen   = 19,
18407                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18408                 .input  = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
18409                           "\x80\x01\xCB\x7C\x40\x67\x93\x18"
18410                           "\x01\x01\x01\x01\x08\x00\x08\x5C"
18411                           "\x02\x00\x43\x00\x61\x62\x63\x64"
18412                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18413                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18414                           "\x75\x76\x77\x61\x62\x63\x64\x65"
18415                           "\x66\x67\x68\x69\x01\x02\x02\x01",
18416                 .ilen   = 64,
18417                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
18418                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
18419                           "\xA2\xFC\xA1\xA3",
18420                 .alen   = 20,
18421                 .result = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
18422                           "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
18423                           "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
18424                           "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
18425                           "\x79\x01\x58\x50\x01\x06\xE1\xE0"
18426                           "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
18427                           "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
18428                           "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
18429                           "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
18430                           "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
18431                 .rlen   = 80,
18432         }, {
18433                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18434                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18435                           "\x57\x69\x0E",
18436                 .klen   = 19,
18437                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18438                 .input  = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
18439                           "\x80\x01\x44\x1F\x40\x67\x93\xB6"
18440                           "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
18441                           "\x01\x02\x02\x01",
18442                 .ilen   = 28,
18443                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
18444                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
18445                           "\xA2\xFC\xA1\xA3",
18446                 .alen   = 20,
18447                 .result = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
18448                           "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
18449                           "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
18450                           "\xA1\xE5\x90\x40\x05\x37\x45\x70"
18451                           "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
18452                           "\x08\xB4\x22\xE4",
18453                 .rlen   = 44,
18454         }, {
18455                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18456                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
18457                           "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18458                           "\xCA\xFE\xBA",
18459                 .klen   = 27,
18460                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18461                 .input  = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
18462                           "\x40\x06\x78\x80\x0A\x01\x03\x8F"
18463                           "\x0A\x01\x06\x12\x80\x23\x06\xB8"
18464                           "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
18465                           "\x50\x10\x16\xD0\x75\x68\x00\x01",
18466                 .ilen   = 40,
18467                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
18468                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18469                 .alen   = 16,
18470                 .result = "\x05\x22\x15\xD1\x52\x56\x85\x04"
18471                           "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
18472                           "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
18473                           "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
18474                           "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
18475                           "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
18476                           "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
18477                 .rlen   = 56,
18478         }, {
18479                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18480                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18481                           "\xDE\xCA\xF8",
18482                 .klen   = 19,
18483                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
18484                 .input  = "\x45\x00\x00\x49\x33\xBA\x00\x00"
18485                           "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
18486                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
18487                           "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
18488                           "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
18489                           "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
18490                           "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
18491                           "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
18492                           "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
18493                           "\x23\x01\x01\x01",
18494                 .ilen   = 76,
18495                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
18496                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
18497                           "\xCE\xFA\xCE\x74",
18498                 .alen   = 20,
18499                 .result = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
18500                           "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
18501                           "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
18502                           "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
18503                           "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
18504                           "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
18505                           "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
18506                           "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
18507                           "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
18508                           "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
18509                           "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
18510                           "\x12\x25\x0B\xF9",
18511                 .rlen   = 92,
18512         }, {
18513                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18514                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18515                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18516                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18517                           "\x73\x61\x6C",
18518                 .klen   = 35,
18519                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
18520                 .input  = "\x45\x08\x00\x28\x73\x2C\x00\x00"
18521                           "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
18522                           "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
18523                           "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
18524                           "\x50\x10\x1F\x64\x6D\x54\x00\x01",
18525                 .ilen   = 40,
18526                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
18527                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
18528                           "\x69\x76\x65\x63",
18529                 .alen   = 20,
18530                 .result = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
18531                           "\x2C\x64\x87\x46\x1E\x34\x10\x05"
18532                           "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
18533                           "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
18534                           "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
18535                           "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
18536                           "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
18537                 .rlen   = 56,
18538         }, {
18539                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18540                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18541                           "\x57\x69\x0E",
18542                 .klen   = 19,
18543                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18544                 .input  = "\x45\x00\x00\x49\x33\x3E\x00\x00"
18545                           "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
18546                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
18547                           "\x00\x35\xCB\x45\x80\x03\x02\x5B"
18548                           "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
18549                           "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
18550                           "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
18551                           "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
18552                           "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
18553                           "\x15\x01\x01\x01",
18554                 .ilen   = 76,
18555                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
18556                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
18557                           "\xA2\xFC\xA1\xA3",
18558                 .alen   = 20,
18559                 .result = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
18560                           "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
18561                           "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
18562                           "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
18563                           "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
18564                           "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
18565                           "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
18566                           "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
18567                           "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
18568                           "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
18569                           "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
18570                           "\xCC\xF7\x46\x6F",
18571                 .rlen   = 92,
18572         }, {
18573                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18574                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18575                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18576                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18577                           "\x73\x61\x6C",
18578                 .klen   = 35,
18579                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
18580                 .input  = "\x63\x69\x73\x63\x6F\x01\x72\x75"
18581                           "\x6C\x65\x73\x01\x74\x68\x65\x01"
18582                           "\x6E\x65\x74\x77\x65\x01\x64\x65"
18583                           "\x66\x69\x6E\x65\x01\x74\x68\x65"
18584                           "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
18585                           "\x67\x69\x65\x73\x01\x74\x68\x61"
18586                           "\x74\x77\x69\x6C\x6C\x01\x64\x65"
18587                           "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
18588                           "\x72\x72\x6F\x77\x01\x02\x02\x01",
18589                 .ilen   = 72,
18590                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
18591                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
18592                           "\x69\x76\x65\x63",
18593                 .alen   = 20,
18594                 .result = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
18595                           "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
18596                           "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
18597                           "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
18598                           "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
18599                           "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
18600                           "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
18601                           "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
18602                           "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
18603                           "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
18604                           "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
18605                 .rlen   = 88,
18606         }, {
18607                 .key    = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
18608                           "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
18609                           "\xD9\x66\x42",
18610                 .klen   = 19,
18611                 .iv     = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
18612                 .input  = "\x01\x02\x02\x01",
18613                 .ilen   = 4,
18614                 .assoc  = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
18615                           "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
18616                 .alen   = 16,
18617                 .result = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
18618                           "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
18619                           "\xF7\x61\x24\x62",
18620                 .rlen   = 20,
18621         }, {
18622                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18623                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18624                           "\xDE\xCA\xF8",
18625                 .klen   = 19,
18626                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
18627                 .input  = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
18628                           "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
18629                           "\x62\x65\x00\x01",
18630                 .ilen   = 20,
18631                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
18632                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
18633                           "\xCE\xFA\xCE\x74",
18634                 .alen   = 20,
18635                 .result = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
18636                           "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
18637                           "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
18638                           "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
18639                           "\x17\x17\x65\xAD",
18640                 .rlen   = 36,
18641         }, {
18642                 .key    = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
18643                           "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
18644                           "\x61\x61\x6E\x64\x64\x6F\x69\x74"
18645                           "\x62\x65\x66\x6F\x72\x65\x69\x61"
18646                           "\x74\x75\x72",
18647                 .klen   = 35,
18648                 .iv     = "\x33\x30\x21\x69\x67\x65\x74\x6D",
18649                 .input  = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
18650                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
18651                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
18652                           "\x02\x00\x07\x00\x61\x62\x63\x64"
18653                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18654                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18655                           "\x01\x02\x02\x01",
18656                 .ilen   = 52,
18657                 .assoc  = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
18658                           "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
18659                           "\x67\x65\x74\x6D",
18660                 .alen   = 20,
18661                 .result = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
18662                           "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
18663                           "\x48\x59\x80\x18\x1A\x18\x1A\x04"
18664                           "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
18665                           "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
18666                           "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
18667                           "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
18668                           "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
18669                           "\x39\xDB\xC8\xDC",
18670                 .rlen   = 68,
18671         }, {
18672                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18673                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18674                           "\x57\x69\x0E",
18675                 .klen   = 19,
18676                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18677                 .input  = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
18678                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
18679                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
18680                           "\x02\x00\x07\x00\x61\x62\x63\x64"
18681                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18682                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18683                           "\x01\x02\x02\x01",
18684                 .ilen   = 52,
18685                 .assoc  = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
18686                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
18687                           "\xA2\xFC\xA1\xA3",
18688                 .alen   = 20,
18689                 .result = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
18690                           "\x10\x60\x54\x25\xEB\x80\x04\x93"
18691                           "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
18692                           "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
18693                           "\x79\x01\x58\x50\x01\x06\xE1\xE0"
18694                           "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
18695                           "\x44\xCC\x90\xBF\x00\x94\x94\x92"
18696                           "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
18697                           "\xF4\x95\x5D\x4F",
18698                 .rlen   = 68,
18699         }, {
18700                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
18701                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
18702                           "\x22\x43\x3C",
18703                 .klen   = 19,
18704                 .iv     = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
18705                 .input  = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
18706                           "\x61\x62\x63\x64\x65\x66\x67\x68"
18707                           "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
18708                           "\x71\x72\x73\x74\x01\x02\x02\x01",
18709                 .ilen   = 32,
18710                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
18711                           "\x00\x00\x00\x07\x48\x55\xEC\x7D"
18712                           "\x3A\x23\x4B\xFD",
18713                 .alen   = 20,
18714                 .result = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
18715                           "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
18716                           "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
18717                           "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
18718                           "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
18719                           "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
18720                 .rlen   = 48,
18721         }
18722 };
18723
18724 static const struct aead_testvec aes_ccm_rfc4309_dec_tv_template[]      = {
18725         { /* Generated using Crypto++ */
18726                 .key    = zeroed_string,
18727                 .klen   = 19,
18728                 .iv     = zeroed_string,
18729                 .result = zeroed_string,
18730                 .rlen   = 16,
18731                 .assoc  = zeroed_string,
18732                 .alen   = 16,
18733                 .input  = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
18734                           "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
18735                           "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
18736                           "\x27\x50\x01\xAC\x03\x33\x39\xFB",
18737                 .ilen   = 32,
18738         },{
18739                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18740                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18741                           "\x00\x00\x00",
18742                 .klen   = 19,
18743                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
18744                 .result = zeroed_string,
18745                 .rlen   = 16,
18746                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x00"
18747                           "\x00\x00\x00\x00\x00\x00\x00\x01",
18748                 .alen   = 16,
18749                 .input  = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
18750                           "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
18751                           "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
18752                           "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
18753                 .ilen   = 32,
18754
18755         }, {
18756                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18757                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18758                           "\x00\x00\x00",
18759                 .klen   = 19,
18760                 .iv     = zeroed_string,
18761                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
18762                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18763                 .rlen   = 16,
18764                 .assoc  = zeroed_string,
18765                 .alen   = 16,
18766                 .input  = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
18767                           "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
18768                           "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
18769                           "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
18770                 .ilen   = 32,
18771         }, {
18772                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18773                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18774                           "\x00\x00\x00",
18775                 .klen   = 19,
18776                 .iv     = zeroed_string,
18777                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
18778                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18779                 .rlen   = 16,
18780                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18781                           "\x00\x00\x00\x00\x00\x00\x00\x00",
18782                 .alen   = 16,
18783                 .input  = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
18784                           "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
18785                           "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
18786                           "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
18787                 .ilen   = 32,
18788         }, {
18789                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18790                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18791                           "\x00\x00\x00",
18792                 .klen   = 19,
18793                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
18794                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
18795                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18796                 .rlen   = 16,
18797                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18798                           "\x00\x00\x00\x00\x00\x00\x00\x01",
18799                 .alen   = 16,
18800                 .input  = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
18801                           "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
18802                           "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
18803                           "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
18804                 .ilen   = 32,
18805         }, {
18806                 .key    = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18807                           "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18808                           "\x00\x00\x00",
18809                 .klen   = 19,
18810                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x01",
18811                 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
18812                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18813                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18814                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18815                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18816                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18817                           "\x01\x01\x01\x01\x01\x01\x01\x01"
18818                           "\x01\x01\x01\x01\x01\x01\x01\x01",
18819                 .rlen   = 64,
18820                 .assoc  = "\x01\x01\x01\x01\x01\x01\x01\x01"
18821                           "\x00\x00\x00\x00\x00\x00\x00\x01",
18822                 .alen   = 16,
18823                 .input  = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
18824                           "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
18825                           "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
18826                           "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
18827                           "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
18828                           "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
18829                           "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
18830                           "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
18831                           "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
18832                           "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
18833                 .ilen   = 80,
18834         }, {
18835                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
18836                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18837                           "\x00\x00\x00",
18838                 .klen   = 19,
18839                 .iv     = "\x00\x00\x45\x67\x89\xab\xcd\xef",
18840                 .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
18841                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18842                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18843                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18844                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18845                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18846                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18847                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18848                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18849                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18850                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18851                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18852                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18853                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18854                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18855                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18856                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18857                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18858                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18859                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18860                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18861                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18862                           "\xff\xff\xff\xff\xff\xff\xff\xff"
18863                           "\xff\xff\xff\xff\xff\xff\xff\xff",
18864                 .rlen   = 192,
18865                 .assoc  = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
18866                           "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
18867                           "\x89\xab\xcd\xef",
18868                 .alen   = 20,
18869                 .input  = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
18870                           "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
18871                           "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
18872                           "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
18873                           "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
18874                           "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
18875                           "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
18876                           "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
18877                           "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
18878                           "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
18879                           "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
18880                           "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
18881                           "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
18882                           "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
18883                           "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
18884                           "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
18885                           "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
18886                           "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
18887                           "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
18888                           "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
18889                           "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
18890                           "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
18891                           "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
18892                           "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
18893                           "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
18894                           "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
18895                 .ilen   = 208,
18896         }, { /* From draft-mcgrew-gcm-test-01 */
18897                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
18898                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
18899                           "\x2E\x44\x3B",
18900                 .klen   = 19,
18901                 .iv     = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
18902                 .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
18903                           "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
18904                           "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
18905                           "\x38\xD3\x01\x00\x00\x01\x00\x00"
18906                           "\x00\x00\x00\x00\x04\x5F\x73\x69"
18907                           "\x70\x04\x5F\x75\x64\x70\x03\x73"
18908                           "\x69\x70\x09\x63\x79\x62\x65\x72"
18909                           "\x63\x69\x74\x79\x02\x64\x6B\x00"
18910                           "\x00\x21\x00\x01\x01\x02\x02\x01",
18911                 .rlen   = 72,
18912                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
18913                           "\x00\x00\x00\x00\x49\x56\xED\x7E"
18914                           "\x3B\x24\x4C\xFE",
18915                 .alen   = 20,
18916                 .input  = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
18917                           "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
18918                           "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
18919                           "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
18920                           "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
18921                           "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
18922                           "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
18923                           "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
18924                           "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
18925                           "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
18926                           "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
18927                 .ilen   = 88,
18928         }, {
18929                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18930                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
18931                           "\xCA\xFE\xBA",
18932                 .klen   = 19,
18933                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18934                 .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
18935                           "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
18936                           "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
18937                           "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
18938                           "\x00\x01\x00\x00\x00\x00\x00\x00"
18939                           "\x03\x73\x69\x70\x09\x63\x79\x62"
18940                           "\x65\x72\x63\x69\x74\x79\x02\x64"
18941                           "\x6B\x00\x00\x01\x00\x01\x00\x01",
18942                 .rlen   = 64,
18943                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
18944                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18945                 .alen   = 16,
18946                 .input  = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
18947                           "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
18948                           "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
18949                           "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
18950                           "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
18951                           "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
18952                           "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
18953                           "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
18954                           "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
18955                           "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
18956                 .ilen   = 80,
18957         }, {
18958                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18959                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18960                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18961                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18962                           "\x11\x22\x33",
18963                 .klen   = 35,
18964                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
18965                 .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
18966                           "\x80\x06\x26\x90\xC0\xA8\x01\x02"
18967                           "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
18968                           "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
18969                           "\x70\x02\x40\x00\x20\xBF\x00\x00"
18970                           "\x02\x04\x05\xB4\x01\x01\x04\x02"
18971                           "\x01\x02\x02\x01",
18972                 .rlen   = 52,
18973                 .assoc  = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
18974                           "\x01\x02\x03\x04\x05\x06\x07\x08",
18975                 .alen   = 16,
18976                 .input  = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
18977                           "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
18978                           "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
18979                           "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
18980                           "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
18981                           "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
18982                           "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
18983                           "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
18984                           "\x5A\x48\x6A\x3E",
18985                 .ilen   = 68,
18986         }, {
18987                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
18988                           "\x00\x00\x00\x00\x00\x00\x00\x00"
18989                           "\x00\x00\x00",
18990                 .klen   = 19,
18991                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
18992                 .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
18993                           "\x80\x01\xCB\x7A\x40\x67\x93\x18"
18994                           "\x01\x01\x01\x01\x08\x00\x07\x5C"
18995                           "\x02\x00\x44\x00\x61\x62\x63\x64"
18996                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18997                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18998                           "\x75\x76\x77\x61\x62\x63\x64\x65"
18999                           "\x66\x67\x68\x69\x01\x02\x02\x01",
19000                 .rlen   = 64,
19001                 .assoc  = "\x00\x00\x00\x00\x00\x00\x00\x01"
19002                           "\x00\x00\x00\x00\x00\x00\x00\x00",
19003                 .alen   = 16,
19004                 .input  = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
19005                           "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
19006                           "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
19007                           "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
19008                           "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
19009                           "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
19010                           "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
19011                           "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
19012                           "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
19013                           "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
19014                 .ilen   = 80,
19015         }, {
19016                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
19017                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
19018                           "\x57\x69\x0E",
19019                 .klen   = 19,
19020                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
19021                 .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
19022                           "\x80\x01\xCB\x7C\x40\x67\x93\x18"
19023                           "\x01\x01\x01\x01\x08\x00\x08\x5C"
19024                           "\x02\x00\x43\x00\x61\x62\x63\x64"
19025                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
19026                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
19027                           "\x75\x76\x77\x61\x62\x63\x64\x65"
19028                           "\x66\x67\x68\x69\x01\x02\x02\x01",
19029                 .rlen   = 64,
19030                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
19031                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
19032                           "\xA2\xFC\xA1\xA3",
19033                 .alen   = 20,
19034                 .input  = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
19035                           "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
19036                           "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
19037                           "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
19038                           "\x79\x01\x58\x50\x01\x06\xE1\xE0"
19039                           "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
19040                           "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
19041                           "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
19042                           "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
19043                           "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
19044                 .ilen   = 80,
19045         }, {
19046                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
19047                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
19048                           "\x57\x69\x0E",
19049                 .klen   = 19,
19050                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
19051                 .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
19052                           "\x80\x01\x44\x1F\x40\x67\x93\xB6"
19053                           "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
19054                           "\x01\x02\x02\x01",
19055                 .rlen   = 28,
19056                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
19057                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
19058                           "\xA2\xFC\xA1\xA3",
19059                 .alen   = 20,
19060                 .input  = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
19061                           "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
19062                           "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
19063                           "\xA1\xE5\x90\x40\x05\x37\x45\x70"
19064                           "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
19065                           "\x08\xB4\x22\xE4",
19066                 .ilen   = 44,
19067         }, {
19068                 .key    = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
19069                           "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
19070                           "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
19071                           "\xCA\xFE\xBA",
19072                 .klen   = 27,
19073                 .iv     = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
19074                 .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
19075                           "\x40\x06\x78\x80\x0A\x01\x03\x8F"
19076                           "\x0A\x01\x06\x12\x80\x23\x06\xB8"
19077                           "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
19078                           "\x50\x10\x16\xD0\x75\x68\x00\x01",
19079                 .rlen   = 40,
19080                 .assoc  = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
19081                           "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
19082                 .alen   = 16,
19083                 .input  = "\x05\x22\x15\xD1\x52\x56\x85\x04"
19084                           "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
19085                           "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
19086                           "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
19087                           "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
19088                           "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
19089                           "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
19090                 .ilen   = 56,
19091         }, {
19092                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19093                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19094                           "\xDE\xCA\xF8",
19095                 .klen   = 19,
19096                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
19097                 .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
19098                           "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
19099                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
19100                           "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
19101                           "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
19102                           "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
19103                           "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
19104                           "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
19105                           "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
19106                           "\x23\x01\x01\x01",
19107                 .rlen   = 76,
19108                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
19109                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
19110                           "\xCE\xFA\xCE\x74",
19111                 .alen   = 20,
19112                 .input  = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
19113                           "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
19114                           "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
19115                           "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
19116                           "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
19117                           "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
19118                           "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
19119                           "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
19120                           "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
19121                           "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
19122                           "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
19123                           "\x12\x25\x0B\xF9",
19124                 .ilen   = 92,
19125         }, {
19126                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19127                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19128                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19129                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19130                           "\x73\x61\x6C",
19131                 .klen   = 35,
19132                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
19133                 .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
19134                           "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
19135                           "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
19136                           "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
19137                           "\x50\x10\x1F\x64\x6D\x54\x00\x01",
19138                 .rlen   = 40,
19139                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
19140                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
19141                           "\x69\x76\x65\x63",
19142                 .alen   = 20,
19143                 .input  = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
19144                           "\x2C\x64\x87\x46\x1E\x34\x10\x05"
19145                           "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
19146                           "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
19147                           "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
19148                           "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
19149                           "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
19150                 .ilen   = 56,
19151         }, {
19152                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
19153                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
19154                           "\x57\x69\x0E",
19155                 .klen   = 19,
19156                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
19157                 .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
19158                           "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
19159                           "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
19160                           "\x00\x35\xCB\x45\x80\x03\x02\x5B"
19161                           "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
19162                           "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
19163                           "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
19164                           "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
19165                           "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
19166                           "\x15\x01\x01\x01",
19167                 .rlen   = 76,
19168                 .assoc  = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
19169                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
19170                           "\xA2\xFC\xA1\xA3",
19171                 .alen   = 20,
19172                 .input  = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
19173                           "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
19174                           "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
19175                           "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
19176                           "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
19177                           "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
19178                           "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
19179                           "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
19180                           "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
19181                           "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
19182                           "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
19183                           "\xCC\xF7\x46\x6F",
19184                 .ilen   = 92,
19185         }, {
19186                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19187                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19188                           "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19189                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19190                           "\x73\x61\x6C",
19191                 .klen   = 35,
19192                 .iv     = "\x61\x6E\x64\x01\x69\x76\x65\x63",
19193                 .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
19194                           "\x6C\x65\x73\x01\x74\x68\x65\x01"
19195                           "\x6E\x65\x74\x77\x65\x01\x64\x65"
19196                           "\x66\x69\x6E\x65\x01\x74\x68\x65"
19197                           "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
19198                           "\x67\x69\x65\x73\x01\x74\x68\x61"
19199                           "\x74\x77\x69\x6C\x6C\x01\x64\x65"
19200                           "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
19201                           "\x72\x72\x6F\x77\x01\x02\x02\x01",
19202                 .rlen   = 72,
19203                 .assoc  = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
19204                           "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
19205                           "\x69\x76\x65\x63",
19206                 .alen   = 20,
19207                 .input  = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
19208                           "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
19209                           "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
19210                           "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
19211                           "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
19212                           "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
19213                           "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
19214                           "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
19215                           "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
19216                           "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
19217                           "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
19218                 .ilen   = 88,
19219         }, {
19220                 .key    = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
19221                           "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
19222                           "\xD9\x66\x42",
19223                 .klen   = 19,
19224                 .iv     = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
19225                 .result = "\x01\x02\x02\x01",
19226                 .rlen   = 4,
19227                 .assoc  = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
19228                           "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
19229                 .alen   = 16,
19230                 .input  = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
19231                           "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
19232                           "\xF7\x61\x24\x62",
19233                 .ilen   = 20,
19234         }, {
19235                 .key    = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19236                           "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19237                           "\xDE\xCA\xF8",
19238                 .klen   = 19,
19239                 .iv     = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
19240                 .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
19241                           "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
19242                           "\x62\x65\x00\x01",
19243                 .rlen   = 20,
19244                 .assoc  = "\x00\x00\x01\x00\x00\x00\x00\x00"
19245                           "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
19246                           "\xCE\xFA\xCE\x74",
19247                 .alen   = 20,
19248                 .input  = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
19249                           "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
19250                           "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
19251                           "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
19252                           "\x17\x17\x65\xAD",
19253                 .ilen   = 36,
19254         }, {
19255                 .key    = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
19256                           "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
19257                           "\x61\x61\x6E\x64\x64\x6F\x69\x74"
19258                           "\x62\x65\x66\x6F\x72\x65\x69\x61"
19259                           "\x74\x75\x72",
19260                 .klen   = 35,
19261                 .iv     = "\x33\x30\x21\x69\x67\x65\x74\x6D",
19262                 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
19263                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
19264                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
19265                           "\x02\x00\x07\x00\x61\x62\x63\x64"
19266                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
19267                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
19268                           "\x01\x02\x02\x01",
19269                 .rlen   = 52,
19270                 .assoc  = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
19271                           "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
19272                           "\x67\x65\x74\x6D",
19273                 .alen   = 20,
19274                 .input  = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
19275                           "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
19276                           "\x48\x59\x80\x18\x1A\x18\x1A\x04"
19277                           "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
19278                           "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
19279                           "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
19280                           "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
19281                           "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
19282                           "\x39\xDB\xC8\xDC",
19283                 .ilen   = 68,
19284         }, {
19285                 .key    = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
19286                           "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
19287                           "\x57\x69\x0E",
19288                 .klen   = 19,
19289                 .iv     = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
19290                 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
19291                           "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
19292                           "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
19293                           "\x02\x00\x07\x00\x61\x62\x63\x64"
19294                           "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
19295                           "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
19296                           "\x01\x02\x02\x01",
19297                 .rlen   = 52,
19298                 .assoc  = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
19299                           "\x10\x10\x10\x10\x4E\x28\x00\x00"
19300                           "\xA2\xFC\xA1\xA3",
19301                 .alen   = 20,
19302                 .input  = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
19303                           "\x10\x60\x54\x25\xEB\x80\x04\x93"
19304                           "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
19305                           "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
19306                           "\x79\x01\x58\x50\x01\x06\xE1\xE0"
19307                           "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
19308                           "\x44\xCC\x90\xBF\x00\x94\x94\x92"
19309                           "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
19310                           "\xF4\x95\x5D\x4F",
19311                 .ilen   = 68,
19312         }, {
19313                 .key    = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
19314                           "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
19315                           "\x22\x43\x3C",
19316                 .klen   = 19,
19317                 .iv     = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
19318                 .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
19319                           "\x61\x62\x63\x64\x65\x66\x67\x68"
19320                           "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
19321                           "\x71\x72\x73\x74\x01\x02\x02\x01",
19322                 .rlen   = 32,
19323                 .assoc  = "\x00\x00\x43\x21\x87\x65\x43\x21"
19324                           "\x00\x00\x00\x07\x48\x55\xEC\x7D"
19325                           "\x3A\x23\x4B\xFD",
19326                 .alen   = 20,
19327                 .input  = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
19328                           "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
19329                           "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
19330                           "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
19331                           "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
19332                           "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
19333                 .ilen   = 48,
19334         }
19335 };
19336
19337 /*
19338  * ChaCha20-Poly1305 AEAD test vectors from RFC7539 2.8.2./A.5.
19339  */
19340 static const struct aead_testvec rfc7539_enc_tv_template[] = {
19341         {
19342                 .key    = "\x80\x81\x82\x83\x84\x85\x86\x87"
19343                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
19344                           "\x90\x91\x92\x93\x94\x95\x96\x97"
19345                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
19346                 .klen   = 32,
19347                 .iv     = "\x07\x00\x00\x00\x40\x41\x42\x43"
19348                           "\x44\x45\x46\x47",
19349                 .assoc  = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
19350                           "\xc4\xc5\xc6\xc7",
19351                 .alen   = 12,
19352                 .input  = "\x4c\x61\x64\x69\x65\x73\x20\x61"
19353                           "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
19354                           "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
19355                           "\x74\x68\x65\x20\x63\x6c\x61\x73"
19356                           "\x73\x20\x6f\x66\x20\x27\x39\x39"
19357                           "\x3a\x20\x49\x66\x20\x49\x20\x63"
19358                           "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
19359                           "\x65\x72\x20\x79\x6f\x75\x20\x6f"
19360                           "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
19361                           "\x74\x69\x70\x20\x66\x6f\x72\x20"
19362                           "\x74\x68\x65\x20\x66\x75\x74\x75"
19363                           "\x72\x65\x2c\x20\x73\x75\x6e\x73"
19364                           "\x63\x72\x65\x65\x6e\x20\x77\x6f"
19365                           "\x75\x6c\x64\x20\x62\x65\x20\x69"
19366                           "\x74\x2e",
19367                 .ilen   = 114,
19368                 .result = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
19369                           "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
19370                           "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
19371                           "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
19372                           "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
19373                           "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
19374                           "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
19375                           "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
19376                           "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
19377                           "\x98\x03\xae\xe3\x28\x09\x1b\x58"
19378                           "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
19379                           "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
19380                           "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
19381                           "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
19382                           "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
19383                           "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
19384                           "\x06\x91",
19385                 .rlen   = 130,
19386         }, {
19387                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
19388                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
19389                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
19390                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
19391                 .klen   = 32,
19392                 .iv     = "\x00\x00\x00\x00\x01\x02\x03\x04"
19393                           "\x05\x06\x07\x08",
19394                 .assoc  = "\xf3\x33\x88\x86\x00\x00\x00\x00"
19395                           "\x00\x00\x4e\x91",
19396                 .alen   = 12,
19397                 .input  = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
19398                           "\x2d\x44\x72\x61\x66\x74\x73\x20"
19399                           "\x61\x72\x65\x20\x64\x72\x61\x66"
19400                           "\x74\x20\x64\x6f\x63\x75\x6d\x65"
19401                           "\x6e\x74\x73\x20\x76\x61\x6c\x69"
19402                           "\x64\x20\x66\x6f\x72\x20\x61\x20"
19403                           "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
19404                           "\x6f\x66\x20\x73\x69\x78\x20\x6d"
19405                           "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
19406                           "\x64\x20\x6d\x61\x79\x20\x62\x65"
19407                           "\x20\x75\x70\x64\x61\x74\x65\x64"
19408                           "\x2c\x20\x72\x65\x70\x6c\x61\x63"
19409                           "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
19410                           "\x62\x73\x6f\x6c\x65\x74\x65\x64"
19411                           "\x20\x62\x79\x20\x6f\x74\x68\x65"
19412                           "\x72\x20\x64\x6f\x63\x75\x6d\x65"
19413                           "\x6e\x74\x73\x20\x61\x74\x20\x61"
19414                           "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
19415                           "\x20\x49\x74\x20\x69\x73\x20\x69"
19416                           "\x6e\x61\x70\x70\x72\x6f\x70\x72"
19417                           "\x69\x61\x74\x65\x20\x74\x6f\x20"
19418                           "\x75\x73\x65\x20\x49\x6e\x74\x65"
19419                           "\x72\x6e\x65\x74\x2d\x44\x72\x61"
19420                           "\x66\x74\x73\x20\x61\x73\x20\x72"
19421                           "\x65\x66\x65\x72\x65\x6e\x63\x65"
19422                           "\x20\x6d\x61\x74\x65\x72\x69\x61"
19423                           "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
19424                           "\x63\x69\x74\x65\x20\x74\x68\x65"
19425                           "\x6d\x20\x6f\x74\x68\x65\x72\x20"
19426                           "\x74\x68\x61\x6e\x20\x61\x73\x20"
19427                           "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
19428                           "\x20\x69\x6e\x20\x70\x72\x6f\x67"
19429                           "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
19430                           "\x9d",
19431                 .ilen   = 265,
19432                 .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
19433                           "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
19434                           "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
19435                           "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
19436                           "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
19437                           "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
19438                           "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
19439                           "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
19440                           "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
19441                           "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
19442                           "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
19443                           "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
19444                           "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
19445                           "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
19446                           "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
19447                           "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
19448                           "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
19449                           "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
19450                           "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
19451                           "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
19452                           "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
19453                           "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
19454                           "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
19455                           "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
19456                           "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
19457                           "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
19458                           "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
19459                           "\x73\xa6\x72\x76\x27\x09\x7a\x10"
19460                           "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
19461                           "\xfa\x68\xf0\xff\x77\x98\x71\x30"
19462                           "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
19463                           "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
19464                           "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
19465                           "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
19466                           "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
19467                           "\x38",
19468                 .rlen   = 281,
19469         },
19470 };
19471
19472 static const struct aead_testvec rfc7539_dec_tv_template[] = {
19473         {
19474                 .key    = "\x80\x81\x82\x83\x84\x85\x86\x87"
19475                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
19476                           "\x90\x91\x92\x93\x94\x95\x96\x97"
19477                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
19478                 .klen   = 32,
19479                 .iv     = "\x07\x00\x00\x00\x40\x41\x42\x43"
19480                           "\x44\x45\x46\x47",
19481                 .assoc  = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
19482                           "\xc4\xc5\xc6\xc7",
19483                 .alen   = 12,
19484                 .input  = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
19485                           "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
19486                           "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
19487                           "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
19488                           "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
19489                           "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
19490                           "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
19491                           "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
19492                           "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
19493                           "\x98\x03\xae\xe3\x28\x09\x1b\x58"
19494                           "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
19495                           "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
19496                           "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
19497                           "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
19498                           "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
19499                           "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
19500                           "\x06\x91",
19501                 .ilen   = 130,
19502                 .result = "\x4c\x61\x64\x69\x65\x73\x20\x61"
19503                           "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
19504                           "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
19505                           "\x74\x68\x65\x20\x63\x6c\x61\x73"
19506                           "\x73\x20\x6f\x66\x20\x27\x39\x39"
19507                           "\x3a\x20\x49\x66\x20\x49\x20\x63"
19508                           "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
19509                           "\x65\x72\x20\x79\x6f\x75\x20\x6f"
19510                           "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
19511                           "\x74\x69\x70\x20\x66\x6f\x72\x20"
19512                           "\x74\x68\x65\x20\x66\x75\x74\x75"
19513                           "\x72\x65\x2c\x20\x73\x75\x6e\x73"
19514                           "\x63\x72\x65\x65\x6e\x20\x77\x6f"
19515                           "\x75\x6c\x64\x20\x62\x65\x20\x69"
19516                           "\x74\x2e",
19517                 .rlen   = 114,
19518         }, {
19519                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
19520                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
19521                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
19522                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
19523                 .klen   = 32,
19524                 .iv     = "\x00\x00\x00\x00\x01\x02\x03\x04"
19525                           "\x05\x06\x07\x08",
19526                 .assoc  = "\xf3\x33\x88\x86\x00\x00\x00\x00"
19527                           "\x00\x00\x4e\x91",
19528                 .alen   = 12,
19529                 .input  = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
19530                           "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
19531                           "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
19532                           "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
19533                           "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
19534                           "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
19535                           "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
19536                           "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
19537                           "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
19538                           "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
19539                           "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
19540                           "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
19541                           "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
19542                           "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
19543                           "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
19544                           "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
19545                           "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
19546                           "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
19547                           "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
19548                           "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
19549                           "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
19550                           "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
19551                           "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
19552                           "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
19553                           "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
19554                           "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
19555                           "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
19556                           "\x73\xa6\x72\x76\x27\x09\x7a\x10"
19557                           "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
19558                           "\xfa\x68\xf0\xff\x77\x98\x71\x30"
19559                           "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
19560                           "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
19561                           "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
19562                           "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
19563                           "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
19564                           "\x38",
19565                 .ilen   = 281,
19566                 .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
19567                           "\x2d\x44\x72\x61\x66\x74\x73\x20"
19568                           "\x61\x72\x65\x20\x64\x72\x61\x66"
19569                           "\x74\x20\x64\x6f\x63\x75\x6d\x65"
19570                           "\x6e\x74\x73\x20\x76\x61\x6c\x69"
19571                           "\x64\x20\x66\x6f\x72\x20\x61\x20"
19572                           "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
19573                           "\x6f\x66\x20\x73\x69\x78\x20\x6d"
19574                           "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
19575                           "\x64\x20\x6d\x61\x79\x20\x62\x65"
19576                           "\x20\x75\x70\x64\x61\x74\x65\x64"
19577                           "\x2c\x20\x72\x65\x70\x6c\x61\x63"
19578                           "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
19579                           "\x62\x73\x6f\x6c\x65\x74\x65\x64"
19580                           "\x20\x62\x79\x20\x6f\x74\x68\x65"
19581                           "\x72\x20\x64\x6f\x63\x75\x6d\x65"
19582                           "\x6e\x74\x73\x20\x61\x74\x20\x61"
19583                           "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
19584                           "\x20\x49\x74\x20\x69\x73\x20\x69"
19585                           "\x6e\x61\x70\x70\x72\x6f\x70\x72"
19586                           "\x69\x61\x74\x65\x20\x74\x6f\x20"
19587                           "\x75\x73\x65\x20\x49\x6e\x74\x65"
19588                           "\x72\x6e\x65\x74\x2d\x44\x72\x61"
19589                           "\x66\x74\x73\x20\x61\x73\x20\x72"
19590                           "\x65\x66\x65\x72\x65\x6e\x63\x65"
19591                           "\x20\x6d\x61\x74\x65\x72\x69\x61"
19592                           "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
19593                           "\x63\x69\x74\x65\x20\x74\x68\x65"
19594                           "\x6d\x20\x6f\x74\x68\x65\x72\x20"
19595                           "\x74\x68\x61\x6e\x20\x61\x73\x20"
19596                           "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
19597                           "\x20\x69\x6e\x20\x70\x72\x6f\x67"
19598                           "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
19599                           "\x9d",
19600                 .rlen   = 265,
19601         },
19602 };
19603
19604 /*
19605  * draft-irtf-cfrg-chacha20-poly1305
19606  */
19607 static const struct aead_testvec rfc7539esp_enc_tv_template[] = {
19608         {
19609                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
19610                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
19611                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
19612                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
19613                           "\x00\x00\x00\x00",
19614                 .klen   = 36,
19615                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
19616                 .assoc  = "\xf3\x33\x88\x86\x00\x00\x00\x00"
19617                           "\x00\x00\x4e\x91\x01\x02\x03\x04"
19618                           "\x05\x06\x07\x08",
19619                 .alen   = 20,
19620                 .input  = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
19621                           "\x2d\x44\x72\x61\x66\x74\x73\x20"
19622                           "\x61\x72\x65\x20\x64\x72\x61\x66"
19623                           "\x74\x20\x64\x6f\x63\x75\x6d\x65"
19624                           "\x6e\x74\x73\x20\x76\x61\x6c\x69"
19625                           "\x64\x20\x66\x6f\x72\x20\x61\x20"
19626                           "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
19627                           "\x6f\x66\x20\x73\x69\x78\x20\x6d"
19628                           "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
19629                           "\x64\x20\x6d\x61\x79\x20\x62\x65"
19630                           "\x20\x75\x70\x64\x61\x74\x65\x64"
19631                           "\x2c\x20\x72\x65\x70\x6c\x61\x63"
19632                           "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
19633                           "\x62\x73\x6f\x6c\x65\x74\x65\x64"
19634                           "\x20\x62\x79\x20\x6f\x74\x68\x65"
19635                           "\x72\x20\x64\x6f\x63\x75\x6d\x65"
19636                           "\x6e\x74\x73\x20\x61\x74\x20\x61"
19637                           "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
19638                           "\x20\x49\x74\x20\x69\x73\x20\x69"
19639                           "\x6e\x61\x70\x70\x72\x6f\x70\x72"
19640                           "\x69\x61\x74\x65\x20\x74\x6f\x20"
19641                           "\x75\x73\x65\x20\x49\x6e\x74\x65"
19642                           "\x72\x6e\x65\x74\x2d\x44\x72\x61"
19643                           "\x66\x74\x73\x20\x61\x73\x20\x72"
19644                           "\x65\x66\x65\x72\x65\x6e\x63\x65"
19645                           "\x20\x6d\x61\x74\x65\x72\x69\x61"
19646                           "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
19647                           "\x63\x69\x74\x65\x20\x74\x68\x65"
19648                           "\x6d\x20\x6f\x74\x68\x65\x72\x20"
19649                           "\x74\x68\x61\x6e\x20\x61\x73\x20"
19650                           "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
19651                           "\x20\x69\x6e\x20\x70\x72\x6f\x67"
19652                           "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
19653                           "\x9d",
19654                 .ilen   = 265,
19655                 .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
19656                           "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
19657                           "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
19658                           "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
19659                           "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
19660                           "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
19661                           "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
19662                           "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
19663                           "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
19664                           "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
19665                           "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
19666                           "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
19667                           "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
19668                           "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
19669                           "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
19670                           "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
19671                           "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
19672                           "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
19673                           "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
19674                           "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
19675                           "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
19676                           "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
19677                           "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
19678                           "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
19679                           "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
19680                           "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
19681                           "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
19682                           "\x73\xa6\x72\x76\x27\x09\x7a\x10"
19683                           "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
19684                           "\xfa\x68\xf0\xff\x77\x98\x71\x30"
19685                           "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
19686                           "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
19687                           "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
19688                           "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
19689                           "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
19690                           "\x38",
19691                 .rlen   = 281,
19692         },
19693 };
19694
19695 static const struct aead_testvec rfc7539esp_dec_tv_template[] = {
19696         {
19697                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
19698                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
19699                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
19700                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
19701                           "\x00\x00\x00\x00",
19702                 .klen   = 36,
19703                 .iv     = "\x01\x02\x03\x04\x05\x06\x07\x08",
19704                 .assoc  = "\xf3\x33\x88\x86\x00\x00\x00\x00"
19705                           "\x00\x00\x4e\x91\x01\x02\x03\x04"
19706                           "\x05\x06\x07\x08",
19707                 .alen   = 20,
19708                 .input  = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
19709                           "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
19710                           "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
19711                           "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
19712                           "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
19713                           "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
19714                           "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
19715                           "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
19716                           "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
19717                           "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
19718                           "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
19719                           "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
19720                           "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
19721                           "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
19722                           "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
19723                           "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
19724                           "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
19725                           "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
19726                           "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
19727                           "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
19728                           "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
19729                           "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
19730                           "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
19731                           "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
19732                           "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
19733                           "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
19734                           "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
19735                           "\x73\xa6\x72\x76\x27\x09\x7a\x10"
19736                           "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
19737                           "\xfa\x68\xf0\xff\x77\x98\x71\x30"
19738                           "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
19739                           "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
19740                           "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
19741                           "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
19742                           "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
19743                           "\x38",
19744                 .ilen   = 281,
19745                 .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
19746                           "\x2d\x44\x72\x61\x66\x74\x73\x20"
19747                           "\x61\x72\x65\x20\x64\x72\x61\x66"
19748                           "\x74\x20\x64\x6f\x63\x75\x6d\x65"
19749                           "\x6e\x74\x73\x20\x76\x61\x6c\x69"
19750                           "\x64\x20\x66\x6f\x72\x20\x61\x20"
19751                           "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
19752                           "\x6f\x66\x20\x73\x69\x78\x20\x6d"
19753                           "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
19754                           "\x64\x20\x6d\x61\x79\x20\x62\x65"
19755                           "\x20\x75\x70\x64\x61\x74\x65\x64"
19756                           "\x2c\x20\x72\x65\x70\x6c\x61\x63"
19757                           "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
19758                           "\x62\x73\x6f\x6c\x65\x74\x65\x64"
19759                           "\x20\x62\x79\x20\x6f\x74\x68\x65"
19760                           "\x72\x20\x64\x6f\x63\x75\x6d\x65"
19761                           "\x6e\x74\x73\x20\x61\x74\x20\x61"
19762                           "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
19763                           "\x20\x49\x74\x20\x69\x73\x20\x69"
19764                           "\x6e\x61\x70\x70\x72\x6f\x70\x72"
19765                           "\x69\x61\x74\x65\x20\x74\x6f\x20"
19766                           "\x75\x73\x65\x20\x49\x6e\x74\x65"
19767                           "\x72\x6e\x65\x74\x2d\x44\x72\x61"
19768                           "\x66\x74\x73\x20\x61\x73\x20\x72"
19769                           "\x65\x66\x65\x72\x65\x6e\x63\x65"
19770                           "\x20\x6d\x61\x74\x65\x72\x69\x61"
19771                           "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
19772                           "\x63\x69\x74\x65\x20\x74\x68\x65"
19773                           "\x6d\x20\x6f\x74\x68\x65\x72\x20"
19774                           "\x74\x68\x61\x6e\x20\x61\x73\x20"
19775                           "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
19776                           "\x20\x69\x6e\x20\x70\x72\x6f\x67"
19777                           "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
19778                           "\x9d",
19779                 .rlen   = 265,
19780         },
19781 };
19782
19783 static const struct aead_testvec aegis128_enc_tv_template[] = {
19784         {
19785                 .key    = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
19786                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
19787                 .klen   = 16,
19788                 .iv     = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
19789                           "\x40\x6d\x59\x48\xfc\x92\x61\x03",
19790                 .assoc  = "",
19791                 .alen   = 0,
19792                 .input  = "",
19793                 .ilen   = 0,
19794                 .result = "\x07\xa5\x11\xf2\x9d\x40\xb8\x6d"
19795                           "\xda\xb8\x12\x34\x4c\x53\xd9\x72",
19796                 .rlen   = 16,
19797         }, {
19798                 .key    = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
19799                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
19800                 .klen   = 16,
19801                 .iv     = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
19802                           "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
19803                 .assoc  = "",
19804                 .alen   = 0,
19805                 .input  = "\x79",
19806                 .ilen   = 1,
19807                 .result = "\x9e\x78\x52\xae\xcb\x9e\xe4\xd3"
19808                           "\x9a\xd7\x5d\xd7\xaa\x9a\xe9\x5a"
19809                           "\xcc",
19810                 .rlen   = 17,
19811         }, {
19812                 .key    = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
19813                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
19814                 .klen   = 16,
19815                 .iv     = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
19816                           "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
19817                 .assoc  = "",
19818                 .alen   = 0,
19819                 .input  = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
19820                           "\x82\x8e\x16\xb4\xed\x6d\x47",
19821                 .ilen   = 15,
19822                 .result = "\xc3\x80\x83\x04\x5f\xaa\x61\xc7"
19823                           "\xca\xdd\x6f\xac\x85\x08\xb5\x35"
19824                           "\x2b\xc2\x3e\x0b\x1b\x39\x37\x2b"
19825                           "\x7a\x21\x16\xb3\xe6\x67\x66",
19826                 .rlen   = 31,
19827         }, {
19828                 .key    = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
19829                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
19830                 .klen   = 16,
19831                 .iv     = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
19832                           "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
19833                 .assoc  = "",
19834                 .alen   = 0,
19835                 .input  = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
19836                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
19837                 .ilen   = 16,
19838                 .result = "\x23\x25\x30\xe5\x6a\xb6\x36\x7d"
19839                           "\x38\xfd\x3a\xd2\xc2\x58\xa9\x11"
19840                           "\x1e\xa8\x30\x9c\x16\xa4\xdb\x65"
19841                           "\x51\x10\x16\x27\x70\x9b\x64\x29",
19842                 .rlen   = 32,
19843         }, {
19844                 .key    = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
19845                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
19846                 .klen   = 16,
19847                 .iv     = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
19848                           "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
19849                 .assoc  = "",
19850                 .alen   = 0,
19851                 .input  = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
19852                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
19853                           "\xd3",
19854                 .ilen   = 17,
19855                 .result = "\x2a\x8d\x56\x91\xc6\xf3\x56\xa5"
19856                           "\x1f\xf0\x89\x2e\x13\xad\xe6\xf6"
19857                           "\x46\x80\xb1\x0e\x18\x30\x40\x97"
19858                           "\x03\xdf\x64\x3c\xbe\x93\x9e\xc9"
19859                           "\x3b",
19860                 .rlen   = 33,
19861         }, {
19862                 .key    = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
19863                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
19864                 .klen   = 16,
19865                 .iv     = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
19866                           "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
19867                 .assoc  = "",
19868                 .alen   = 0,
19869                 .input  = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
19870                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
19871                           "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
19872                           "\x88\x11\x39\x12\x1c\x3a\xbb",
19873                 .ilen   = 31,
19874                 .result = "\x4e\xf6\xfa\x13\xde\x43\x63\x4c"
19875                           "\xe2\x04\x3e\xe4\x85\x14\xb6\x3f"
19876                           "\xb1\x8f\x4c\xdb\x41\xa2\x14\x99"
19877                           "\xf5\x53\x0f\x73\x86\x7e\x97\xa1"
19878                           "\x4b\x56\x5b\x94\xce\xcd\x74\xcd"
19879                           "\x75\xc4\x53\x01\x89\x45\x59",
19880                 .rlen   = 47,
19881         }, {
19882                 .key    = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
19883                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
19884                 .klen   = 16,
19885                 .iv     = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
19886                           "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
19887                 .assoc  = "",
19888                 .alen   = 0,
19889                 .input  = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
19890                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
19891                           "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
19892                           "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
19893                 .ilen   = 32,
19894                 .result = "\xa4\x9a\xb7\xfd\xa0\xd4\xd6\x47"
19895                           "\x95\xf4\x58\x38\x14\x83\x27\x01"
19896                           "\x4c\xed\x32\x2c\xf7\xd6\x31\xf7"
19897                           "\x38\x1b\x2c\xc9\xb6\x31\xce\xaa"
19898                           "\xa5\x3c\x1a\x18\x5c\xce\xb9\xdf"
19899                           "\x51\x52\x77\xf2\x5e\x85\x80\x41",
19900                 .rlen   = 48,
19901         }, {
19902                 .key    = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
19903                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
19904                 .klen   = 16,
19905                 .iv     = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
19906                           "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
19907                 .assoc  = "\xd5",
19908                 .alen   = 1,
19909                 .input  = "",
19910                 .ilen   = 0,
19911                 .result = "\xfb\xd4\x83\x71\x9e\x63\xad\x60"
19912                           "\xb9\xf9\xeb\x34\x52\x49\xcf\xb7",
19913                 .rlen   = 16,
19914         }, {
19915                 .key    = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
19916                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
19917                 .klen   = 16,
19918                 .iv     = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
19919                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
19920                 .assoc  = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
19921                           "\x68\x75\x16\xf8\xcb\x7e\xa7",
19922                 .alen   = 15,
19923                 .input  = "",
19924                 .ilen   = 0,
19925                 .result = "\x0c\xaf\x2e\x96\xf6\x97\x08\x71"
19926                           "\x7d\x3a\x84\xc4\x44\x57\x77\x7e",
19927                 .rlen   = 16,
19928         }, {
19929                 .key    = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
19930                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
19931                 .klen   = 16,
19932                 .iv     = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
19933                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
19934                 .assoc  = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
19935                           "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
19936                 .alen   = 16,
19937                 .input  = "",
19938                 .ilen   = 0,
19939                 .result = "\xc7\x87\x09\x3b\xc7\x19\x74\x22"
19940                           "\x22\xa5\x67\x10\xb2\x36\xb3\x45",
19941                 .rlen   = 16,
19942         }, {
19943                 .key    = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
19944                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
19945                 .klen   = 16,
19946                 .iv     = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
19947                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
19948                 .assoc  = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
19949                           "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
19950                           "\x07",
19951                 .alen   = 17,
19952                 .input  = "",
19953                 .ilen   = 0,
19954                 .result = "\x02\xc6\x3b\x46\x65\xb2\xef\x91"
19955                           "\x31\xf0\x45\x48\x8a\x2a\xed\xe4",
19956                 .rlen   = 16,
19957         }, {
19958                 .key    = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
19959                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
19960                 .klen   = 16,
19961                 .iv     = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
19962                           "\xca\xcd\xff\x88\xba\x22\xbe\x47",
19963                 .assoc  = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
19964                           "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
19965                           "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
19966                           "\xe0\x17\x3a\x2e\x83\x5c\x8f",
19967                 .alen   = 31,
19968                 .input  = "",
19969                 .ilen   = 0,
19970                 .result = "\x20\x85\xa8\xd0\x91\x48\x85\xf3"
19971                           "\x5a\x16\xc0\x57\x68\x47\xdd\xcb",
19972                 .rlen   = 16,
19973         }, {
19974                 .key    = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
19975                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
19976                 .klen   = 16,
19977                 .iv     = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
19978                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
19979                 .assoc  = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
19980                           "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
19981                           "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
19982                           "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
19983                 .alen   = 32,
19984                 .input  = "",
19985                 .ilen   = 0,
19986                 .result = "\x6a\xf8\x8d\x9c\x42\x75\x35\x79"
19987                           "\xc1\x96\xbd\x31\x6e\x69\x1b\x50",
19988                 .rlen   = 16,
19989         }, {
19990                 .key    = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
19991                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
19992                 .klen   = 16,
19993                 .iv     = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
19994                           "\xcc\x81\x63\xab\xae\x6b\x43\x54",
19995                 .assoc  = "\x40",
19996                 .alen   = 1,
19997                 .input  = "\x4f",
19998                 .ilen   = 1,
19999                 .result = "\x01\x24\xb1\xba\xf6\xd3\xdf\x83"
20000                           "\x70\x45\xe3\x2a\x9d\x5c\x63\x98"
20001                           "\x39",
20002                 .rlen   = 17,
20003         }, {
20004                 .key    = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
20005                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
20006                 .klen   = 16,
20007                 .iv     = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
20008                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
20009                 .assoc  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
20010                           "\x6d\x92\x42\x61\xa7\x58\x37",
20011                 .alen   = 15,
20012                 .input  = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
20013                           "\x8d\xc8\x6e\x85\xa5\x21\x67",
20014                 .ilen   = 15,
20015                 .result = "\x18\x78\xc2\x6e\xe1\xf7\xe6\x8a"
20016                           "\xca\x0e\x62\x00\xa8\x21\xb5\x21"
20017                           "\x3d\x36\xdb\xf7\xcc\x31\x94\x9c"
20018                           "\x98\xbd\x71\x7a\xef\xa4\xfa",
20019                 .rlen   = 31,
20020         }, {
20021                 .key    = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
20022                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
20023                 .klen   = 16,
20024                 .iv     = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
20025                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
20026                 .assoc  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
20027                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
20028                 .alen   = 16,
20029                 .input  = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
20030                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
20031                 .ilen   = 16,
20032                 .result = "\xea\xd1\x81\x75\xb4\x13\x1d\x86"
20033                           "\xd4\x17\x26\xe5\xd6\x89\x39\x04"
20034                           "\xa9\x6c\xca\xac\x40\x73\xb2\x4c"
20035                           "\x9c\xb9\x0e\x79\x4c\x40\x65\xc6",
20036                 .rlen   = 32,
20037         }, {
20038                 .key    = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
20039                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
20040                 .klen   = 16,
20041                 .iv     = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
20042                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
20043                 .assoc  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
20044                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
20045                           "\x05",
20046                 .alen   = 17,
20047                 .input  = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
20048                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
20049                           "\xd0",
20050                 .ilen   = 17,
20051                 .result = "\xf4\xb2\x84\xd1\x81\xfa\x98\x1c"
20052                           "\x38\x2d\x69\x90\x1c\x71\x38\x98"
20053                           "\x9f\xe1\x19\x3b\x63\x91\xaf\x6e"
20054                           "\x4b\x07\x2c\xac\x53\xc5\xd5\xfe"
20055                           "\x93",
20056                 .rlen   = 33,
20057         }, {
20058                 .key    = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
20059                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
20060                 .klen   = 16,
20061                 .iv     = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
20062                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
20063                 .assoc  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
20064                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
20065                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
20066                           "\x68\x28\x73\x40\x9f\x96\x4a",
20067                 .alen   = 31,
20068                 .input  = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
20069                           "\x10\x57\x85\x39\x93\x8f\xaf\x70"
20070                           "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
20071                           "\x98\x34\xab\x37\x56\xae\x32",
20072                 .ilen   = 31,
20073                 .result = "\xa0\xe7\x0a\x60\xe7\xb8\x8a\xdb"
20074                           "\x94\xd3\x93\xf2\x41\x86\x16\xdd"
20075                           "\x4c\xe8\xe7\xe0\x62\x48\x89\x40"
20076                           "\xc0\x49\x9b\x63\x32\xec\x8b\xdb"
20077                           "\xdc\xa6\xea\x2c\xc2\x7f\xf5\x04"
20078                           "\xcb\xe5\x47\xbb\xa7\xd1\x9d",
20079                 .rlen   = 47,
20080         }, {
20081                 .key    = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
20082                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
20083                 .klen   = 16,
20084                 .iv     = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
20085                           "\x50\xc4\xde\x82\x90\x21\x11\x73",
20086                 .assoc  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
20087                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
20088                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
20089                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
20090                 .alen   = 32,
20091                 .input  = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
20092                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
20093                           "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
20094                           "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
20095                 .ilen   = 32,
20096                 .result = "\x62\xdc\x2d\x68\x2d\x71\xbb\x33"
20097                           "\x13\xdf\xc0\x46\xf6\x61\x94\xa7"
20098                           "\x60\xd3\xd4\xca\xd9\xbe\x82\xf3"
20099                           "\xf1\x5b\xa0\xfa\x15\xba\xda\xea"
20100                           "\x87\x68\x47\x08\x5d\xdd\x83\xb0"
20101                           "\x60\xf4\x93\x20\xdf\x34\x8f\xea",
20102                 .rlen   = 48,
20103         }, {
20104                 .key    = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
20105                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
20106                 .klen   = 16,
20107                 .iv     = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
20108                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
20109                 .assoc  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
20110                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
20111                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
20112                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
20113                           "\x9d",
20114                 .alen   = 33,
20115                 .input  = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
20116                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
20117                           "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
20118                           "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
20119                           "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
20120                           "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
20121                           "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
20122                           "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
20123                           "\xbd",
20124                 .ilen   = 65,
20125                 .result = "\x84\xc5\x21\xab\xe1\xeb\xbb\x6d"
20126                           "\xaa\x2a\xaf\xeb\x3b\x3b\x69\xe7"
20127                           "\x2c\x47\xef\x9d\xb7\x53\x36\xb7"
20128                           "\xb6\xf5\xe5\xa8\xc9\x9e\x02\xd7"
20129                           "\x83\x88\xc2\xbd\x2f\xf9\x10\xc0"
20130                           "\xf5\xa1\x6e\xd3\x97\x64\x82\xa3"
20131                           "\xfb\xda\x2c\xb1\x94\xa1\x58\x32"
20132                           "\xe8\xd4\x39\xfc\x9e\x26\xf9\xf1"
20133                           "\x61\xe6\xae\x07\xf2\xe0\xa7\x44"
20134                           "\x96\x28\x3b\xee\x6b\xc6\x16\x31"
20135                           "\x3f",
20136                 .rlen   = 81,
20137         }, {
20138                 .key    = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
20139                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
20140                 .klen   = 16,
20141                 .iv     = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
20142                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
20143                 .assoc  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
20144                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
20145                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
20146                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
20147                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
20148                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
20149                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
20150                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
20151                           "\x54",
20152                 .alen   = 65,
20153                 .input  = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
20154                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
20155                           "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
20156                           "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
20157                           "\x2f",
20158                 .ilen   = 33,
20159                 .result = "\x8f\x23\x47\xfb\xf2\xac\x23\x83"
20160                           "\x77\x09\xac\x74\xef\xd2\x56\xae"
20161                           "\x20\x7b\x7b\xca\x45\x8e\xc8\xc2"
20162                           "\x50\xbd\xc7\x44\x1c\x54\x98\xd8"
20163                           "\x1f\xd0\x9a\x79\xaa\xf9\xe1\xb3"
20164                           "\xb4\x98\x5a\x9b\xe4\x4d\xbf\x4e"
20165                           "\x39",
20166                 .rlen   = 49,
20167         }, {
20168                 .key    = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
20169                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
20170                 .klen   = 16,
20171                 .iv     = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
20172                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
20173                 .assoc  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
20174                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
20175                 .alen   = 16,
20176                 .input  = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
20177                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
20178                 .ilen   = 16,
20179                 .result = "\x42\xc3\x58\xfb\x29\xe2\x4a\x56"
20180                           "\xf1\xf5\xe1\x51\x55\x4b\x0a\x45"
20181                           "\x46\xb5\x8d\xac\xb6\x34\xd8\x8b"
20182                           "\xde\x20\x59\x77\xc1\x74\x90",
20183                 .rlen   = 31,
20184         }, {
20185                 .key    = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
20186                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
20187                 .klen   = 16,
20188                 .iv     = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
20189                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
20190                 .assoc  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
20191                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
20192                 .alen   = 16,
20193                 .input  = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
20194                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
20195                 .ilen   = 16,
20196                 .result = "\xb2\xfb\xf6\x97\x69\x7a\xe9\xec"
20197                           "\xe2\x94\xa1\x8b\xa0\x2b\x60\x72"
20198                           "\x1d\x04\xdd\x6a\xef\x46\x8f\x68"
20199                           "\xe9\xe0\x17\x45\x70\x12",
20200                 .rlen   = 30,
20201         }, {
20202                 .key    = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
20203                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
20204                 .klen   = 16,
20205                 .iv     = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
20206                           "\xd5\x07\x58\x59\x72\xd7\xde\x92",
20207                 .assoc  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
20208                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
20209                 .alen   = 16,
20210                 .input  = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
20211                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
20212                 .ilen   = 16,
20213                 .result = "\x47\xda\x54\x42\x51\x72\xc4\x8b"
20214                           "\xf5\x57\x0f\x2f\x49\x0e\x11\x3b"
20215                           "\x78\x93\xec\xfc\xf4\xff\xe1\x2d",
20216                 .rlen   = 24,
20217         },
20218 };
20219
20220 /*
20221  * AEGIS-128 test vectors - generated via reference implementation from
20222  * SUPERCOP (https://bench.cr.yp.to/supercop.html):
20223  *
20224  *   https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
20225  *   (see crypto_aead/aegis128/)
20226  */
20227 static const struct aead_testvec aegis128_dec_tv_template[] = {
20228         {
20229                 .key    = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
20230                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
20231                 .klen   = 16,
20232                 .iv     = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
20233                           "\x40\x6d\x59\x48\xfc\x92\x61\x03",
20234                 .assoc  = "",
20235                 .alen   = 0,
20236                 .input  = "\x07\xa5\x11\xf2\x9d\x40\xb8\x6d"
20237                           "\xda\xb8\x12\x34\x4c\x53\xd9\x72",
20238                 .ilen   = 16,
20239                 .result = "",
20240                 .rlen   = 0,
20241         }, {
20242                 .key    = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
20243                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
20244                 .klen   = 16,
20245                 .iv     = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
20246                           "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
20247                 .assoc  = "",
20248                 .alen   = 0,
20249                 .input  = "\x9e\x78\x52\xae\xcb\x9e\xe4\xd3"
20250                           "\x9a\xd7\x5d\xd7\xaa\x9a\xe9\x5a"
20251                           "\xcc",
20252                 .ilen   = 17,
20253                 .result = "\x79",
20254                 .rlen   = 1,
20255         }, {
20256                 .key    = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
20257                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
20258                 .klen   = 16,
20259                 .iv     = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
20260                           "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
20261                 .assoc  = "",
20262                 .alen   = 0,
20263                 .input  = "\xc3\x80\x83\x04\x5f\xaa\x61\xc7"
20264                           "\xca\xdd\x6f\xac\x85\x08\xb5\x35"
20265                           "\x2b\xc2\x3e\x0b\x1b\x39\x37\x2b"
20266                           "\x7a\x21\x16\xb3\xe6\x67\x66",
20267                 .ilen   = 31,
20268                 .result = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
20269                           "\x82\x8e\x16\xb4\xed\x6d\x47",
20270                 .rlen   = 15,
20271         }, {
20272                 .key    = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
20273                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
20274                 .klen   = 16,
20275                 .iv     = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
20276                           "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
20277                 .assoc  = "",
20278                 .alen   = 0,
20279                 .input  = "\x23\x25\x30\xe5\x6a\xb6\x36\x7d"
20280                           "\x38\xfd\x3a\xd2\xc2\x58\xa9\x11"
20281                           "\x1e\xa8\x30\x9c\x16\xa4\xdb\x65"
20282                           "\x51\x10\x16\x27\x70\x9b\x64\x29",
20283                 .ilen   = 32,
20284                 .result = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
20285                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
20286                 .rlen   = 16,
20287         }, {
20288                 .key    = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
20289                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
20290                 .klen   = 16,
20291                 .iv     = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
20292                           "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
20293                 .assoc  = "",
20294                 .alen   = 0,
20295                 .input  = "\x2a\x8d\x56\x91\xc6\xf3\x56\xa5"
20296                           "\x1f\xf0\x89\x2e\x13\xad\xe6\xf6"
20297                           "\x46\x80\xb1\x0e\x18\x30\x40\x97"
20298                           "\x03\xdf\x64\x3c\xbe\x93\x9e\xc9"
20299                           "\x3b",
20300                 .ilen   = 33,
20301                 .result = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
20302                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
20303                           "\xd3",
20304                 .rlen   = 17,
20305         }, {
20306                 .key    = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
20307                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
20308                 .klen   = 16,
20309                 .iv     = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
20310                           "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
20311                 .assoc  = "",
20312                 .alen   = 0,
20313                 .input  = "\x4e\xf6\xfa\x13\xde\x43\x63\x4c"
20314                           "\xe2\x04\x3e\xe4\x85\x14\xb6\x3f"
20315                           "\xb1\x8f\x4c\xdb\x41\xa2\x14\x99"
20316                           "\xf5\x53\x0f\x73\x86\x7e\x97\xa1"
20317                           "\x4b\x56\x5b\x94\xce\xcd\x74\xcd"
20318                           "\x75\xc4\x53\x01\x89\x45\x59",
20319                 .ilen   = 47,
20320                 .result = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
20321                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
20322                           "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
20323                           "\x88\x11\x39\x12\x1c\x3a\xbb",
20324                 .rlen   = 31,
20325         }, {
20326                 .key    = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
20327                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
20328                 .klen   = 16,
20329                 .iv     = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
20330                           "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
20331                 .assoc  = "",
20332                 .alen   = 0,
20333                 .input  = "\xa4\x9a\xb7\xfd\xa0\xd4\xd6\x47"
20334                           "\x95\xf4\x58\x38\x14\x83\x27\x01"
20335                           "\x4c\xed\x32\x2c\xf7\xd6\x31\xf7"
20336                           "\x38\x1b\x2c\xc9\xb6\x31\xce\xaa"
20337                           "\xa5\x3c\x1a\x18\x5c\xce\xb9\xdf"
20338                           "\x51\x52\x77\xf2\x5e\x85\x80\x41",
20339                 .ilen   = 48,
20340                 .result = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
20341                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
20342                           "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
20343                           "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
20344                 .rlen   = 32,
20345         }, {
20346                 .key    = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
20347                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
20348                 .klen   = 16,
20349                 .iv     = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
20350                           "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
20351                 .assoc  = "\xd5",
20352                 .alen   = 1,
20353                 .input  = "\xfb\xd4\x83\x71\x9e\x63\xad\x60"
20354                           "\xb9\xf9\xeb\x34\x52\x49\xcf\xb7",
20355                 .ilen   = 16,
20356                 .result = "",
20357                 .rlen   = 0,
20358         }, {
20359                 .key    = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
20360                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
20361                 .klen   = 16,
20362                 .iv     = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
20363                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
20364                 .assoc  = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
20365                           "\x68\x75\x16\xf8\xcb\x7e\xa7",
20366                 .alen   = 15,
20367                 .input  = "\x0c\xaf\x2e\x96\xf6\x97\x08\x71"
20368                           "\x7d\x3a\x84\xc4\x44\x57\x77\x7e",
20369                 .ilen   = 16,
20370                 .result = "",
20371                 .rlen   = 0,
20372         }, {
20373                 .key    = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
20374                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
20375                 .klen   = 16,
20376                 .iv     = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
20377                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
20378                 .assoc  = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
20379                           "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
20380                 .alen   = 16,
20381                 .input  = "\xc7\x87\x09\x3b\xc7\x19\x74\x22"
20382                           "\x22\xa5\x67\x10\xb2\x36\xb3\x45",
20383                 .ilen   = 16,
20384                 .result = "",
20385                 .rlen   = 0,
20386         }, {
20387                 .key    = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
20388                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
20389                 .klen   = 16,
20390                 .iv     = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
20391                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
20392                 .assoc  = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
20393                           "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
20394                           "\x07",
20395                 .alen   = 17,
20396                 .input  = "\x02\xc6\x3b\x46\x65\xb2\xef\x91"
20397                           "\x31\xf0\x45\x48\x8a\x2a\xed\xe4",
20398                 .ilen   = 16,
20399                 .result = "",
20400                 .rlen   = 0,
20401         }, {
20402                 .key    = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
20403                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
20404                 .klen   = 16,
20405                 .iv     = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
20406                           "\xca\xcd\xff\x88\xba\x22\xbe\x47",
20407                 .assoc  = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
20408                           "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
20409                           "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
20410                           "\xe0\x17\x3a\x2e\x83\x5c\x8f",
20411                 .alen   = 31,
20412                 .input  = "\x20\x85\xa8\xd0\x91\x48\x85\xf3"
20413                           "\x5a\x16\xc0\x57\x68\x47\xdd\xcb",
20414                 .ilen   = 16,
20415                 .result = "",
20416                 .rlen   = 0,
20417         }, {
20418                 .key    = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
20419                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
20420                 .klen   = 16,
20421                 .iv     = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
20422                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
20423                 .assoc  = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
20424                           "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
20425                           "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
20426                           "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
20427                 .alen   = 32,
20428                 .input  = "\x6a\xf8\x8d\x9c\x42\x75\x35\x79"
20429                           "\xc1\x96\xbd\x31\x6e\x69\x1b\x50",
20430                 .ilen   = 16,
20431                 .result = "",
20432                 .rlen   = 0,
20433         }, {
20434                 .key    = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
20435                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
20436                 .klen   = 16,
20437                 .iv     = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
20438                           "\xcc\x81\x63\xab\xae\x6b\x43\x54",
20439                 .assoc  = "\x40",
20440                 .alen   = 1,
20441                 .input  = "\x01\x24\xb1\xba\xf6\xd3\xdf\x83"
20442                           "\x70\x45\xe3\x2a\x9d\x5c\x63\x98"
20443                           "\x39",
20444                 .ilen   = 17,
20445                 .result = "\x4f",
20446                 .rlen   = 1,
20447         }, {
20448                 .key    = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
20449                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
20450                 .klen   = 16,
20451                 .iv     = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
20452                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
20453                 .assoc  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
20454                           "\x6d\x92\x42\x61\xa7\x58\x37",
20455                 .alen   = 15,
20456                 .input  = "\x18\x78\xc2\x6e\xe1\xf7\xe6\x8a"
20457                           "\xca\x0e\x62\x00\xa8\x21\xb5\x21"
20458                           "\x3d\x36\xdb\xf7\xcc\x31\x94\x9c"
20459                           "\x98\xbd\x71\x7a\xef\xa4\xfa",
20460                 .ilen   = 31,
20461                 .result = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
20462                           "\x8d\xc8\x6e\x85\xa5\x21\x67",
20463                 .rlen   = 15,
20464         }, {
20465                 .key    = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
20466                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
20467                 .klen   = 16,
20468                 .iv     = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
20469                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
20470                 .assoc  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
20471                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
20472                 .alen   = 16,
20473                 .input  = "\xea\xd1\x81\x75\xb4\x13\x1d\x86"
20474                           "\xd4\x17\x26\xe5\xd6\x89\x39\x04"
20475                           "\xa9\x6c\xca\xac\x40\x73\xb2\x4c"
20476                           "\x9c\xb9\x0e\x79\x4c\x40\x65\xc6",
20477                 .ilen   = 32,
20478                 .result = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
20479                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
20480                 .rlen   = 16,
20481         }, {
20482                 .key    = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
20483                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
20484                 .klen   = 16,
20485                 .iv     = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
20486                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
20487                 .assoc  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
20488                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
20489                           "\x05",
20490                 .alen   = 17,
20491                 .input  = "\xf4\xb2\x84\xd1\x81\xfa\x98\x1c"
20492                           "\x38\x2d\x69\x90\x1c\x71\x38\x98"
20493                           "\x9f\xe1\x19\x3b\x63\x91\xaf\x6e"
20494                           "\x4b\x07\x2c\xac\x53\xc5\xd5\xfe"
20495                           "\x93",
20496                 .ilen   = 33,
20497                 .result = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
20498                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
20499                           "\xd0",
20500                 .rlen   = 17,
20501         }, {
20502                 .key    = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
20503                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
20504                 .klen   = 16,
20505                 .iv     = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
20506                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
20507                 .assoc  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
20508                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
20509                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
20510                           "\x68\x28\x73\x40\x9f\x96\x4a",
20511                 .alen   = 31,
20512                 .input  = "\xa0\xe7\x0a\x60\xe7\xb8\x8a\xdb"
20513                           "\x94\xd3\x93\xf2\x41\x86\x16\xdd"
20514                           "\x4c\xe8\xe7\xe0\x62\x48\x89\x40"
20515                           "\xc0\x49\x9b\x63\x32\xec\x8b\xdb"
20516                           "\xdc\xa6\xea\x2c\xc2\x7f\xf5\x04"
20517                           "\xcb\xe5\x47\xbb\xa7\xd1\x9d",
20518                 .ilen   = 47,
20519                 .result = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
20520                           "\x10\x57\x85\x39\x93\x8f\xaf\x70"
20521                           "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
20522                           "\x98\x34\xab\x37\x56\xae\x32",
20523                 .rlen   = 31,
20524         }, {
20525                 .key    = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
20526                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
20527                 .klen   = 16,
20528                 .iv     = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
20529                           "\x50\xc4\xde\x82\x90\x21\x11\x73",
20530                 .assoc  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
20531                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
20532                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
20533                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
20534                 .alen   = 32,
20535                 .input  = "\x62\xdc\x2d\x68\x2d\x71\xbb\x33"
20536                           "\x13\xdf\xc0\x46\xf6\x61\x94\xa7"
20537                           "\x60\xd3\xd4\xca\xd9\xbe\x82\xf3"
20538                           "\xf1\x5b\xa0\xfa\x15\xba\xda\xea"
20539                           "\x87\x68\x47\x08\x5d\xdd\x83\xb0"
20540                           "\x60\xf4\x93\x20\xdf\x34\x8f\xea",
20541                 .ilen   = 48,
20542                 .result = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
20543                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
20544                           "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
20545                           "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
20546                 .rlen   = 32,
20547         }, {
20548                 .key    = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
20549                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
20550                 .klen   = 16,
20551                 .iv     = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
20552                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
20553                 .assoc  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
20554                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
20555                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
20556                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
20557                           "\x9d",
20558                 .alen   = 33,
20559                 .input  = "\x84\xc5\x21\xab\xe1\xeb\xbb\x6d"
20560                           "\xaa\x2a\xaf\xeb\x3b\x3b\x69\xe7"
20561                           "\x2c\x47\xef\x9d\xb7\x53\x36\xb7"
20562                           "\xb6\xf5\xe5\xa8\xc9\x9e\x02\xd7"
20563                           "\x83\x88\xc2\xbd\x2f\xf9\x10\xc0"
20564                           "\xf5\xa1\x6e\xd3\x97\x64\x82\xa3"
20565                           "\xfb\xda\x2c\xb1\x94\xa1\x58\x32"
20566                           "\xe8\xd4\x39\xfc\x9e\x26\xf9\xf1"
20567                           "\x61\xe6\xae\x07\xf2\xe0\xa7\x44"
20568                           "\x96\x28\x3b\xee\x6b\xc6\x16\x31"
20569                           "\x3f",
20570                 .ilen   = 81,
20571                 .result = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
20572                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
20573                           "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
20574                           "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
20575                           "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
20576                           "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
20577                           "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
20578                           "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
20579                           "\xbd",
20580                 .rlen   = 65,
20581         }, {
20582                 .key    = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
20583                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
20584                 .klen   = 16,
20585                 .iv     = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
20586                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
20587                 .assoc  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
20588                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
20589                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
20590                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
20591                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
20592                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
20593                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
20594                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
20595                           "\x54",
20596                 .alen   = 65,
20597                 .input  = "\x8f\x23\x47\xfb\xf2\xac\x23\x83"
20598                           "\x77\x09\xac\x74\xef\xd2\x56\xae"
20599                           "\x20\x7b\x7b\xca\x45\x8e\xc8\xc2"
20600                           "\x50\xbd\xc7\x44\x1c\x54\x98\xd8"
20601                           "\x1f\xd0\x9a\x79\xaa\xf9\xe1\xb3"
20602                           "\xb4\x98\x5a\x9b\xe4\x4d\xbf\x4e"
20603                           "\x39",
20604                 .ilen   = 49,
20605                 .result = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
20606                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
20607                           "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
20608                           "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
20609                           "\x2f",
20610                 .rlen   = 33,
20611         }, {
20612                 .key    = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
20613                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
20614                 .klen   = 16,
20615                 .iv     = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
20616                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
20617                 .assoc  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
20618                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
20619                 .alen   = 16,
20620                 .input  = "\x42\xc3\x58\xfb\x29\xe2\x4a\x56"
20621                           "\xf1\xf5\xe1\x51\x55\x4b\x0a\x45"
20622                           "\x46\xb5\x8d\xac\xb6\x34\xd8\x8b"
20623                           "\xde\x20\x59\x77\xc1\x74\x90",
20624                 .ilen   = 31,
20625                 .result = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
20626                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
20627                 .rlen   = 16,
20628         }, {
20629                 .key    = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
20630                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
20631                 .klen   = 16,
20632                 .iv     = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
20633                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
20634                 .assoc  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
20635                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
20636                 .alen   = 16,
20637                 .input  = "\xb2\xfb\xf6\x97\x69\x7a\xe9\xec"
20638                           "\xe2\x94\xa1\x8b\xa0\x2b\x60\x72"
20639                           "\x1d\x04\xdd\x6a\xef\x46\x8f\x68"
20640                           "\xe9\xe0\x17\x45\x70\x12",
20641                 .ilen   = 30,
20642                 .result = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
20643                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
20644                 .rlen   = 16,
20645         }, {
20646                 .key    = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
20647                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
20648                 .klen   = 16,
20649                 .iv     = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
20650                           "\xd5\x07\x58\x59\x72\xd7\xde\x92",
20651                 .assoc  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
20652                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
20653                 .alen   = 16,
20654                 .input  = "\x47\xda\x54\x42\x51\x72\xc4\x8b"
20655                           "\xf5\x57\x0f\x2f\x49\x0e\x11\x3b"
20656                           "\x78\x93\xec\xfc\xf4\xff\xe1\x2d",
20657                 .ilen   = 24,
20658                 .result = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
20659                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
20660                 .rlen   = 16,
20661         },
20662 };
20663
20664 /*
20665  * AEGIS-128L test vectors - generated via reference implementation from
20666  * SUPERCOP (https://bench.cr.yp.to/supercop.html):
20667  *
20668  *   https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
20669  *   (see crypto_aead/aegis128l/)
20670  */
20671 static const struct aead_testvec aegis128l_enc_tv_template[] = {
20672         {
20673                 .key    = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
20674                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
20675                 .klen   = 16,
20676                 .iv     = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
20677                           "\x40\x6d\x59\x48\xfc\x92\x61\x03",
20678                 .assoc  = "",
20679                 .alen   = 0,
20680                 .input  = "",
20681                 .ilen   = 0,
20682                 .result = "\x30\x4f\xf3\xe9\xb1\xfa\x81\xa6"
20683                           "\x20\x72\x78\xdd\x93\xc8\x57\xef",
20684                 .rlen   = 16,
20685         }, {
20686                 .key    = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
20687                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
20688                 .klen   = 16,
20689                 .iv     = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
20690                           "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
20691                 .assoc  = "",
20692                 .alen   = 0,
20693                 .input  = "\x79",
20694                 .ilen   = 1,
20695                 .result = "\xa9\x24\xa0\xb6\x2d\xdd\x29\xdb"
20696                           "\x40\xb3\x71\xc5\x22\x58\x31\x77"
20697                           "\x6d",
20698                 .rlen   = 17,
20699         }, {
20700                 .key    = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
20701                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
20702                 .klen   = 16,
20703                 .iv     = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
20704                           "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
20705                 .assoc  = "",
20706                 .alen   = 0,
20707                 .input  = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
20708                           "\x82\x8e\x16\xb4\xed\x6d\x47",
20709                 .ilen   = 15,
20710                 .result = "\xbb\x0a\x53\xc4\xaa\x7e\xa4\x03"
20711                           "\x2b\xee\x62\x99\x7b\x98\x13\x1f"
20712                           "\xe0\x76\x4c\x2e\x53\x99\x4f\xbe"
20713                           "\xe1\xa8\x04\x7f\xe1\x71\xbe",
20714                 .rlen   = 31,
20715         }, {
20716                 .key    = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
20717                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
20718                 .klen   = 16,
20719                 .iv     = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
20720                           "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
20721                 .assoc  = "",
20722                 .alen   = 0,
20723                 .input  = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
20724                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
20725                 .ilen   = 16,
20726                 .result = "\x66\xdf\x6e\x71\xc0\x6e\xa4\x4c"
20727                           "\x9d\xb7\x8c\x9a\xdb\x1f\xd2\x2e"
20728                           "\x23\xb6\xa4\xfb\xd3\x86\xdd\xbb"
20729                           "\xde\x54\x9b\xf5\x92\x8b\x93\xc5",
20730                 .rlen   = 32,
20731         }, {
20732                 .key    = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
20733                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
20734                 .klen   = 16,
20735                 .iv     = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
20736                           "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
20737                 .assoc  = "",
20738                 .alen   = 0,
20739                 .input  = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
20740                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
20741                           "\xd3",
20742                 .ilen   = 17,
20743                 .result = "\x4f\xc3\x69\xb6\xd3\xa4\x64\x8b"
20744                           "\x71\xc3\x8a\x91\x22\x4f\x1b\xd2"
20745                           "\x33\x6d\x86\xbc\xf8\x2f\x06\xf9"
20746                           "\x82\x64\xc7\x72\x00\x30\xfc\xf0"
20747                           "\xf8",
20748                 .rlen   = 33,
20749         }, {
20750                 .key    = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
20751                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
20752                 .klen   = 16,
20753                 .iv     = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
20754                           "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
20755                 .assoc  = "",
20756                 .alen   = 0,
20757                 .input  = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
20758                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
20759                           "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
20760                           "\x88\x11\x39\x12\x1c\x3a\xbb",
20761                 .ilen   = 31,
20762                 .result = "\xe3\x93\x15\xae\x5f\x9d\x3c\xb5"
20763                           "\xd6\x9d\xee\xee\xcf\xaa\xaf\xe1"
20764                           "\x45\x10\x96\xe0\xbf\x55\x0f\x4c"
20765                           "\x1a\xfd\xf4\xda\x4e\x10\xde\xc9"
20766                           "\x0e\x6f\xc7\x3c\x49\x94\x41\xfc"
20767                           "\x59\x28\x88\x3c\x79\x10\x6b",
20768                 .rlen   = 47,
20769         }, {
20770                 .key    = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
20771                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
20772                 .klen   = 16,
20773                 .iv     = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
20774                           "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
20775                 .assoc  = "",
20776                 .alen   = 0,
20777                 .input  = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
20778                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
20779                           "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
20780                           "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
20781                 .ilen   = 32,
20782                 .result = "\x1c\x8e\x22\x34\xfd\xab\xe6\x0d"
20783                           "\x1c\x9f\x06\x54\x8b\x0b\xb4\x40"
20784                           "\xde\x11\x59\x3e\xfd\x74\xf6\x42"
20785                           "\x97\x17\xf7\x24\xb6\x7e\xc4\xc6"
20786                           "\x06\xa3\x94\xda\x3d\x7f\x55\x0a"
20787                           "\x92\x07\x2f\xa6\xf3\x6b\x2c\xfc",
20788                 .rlen   = 48,
20789         }, {
20790                 .key    = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
20791                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
20792                 .klen   = 16,
20793                 .iv     = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
20794                           "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
20795                 .assoc  = "\xd5",
20796                 .alen   = 1,
20797                 .input  = "",
20798                 .ilen   = 0,
20799                 .result = "\xa0\x2a\xb4\x9a\x91\x00\x15\xb8"
20800                           "\x0f\x9a\x15\x60\x0e\x9b\x13\x8f",
20801                 .rlen   = 16,
20802         }, {
20803                 .key    = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
20804                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
20805                 .klen   = 16,
20806                 .iv     = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
20807                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
20808                 .assoc  = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
20809                           "\x68\x75\x16\xf8\xcb\x7e\xa7",
20810                 .alen   = 15,
20811                 .input  = "",
20812                 .ilen   = 0,
20813                 .result = "\x4c\x26\xad\x9c\x14\xfd\x9c\x8c"
20814                           "\x84\xfb\x26\xfb\xd5\xca\x62\x39",
20815                 .rlen   = 16,
20816         }, {
20817                 .key    = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
20818                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
20819                 .klen   = 16,
20820                 .iv     = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
20821                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
20822                 .assoc  = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
20823                           "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
20824                 .alen   = 16,
20825                 .input  = "",
20826                 .ilen   = 0,
20827                 .result = "\x45\x85\x0e\x0f\xf4\xae\x96\xa1"
20828                           "\x99\x4d\x6d\xb4\x67\x32\xb0\x3a",
20829                 .rlen   = 16,
20830         }, {
20831                 .key    = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
20832                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
20833                 .klen   = 16,
20834                 .iv     = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
20835                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
20836                 .assoc  = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
20837                           "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
20838                           "\x07",
20839                 .alen   = 17,
20840                 .input  = "",
20841                 .ilen   = 0,
20842                 .result = "\x33\xb1\x42\x97\x8e\x16\x7b\x63"
20843                           "\x06\xba\x5b\xcb\xae\x6d\x8b\x56",
20844                 .rlen   = 16,
20845         }, {
20846                 .key    = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
20847                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
20848                 .klen   = 16,
20849                 .iv     = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
20850                           "\xca\xcd\xff\x88\xba\x22\xbe\x47",
20851                 .assoc  = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
20852                           "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
20853                           "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
20854                           "\xe0\x17\x3a\x2e\x83\x5c\x8f",
20855                 .alen   = 31,
20856                 .input  = "",
20857                 .ilen   = 0,
20858                 .result = "\xda\x44\x08\x8c\x2a\xa5\x07\x35"
20859                           "\x0b\x54\x4e\x6d\xe3\xfd\xc4\x5f",
20860                 .rlen   = 16,
20861         }, {
20862                 .key    = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
20863                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
20864                 .klen   = 16,
20865                 .iv     = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
20866                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
20867                 .assoc  = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
20868                           "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
20869                           "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
20870                           "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
20871                 .alen   = 32,
20872                 .input  = "",
20873                 .ilen   = 0,
20874                 .result = "\x1b\xb1\xf1\xa8\x9e\xc2\xb2\x88"
20875                           "\x40\x7f\x7b\x19\x7a\x52\x8c\xf0",
20876                 .rlen   = 16,
20877         }, {
20878                 .key    = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
20879                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
20880                 .klen   = 16,
20881                 .iv     = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
20882                           "\xcc\x81\x63\xab\xae\x6b\x43\x54",
20883                 .assoc  = "\x40",
20884                 .alen   = 1,
20885                 .input  = "\x4f",
20886                 .ilen   = 1,
20887                 .result = "\x6e\xc8\xfb\x15\x9d\x98\x49\xc9"
20888                           "\xa0\x98\x09\x85\xbe\x56\x8e\x79"
20889                           "\xf4",
20890                 .rlen   = 17,
20891         }, {
20892                 .key    = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
20893                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
20894                 .klen   = 16,
20895                 .iv     = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
20896                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
20897                 .assoc  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
20898                           "\x6d\x92\x42\x61\xa7\x58\x37",
20899                 .alen   = 15,
20900                 .input  = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
20901                           "\x8d\xc8\x6e\x85\xa5\x21\x67",
20902                 .ilen   = 15,
20903                 .result = "\x99\x2e\x84\x50\x64\x5c\xab\x29"
20904                           "\x20\xba\xb9\x2f\x62\x3a\xce\x2a"
20905                           "\x75\x25\x3b\xe3\x40\xe0\x1d\xfc"
20906                           "\x20\x63\x0b\x49\x7e\x97\x08",
20907                 .rlen   = 31,
20908         }, {
20909                 .key    = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
20910                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
20911                 .klen   = 16,
20912                 .iv     = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
20913                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
20914                 .assoc  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
20915                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
20916                 .alen   = 16,
20917                 .input  = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
20918                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
20919                 .ilen   = 16,
20920                 .result = "\xd9\x8e\xfd\x50\x8f\x02\x9f\xee"
20921                           "\x78\x08\x12\xec\x09\xaf\x53\x14"
20922                           "\x90\x3e\x3d\x76\xad\x71\x21\x08"
20923                           "\x77\xe5\x4b\x15\xc2\xe6\xbc\xdb",
20924                 .rlen   = 32,
20925         }, {
20926                 .key    = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
20927                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
20928                 .klen   = 16,
20929                 .iv     = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
20930                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
20931                 .assoc  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
20932                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
20933                           "\x05",
20934                 .alen   = 17,
20935                 .input  = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
20936                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
20937                           "\xd0",
20938                 .ilen   = 17,
20939                 .result = "\xf3\xe7\x95\x86\xcf\x34\x95\x96"
20940                           "\x17\xfe\x1b\xae\x1b\x31\xf2\x1a"
20941                           "\xbd\xbc\xc9\x4e\x11\x29\x09\x5c"
20942                           "\x05\xd3\xb4\x2e\x4a\x74\x59\x49"
20943                           "\x7d",
20944                 .rlen   = 33,
20945         }, {
20946                 .key    = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
20947                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
20948                 .klen   = 16,
20949                 .iv     = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
20950                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
20951                 .assoc  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
20952                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
20953                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
20954                           "\x68\x28\x73\x40\x9f\x96\x4a",
20955                 .alen   = 31,
20956                 .input  = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
20957                           "\x10\x57\x85\x39\x93\x8f\xaf\x70"
20958                           "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
20959                           "\x98\x34\xab\x37\x56\xae\x32",
20960                 .ilen   = 31,
20961                 .result = "\x06\x96\xb2\xbf\x63\xf4\x1e\x24"
20962                           "\x0d\x19\x15\x61\x65\x3b\x06\x26"
20963                           "\x71\xe8\x7e\x16\xdb\x96\x01\x01"
20964                           "\x52\xcd\x49\x5b\x07\x33\x4e\xe7"
20965                           "\xaa\x91\xf5\xd5\xc6\xfe\x41\xb5"
20966                           "\xed\x90\xce\xb9\xcd\xcc\xa1",
20967                 .rlen   = 47,
20968         }, {
20969                 .key    = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
20970                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
20971                 .klen   = 16,
20972                 .iv     = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
20973                           "\x50\xc4\xde\x82\x90\x21\x11\x73",
20974                 .assoc  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
20975                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
20976                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
20977                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
20978                 .alen   = 32,
20979                 .input  = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
20980                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
20981                           "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
20982                           "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
20983                 .ilen   = 32,
20984                 .result = "\xf9\xd7\xee\x17\xfd\x24\xcd\xf1"
20985                           "\xbc\x0f\x35\x97\x97\x0c\x4b\x18"
20986                           "\xce\x58\xc8\x3b\xd4\x85\x93\x79"
20987                           "\xcc\x9c\xea\xc1\x73\x13\x0b\x4c"
20988                           "\xcc\x6f\x28\xf8\xa4\x4e\xb8\x56"
20989                           "\x64\x4e\x47\xce\xb2\xb4\x92\xb4",
20990                 .rlen   = 48,
20991         }, {
20992                 .key    = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
20993                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
20994                 .klen   = 16,
20995                 .iv     = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
20996                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
20997                 .assoc  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
20998                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
20999                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
21000                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
21001                           "\x9d",
21002                 .alen   = 33,
21003                 .input  = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
21004                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
21005                           "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
21006                           "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
21007                           "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
21008                           "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
21009                           "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
21010                           "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
21011                           "\xbd",
21012                 .ilen   = 65,
21013                 .result = "\x58\xfa\x3a\x3d\xd9\x88\x63\xe8"
21014                           "\xc5\x78\x50\x8b\x4a\xc9\xdf\x7f"
21015                           "\x4b\xfa\xc8\x2e\x67\x43\xf3\x63"
21016                           "\x42\x8e\x99\x5a\x9c\x0b\x84\x77"
21017                           "\xbc\x46\x76\x48\x82\xc7\x57\x96"
21018                           "\xe1\x65\xd1\xed\x1d\xdd\x80\x24"
21019                           "\xa6\x4d\xa9\xf1\x53\x8b\x5e\x0e"
21020                           "\x26\xb9\xcc\x37\xe5\x43\xe1\x5a"
21021                           "\x8a\xd6\x8c\x5a\xe4\x95\xd1\x8d"
21022                           "\xf7\x33\x64\xc1\xd3\xf2\xfc\x35"
21023                           "\x01",
21024                 .rlen   = 81,
21025         }, {
21026                 .key    = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
21027                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
21028                 .klen   = 16,
21029                 .iv     = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
21030                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
21031                 .assoc  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
21032                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
21033                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
21034                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
21035                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
21036                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
21037                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
21038                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
21039                           "\x54",
21040                 .alen   = 65,
21041                 .input  = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
21042                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
21043                           "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
21044                           "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
21045                           "\x2f",
21046                 .ilen   = 33,
21047                 .result = "\x4c\xa9\xac\x71\xed\x10\xa6\x24"
21048                           "\xb7\xa7\xdf\x8b\xf5\xc2\x41\xcb"
21049                           "\x05\xc9\xd6\x97\xb6\x10\x7f\x17"
21050                           "\xc2\xc0\x93\xcf\xe0\x94\xfd\x99"
21051                           "\xf2\x62\x25\x28\x01\x23\x6f\x8b"
21052                           "\x04\x52\xbc\xb0\x3e\x66\x52\x90"
21053                           "\x9f",
21054                 .rlen   = 49,
21055         }, {
21056                 .key    = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
21057                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
21058                 .klen   = 16,
21059                 .iv     = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
21060                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
21061                 .assoc  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
21062                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
21063                 .alen   = 16,
21064                 .input  = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
21065                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
21066                 .ilen   = 16,
21067                 .result = "\x6d\xed\x04\x7a\x2f\x0c\x30\xa5"
21068                           "\x96\xe6\x97\xe4\x10\xeb\x40\x95"
21069                           "\xc5\x9a\xdf\x31\xd5\xa5\xa6\xec"
21070                           "\x05\xa8\x31\x50\x11\x19\x44",
21071                 .rlen   = 31,
21072         }, {
21073                 .key    = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
21074                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
21075                 .klen   = 16,
21076                 .iv     = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
21077                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
21078                 .assoc  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
21079                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
21080                 .alen   = 16,
21081                 .input  = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
21082                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
21083                 .ilen   = 16,
21084                 .result = "\x30\x95\x7d\xea\xdc\x62\xc0\x88"
21085                           "\xa1\xe3\x8d\x8c\xac\x04\x10\xa7"
21086                           "\xfa\xfa\x07\xbd\xa0\xf0\x36\xeb"
21087                           "\x21\x93\x2e\x31\x84\x83",
21088                 .rlen   = 30,
21089         }, {
21090                 .key    = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
21091                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
21092                 .klen   = 16,
21093                 .iv     = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
21094                           "\xd5\x07\x58\x59\x72\xd7\xde\x92",
21095                 .assoc  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
21096                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
21097                 .alen   = 16,
21098                 .input  = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
21099                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
21100                 .ilen   = 16,
21101                 .result = "\x93\xcd\xee\xd4\xcb\x9d\x8d\x16"
21102                           "\x63\x0d\x43\xd5\x49\xca\xa8\x85"
21103                           "\x49\xc0\xae\x13\xbc\x26\x1d\x4b",
21104                 .rlen   = 24,
21105         },
21106 };
21107
21108 static const struct aead_testvec aegis128l_dec_tv_template[] = {
21109         {
21110                 .key    = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
21111                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
21112                 .klen   = 16,
21113                 .iv     = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
21114                           "\x40\x6d\x59\x48\xfc\x92\x61\x03",
21115                 .assoc  = "",
21116                 .alen   = 0,
21117                 .input  = "\x30\x4f\xf3\xe9\xb1\xfa\x81\xa6"
21118                           "\x20\x72\x78\xdd\x93\xc8\x57\xef",
21119                 .ilen   = 16,
21120                 .result = "",
21121                 .rlen   = 0,
21122         }, {
21123                 .key    = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
21124                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
21125                 .klen   = 16,
21126                 .iv     = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
21127                           "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
21128                 .assoc  = "",
21129                 .alen   = 0,
21130                 .input  = "\xa9\x24\xa0\xb6\x2d\xdd\x29\xdb"
21131                           "\x40\xb3\x71\xc5\x22\x58\x31\x77"
21132                           "\x6d",
21133                 .ilen   = 17,
21134                 .result = "\x79",
21135                 .rlen   = 1,
21136         }, {
21137                 .key    = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
21138                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
21139                 .klen   = 16,
21140                 .iv     = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
21141                           "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
21142                 .assoc  = "",
21143                 .alen   = 0,
21144                 .input  = "\xbb\x0a\x53\xc4\xaa\x7e\xa4\x03"
21145                           "\x2b\xee\x62\x99\x7b\x98\x13\x1f"
21146                           "\xe0\x76\x4c\x2e\x53\x99\x4f\xbe"
21147                           "\xe1\xa8\x04\x7f\xe1\x71\xbe",
21148                 .ilen   = 31,
21149                 .result = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
21150                           "\x82\x8e\x16\xb4\xed\x6d\x47",
21151                 .rlen   = 15,
21152         }, {
21153                 .key    = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
21154                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
21155                 .klen   = 16,
21156                 .iv     = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
21157                           "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
21158                 .assoc  = "",
21159                 .alen   = 0,
21160                 .input  = "\x66\xdf\x6e\x71\xc0\x6e\xa4\x4c"
21161                           "\x9d\xb7\x8c\x9a\xdb\x1f\xd2\x2e"
21162                           "\x23\xb6\xa4\xfb\xd3\x86\xdd\xbb"
21163                           "\xde\x54\x9b\xf5\x92\x8b\x93\xc5",
21164                 .ilen   = 32,
21165                 .result = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
21166                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
21167                 .rlen   = 16,
21168         }, {
21169                 .key    = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
21170                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
21171                 .klen   = 16,
21172                 .iv     = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
21173                           "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
21174                 .assoc  = "",
21175                 .alen   = 0,
21176                 .input  = "\x4f\xc3\x69\xb6\xd3\xa4\x64\x8b"
21177                           "\x71\xc3\x8a\x91\x22\x4f\x1b\xd2"
21178                           "\x33\x6d\x86\xbc\xf8\x2f\x06\xf9"
21179                           "\x82\x64\xc7\x72\x00\x30\xfc\xf0"
21180                           "\xf8",
21181                 .ilen   = 33,
21182                 .result = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
21183                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
21184                           "\xd3",
21185                 .rlen   = 17,
21186         }, {
21187                 .key    = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
21188                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
21189                 .klen   = 16,
21190                 .iv     = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
21191                           "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
21192                 .assoc  = "",
21193                 .alen   = 0,
21194                 .input  = "\xe3\x93\x15\xae\x5f\x9d\x3c\xb5"
21195                           "\xd6\x9d\xee\xee\xcf\xaa\xaf\xe1"
21196                           "\x45\x10\x96\xe0\xbf\x55\x0f\x4c"
21197                           "\x1a\xfd\xf4\xda\x4e\x10\xde\xc9"
21198                           "\x0e\x6f\xc7\x3c\x49\x94\x41\xfc"
21199                           "\x59\x28\x88\x3c\x79\x10\x6b",
21200                 .ilen   = 47,
21201                 .result = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
21202                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
21203                           "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
21204                           "\x88\x11\x39\x12\x1c\x3a\xbb",
21205                 .rlen   = 31,
21206         }, {
21207                 .key    = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
21208                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
21209                 .klen   = 16,
21210                 .iv     = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
21211                           "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
21212                 .assoc  = "",
21213                 .alen   = 0,
21214                 .input  = "\x1c\x8e\x22\x34\xfd\xab\xe6\x0d"
21215                           "\x1c\x9f\x06\x54\x8b\x0b\xb4\x40"
21216                           "\xde\x11\x59\x3e\xfd\x74\xf6\x42"
21217                           "\x97\x17\xf7\x24\xb6\x7e\xc4\xc6"
21218                           "\x06\xa3\x94\xda\x3d\x7f\x55\x0a"
21219                           "\x92\x07\x2f\xa6\xf3\x6b\x2c\xfc",
21220                 .ilen   = 48,
21221                 .result = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
21222                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
21223                           "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
21224                           "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
21225                 .rlen   = 32,
21226         }, {
21227                 .key    = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
21228                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
21229                 .klen   = 16,
21230                 .iv     = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
21231                           "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
21232                 .assoc  = "\xd5",
21233                 .alen   = 1,
21234                 .input  = "\xa0\x2a\xb4\x9a\x91\x00\x15\xb8"
21235                           "\x0f\x9a\x15\x60\x0e\x9b\x13\x8f",
21236                 .ilen   = 16,
21237                 .result = "",
21238                 .rlen   = 0,
21239         }, {
21240                 .key    = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
21241                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
21242                 .klen   = 16,
21243                 .iv     = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
21244                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
21245                 .assoc  = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
21246                           "\x68\x75\x16\xf8\xcb\x7e\xa7",
21247                 .alen   = 15,
21248                 .input  = "\x4c\x26\xad\x9c\x14\xfd\x9c\x8c"
21249                           "\x84\xfb\x26\xfb\xd5\xca\x62\x39",
21250                 .ilen   = 16,
21251                 .result = "",
21252                 .rlen   = 0,
21253         }, {
21254                 .key    = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
21255                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
21256                 .klen   = 16,
21257                 .iv     = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
21258                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
21259                 .assoc  = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
21260                           "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
21261                 .alen   = 16,
21262                 .input  = "\x45\x85\x0e\x0f\xf4\xae\x96\xa1"
21263                           "\x99\x4d\x6d\xb4\x67\x32\xb0\x3a",
21264                 .ilen   = 16,
21265                 .result = "",
21266                 .rlen   = 0,
21267         }, {
21268                 .key    = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
21269                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
21270                 .klen   = 16,
21271                 .iv     = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
21272                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
21273                 .assoc  = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
21274                           "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
21275                           "\x07",
21276                 .alen   = 17,
21277                 .input  = "\x33\xb1\x42\x97\x8e\x16\x7b\x63"
21278                           "\x06\xba\x5b\xcb\xae\x6d\x8b\x56",
21279                 .ilen   = 16,
21280                 .result = "",
21281                 .rlen   = 0,
21282         }, {
21283                 .key    = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
21284                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
21285                 .klen   = 16,
21286                 .iv     = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
21287                           "\xca\xcd\xff\x88\xba\x22\xbe\x47",
21288                 .assoc  = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
21289                           "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
21290                           "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
21291                           "\xe0\x17\x3a\x2e\x83\x5c\x8f",
21292                 .alen   = 31,
21293                 .input  = "\xda\x44\x08\x8c\x2a\xa5\x07\x35"
21294                           "\x0b\x54\x4e\x6d\xe3\xfd\xc4\x5f",
21295                 .ilen   = 16,
21296                 .result = "",
21297                 .rlen   = 0,
21298         }, {
21299                 .key    = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
21300                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
21301                 .klen   = 16,
21302                 .iv     = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
21303                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
21304                 .assoc  = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
21305                           "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
21306                           "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
21307                           "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
21308                 .alen   = 32,
21309                 .input  = "\x1b\xb1\xf1\xa8\x9e\xc2\xb2\x88"
21310                           "\x40\x7f\x7b\x19\x7a\x52\x8c\xf0",
21311                 .ilen   = 16,
21312                 .result = "",
21313                 .rlen   = 0,
21314         }, {
21315                 .key    = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
21316                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
21317                 .klen   = 16,
21318                 .iv     = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
21319                           "\xcc\x81\x63\xab\xae\x6b\x43\x54",
21320                 .assoc  = "\x40",
21321                 .alen   = 1,
21322                 .input  = "\x6e\xc8\xfb\x15\x9d\x98\x49\xc9"
21323                           "\xa0\x98\x09\x85\xbe\x56\x8e\x79"
21324                           "\xf4",
21325                 .ilen   = 17,
21326                 .result = "\x4f",
21327                 .rlen   = 1,
21328         }, {
21329                 .key    = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
21330                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
21331                 .klen   = 16,
21332                 .iv     = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
21333                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
21334                 .assoc  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
21335                           "\x6d\x92\x42\x61\xa7\x58\x37",
21336                 .alen   = 15,
21337                 .input  = "\x99\x2e\x84\x50\x64\x5c\xab\x29"
21338                           "\x20\xba\xb9\x2f\x62\x3a\xce\x2a"
21339                           "\x75\x25\x3b\xe3\x40\xe0\x1d\xfc"
21340                           "\x20\x63\x0b\x49\x7e\x97\x08",
21341                 .ilen   = 31,
21342                 .result = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
21343                           "\x8d\xc8\x6e\x85\xa5\x21\x67",
21344                 .rlen   = 15,
21345         }, {
21346                 .key    = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
21347                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
21348                 .klen   = 16,
21349                 .iv     = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
21350                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
21351                 .assoc  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
21352                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
21353                 .alen   = 16,
21354                 .input  = "\xd9\x8e\xfd\x50\x8f\x02\x9f\xee"
21355                           "\x78\x08\x12\xec\x09\xaf\x53\x14"
21356                           "\x90\x3e\x3d\x76\xad\x71\x21\x08"
21357                           "\x77\xe5\x4b\x15\xc2\xe6\xbc\xdb",
21358                 .ilen   = 32,
21359                 .result = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
21360                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
21361                 .rlen   = 16,
21362         }, {
21363                 .key    = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
21364                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
21365                 .klen   = 16,
21366                 .iv     = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
21367                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
21368                 .assoc  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
21369                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
21370                           "\x05",
21371                 .alen   = 17,
21372                 .input  = "\xf3\xe7\x95\x86\xcf\x34\x95\x96"
21373                           "\x17\xfe\x1b\xae\x1b\x31\xf2\x1a"
21374                           "\xbd\xbc\xc9\x4e\x11\x29\x09\x5c"
21375                           "\x05\xd3\xb4\x2e\x4a\x74\x59\x49"
21376                           "\x7d",
21377                 .ilen   = 33,
21378                 .result = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
21379                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
21380                           "\xd0",
21381                 .rlen   = 17,
21382         }, {
21383                 .key    = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
21384                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
21385                 .klen   = 16,
21386                 .iv     = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
21387                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
21388                 .assoc  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
21389                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
21390                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
21391                           "\x68\x28\x73\x40\x9f\x96\x4a",
21392                 .alen   = 31,
21393                 .input  = "\x06\x96\xb2\xbf\x63\xf4\x1e\x24"
21394                           "\x0d\x19\x15\x61\x65\x3b\x06\x26"
21395                           "\x71\xe8\x7e\x16\xdb\x96\x01\x01"
21396                           "\x52\xcd\x49\x5b\x07\x33\x4e\xe7"
21397                           "\xaa\x91\xf5\xd5\xc6\xfe\x41\xb5"
21398                           "\xed\x90\xce\xb9\xcd\xcc\xa1",
21399                 .ilen   = 47,
21400                 .result = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
21401                           "\x10\x57\x85\x39\x93\x8f\xaf\x70"
21402                           "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
21403                           "\x98\x34\xab\x37\x56\xae\x32",
21404                 .rlen   = 31,
21405         }, {
21406                 .key    = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
21407                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
21408                 .klen   = 16,
21409                 .iv     = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
21410                           "\x50\xc4\xde\x82\x90\x21\x11\x73",
21411                 .assoc  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
21412                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
21413                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
21414                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
21415                 .alen   = 32,
21416                 .input  = "\xf9\xd7\xee\x17\xfd\x24\xcd\xf1"
21417                           "\xbc\x0f\x35\x97\x97\x0c\x4b\x18"
21418                           "\xce\x58\xc8\x3b\xd4\x85\x93\x79"
21419                           "\xcc\x9c\xea\xc1\x73\x13\x0b\x4c"
21420                           "\xcc\x6f\x28\xf8\xa4\x4e\xb8\x56"
21421                           "\x64\x4e\x47\xce\xb2\xb4\x92\xb4",
21422                 .ilen   = 48,
21423                 .result = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
21424                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
21425                           "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
21426                           "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
21427                 .rlen   = 32,
21428         }, {
21429                 .key    = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
21430                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
21431                 .klen   = 16,
21432                 .iv     = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
21433                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
21434                 .assoc  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
21435                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
21436                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
21437                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
21438                           "\x9d",
21439                 .alen   = 33,
21440                 .input  = "\x58\xfa\x3a\x3d\xd9\x88\x63\xe8"
21441                           "\xc5\x78\x50\x8b\x4a\xc9\xdf\x7f"
21442                           "\x4b\xfa\xc8\x2e\x67\x43\xf3\x63"
21443                           "\x42\x8e\x99\x5a\x9c\x0b\x84\x77"
21444                           "\xbc\x46\x76\x48\x82\xc7\x57\x96"
21445                           "\xe1\x65\xd1\xed\x1d\xdd\x80\x24"
21446                           "\xa6\x4d\xa9\xf1\x53\x8b\x5e\x0e"
21447                           "\x26\xb9\xcc\x37\xe5\x43\xe1\x5a"
21448                           "\x8a\xd6\x8c\x5a\xe4\x95\xd1\x8d"
21449                           "\xf7\x33\x64\xc1\xd3\xf2\xfc\x35"
21450                           "\x01",
21451                 .ilen   = 81,
21452                 .result = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
21453                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
21454                           "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
21455                           "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
21456                           "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
21457                           "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
21458                           "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
21459                           "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
21460                           "\xbd",
21461                 .rlen   = 65,
21462         }, {
21463                 .key    = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
21464                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
21465                 .klen   = 16,
21466                 .iv     = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
21467                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
21468                 .assoc  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
21469                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
21470                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
21471                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
21472                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
21473                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
21474                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
21475                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
21476                           "\x54",
21477                 .alen   = 65,
21478                 .input  = "\x4c\xa9\xac\x71\xed\x10\xa6\x24"
21479                           "\xb7\xa7\xdf\x8b\xf5\xc2\x41\xcb"
21480                           "\x05\xc9\xd6\x97\xb6\x10\x7f\x17"
21481                           "\xc2\xc0\x93\xcf\xe0\x94\xfd\x99"
21482                           "\xf2\x62\x25\x28\x01\x23\x6f\x8b"
21483                           "\x04\x52\xbc\xb0\x3e\x66\x52\x90"
21484                           "\x9f",
21485                 .ilen   = 49,
21486                 .result = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
21487                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
21488                           "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
21489                           "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
21490                           "\x2f",
21491                 .rlen   = 33,
21492         }, {
21493                 .key    = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
21494                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
21495                 .klen   = 16,
21496                 .iv     = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
21497                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
21498                 .assoc  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
21499                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
21500                 .alen   = 16,
21501                 .input  = "\x6d\xed\x04\x7a\x2f\x0c\x30\xa5"
21502                           "\x96\xe6\x97\xe4\x10\xeb\x40\x95"
21503                           "\xc5\x9a\xdf\x31\xd5\xa5\xa6\xec"
21504                           "\x05\xa8\x31\x50\x11\x19\x44",
21505                 .ilen   = 31,
21506                 .result = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
21507                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
21508                 .rlen   = 16,
21509         }, {
21510                 .key    = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
21511                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
21512                 .klen   = 16,
21513                 .iv     = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
21514                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
21515                 .assoc  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
21516                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
21517                 .alen   = 16,
21518                 .input  = "\x30\x95\x7d\xea\xdc\x62\xc0\x88"
21519                           "\xa1\xe3\x8d\x8c\xac\x04\x10\xa7"
21520                           "\xfa\xfa\x07\xbd\xa0\xf0\x36\xeb"
21521                           "\x21\x93\x2e\x31\x84\x83",
21522                 .ilen   = 30,
21523                 .result = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
21524                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
21525                 .rlen   = 16,
21526         }, {
21527                 .key    = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
21528                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
21529                 .klen   = 16,
21530                 .iv     = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
21531                           "\xd5\x07\x58\x59\x72\xd7\xde\x92",
21532                 .assoc  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
21533                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
21534                 .alen   = 16,
21535                 .input  = "\x93\xcd\xee\xd4\xcb\x9d\x8d\x16"
21536                           "\x63\x0d\x43\xd5\x49\xca\xa8\x85"
21537                           "\x49\xc0\xae\x13\xbc\x26\x1d\x4b",
21538                 .ilen   = 24,
21539                 .result = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
21540                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
21541                 .rlen   = 16,
21542         },
21543 };
21544
21545 /*
21546  * AEGIS-256 test vectors - generated via reference implementation from
21547  * SUPERCOP (https://bench.cr.yp.to/supercop.html):
21548  *
21549  *   https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
21550  *   (see crypto_aead/aegis256/)
21551  */
21552 static const struct aead_testvec aegis256_enc_tv_template[] = {
21553         {
21554                 .key    = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
21555                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81"
21556                           "\xca\xb0\x82\x21\x41\xa8\xe0\x06"
21557                           "\x30\x0b\x37\xf6\xb6\x17\xe7\xb5",
21558                 .klen   = 32,
21559                 .iv     = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
21560                           "\x40\x6d\x59\x48\xfc\x92\x61\x03"
21561                           "\x95\x61\x05\x42\x82\x50\xc0\x0c"
21562                           "\x60\x16\x6f\xec\x6d\x2f\xcf\x6b",
21563                 .assoc  = "",
21564                 .alen   = 0,
21565                 .input  = "",
21566                 .ilen   = 0,
21567                 .result = "\xd5\x65\x3a\xa9\x03\x51\xd7\xaa"
21568                           "\xfa\x4b\xd8\xa2\x41\x9b\xc1\xb2",
21569                 .rlen   = 16,
21570         }, {
21571                 .key    = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
21572                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87"
21573                           "\xf4\x72\x8e\xa5\x46\x48\x62\x20"
21574                           "\xf1\x38\x16\xce\x90\x76\x87\x8c",
21575                 .klen   = 32,
21576                 .iv     = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
21577                           "\xc1\x47\x0b\xda\xf6\xb6\x23\x09"
21578                           "\xbf\x23\x11\xc6\x87\xf0\x42\x26"
21579                           "\x22\x44\x4e\xc4\x47\x8e\x6e\x41",
21580                 .assoc  = "",
21581                 .alen   = 0,
21582                 .input  = "\x79",
21583                 .ilen   = 1,
21584                 .result = "\x84\xa2\x8f\xad\xdb\x8d\x2c\x16"
21585                           "\x9e\x89\xd9\x06\xa6\xa8\x14\x29"
21586                           "\x8b",
21587                 .rlen   = 17,
21588         }, {
21589                 .key    = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
21590                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e"
21591                           "\x1f\x35\x9a\x29\x4b\xe8\xe4\x39"
21592                           "\xb3\x66\xf5\xa6\x6a\xd5\x26\x62",
21593                 .klen   = 32,
21594                 .iv     = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
21595                           "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f"
21596                           "\xe9\xe5\x1d\x4a\x8c\x90\xc4\x40"
21597                           "\xe3\x71\x2d\x9c\x21\xed\x0e\x18",
21598                 .assoc  = "",
21599                 .alen   = 0,
21600                 .input  = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
21601                           "\x82\x8e\x16\xb4\xed\x6d\x47",
21602                 .ilen   = 15,
21603                 .result = "\x09\x94\x1f\xa6\x13\xc3\x74\x75"
21604                           "\x17\xad\x8a\x0e\xd8\x66\x9a\x28"
21605                           "\xd7\x30\x66\x09\x2a\xdc\xfa\x2a"
21606                           "\x9f\x3b\xd7\xdd\x66\xd1\x2b",
21607                 .rlen   = 31,
21608         }, {
21609                 .key    = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
21610                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94"
21611                           "\x49\xf7\xa5\xad\x50\x88\x66\x53"
21612                           "\x74\x94\xd4\x7f\x44\x34\xc5\x39",
21613                 .klen   = 32,
21614                 .iv     = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
21615                           "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15"
21616                           "\x14\xa8\x28\xce\x92\x30\x46\x59"
21617                           "\xa4\x9f\x0b\x75\xfb\x4c\xad\xee",
21618                 .assoc  = "",
21619                 .alen   = 0,
21620                 .input  = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
21621                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
21622                 .ilen   = 16,
21623                 .result = "\x8a\x46\xa2\x22\x8c\x03\xab\x6f"
21624                           "\x54\x63\x4e\x7f\xc9\x8e\xfa\x70"
21625                           "\x7b\xe5\x8d\x78\xbc\xe9\xb6\xa1"
21626                           "\x29\x17\xc8\x3b\x52\xa4\x98\x72",
21627                 .rlen   = 32,
21628         }, {
21629                 .key    = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
21630                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a"
21631                           "\x74\xb9\xb1\x32\x55\x28\xe8\x6d"
21632                           "\x35\xc1\xb3\x57\x1f\x93\x64\x0f",
21633                 .klen   = 32,
21634                 .iv     = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
21635                           "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c"
21636                           "\x3e\x6a\x34\x53\x97\xd0\xc8\x73"
21637                           "\x66\xcd\xea\x4d\xd5\xab\x4c\xc5",
21638                 .assoc  = "",
21639                 .alen   = 0,
21640                 .input  = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
21641                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
21642                           "\xd3",
21643                 .ilen   = 17,
21644                 .result = "\x71\x6b\x37\x0b\x02\x61\x28\x12"
21645                           "\x83\xab\x66\x90\x84\xc7\xd1\xc5"
21646                           "\xb2\x7a\xb4\x7b\xb4\xfe\x02\xb2"
21647                           "\xc0\x00\x39\x13\xb5\x51\x68\x44"
21648                           "\xad",
21649                 .rlen   = 33,
21650         }, {
21651                 .key    = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
21652                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0"
21653                           "\x9e\x7c\xbc\xb6\x5b\xc8\x6a\x86"
21654                           "\xf7\xef\x91\x30\xf9\xf2\x04\xe6",
21655                 .klen   = 32,
21656                 .iv     = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
21657                           "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22"
21658                           "\x69\x2c\x3f\xd7\x9c\x70\x4a\x8d"
21659                           "\x27\xfa\xc9\x26\xaf\x0a\xeb\x9c",
21660                 .assoc  = "",
21661                 .alen   = 0,
21662                 .input  = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
21663                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
21664                           "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
21665                           "\x88\x11\x39\x12\x1c\x3a\xbb",
21666                 .ilen   = 31,
21667                 .result = "\xaf\xa4\x34\x0d\x59\xe6\x1c\x2f"
21668                           "\x06\x3b\x52\x18\x49\x75\x1b\xf0"
21669                           "\x53\x09\x72\x7b\x45\x79\xe0\xbe"
21670                           "\x89\x85\x23\x15\xb8\x79\x07\x4c"
21671                           "\x53\x7a\x15\x37\x0a\xee\xb7\xfb"
21672                           "\xc4\x1f\x12\x27\xcf\x77\x90",
21673                 .rlen   = 47,
21674         }, {
21675                 .key    = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
21676                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6"
21677                           "\xc8\x3e\xc8\x3a\x60\x68\xec\xa0"
21678                           "\xb8\x1c\x70\x08\xd3\x51\xa3\xbd",
21679                 .klen   = 32,
21680                 .iv     = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
21681                           "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28"
21682                           "\x93\xef\x4b\x5b\xa1\x10\xcc\xa6"
21683                           "\xe8\x28\xa8\xfe\x89\x69\x8b\x72",
21684                 .assoc  = "",
21685                 .alen   = 0,
21686                 .input  = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
21687                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
21688                           "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
21689                           "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
21690                 .ilen   = 32,
21691                 .result = "\xe2\xc9\x0b\x33\x31\x02\xb3\xb4"
21692                           "\x33\xfe\xeb\xa8\xb7\x9b\xb2\xd7"
21693                           "\xeb\x0f\x05\x2b\xba\xb3\xca\xef"
21694                           "\xf6\xd1\xb6\xc0\xb9\x9b\x85\xc5"
21695                           "\xbf\x7a\x3e\xcc\x31\x76\x09\x80"
21696                           "\x32\x5d\xbb\xe8\x38\x0e\x77\xd3",
21697                 .rlen   = 48,
21698         }, {
21699                 .key    = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
21700                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad"
21701                           "\xf3\x00\xd4\xbf\x65\x08\x6e\xb9"
21702                           "\x7a\x4a\x4f\xe0\xad\xb0\x42\x93",
21703                 .klen   = 32,
21704                 .iv     = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
21705                           "\xc6\x64\x37\x42\xd2\x90\xb3\x2e"
21706                           "\xbd\xb1\x57\xe0\xa6\xb0\x4e\xc0"
21707                           "\xaa\x55\x87\xd6\x63\xc8\x2a\x49",
21708                 .assoc  = "\xd5",
21709                 .alen   = 1,
21710                 .input  = "",
21711                 .ilen   = 0,
21712                 .result = "\x96\x43\x30\xca\x6c\x4f\xd7\x12"
21713                           "\xba\xd9\xb3\x18\x86\xdf\xc3\x52",
21714                 .rlen   = 16,
21715         }, {
21716                 .key    = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
21717                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3"
21718                           "\x1d\xc3\xdf\x43\x6a\xa8\xf0\xd3"
21719                           "\x3b\x77\x2e\xb9\x87\x0f\xe1\x6a",
21720                 .klen   = 32,
21721                 .iv     = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
21722                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34"
21723                           "\xe8\x73\x62\x64\xab\x50\xd0\xda"
21724                           "\x6b\x83\x66\xaf\x3e\x27\xc9\x1f",
21725                 .assoc  = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
21726                           "\x68\x75\x16\xf8\xcb\x7e\xa7",
21727                 .alen   = 15,
21728                 .input  = "",
21729                 .ilen   = 0,
21730                 .result = "\x2f\xab\x45\xe2\xa7\x46\xc5\x83"
21731                           "\x11\x9f\xb0\x74\xee\xc7\x03\xdd",
21732                 .rlen   = 16,
21733         }, {
21734                 .key    = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
21735                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9"
21736                           "\x47\x85\xeb\xc7\x6f\x48\x72\xed"
21737                           "\xfc\xa5\x0d\x91\x61\x6e\x81\x40",
21738                 .klen   = 32,
21739                 .iv     = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
21740                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b"
21741                           "\x12\x35\x6e\xe8\xb0\xf0\x52\xf3"
21742                           "\x2d\xb0\x45\x87\x18\x86\x68\xf6",
21743                 .assoc  = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
21744                           "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
21745                 .alen   = 16,
21746                 .input  = "",
21747                 .ilen   = 0,
21748                 .result = "\x16\x44\x73\x33\x5d\xf2\xb9\x04"
21749                           "\x6b\x79\x98\xef\xdb\xd5\xc5\xf1",
21750                 .rlen   = 16,
21751         }, {
21752                 .key    = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
21753                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf"
21754                           "\x72\x47\xf6\x4b\x74\xe8\xf4\x06"
21755                           "\xbe\xd3\xec\x6a\x3b\xcd\x20\x17",
21756                 .klen   = 32,
21757                 .iv     = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
21758                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
21759                           "\x3c\xf8\x79\x6c\xb6\x90\xd4\x0d"
21760                           "\xee\xde\x23\x60\xf2\xe5\x08\xcc",
21761                 .assoc  = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
21762                           "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
21763                           "\x07",
21764                 .alen   = 17,
21765                 .input  = "",
21766                 .ilen   = 0,
21767                 .result = "\xa4\x9b\xb8\x47\xc0\xed\x7a\x45"
21768                           "\x98\x54\x8c\xed\x3d\x17\xf0\xdd",
21769                 .rlen   = 16,
21770         }, {
21771                 .key    = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
21772                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6"
21773                           "\x9c\x0a\x02\xd0\x79\x88\x76\x20"
21774                           "\x7f\x00\xca\x42\x15\x2c\xbf\xed",
21775                 .klen   = 32,
21776                 .iv     = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
21777                           "\xca\xcd\xff\x88\xba\x22\xbe\x47"
21778                           "\x67\xba\x85\xf1\xbb\x30\x56\x26"
21779                           "\xaf\x0b\x02\x38\xcc\x44\xa7\xa3",
21780                 .assoc  = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
21781                           "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
21782                           "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
21783                           "\xe0\x17\x3a\x2e\x83\x5c\x8f",
21784                 .alen   = 31,
21785                 .input  = "",
21786                 .ilen   = 0,
21787                 .result = "\x20\x24\xe2\x33\x5c\x60\xc9\xf0"
21788                           "\xa4\x96\x2f\x0d\x53\xc2\xf8\xfc",
21789                 .rlen   = 16,
21790         }, {
21791                 .key    = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
21792                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc"
21793                           "\xc6\xcc\x0e\x54\x7f\x28\xf8\x3a"
21794                           "\x40\x2e\xa9\x1a\xf0\x8b\x5e\xc4",
21795                 .klen   = 32,
21796                 .iv     = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
21797                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
21798                           "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
21799                           "\x71\x39\xe1\x10\xa6\xa3\x46\x7a",
21800                 .assoc  = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
21801                           "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
21802                           "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
21803                           "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
21804                 .alen   = 32,
21805                 .input  = "",
21806                 .ilen   = 0,
21807                 .result = "\x6f\x4a\xb9\xe0\xff\x51\xa3\xf1"
21808                           "\xd2\x64\x3e\x66\x6a\xb2\x03\xc0",
21809                 .rlen   = 16,
21810         }, {
21811                 .key    = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
21812                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2"
21813                           "\xf1\x8e\x19\xd8\x84\xc8\x7a\x53"
21814                           "\x02\x5b\x88\xf3\xca\xea\xfe\x9b",
21815                 .klen   = 32,
21816                 .iv     = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
21817                           "\xcc\x81\x63\xab\xae\x6b\x43\x54"
21818                           "\xbb\x3f\x9c\xf9\xc5\x70\x5a\x5a"
21819                           "\x32\x67\xc0\xe9\x80\x02\xe5\x50",
21820                 .assoc  = "\x40",
21821                 .alen   = 1,
21822                 .input  = "\x4f",
21823                 .ilen   = 1,
21824                 .result = "\x2c\xfb\xad\x7e\xbe\xa0\x9a\x5b"
21825                           "\x7a\x3f\x81\xf7\xfc\x1b\x79\x83"
21826                           "\xc7",
21827                 .rlen   = 17,
21828         }, {
21829                 .key    = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
21830                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8"
21831                           "\x1b\x50\x25\x5d\x89\x68\xfc\x6d"
21832                           "\xc3\x89\x67\xcb\xa4\x49\x9d\x71",
21833                 .klen   = 32,
21834                 .iv     = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
21835                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a"
21836                           "\xe6\x01\xa8\x7e\xca\x10\xdc\x73"
21837                           "\xf4\x94\x9f\xc1\x5a\x61\x85\x27",
21838                 .assoc  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
21839                           "\x6d\x92\x42\x61\xa7\x58\x37",
21840                 .alen   = 15,
21841                 .input  = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
21842                           "\x8d\xc8\x6e\x85\xa5\x21\x67",
21843                 .ilen   = 15,
21844                 .result = "\x1f\x7f\xca\x3c\x2b\xe7\x27\xba"
21845                           "\x7e\x98\x83\x02\x34\x23\xf7\x94"
21846                           "\xde\x35\xe6\x1d\x14\x18\xe5\x38"
21847                           "\x14\x80\x6a\xa7\x1b\xae\x1d",
21848                 .rlen   = 31,
21849         }, {
21850                 .key    = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
21851                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf"
21852                           "\x46\x13\x31\xe1\x8e\x08\x7e\x87"
21853                           "\x85\xb6\x46\xa3\x7e\xa8\x3c\x48",
21854                 .klen   = 32,
21855                 .iv     = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
21856                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60"
21857                           "\x10\xc3\xb3\x02\xcf\xb0\x5e\x8d"
21858                           "\xb5\xc2\x7e\x9a\x35\xc0\x24\xfd",
21859                 .assoc  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
21860                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
21861                 .alen   = 16,
21862                 .input  = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
21863                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
21864                 .ilen   = 16,
21865                 .result = "\x05\x86\x9e\xd7\x2b\xa3\x97\x01"
21866                           "\xbe\x28\x98\x10\x6f\xe9\x61\x32"
21867                           "\x96\xbb\xb1\x2e\x8f\x0c\x44\xb9"
21868                           "\x46\x2d\x55\xe3\x42\x67\xf2\xaf",
21869                 .rlen   = 32,
21870         }, {
21871                 .key    = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
21872                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5"
21873                           "\x70\xd5\x3c\x65\x93\xa8\x00\xa0"
21874                           "\x46\xe4\x25\x7c\x58\x08\xdb\x1e",
21875                 .klen   = 32,
21876                 .iv     = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
21877                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
21878                           "\x3b\x86\xbf\x86\xd4\x50\xe0\xa7"
21879                           "\x76\xef\x5c\x72\x0f\x1f\xc3\xd4",
21880                 .assoc  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
21881                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
21882                           "\x05",
21883                 .alen   = 17,
21884                 .input  = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
21885                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
21886                           "\xd0",
21887                 .ilen   = 17,
21888                 .result = "\x9c\xe0\x06\x7b\x86\xcf\x2e\xd8"
21889                           "\x45\x65\x1b\x72\x9b\xaa\xa3\x1e"
21890                           "\x87\x9d\x26\xdf\xff\x81\x11\xd2"
21891                           "\x47\x41\xb9\x24\xc1\x8a\xa3\x8b"
21892                           "\x55",
21893                 .rlen   = 33,
21894         }, {
21895                 .key    = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
21896                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb"
21897                           "\x9a\x97\x48\xe9\x98\x48\x82\xba"
21898                           "\x07\x11\x04\x54\x32\x67\x7b\xf5",
21899                 .klen   = 32,
21900                 .iv     = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
21901                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
21902                           "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
21903                           "\x38\x1d\x3b\x4a\xe9\x7e\x62\xaa",
21904                 .assoc  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
21905                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
21906                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
21907                           "\x68\x28\x73\x40\x9f\x96\x4a",
21908                 .alen   = 31,
21909                 .input  = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
21910                           "\x10\x57\x85\x39\x93\x8f\xaf\x70"
21911                           "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
21912                           "\x98\x34\xab\x37\x56\xae\x32",
21913                 .ilen   = 31,
21914                 .result = "\xa0\xc8\xde\x83\x0d\xc3\x4e\xd5"
21915                           "\x69\x7f\x7a\xdd\x8c\x46\xda\xba"
21916                           "\x0a\x5c\x0e\x7f\xac\xee\x02\xd2"
21917                           "\xe5\x4b\x0a\xba\xb8\xa4\x7b\x66"
21918                           "\xde\xae\xdb\xc2\xc0\x0b\xf7\x2b"
21919                           "\xdf\xb8\xea\xd8\xa9\x38\xed",
21920                 .rlen   = 47,
21921         }, {
21922                 .key    = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
21923                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1"
21924                           "\xc5\x5a\x53\x6e\x9d\xe8\x04\xd4"
21925                           "\xc9\x3f\xe2\x2d\x0c\xc6\x1a\xcb",
21926                 .klen   = 32,
21927                 .iv     = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
21928                           "\x50\xc4\xde\x82\x90\x21\x11\x73"
21929                           "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
21930                           "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81",
21931                 .assoc  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
21932                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
21933                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
21934                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
21935                 .alen   = 32,
21936                 .input  = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
21937                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
21938                           "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
21939                           "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
21940                 .ilen   = 32,
21941                 .result = "\xd3\x68\x14\x70\x3c\x01\x43\x86"
21942                           "\x02\xab\xbe\x75\xaa\xe7\xf5\x53"
21943                           "\x5c\x05\xbd\x9b\x19\xbb\x2a\x61"
21944                           "\x8f\x69\x05\x75\x8e\xca\x60\x0c"
21945                           "\x5b\xa2\x48\x61\x32\x74\x11\x2b"
21946                           "\xf6\xcf\x06\x78\x6f\x78\x1a\x4a",
21947                 .rlen   = 48,
21948         }, {
21949                 .key    = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
21950                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7"
21951                           "\xef\x1c\x5f\xf2\xa3\x88\x86\xed"
21952                           "\x8a\x6d\xc1\x05\xe7\x25\xb9\xa2",
21953                 .klen   = 32,
21954                 .iv     = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
21955                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
21956                           "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
21957                           "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58",
21958                 .assoc  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
21959                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
21960                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
21961                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
21962                           "\x9d",
21963                 .alen   = 33,
21964                 .input  = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
21965                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
21966                           "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
21967                           "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
21968                           "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
21969                           "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
21970                           "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
21971                           "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
21972                           "\xbd",
21973                 .ilen   = 65,
21974                 .result = "\x07\x0a\x35\xb0\x82\x03\x5a\xd2"
21975                           "\x15\x3a\x6c\x72\x83\x9b\xb1\x75"
21976                           "\xea\xf2\xfc\xff\xc6\xf1\x13\xa4"
21977                           "\x1a\x93\x33\x79\x97\x82\x81\xc0"
21978                           "\x96\xc2\x00\xab\x39\xae\xa1\x62"
21979                           "\x53\xa3\x86\xc9\x07\x8c\xaf\x22"
21980                           "\x47\x31\x29\xca\x4a\x95\xf5\xd5"
21981                           "\x20\x63\x5a\x54\x80\x2c\x4a\x63"
21982                           "\xfb\x18\x73\x31\x4f\x08\x21\x5d"
21983                           "\x20\xe9\xc3\x7e\xea\x25\x77\x3a"
21984                           "\x65",
21985                 .rlen   = 81,
21986         }, {
21987                 .key    = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
21988                           "\x32\x42\x15\x80\x85\xa1\x65\xfe"
21989                           "\x19\xde\x6b\x76\xa8\x28\x08\x07"
21990                           "\x4b\x9a\xa0\xdd\xc1\x84\x58\x79",
21991                 .klen   = 32,
21992                 .iv     = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
21993                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
21994                           "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
21995                           "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e",
21996                 .assoc  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
21997                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
21998                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
21999                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
22000                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
22001                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
22002                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
22003                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
22004                           "\x54",
22005                 .alen   = 65,
22006                 .input  = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
22007                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
22008                           "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
22009                           "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
22010                           "\x2f",
22011                 .ilen   = 33,
22012                 .result = "\x33\xc1\xda\xfa\x15\x21\x07\x8e"
22013                           "\x93\x68\xea\x64\x7b\x3d\x4b\x6b"
22014                           "\x71\x5e\x5e\x6b\x92\xaa\x65\xc2"
22015                           "\x7a\x2a\xc1\xa9\x0a\xa1\x24\x81"
22016                           "\x26\x3a\x5a\x09\xe8\xce\x73\x72"
22017                           "\xde\x7b\x58\x9e\x85\xb9\xa4\x28"
22018                           "\xda",
22019                 .rlen   = 49,
22020         }, {
22021                 .key    = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
22022                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04"
22023                           "\x44\xa1\x76\xfb\xad\xc8\x8a\x21"
22024                           "\x0d\xc8\x7f\xb6\x9b\xe3\xf8\x4f",
22025                 .klen   = 32,
22026                 .iv     = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
22027                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85"
22028                           "\x0e\x51\xf9\x1c\xee\x70\x6a\x27"
22029                           "\x3d\xd3\xb7\xac\x51\xfa\xdf\x05",
22030                 .assoc  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
22031                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
22032                 .alen   = 16,
22033                 .input  = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
22034                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
22035                 .ilen   = 16,
22036                 .result = "\x3e\xf8\x86\x3d\x39\xf8\x96\x02"
22037                           "\x0f\xdf\xc9\x6e\x37\x1e\x57\x99"
22038                           "\x07\x2a\x1a\xac\xd1\xda\xfd\x3b"
22039                           "\xc7\xff\xbd\xbc\x85\x09\x0b",
22040                 .rlen   = 31,
22041         }, {
22042                 .key    = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
22043                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a"
22044                           "\x6e\x63\x82\x7f\xb2\x68\x0c\x3a"
22045                           "\xce\xf5\x5e\x8e\x75\x42\x97\x26",
22046                 .klen   = 32,
22047                 .iv     = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
22048                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c"
22049                           "\x39\x14\x05\xa0\xf3\x10\xec\x41"
22050                           "\xff\x01\x95\x84\x2b\x59\x7f\xdb",
22051                 .assoc  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
22052                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
22053                 .alen   = 16,
22054                 .input  = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
22055                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
22056                 .ilen   = 16,
22057                 .result = "\x2f\xc4\xd8\x0d\xa6\x07\xef\x2e"
22058                           "\x6c\xd9\x84\x63\x70\x97\x61\x37"
22059                           "\x08\x2f\x16\x90\x9e\x62\x30\x0d"
22060                           "\x62\xd5\xc8\xf0\x46\x1a",
22061                 .rlen   = 30,
22062         }, {
22063                 .key    = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
22064                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10"
22065                           "\x98\x25\x8d\x03\xb7\x08\x8e\x54"
22066                           "\x90\x23\x3d\x67\x4f\xa1\x36\xfc",
22067                 .klen   = 32,
22068                 .iv     = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
22069                           "\xd5\x07\x58\x59\x72\xd7\xde\x92"
22070                           "\x63\xd6\x10\x24\xf8\xb0\x6e\x5a"
22071                           "\xc0\x2e\x74\x5d\x06\xb8\x1e\xb2",
22072                 .assoc  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
22073                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
22074                 .alen   = 16,
22075                 .input  = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
22076                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
22077                 .ilen   = 16,
22078                 .result = "\xce\xf3\x17\x87\x49\xc2\x00\x46"
22079                           "\xc6\x12\x5c\x8f\x81\x38\xaa\x55"
22080                           "\xf8\x67\x75\xf1\x75\xe3\x2a\x24",
22081                 .rlen   = 24,
22082         },
22083 };
22084
22085 static const struct aead_testvec aegis256_dec_tv_template[] = {
22086         {
22087                 .key    = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
22088                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81"
22089                           "\xca\xb0\x82\x21\x41\xa8\xe0\x06"
22090                           "\x30\x0b\x37\xf6\xb6\x17\xe7\xb5",
22091                 .klen   = 32,
22092                 .iv     = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
22093                           "\x40\x6d\x59\x48\xfc\x92\x61\x03"
22094                           "\x95\x61\x05\x42\x82\x50\xc0\x0c"
22095                           "\x60\x16\x6f\xec\x6d\x2f\xcf\x6b",
22096                 .assoc  = "",
22097                 .alen   = 0,
22098                 .input  = "\xd5\x65\x3a\xa9\x03\x51\xd7\xaa"
22099                           "\xfa\x4b\xd8\xa2\x41\x9b\xc1\xb2",
22100                 .ilen   = 16,
22101                 .result = "",
22102                 .rlen   = 0,
22103         }, {
22104                 .key    = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
22105                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87"
22106                           "\xf4\x72\x8e\xa5\x46\x48\x62\x20"
22107                           "\xf1\x38\x16\xce\x90\x76\x87\x8c",
22108                 .klen   = 32,
22109                 .iv     = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
22110                           "\xc1\x47\x0b\xda\xf6\xb6\x23\x09"
22111                           "\xbf\x23\x11\xc6\x87\xf0\x42\x26"
22112                           "\x22\x44\x4e\xc4\x47\x8e\x6e\x41",
22113                 .assoc  = "",
22114                 .alen   = 0,
22115                 .input  = "\x84\xa2\x8f\xad\xdb\x8d\x2c\x16"
22116                           "\x9e\x89\xd9\x06\xa6\xa8\x14\x29"
22117                           "\x8b",
22118                 .ilen   = 17,
22119                 .result = "\x79",
22120                 .rlen   = 1,
22121         }, {
22122                 .key    = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
22123                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e"
22124                           "\x1f\x35\x9a\x29\x4b\xe8\xe4\x39"
22125                           "\xb3\x66\xf5\xa6\x6a\xd5\x26\x62",
22126                 .klen   = 32,
22127                 .iv     = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
22128                           "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f"
22129                           "\xe9\xe5\x1d\x4a\x8c\x90\xc4\x40"
22130                           "\xe3\x71\x2d\x9c\x21\xed\x0e\x18",
22131                 .assoc  = "",
22132                 .alen   = 0,
22133                 .input  = "\x09\x94\x1f\xa6\x13\xc3\x74\x75"
22134                           "\x17\xad\x8a\x0e\xd8\x66\x9a\x28"
22135                           "\xd7\x30\x66\x09\x2a\xdc\xfa\x2a"
22136                           "\x9f\x3b\xd7\xdd\x66\xd1\x2b",
22137                 .ilen   = 31,
22138                 .result = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
22139                           "\x82\x8e\x16\xb4\xed\x6d\x47",
22140                 .rlen   = 15,
22141         }, {
22142                 .key    = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
22143                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94"
22144                           "\x49\xf7\xa5\xad\x50\x88\x66\x53"
22145                           "\x74\x94\xd4\x7f\x44\x34\xc5\x39",
22146                 .klen   = 32,
22147                 .iv     = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
22148                           "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15"
22149                           "\x14\xa8\x28\xce\x92\x30\x46\x59"
22150                           "\xa4\x9f\x0b\x75\xfb\x4c\xad\xee",
22151                 .assoc  = "",
22152                 .alen   = 0,
22153                 .input  = "\x8a\x46\xa2\x22\x8c\x03\xab\x6f"
22154                           "\x54\x63\x4e\x7f\xc9\x8e\xfa\x70"
22155                           "\x7b\xe5\x8d\x78\xbc\xe9\xb6\xa1"
22156                           "\x29\x17\xc8\x3b\x52\xa4\x98\x72",
22157                 .ilen   = 32,
22158                 .result = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
22159                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
22160                 .rlen   = 16,
22161         }, {
22162                 .key    = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
22163                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a"
22164                           "\x74\xb9\xb1\x32\x55\x28\xe8\x6d"
22165                           "\x35\xc1\xb3\x57\x1f\x93\x64\x0f",
22166                 .klen   = 32,
22167                 .iv     = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
22168                           "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c"
22169                           "\x3e\x6a\x34\x53\x97\xd0\xc8\x73"
22170                           "\x66\xcd\xea\x4d\xd5\xab\x4c\xc5",
22171                 .assoc  = "",
22172                 .alen   = 0,
22173                 .input  = "\x71\x6b\x37\x0b\x02\x61\x28\x12"
22174                           "\x83\xab\x66\x90\x84\xc7\xd1\xc5"
22175                           "\xb2\x7a\xb4\x7b\xb4\xfe\x02\xb2"
22176                           "\xc0\x00\x39\x13\xb5\x51\x68\x44"
22177                           "\xad",
22178                 .ilen   = 33,
22179                 .result = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
22180                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
22181                           "\xd3",
22182                 .rlen   = 17,
22183         }, {
22184                 .key    = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
22185                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0"
22186                           "\x9e\x7c\xbc\xb6\x5b\xc8\x6a\x86"
22187                           "\xf7\xef\x91\x30\xf9\xf2\x04\xe6",
22188                 .klen   = 32,
22189                 .iv     = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
22190                           "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22"
22191                           "\x69\x2c\x3f\xd7\x9c\x70\x4a\x8d"
22192                           "\x27\xfa\xc9\x26\xaf\x0a\xeb\x9c",
22193                 .assoc  = "",
22194                 .alen   = 0,
22195                 .input  = "\xaf\xa4\x34\x0d\x59\xe6\x1c\x2f"
22196                           "\x06\x3b\x52\x18\x49\x75\x1b\xf0"
22197                           "\x53\x09\x72\x7b\x45\x79\xe0\xbe"
22198                           "\x89\x85\x23\x15\xb8\x79\x07\x4c"
22199                           "\x53\x7a\x15\x37\x0a\xee\xb7\xfb"
22200                           "\xc4\x1f\x12\x27\xcf\x77\x90",
22201                 .ilen   = 47,
22202                 .result = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
22203                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
22204                           "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
22205                           "\x88\x11\x39\x12\x1c\x3a\xbb",
22206                 .rlen   = 31,
22207         }, {
22208                 .key    = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
22209                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6"
22210                           "\xc8\x3e\xc8\x3a\x60\x68\xec\xa0"
22211                           "\xb8\x1c\x70\x08\xd3\x51\xa3\xbd",
22212                 .klen   = 32,
22213                 .iv     = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
22214                           "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28"
22215                           "\x93\xef\x4b\x5b\xa1\x10\xcc\xa6"
22216                           "\xe8\x28\xa8\xfe\x89\x69\x8b\x72",
22217                 .assoc  = "",
22218                 .alen   = 0,
22219                 .input  = "\xe2\xc9\x0b\x33\x31\x02\xb3\xb4"
22220                           "\x33\xfe\xeb\xa8\xb7\x9b\xb2\xd7"
22221                           "\xeb\x0f\x05\x2b\xba\xb3\xca\xef"
22222                           "\xf6\xd1\xb6\xc0\xb9\x9b\x85\xc5"
22223                           "\xbf\x7a\x3e\xcc\x31\x76\x09\x80"
22224                           "\x32\x5d\xbb\xe8\x38\x0e\x77\xd3",
22225                 .ilen   = 48,
22226                 .result = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
22227                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
22228                           "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
22229                           "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
22230                 .rlen   = 32,
22231         }, {
22232                 .key    = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
22233                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad"
22234                           "\xf3\x00\xd4\xbf\x65\x08\x6e\xb9"
22235                           "\x7a\x4a\x4f\xe0\xad\xb0\x42\x93",
22236                 .klen   = 32,
22237                 .iv     = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
22238                           "\xc6\x64\x37\x42\xd2\x90\xb3\x2e"
22239                           "\xbd\xb1\x57\xe0\xa6\xb0\x4e\xc0"
22240                           "\xaa\x55\x87\xd6\x63\xc8\x2a\x49",
22241                 .assoc  = "\xd5",
22242                 .alen   = 1,
22243                 .input  = "\x96\x43\x30\xca\x6c\x4f\xd7\x12"
22244                           "\xba\xd9\xb3\x18\x86\xdf\xc3\x52",
22245                 .ilen   = 16,
22246                 .result = "",
22247                 .rlen   = 0,
22248         }, {
22249                 .key    = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
22250                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3"
22251                           "\x1d\xc3\xdf\x43\x6a\xa8\xf0\xd3"
22252                           "\x3b\x77\x2e\xb9\x87\x0f\xe1\x6a",
22253                 .klen   = 32,
22254                 .iv     = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
22255                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34"
22256                           "\xe8\x73\x62\x64\xab\x50\xd0\xda"
22257                           "\x6b\x83\x66\xaf\x3e\x27\xc9\x1f",
22258                 .assoc  = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
22259                           "\x68\x75\x16\xf8\xcb\x7e\xa7",
22260                 .alen   = 15,
22261                 .input  = "\x2f\xab\x45\xe2\xa7\x46\xc5\x83"
22262                           "\x11\x9f\xb0\x74\xee\xc7\x03\xdd",
22263                 .ilen   = 16,
22264                 .result = "",
22265                 .rlen   = 0,
22266         }, {
22267                 .key    = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
22268                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9"
22269                           "\x47\x85\xeb\xc7\x6f\x48\x72\xed"
22270                           "\xfc\xa5\x0d\x91\x61\x6e\x81\x40",
22271                 .klen   = 32,
22272                 .iv     = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
22273                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b"
22274                           "\x12\x35\x6e\xe8\xb0\xf0\x52\xf3"
22275                           "\x2d\xb0\x45\x87\x18\x86\x68\xf6",
22276                 .assoc  = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
22277                           "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
22278                 .alen   = 16,
22279                 .input  = "\x16\x44\x73\x33\x5d\xf2\xb9\x04"
22280                           "\x6b\x79\x98\xef\xdb\xd5\xc5\xf1",
22281                 .ilen   = 16,
22282                 .result = "",
22283                 .rlen   = 0,
22284         }, {
22285                 .key    = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
22286                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf"
22287                           "\x72\x47\xf6\x4b\x74\xe8\xf4\x06"
22288                           "\xbe\xd3\xec\x6a\x3b\xcd\x20\x17",
22289                 .klen   = 32,
22290                 .iv     = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
22291                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
22292                           "\x3c\xf8\x79\x6c\xb6\x90\xd4\x0d"
22293                           "\xee\xde\x23\x60\xf2\xe5\x08\xcc",
22294                 .assoc  = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
22295                           "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
22296                           "\x07",
22297                 .alen   = 17,
22298                 .input  = "\xa4\x9b\xb8\x47\xc0\xed\x7a\x45"
22299                           "\x98\x54\x8c\xed\x3d\x17\xf0\xdd",
22300                 .ilen   = 16,
22301                 .result = "",
22302                 .rlen   = 0,
22303         }, {
22304                 .key    = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
22305                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6"
22306                           "\x9c\x0a\x02\xd0\x79\x88\x76\x20"
22307                           "\x7f\x00\xca\x42\x15\x2c\xbf\xed",
22308                 .klen   = 32,
22309                 .iv     = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
22310                           "\xca\xcd\xff\x88\xba\x22\xbe\x47"
22311                           "\x67\xba\x85\xf1\xbb\x30\x56\x26"
22312                           "\xaf\x0b\x02\x38\xcc\x44\xa7\xa3",
22313                 .assoc  = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
22314                           "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
22315                           "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
22316                           "\xe0\x17\x3a\x2e\x83\x5c\x8f",
22317                 .alen   = 31,
22318                 .input  = "\x20\x24\xe2\x33\x5c\x60\xc9\xf0"
22319                           "\xa4\x96\x2f\x0d\x53\xc2\xf8\xfc",
22320                 .ilen   = 16,
22321                 .result = "",
22322                 .rlen   = 0,
22323         }, {
22324                 .key    = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
22325                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc"
22326                           "\xc6\xcc\x0e\x54\x7f\x28\xf8\x3a"
22327                           "\x40\x2e\xa9\x1a\xf0\x8b\x5e\xc4",
22328                 .klen   = 32,
22329                 .iv     = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
22330                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
22331                           "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
22332                           "\x71\x39\xe1\x10\xa6\xa3\x46\x7a",
22333                 .assoc  = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
22334                           "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
22335                           "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
22336                           "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
22337                 .alen   = 32,
22338                 .input  = "\x6f\x4a\xb9\xe0\xff\x51\xa3\xf1"
22339                           "\xd2\x64\x3e\x66\x6a\xb2\x03\xc0",
22340                 .ilen   = 16,
22341                 .result = "",
22342                 .rlen   = 0,
22343         }, {
22344                 .key    = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
22345                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2"
22346                           "\xf1\x8e\x19\xd8\x84\xc8\x7a\x53"
22347                           "\x02\x5b\x88\xf3\xca\xea\xfe\x9b",
22348                 .klen   = 32,
22349                 .iv     = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
22350                           "\xcc\x81\x63\xab\xae\x6b\x43\x54"
22351                           "\xbb\x3f\x9c\xf9\xc5\x70\x5a\x5a"
22352                           "\x32\x67\xc0\xe9\x80\x02\xe5\x50",
22353                 .assoc  = "\x40",
22354                 .alen   = 1,
22355                 .input  = "\x2c\xfb\xad\x7e\xbe\xa0\x9a\x5b"
22356                           "\x7a\x3f\x81\xf7\xfc\x1b\x79\x83"
22357                           "\xc7",
22358                 .ilen   = 17,
22359                 .result = "\x4f",
22360                 .rlen   = 1,
22361         }, {
22362                 .key    = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
22363                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8"
22364                           "\x1b\x50\x25\x5d\x89\x68\xfc\x6d"
22365                           "\xc3\x89\x67\xcb\xa4\x49\x9d\x71",
22366                 .klen   = 32,
22367                 .iv     = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
22368                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a"
22369                           "\xe6\x01\xa8\x7e\xca\x10\xdc\x73"
22370                           "\xf4\x94\x9f\xc1\x5a\x61\x85\x27",
22371                 .assoc  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
22372                           "\x6d\x92\x42\x61\xa7\x58\x37",
22373                 .alen   = 15,
22374                 .input  = "\x1f\x7f\xca\x3c\x2b\xe7\x27\xba"
22375                           "\x7e\x98\x83\x02\x34\x23\xf7\x94"
22376                           "\xde\x35\xe6\x1d\x14\x18\xe5\x38"
22377                           "\x14\x80\x6a\xa7\x1b\xae\x1d",
22378                 .ilen   = 31,
22379                 .result = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
22380                           "\x8d\xc8\x6e\x85\xa5\x21\x67",
22381                 .rlen   = 15,
22382         }, {
22383                 .key    = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
22384                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf"
22385                           "\x46\x13\x31\xe1\x8e\x08\x7e\x87"
22386                           "\x85\xb6\x46\xa3\x7e\xa8\x3c\x48",
22387                 .klen   = 32,
22388                 .iv     = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
22389                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60"
22390                           "\x10\xc3\xb3\x02\xcf\xb0\x5e\x8d"
22391                           "\xb5\xc2\x7e\x9a\x35\xc0\x24\xfd",
22392                 .assoc  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
22393                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
22394                 .alen   = 16,
22395                 .input  = "\x05\x86\x9e\xd7\x2b\xa3\x97\x01"
22396                           "\xbe\x28\x98\x10\x6f\xe9\x61\x32"
22397                           "\x96\xbb\xb1\x2e\x8f\x0c\x44\xb9"
22398                           "\x46\x2d\x55\xe3\x42\x67\xf2\xaf",
22399                 .ilen   = 32,
22400                 .result = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
22401                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
22402                 .rlen   = 16,
22403         }, {
22404                 .key    = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
22405                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5"
22406                           "\x70\xd5\x3c\x65\x93\xa8\x00\xa0"
22407                           "\x46\xe4\x25\x7c\x58\x08\xdb\x1e",
22408                 .klen   = 32,
22409                 .iv     = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
22410                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
22411                           "\x3b\x86\xbf\x86\xd4\x50\xe0\xa7"
22412                           "\x76\xef\x5c\x72\x0f\x1f\xc3\xd4",
22413                 .assoc  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
22414                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
22415                           "\x05",
22416                 .alen   = 17,
22417                 .input  = "\x9c\xe0\x06\x7b\x86\xcf\x2e\xd8"
22418                           "\x45\x65\x1b\x72\x9b\xaa\xa3\x1e"
22419                           "\x87\x9d\x26\xdf\xff\x81\x11\xd2"
22420                           "\x47\x41\xb9\x24\xc1\x8a\xa3\x8b"
22421                           "\x55",
22422                 .ilen   = 33,
22423                 .result = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
22424                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
22425                           "\xd0",
22426                 .rlen   = 17,
22427         }, {
22428                 .key    = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
22429                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb"
22430                           "\x9a\x97\x48\xe9\x98\x48\x82\xba"
22431                           "\x07\x11\x04\x54\x32\x67\x7b\xf5",
22432                 .klen   = 32,
22433                 .iv     = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
22434                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
22435                           "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
22436                           "\x38\x1d\x3b\x4a\xe9\x7e\x62\xaa",
22437                 .assoc  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
22438                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
22439                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
22440                           "\x68\x28\x73\x40\x9f\x96\x4a",
22441                 .alen   = 31,
22442                 .input  = "\xa0\xc8\xde\x83\x0d\xc3\x4e\xd5"
22443                           "\x69\x7f\x7a\xdd\x8c\x46\xda\xba"
22444                           "\x0a\x5c\x0e\x7f\xac\xee\x02\xd2"
22445                           "\xe5\x4b\x0a\xba\xb8\xa4\x7b\x66"
22446                           "\xde\xae\xdb\xc2\xc0\x0b\xf7\x2b"
22447                           "\xdf\xb8\xea\xd8\xa9\x38\xed",
22448                 .ilen   = 47,
22449                 .result = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
22450                           "\x10\x57\x85\x39\x93\x8f\xaf\x70"
22451                           "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
22452                           "\x98\x34\xab\x37\x56\xae\x32",
22453                 .rlen   = 31,
22454         }, {
22455                 .key    = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
22456                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1"
22457                           "\xc5\x5a\x53\x6e\x9d\xe8\x04\xd4"
22458                           "\xc9\x3f\xe2\x2d\x0c\xc6\x1a\xcb",
22459                 .klen   = 32,
22460                 .iv     = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
22461                           "\x50\xc4\xde\x82\x90\x21\x11\x73"
22462                           "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
22463                           "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81",
22464                 .assoc  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
22465                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
22466                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
22467                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
22468                 .alen   = 32,
22469                 .input  = "\xd3\x68\x14\x70\x3c\x01\x43\x86"
22470                           "\x02\xab\xbe\x75\xaa\xe7\xf5\x53"
22471                           "\x5c\x05\xbd\x9b\x19\xbb\x2a\x61"
22472                           "\x8f\x69\x05\x75\x8e\xca\x60\x0c"
22473                           "\x5b\xa2\x48\x61\x32\x74\x11\x2b"
22474                           "\xf6\xcf\x06\x78\x6f\x78\x1a\x4a",
22475                 .ilen   = 48,
22476                 .result = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
22477                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
22478                           "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
22479                           "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
22480                 .rlen   = 32,
22481         }, {
22482                 .key    = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
22483                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7"
22484                           "\xef\x1c\x5f\xf2\xa3\x88\x86\xed"
22485                           "\x8a\x6d\xc1\x05\xe7\x25\xb9\xa2",
22486                 .klen   = 32,
22487                 .iv     = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
22488                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
22489                           "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
22490                           "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58",
22491                 .assoc  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
22492                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
22493                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
22494                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
22495                           "\x9d",
22496                 .alen   = 33,
22497                 .input  = "\x07\x0a\x35\xb0\x82\x03\x5a\xd2"
22498                           "\x15\x3a\x6c\x72\x83\x9b\xb1\x75"
22499                           "\xea\xf2\xfc\xff\xc6\xf1\x13\xa4"
22500                           "\x1a\x93\x33\x79\x97\x82\x81\xc0"
22501                           "\x96\xc2\x00\xab\x39\xae\xa1\x62"
22502                           "\x53\xa3\x86\xc9\x07\x8c\xaf\x22"
22503                           "\x47\x31\x29\xca\x4a\x95\xf5\xd5"
22504                           "\x20\x63\x5a\x54\x80\x2c\x4a\x63"
22505                           "\xfb\x18\x73\x31\x4f\x08\x21\x5d"
22506                           "\x20\xe9\xc3\x7e\xea\x25\x77\x3a"
22507                           "\x65",
22508                 .ilen   = 81,
22509                 .result = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
22510                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
22511                           "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
22512                           "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
22513                           "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
22514                           "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
22515                           "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
22516                           "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
22517                           "\xbd",
22518                 .rlen   = 65,
22519         }, {
22520                 .key    = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
22521                           "\x32\x42\x15\x80\x85\xa1\x65\xfe"
22522                           "\x19\xde\x6b\x76\xa8\x28\x08\x07"
22523                           "\x4b\x9a\xa0\xdd\xc1\x84\x58\x79",
22524                 .klen   = 32,
22525                 .iv     = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
22526                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
22527                           "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
22528                           "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e",
22529                 .assoc  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
22530                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
22531                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
22532                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
22533                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
22534                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
22535                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
22536                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
22537                           "\x54",
22538                 .alen   = 65,
22539                 .input  = "\x33\xc1\xda\xfa\x15\x21\x07\x8e"
22540                           "\x93\x68\xea\x64\x7b\x3d\x4b\x6b"
22541                           "\x71\x5e\x5e\x6b\x92\xaa\x65\xc2"
22542                           "\x7a\x2a\xc1\xa9\x0a\xa1\x24\x81"
22543                           "\x26\x3a\x5a\x09\xe8\xce\x73\x72"
22544                           "\xde\x7b\x58\x9e\x85\xb9\xa4\x28"
22545                           "\xda",
22546                 .ilen   = 49,
22547                 .result = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
22548                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
22549                           "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
22550                           "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
22551                           "\x2f",
22552                 .rlen   = 33,
22553         }, {
22554                 .key    = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
22555                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04"
22556                           "\x44\xa1\x76\xfb\xad\xc8\x8a\x21"
22557                           "\x0d\xc8\x7f\xb6\x9b\xe3\xf8\x4f",
22558                 .klen   = 32,
22559                 .iv     = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
22560                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85"
22561                           "\x0e\x51\xf9\x1c\xee\x70\x6a\x27"
22562                           "\x3d\xd3\xb7\xac\x51\xfa\xdf\x05",
22563                 .assoc  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
22564                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
22565                 .alen   = 16,
22566                 .input  = "\x3e\xf8\x86\x3d\x39\xf8\x96\x02"
22567                           "\x0f\xdf\xc9\x6e\x37\x1e\x57\x99"
22568                           "\x07\x2a\x1a\xac\xd1\xda\xfd\x3b"
22569                           "\xc7\xff\xbd\xbc\x85\x09\x0b",
22570                 .ilen   = 31,
22571                 .result = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
22572                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
22573                 .rlen   = 16,
22574         }, {
22575                 .key    = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
22576                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a"
22577                           "\x6e\x63\x82\x7f\xb2\x68\x0c\x3a"
22578                           "\xce\xf5\x5e\x8e\x75\x42\x97\x26",
22579                 .klen   = 32,
22580                 .iv     = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
22581                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c"
22582                           "\x39\x14\x05\xa0\xf3\x10\xec\x41"
22583                           "\xff\x01\x95\x84\x2b\x59\x7f\xdb",
22584                 .assoc  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
22585                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
22586                 .alen   = 16,
22587                 .input  = "\x2f\xc4\xd8\x0d\xa6\x07\xef\x2e"
22588                           "\x6c\xd9\x84\x63\x70\x97\x61\x37"
22589                           "\x08\x2f\x16\x90\x9e\x62\x30\x0d"
22590                           "\x62\xd5\xc8\xf0\x46\x1a",
22591                 .ilen   = 30,
22592                 .result = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
22593                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
22594                 .rlen   = 16,
22595         }, {
22596                 .key    = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
22597                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10"
22598                           "\x98\x25\x8d\x03\xb7\x08\x8e\x54"
22599                           "\x90\x23\x3d\x67\x4f\xa1\x36\xfc",
22600                 .klen   = 32,
22601                 .iv     = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
22602                           "\xd5\x07\x58\x59\x72\xd7\xde\x92"
22603                           "\x63\xd6\x10\x24\xf8\xb0\x6e\x5a"
22604                           "\xc0\x2e\x74\x5d\x06\xb8\x1e\xb2",
22605                 .assoc  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
22606                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
22607                 .alen   = 16,
22608                 .input  = "\xce\xf3\x17\x87\x49\xc2\x00\x46"
22609                           "\xc6\x12\x5c\x8f\x81\x38\xaa\x55"
22610                           "\xf8\x67\x75\xf1\x75\xe3\x2a\x24",
22611                 .ilen   = 24,
22612                 .result = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
22613                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
22614                 .rlen   = 16,
22615         },
22616 };
22617
22618 /*
22619  * MORUS-640 test vectors - generated via reference implementation from
22620  * SUPERCOP (https://bench.cr.yp.to/supercop.html):
22621  *
22622  *   https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
22623  *   (see crypto_aead/morus640128v2/)
22624  */
22625 static const struct aead_testvec morus640_enc_tv_template[] = {
22626         {
22627                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
22628                           "\x00\x00\x00\x00\x00\x00\x00\x00",
22629                 .klen   = 16,
22630                 .iv     = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
22631                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
22632                 .assoc  = "",
22633                 .alen   = 0,
22634                 .input  = "",
22635                 .ilen   = 0,
22636                 .result = "\x89\x62\x7d\xf3\x07\x9d\x52\x05"
22637                           "\x53\xc3\x04\x60\x93\xb4\x37\x9a",
22638                 .rlen   = 16,
22639         }, {
22640                 .key    = "\x3c\x24\x39\x9f\x10\x7b\xa8\x1b"
22641                           "\x80\xda\xb2\x91\xf9\x24\xc2\x06",
22642                 .klen   = 16,
22643                 .iv     = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
22644                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
22645                 .assoc  = "",
22646                 .alen   = 0,
22647                 .input  = "\x69",
22648                 .ilen   = 1,
22649                 .result = "\xa8\x8d\xe4\x90\xb5\x50\x8f\x78"
22650                           "\xb6\x10\x9a\x59\x5f\x61\x37\x70"
22651                           "\x09",
22652                 .rlen   = 17,
22653         }, {
22654                 .key    = "\x79\x49\x73\x3e\x20\xf7\x51\x37"
22655                           "\x01\xb4\x64\x22\xf3\x48\x85\x0c",
22656                 .klen   = 16,
22657                 .iv     = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
22658                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
22659                 .assoc  = "",
22660                 .alen   = 0,
22661                 .input  = "\xa6\xa4\x1e\x76\xec\xd4\x50\xcc"
22662                           "\x62\x58\xe9\x8f\xef\xa4\x17",
22663                 .ilen   = 15,
22664                 .result = "\x76\xdd\xb9\x05\x3d\xce\x61\x38"
22665                           "\xf3\xef\xf7\xe5\xd7\xfd\x70\xa5"
22666                           "\xcf\x9d\x64\xb8\x0a\x9f\xfd\x8b"
22667                           "\xd4\x6e\xfe\xd9\xc8\x63\x4b",
22668                 .rlen   = 31,
22669         }, {
22670                 .key    = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
22671                           "\x82\x8e\x16\xb4\xed\x6d\x47\x12",
22672                 .klen   = 16,
22673                 .iv     = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
22674                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
22675                 .assoc  = "",
22676                 .alen   = 0,
22677                 .input  = "\xe2\xc9\x58\x15\xfc\x4f\xf8\xe8"
22678                           "\xe3\x32\x9b\x21\xe9\xc8\xd9\x97",
22679                 .ilen   = 16,
22680                 .result = "\xdc\x72\xe8\x14\xfb\x63\xad\x72"
22681                           "\x1f\x57\x9a\x1f\x88\x81\xdb\xd6"
22682                           "\xc1\x91\x9d\xb9\x25\xc4\x99\x4c"
22683                           "\x97\xcd\x8a\x0c\x9d\x68\x00\x1c",
22684                 .rlen   = 32,
22685         }, {
22686                 .key    = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
22687                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
22688                 .klen   = 16,
22689                 .iv     = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
22690                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
22691                 .assoc  = "",
22692                 .alen   = 0,
22693                 .input  = "\x1f\xee\x92\xb4\x0c\xcb\xa1\x04"
22694                           "\x64\x0c\x4d\xb2\xe3\xec\x9c\x9d"
22695                           "\x09",
22696                 .ilen   = 17,
22697                 .result = "\x6b\x4f\x3b\x90\x9a\xa2\xb3\x82"
22698                           "\x0a\xb8\x55\xee\xeb\x73\x4d\x7f"
22699                           "\x54\x11\x3a\x8a\x31\xa3\xb5\xf2"
22700                           "\xcd\x49\xdb\xf3\xee\x26\xbd\xa2"
22701                           "\x0d",
22702                 .rlen   = 33,
22703         }, {
22704                 .key    = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
22705                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f",
22706                 .klen   = 16,
22707                 .iv     = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
22708                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
22709                 .assoc  = "",
22710                 .alen   = 0,
22711                 .input  = "\x5c\x13\xcb\x54\x1c\x47\x4a\x1f"
22712                           "\xe5\xe6\xff\x44\xdd\x11\x5f\xa3"
22713                           "\x33\xdd\xc2\xf8\xdd\x18\x2b\x93"
22714                           "\x57\x05\x01\x1c\x66\x22\xd3",
22715                 .ilen   = 31,
22716                 .result = "\x59\xd1\x0f\x6b\xee\x27\x84\x92"
22717                           "\xb7\xa9\xb5\xdd\x02\xa4\x12\xa5"
22718                           "\x50\x32\xb4\x9a\x2e\x35\x83\x55"
22719                           "\x36\x12\x12\xed\xa3\x31\xc5\x30"
22720                           "\xa7\xe2\x4a\x6d\x05\x59\x43\x91"
22721                           "\x75\xfa\x6c\x17\xc6\x73\xca",
22722                 .rlen   = 47,
22723         }, {
22724                 .key    = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
22725                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25",
22726                 .klen   = 16,
22727                 .iv     = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
22728                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
22729                 .assoc  = "",
22730                 .alen   = 0,
22731                 .input  = "\x98\x37\x05\xf3\x2c\xc2\xf3\x3b"
22732                           "\x66\xc0\xb1\xd5\xd7\x35\x21\xaa"
22733                           "\x5d\x9f\xce\x7c\xe2\xb8\xad\xad"
22734                           "\x19\x33\xe0\xf4\x40\x81\x72\x28",
22735                 .ilen   = 32,
22736                 .result = "\xdb\x49\x68\x0f\x91\x5b\x21\xb1"
22737                           "\xcf\x50\xb2\x4c\x32\xe1\xa6\x69"
22738                           "\xc0\xfb\x44\x1f\xa0\x9a\xeb\x39"
22739                           "\x1b\xde\x68\x38\xcc\x27\x52\xc5"
22740                           "\xf6\x3e\x74\xea\x66\x5b\x5f\x0c"
22741                           "\x65\x9e\x58\xe6\x52\xa2\xfe\x59",
22742                 .rlen   = 48,
22743         }, {
22744                 .key    = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
22745                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b",
22746                 .klen   = 16,
22747                 .iv     = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
22748                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
22749                 .assoc  = "\xc5",
22750                 .alen   = 1,
22751                 .input  = "",
22752                 .ilen   = 0,
22753                 .result = "\x56\xe7\x24\x52\xdd\x95\x60\x5b"
22754                           "\x09\x48\x39\x69\x9c\xb3\x62\x46",
22755                 .rlen   = 16,
22756         }, {
22757                 .key    = "\xe4\x25\xcd\xfa\x80\xdd\x46\xde"
22758                           "\x07\xd1\x90\x8b\xcf\x23\x15\x31",
22759                 .klen   = 16,
22760                 .iv     = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
22761                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
22762                 .assoc  = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
22763                           "\x47\x3e\xe9\xd4\xcc\xb5\x76",
22764                 .alen   = 15,
22765                 .input  = "",
22766                 .ilen   = 0,
22767                 .result = "\xdd\xfa\x6c\x1f\x5d\x86\x87\x01"
22768                           "\x13\xe5\x73\x46\x46\xf2\x5c\xe1",
22769                 .rlen   = 16,
22770         }, {
22771                 .key    = "\x20\x4a\x07\x99\x91\x58\xee\xfa"
22772                           "\x88\xab\x42\x1c\xc9\x47\xd7\x38",
22773                 .klen   = 16,
22774                 .iv     = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
22775                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
22776                 .assoc  = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
22777                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
22778                 .alen   = 16,
22779                 .input  = "",
22780                 .ilen   = 0,
22781                 .result = "\xa6\x1b\xb9\xd7\x5e\x3c\xcf\xac"
22782                           "\xa9\x21\x45\x0b\x16\x52\xf7\xe1",
22783                 .rlen   = 16,
22784         }, {
22785                 .key    = "\x5d\x6f\x41\x39\xa1\xd4\x97\x16"
22786                           "\x09\x85\xf4\xae\xc3\x6b\x9a\x3e",
22787                 .klen   = 16,
22788                 .iv     = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
22789                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
22790                 .assoc  = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
22791                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
22792                           "\x3c",
22793                 .alen   = 17,
22794                 .input  = "",
22795                 .ilen   = 0,
22796                 .result = "\x15\xff\xde\x3b\x34\xfc\xf6\xf9"
22797                           "\xbb\xa8\x62\xad\x0a\xf5\x48\x60",
22798                 .rlen   = 16,
22799         }, {
22800                 .key    = "\x99\x93\x7a\xd8\xb1\x50\x40\x31"
22801                           "\x8a\x60\xa6\x3f\xbd\x90\x5d\x44",
22802                 .klen   = 16,
22803                 .iv     = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
22804                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
22805                 .assoc  = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
22806                           "\xca\xcd\xff\x88\xba\x22\xbe\x47"
22807                           "\x67\xba\x85\xf1\xbb\x30\x56\x26"
22808                           "\xaf\x0b\x02\x38\xcc\x44\xa7",
22809                 .alen   = 31,
22810                 .input  = "",
22811                 .ilen   = 0,
22812                 .result = "\xd2\x9d\xf8\x3b\xd7\x84\xe9\x2d"
22813                           "\x4b\xef\x75\x16\x0a\x99\xae\x6b",
22814                 .rlen   = 16,
22815         }, {
22816                 .key    = "\xd6\xb8\xb4\x77\xc1\xcb\xe9\x4d"
22817                           "\x0a\x3a\x58\xd1\xb7\xb4\x1f\x4a",
22818                 .klen   = 16,
22819                 .iv     = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
22820                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
22821                 .assoc  = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
22822                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
22823                           "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
22824                           "\x71\x39\xe1\x10\xa6\xa3\x46\x7a",
22825                 .alen   = 32,
22826                 .input  = "",
22827                 .ilen   = 0,
22828                 .result = "\xe4\x8d\xa7\xa7\x45\xc1\x31\x4f"
22829                           "\xce\xfb\xaf\xd6\xc2\xe6\xee\xc0",
22830                 .rlen   = 16,
22831         }, {
22832                 .key    = "\x12\xdd\xee\x17\xd1\x47\x92\x69"
22833                           "\x8b\x14\x0a\x62\xb1\xd9\xe2\x50",
22834                 .klen   = 16,
22835                 .iv     = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
22836                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
22837                 .assoc  = "\x31",
22838                 .alen   = 1,
22839                 .input  = "\x40",
22840                 .ilen   = 1,
22841                 .result = "\xe2\x67\x38\x4f\xb9\xad\x7d\x38"
22842                           "\x01\xfe\x84\x14\x85\xf8\xd1\xe3"
22843                           "\x22",
22844                 .rlen   = 17,
22845         }, {
22846                 .key    = "\x4f\x01\x27\xb6\xe1\xc3\x3a\x85"
22847                           "\x0c\xee\xbc\xf4\xab\xfd\xa5\x57",
22848                 .klen   = 16,
22849                 .iv     = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
22850                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
22851                 .assoc  = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
22852                           "\x4d\x5b\x15\x3c\xa8\x8f\x06",
22853                 .alen   = 15,
22854                 .input  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
22855                           "\x6d\x92\x42\x61\xa7\x58\x37",
22856                 .ilen   = 15,
22857                 .result = "\x77\x32\x61\xeb\xb4\x33\x29\x92"
22858                           "\x29\x95\xc5\x8e\x85\x76\xab\xfc"
22859                           "\x07\x95\xa7\x44\x74\xf7\x22\xff"
22860                           "\xd8\xd8\x36\x3d\x8a\x7f\x9e",
22861                 .rlen   = 31,
22862         }, {
22863                 .key    = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
22864                           "\x8d\xc8\x6e\x85\xa5\x21\x67\x5d",
22865                 .klen   = 16,
22866                 .iv     = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
22867                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
22868                 .assoc  = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
22869                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
22870                 .alen   = 16,
22871                 .input  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
22872                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
22873                 .ilen   = 16,
22874                 .result = "\xd8\xfd\x44\x45\xf6\x42\x12\x38"
22875                           "\xf2\x0b\xea\x4f\x9e\x11\x61\x07"
22876                           "\x48\x67\x98\x18\x9b\xd0\x0c\x59"
22877                           "\x67\xa4\x11\xb3\x2b\xd6\xc1\x70",
22878                 .rlen   = 32,
22879         }, {
22880                 .key    = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
22881                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
22882                 .klen   = 16,
22883                 .iv     = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
22884                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
22885                 .assoc  = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
22886                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
22887                           "\x3b",
22888                 .alen   = 17,
22889                 .input  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
22890                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
22891                           "\x05",
22892                 .ilen   = 17,
22893                 .result = "\xb1\xab\x53\x4e\xc7\x40\x16\xb6"
22894                           "\x71\x3a\x00\x9f\x41\x88\xb0\xb2"
22895                           "\x71\x83\x85\x5f\xc8\x79\x0a\x99"
22896                           "\x99\xdc\x89\x1c\x88\xd2\x3e\xf9"
22897                           "\x83",
22898                 .rlen   = 33,
22899         }, {
22900                 .key    = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
22901                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69",
22902                 .klen   = 16,
22903                 .iv     = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
22904                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
22905                 .assoc  = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
22906                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
22907                           "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
22908                           "\x38\x1d\x3b\x4a\xe9\x7e\x62",
22909                 .alen   = 31,
22910                 .input  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
22911                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
22912                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
22913                           "\x68\x28\x73\x40\x9f\x96\x4a",
22914                 .ilen   = 31,
22915                 .result = "\x29\xc4\xf0\x03\xc1\x86\xdf\x06"
22916                           "\x5c\x7b\xef\x64\x87\x00\xd1\x37"
22917                           "\xa7\x08\xbc\x7f\x8f\x41\x54\xd0"
22918                           "\x3e\xf1\xc3\xa2\x96\x84\xdd\x2a"
22919                           "\x2d\x21\x30\xf9\x02\xdb\x06\x0c"
22920                           "\xf1\x5a\x66\x69\xe0\xca\x83",
22921                 .rlen   = 47,
22922         }, {
22923                 .key    = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
22924                           "\x10\x57\x85\x39\x93\x8f\xaf\x70",
22925                 .klen   = 16,
22926                 .iv     = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
22927                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
22928                 .assoc  = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
22929                           "\x50\xc4\xde\x82\x90\x21\x11\x73"
22930                           "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
22931                           "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81",
22932                 .alen   = 32,
22933                 .input  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
22934                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
22935                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
22936                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
22937                 .ilen   = 32,
22938                 .result = "\xe2\x2e\x44\xdf\xd3\x60\x6d\xb2"
22939                           "\x70\x57\x37\xc5\xc2\x4f\x8d\x14"
22940                           "\xc6\xbf\x8b\xec\xf5\x62\x67\xf2"
22941                           "\x2f\xa1\xe6\xd6\xa7\xb1\x8c\x54"
22942                           "\xe5\x6b\x49\xf9\x6e\x90\xc3\xaa"
22943                           "\x7a\x00\x2e\x4d\x7f\x31\x2e\x81",
22944                 .rlen   = 48,
22945         }, {
22946                 .key    = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
22947                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76",
22948                 .klen   = 16,
22949                 .iv     = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
22950                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
22951                 .assoc  = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
22952                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
22953                           "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
22954                           "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58"
22955                           "\x1a",
22956                 .alen   = 33,
22957                 .input  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
22958                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
22959                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
22960                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
22961                           "\x9d\x4d\x54\x51\x84\x61\xf6\x8e"
22962                           "\x03\x31\xf2\x25\x16\xcc\xaa\xc6"
22963                           "\x75\x73\x20\x30\x59\x54\xb2\xf0"
22964                           "\x3a\x4b\xe0\x23\x8e\xa6\x08\x35"
22965                           "\x8a",
22966                 .ilen   = 65,
22967                 .result = "\xc7\xca\x26\x61\x57\xee\xa2\xb9"
22968                           "\xb1\x37\xde\x95\x06\x90\x11\x08"
22969                           "\x4d\x30\x9f\x24\xc0\x56\xb7\xe1"
22970                           "\x0b\x9f\xd2\x57\xe9\xd2\xb1\x76"
22971                           "\x56\x9a\xb4\x58\xc5\x08\xfc\xb5"
22972                           "\xf2\x31\x9b\xc9\xcd\xb3\x64\xdb"
22973                           "\x6f\x50\xbf\xf4\x73\x9d\xfb\x6b"
22974                           "\xef\x35\x25\x48\xed\xcf\x29\xa8"
22975                           "\xac\xc3\xb9\xcb\x61\x8f\x73\x92"
22976                           "\x2c\x7a\x6f\xda\xf9\x09\x6f\xe1"
22977                           "\xc4",
22978                 .rlen   = 81,
22979         }, {
22980                 .key    = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
22981                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c",
22982                 .klen   = 16,
22983                 .iv     = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
22984                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
22985                 .assoc  = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
22986                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
22987                           "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
22988                           "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e"
22989                           "\x28\xce\x57\x34\xcd\x6e\x84\x4c"
22990                           "\x17\x3c\xe1\xb2\xa8\x0b\xbb\xf1"
22991                           "\x96\x41\x0d\x69\xe8\x54\x0a\xc8"
22992                           "\x15\x4e\x91\x92\x89\x4b\xb7\x9b"
22993                           "\x21",
22994                 .alen   = 65,
22995                 .input  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
22996                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
22997                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
22998                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
22999                           "\xac",
23000                 .ilen   = 33,
23001                 .result = "\x57\xcd\x3d\x46\xc5\xf9\x68\x3b"
23002                           "\x2c\x0f\xb4\x7e\x7b\x64\x3e\x40"
23003                           "\xf3\x78\x63\x34\x89\x79\x39\x6b"
23004                           "\x61\x64\x4a\x9a\xfa\x70\xa4\xd3"
23005                           "\x54\x0b\xea\x05\xa6\x95\x64\xed"
23006                           "\x3d\x69\xa2\x0c\x27\x56\x2f\x34"
23007                           "\x66",
23008                 .rlen   = 49,
23009         }, {
23010                 .key    = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
23011                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82",
23012                 .klen   = 16,
23013                 .iv     = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
23014                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
23015                 .assoc  = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
23016                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
23017                 .alen   = 16,
23018                 .input  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
23019                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
23020                 .ilen   = 16,
23021                 .result = "\xfc\x85\x06\x28\x8f\xe8\x23\x1f"
23022                           "\x33\x98\x87\xde\x08\xb6\xb6\xae"
23023                           "\x3e\xa4\xf8\x19\xf1\x92\x60\x39"
23024                           "\xb9\x6b\x3f\xdf\xc8\xcb\x30",
23025                 .rlen   = 31,
23026         }, {
23027                 .key    = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
23028                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
23029                 .klen   = 16,
23030                 .iv     = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
23031                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
23032                 .assoc  = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
23033                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
23034                 .alen   = 16,
23035                 .input  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
23036                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
23037                 .ilen   = 16,
23038                 .result = "\x74\x7d\x70\x07\xe9\xba\x01\xee"
23039                           "\x6c\xc6\x6f\x50\x25\x33\xbe\x50"
23040                           "\x17\xb8\x17\x62\xed\x80\xa2\xf5"
23041                           "\x03\xde\x85\x71\x5d\x34",
23042                 .rlen   = 30,
23043         }, {
23044                 .key    = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
23045                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
23046                 .klen   = 16,
23047                 .iv     = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
23048                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
23049                 .assoc  = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
23050                           "\xd5\x07\x58\x59\x72\xd7\xde\x92",
23051                 .alen   = 16,
23052                 .input  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
23053                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
23054                 .ilen   = 16,
23055                 .result = "\xf4\xb3\x85\xf9\xac\xde\xb1\x38"
23056                           "\x29\xfd\x6c\x7c\x49\xe5\x1d\xaf"
23057                           "\xba\xea\xd4\xfa\x3f\x11\x33\x98",
23058                 .rlen   = 24,
23059         }, {
23060                 .key    = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
23061                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
23062                 .klen   = 16,
23063                 .iv     = "\xbb\x3a\xf7\x57\xc6\x36\x7c\x22"
23064                           "\x36\xab\xde\xc6\x6d\x32\x70\x17",
23065                 .assoc  = "\xcb\x03\x85\xbf\x0a\xd5\x26\xa9"
23066                           "\x56\xe1\x0a\xeb\x6c\xfb\xa1\x98",
23067                 .alen   = 16,
23068                 .input  = "\xda\xcc\x14\x27\x4e\x74\xd1\x30"
23069                           "\x76\x18\x37\x0f\x6a\xc4\xd1\x1a",
23070                 .ilen   = 16,
23071                 .result = "\xe6\x5c\x49\x4f\x78\xf3\x62\x86"
23072                           "\xe1\xb7\xa5\xc3\x32\x88\x3c\x8c"
23073                           "\x6e",
23074                 .rlen   = 17,
23075         },
23076 };
23077
23078 static const struct aead_testvec morus640_dec_tv_template[] = {
23079         {
23080                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
23081                           "\x00\x00\x00\x00\x00\x00\x00\x00",
23082                 .klen   = 16,
23083                 .iv     = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
23084                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
23085                 .assoc  = "",
23086                 .alen   = 0,
23087                 .input  = "\x89\x62\x7d\xf3\x07\x9d\x52\x05"
23088                           "\x53\xc3\x04\x60\x93\xb4\x37\x9a",
23089                 .ilen   = 16,
23090                 .result = "",
23091                 .rlen   = 0,
23092         }, {
23093                 .key    = "\x3c\x24\x39\x9f\x10\x7b\xa8\x1b"
23094                           "\x80\xda\xb2\x91\xf9\x24\xc2\x06",
23095                 .klen   = 16,
23096                 .iv     = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
23097                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
23098                 .assoc  = "",
23099                 .alen   = 0,
23100                 .input  = "\xa8\x8d\xe4\x90\xb5\x50\x8f\x78"
23101                           "\xb6\x10\x9a\x59\x5f\x61\x37\x70"
23102                           "\x09",
23103                 .ilen   = 17,
23104                 .result = "\x69",
23105                 .rlen   = 1,
23106         }, {
23107                 .key    = "\x79\x49\x73\x3e\x20\xf7\x51\x37"
23108                           "\x01\xb4\x64\x22\xf3\x48\x85\x0c",
23109                 .klen   = 16,
23110                 .iv     = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
23111                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
23112                 .assoc  = "",
23113                 .alen   = 0,
23114                 .input  = "\x76\xdd\xb9\x05\x3d\xce\x61\x38"
23115                           "\xf3\xef\xf7\xe5\xd7\xfd\x70\xa5"
23116                           "\xcf\x9d\x64\xb8\x0a\x9f\xfd\x8b"
23117                           "\xd4\x6e\xfe\xd9\xc8\x63\x4b",
23118                 .ilen   = 31,
23119                 .result = "\xa6\xa4\x1e\x76\xec\xd4\x50\xcc"
23120                           "\x62\x58\xe9\x8f\xef\xa4\x17",
23121                 .rlen   = 15,
23122         }, {
23123                 .key    = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
23124                           "\x82\x8e\x16\xb4\xed\x6d\x47\x12",
23125                 .klen   = 16,
23126                 .iv     = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
23127                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
23128                 .assoc  = "",
23129                 .alen   = 0,
23130                 .input  = "\xdc\x72\xe8\x14\xfb\x63\xad\x72"
23131                           "\x1f\x57\x9a\x1f\x88\x81\xdb\xd6"
23132                           "\xc1\x91\x9d\xb9\x25\xc4\x99\x4c"
23133                           "\x97\xcd\x8a\x0c\x9d\x68\x00\x1c",
23134                 .ilen   = 32,
23135                 .result = "\xe2\xc9\x58\x15\xfc\x4f\xf8\xe8"
23136                           "\xe3\x32\x9b\x21\xe9\xc8\xd9\x97",
23137                 .rlen   = 16,
23138         }, {
23139                 .key    = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
23140                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
23141                 .klen   = 16,
23142                 .iv     = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
23143                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
23144                 .assoc  = "",
23145                 .alen   = 0,
23146                 .input  = "\x6b\x4f\x3b\x90\x9a\xa2\xb3\x82"
23147                           "\x0a\xb8\x55\xee\xeb\x73\x4d\x7f"
23148                           "\x54\x11\x3a\x8a\x31\xa3\xb5\xf2"
23149                           "\xcd\x49\xdb\xf3\xee\x26\xbd\xa2"
23150                           "\x0d",
23151                 .ilen   = 33,
23152                 .result = "\x1f\xee\x92\xb4\x0c\xcb\xa1\x04"
23153                           "\x64\x0c\x4d\xb2\xe3\xec\x9c\x9d"
23154                           "\x09",
23155                 .rlen   = 17,
23156         }, {
23157                 .key    = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
23158                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f",
23159                 .klen   = 16,
23160                 .iv     = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
23161                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
23162                 .assoc  = "",
23163                 .alen   = 0,
23164                 .input  = "\x59\xd1\x0f\x6b\xee\x27\x84\x92"
23165                           "\xb7\xa9\xb5\xdd\x02\xa4\x12\xa5"
23166                           "\x50\x32\xb4\x9a\x2e\x35\x83\x55"
23167                           "\x36\x12\x12\xed\xa3\x31\xc5\x30"
23168                           "\xa7\xe2\x4a\x6d\x05\x59\x43\x91"
23169                           "\x75\xfa\x6c\x17\xc6\x73\xca",
23170                 .ilen   = 47,
23171                 .result = "\x5c\x13\xcb\x54\x1c\x47\x4a\x1f"
23172                           "\xe5\xe6\xff\x44\xdd\x11\x5f\xa3"
23173                           "\x33\xdd\xc2\xf8\xdd\x18\x2b\x93"
23174                           "\x57\x05\x01\x1c\x66\x22\xd3",
23175                 .rlen   = 31,
23176         }, {
23177                 .key    = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
23178                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25",
23179                 .klen   = 16,
23180                 .iv     = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
23181                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
23182                 .assoc  = "",
23183                 .alen   = 0,
23184                 .input  = "\xdb\x49\x68\x0f\x91\x5b\x21\xb1"
23185                           "\xcf\x50\xb2\x4c\x32\xe1\xa6\x69"
23186                           "\xc0\xfb\x44\x1f\xa0\x9a\xeb\x39"
23187                           "\x1b\xde\x68\x38\xcc\x27\x52\xc5"
23188                           "\xf6\x3e\x74\xea\x66\x5b\x5f\x0c"
23189                           "\x65\x9e\x58\xe6\x52\xa2\xfe\x59",
23190                 .ilen   = 48,
23191                 .result = "\x98\x37\x05\xf3\x2c\xc2\xf3\x3b"
23192                           "\x66\xc0\xb1\xd5\xd7\x35\x21\xaa"
23193                           "\x5d\x9f\xce\x7c\xe2\xb8\xad\xad"
23194                           "\x19\x33\xe0\xf4\x40\x81\x72\x28",
23195                 .rlen   = 32,
23196         }, {
23197                 .key    = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
23198                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b",
23199                 .klen   = 16,
23200                 .iv     = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
23201                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
23202                 .assoc  = "\xc5",
23203                 .alen   = 1,
23204                 .input  = "\x56\xe7\x24\x52\xdd\x95\x60\x5b"
23205                           "\x09\x48\x39\x69\x9c\xb3\x62\x46",
23206                 .ilen   = 16,
23207                 .result = "",
23208                 .rlen   = 0,
23209         }, {
23210                 .key    = "\xe4\x25\xcd\xfa\x80\xdd\x46\xde"
23211                           "\x07\xd1\x90\x8b\xcf\x23\x15\x31",
23212                 .klen   = 16,
23213                 .iv     = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
23214                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
23215                 .assoc  = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
23216                           "\x47\x3e\xe9\xd4\xcc\xb5\x76",
23217                 .alen   = 15,
23218                 .input  = "\xdd\xfa\x6c\x1f\x5d\x86\x87\x01"
23219                           "\x13\xe5\x73\x46\x46\xf2\x5c\xe1",
23220                 .ilen   = 16,
23221                 .result = "",
23222                 .rlen   = 0,
23223         }, {
23224                 .key    = "\x20\x4a\x07\x99\x91\x58\xee\xfa"
23225                           "\x88\xab\x42\x1c\xc9\x47\xd7\x38",
23226                 .klen   = 16,
23227                 .iv     = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
23228                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
23229                 .assoc  = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
23230                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
23231                 .alen   = 16,
23232                 .input  = "\xa6\x1b\xb9\xd7\x5e\x3c\xcf\xac"
23233                           "\xa9\x21\x45\x0b\x16\x52\xf7\xe1",
23234                 .ilen   = 16,
23235                 .result = "",
23236                 .rlen   = 0,
23237         }, {
23238                 .key    = "\x5d\x6f\x41\x39\xa1\xd4\x97\x16"
23239                           "\x09\x85\xf4\xae\xc3\x6b\x9a\x3e",
23240                 .klen   = 16,
23241                 .iv     = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
23242                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
23243                 .assoc  = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
23244                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
23245                           "\x3c",
23246                 .alen   = 17,
23247                 .input  = "\x15\xff\xde\x3b\x34\xfc\xf6\xf9"
23248                           "\xbb\xa8\x62\xad\x0a\xf5\x48\x60",
23249                 .ilen   = 16,
23250                 .result = "",
23251                 .rlen   = 0,
23252         }, {
23253                 .key    = "\x99\x93\x7a\xd8\xb1\x50\x40\x31"
23254                           "\x8a\x60\xa6\x3f\xbd\x90\x5d\x44",
23255                 .klen   = 16,
23256                 .iv     = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
23257                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
23258                 .assoc  = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
23259                           "\xca\xcd\xff\x88\xba\x22\xbe\x47"
23260                           "\x67\xba\x85\xf1\xbb\x30\x56\x26"
23261                           "\xaf\x0b\x02\x38\xcc\x44\xa7",
23262                 .alen   = 31,
23263                 .input  = "\xd2\x9d\xf8\x3b\xd7\x84\xe9\x2d"
23264                           "\x4b\xef\x75\x16\x0a\x99\xae\x6b",
23265                 .ilen   = 16,
23266                 .result = "",
23267                 .rlen   = 0,
23268         }, {
23269                 .key    = "\xd6\xb8\xb4\x77\xc1\xcb\xe9\x4d"
23270                           "\x0a\x3a\x58\xd1\xb7\xb4\x1f\x4a",
23271                 .klen   = 16,
23272                 .iv     = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
23273                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
23274                 .assoc  = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
23275                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
23276                           "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
23277                           "\x71\x39\xe1\x10\xa6\xa3\x46\x7a",
23278                 .alen   = 32,
23279                 .input  = "\xe4\x8d\xa7\xa7\x45\xc1\x31\x4f"
23280                           "\xce\xfb\xaf\xd6\xc2\xe6\xee\xc0",
23281                 .ilen   = 16,
23282                 .result = "",
23283                 .rlen   = 0,
23284         }, {
23285                 .key    = "\x12\xdd\xee\x17\xd1\x47\x92\x69"
23286                           "\x8b\x14\x0a\x62\xb1\xd9\xe2\x50",
23287                 .klen   = 16,
23288                 .iv     = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
23289                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
23290                 .assoc  = "\x31",
23291                 .alen   = 1,
23292                 .input  = "\xe2\x67\x38\x4f\xb9\xad\x7d\x38"
23293                           "\x01\xfe\x84\x14\x85\xf8\xd1\xe3"
23294                           "\x22",
23295                 .ilen   = 17,
23296                 .result = "\x40",
23297                 .rlen   = 1,
23298         }, {
23299                 .key    = "\x4f\x01\x27\xb6\xe1\xc3\x3a\x85"
23300                           "\x0c\xee\xbc\xf4\xab\xfd\xa5\x57",
23301                 .klen   = 16,
23302                 .iv     = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
23303                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
23304                 .assoc  = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
23305                           "\x4d\x5b\x15\x3c\xa8\x8f\x06",
23306                 .alen   = 15,
23307                 .input  = "\x77\x32\x61\xeb\xb4\x33\x29\x92"
23308                           "\x29\x95\xc5\x8e\x85\x76\xab\xfc"
23309                           "\x07\x95\xa7\x44\x74\xf7\x22\xff"
23310                           "\xd8\xd8\x36\x3d\x8a\x7f\x9e",
23311                 .ilen   = 31,
23312                 .result = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
23313                           "\x6d\x92\x42\x61\xa7\x58\x37",
23314                 .rlen   = 15,
23315         }, {
23316                 .key    = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
23317                           "\x8d\xc8\x6e\x85\xa5\x21\x67\x5d",
23318                 .klen   = 16,
23319                 .iv     = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
23320                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
23321                 .assoc  = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
23322                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
23323                 .alen   = 16,
23324                 .input  = "\xd8\xfd\x44\x45\xf6\x42\x12\x38"
23325                           "\xf2\x0b\xea\x4f\x9e\x11\x61\x07"
23326                           "\x48\x67\x98\x18\x9b\xd0\x0c\x59"
23327                           "\x67\xa4\x11\xb3\x2b\xd6\xc1\x70",
23328                 .ilen   = 32,
23329                 .result = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
23330                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
23331                 .rlen   = 16,
23332         }, {
23333                 .key    = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
23334                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
23335                 .klen   = 16,
23336                 .iv     = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
23337                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
23338                 .assoc  = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
23339                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
23340                           "\x3b",
23341                 .alen   = 17,
23342                 .input  = "\xb1\xab\x53\x4e\xc7\x40\x16\xb6"
23343                           "\x71\x3a\x00\x9f\x41\x88\xb0\xb2"
23344                           "\x71\x83\x85\x5f\xc8\x79\x0a\x99"
23345                           "\x99\xdc\x89\x1c\x88\xd2\x3e\xf9"
23346                           "\x83",
23347                 .ilen   = 33,
23348                 .result = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
23349                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
23350                           "\x05",
23351                 .rlen   = 17,
23352         }, {
23353                 .key    = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
23354                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69",
23355                 .klen   = 16,
23356                 .iv     = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
23357                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
23358                 .assoc  = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
23359                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
23360                           "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
23361                           "\x38\x1d\x3b\x4a\xe9\x7e\x62",
23362                 .alen   = 31,
23363                 .input  = "\x29\xc4\xf0\x03\xc1\x86\xdf\x06"
23364                           "\x5c\x7b\xef\x64\x87\x00\xd1\x37"
23365                           "\xa7\x08\xbc\x7f\x8f\x41\x54\xd0"
23366                           "\x3e\xf1\xc3\xa2\x96\x84\xdd\x2a"
23367                           "\x2d\x21\x30\xf9\x02\xdb\x06\x0c"
23368                           "\xf1\x5a\x66\x69\xe0\xca\x83",
23369                 .ilen   = 47,
23370                 .result = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
23371                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
23372                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
23373                           "\x68\x28\x73\x40\x9f\x96\x4a",
23374                 .rlen   = 31,
23375         }, {
23376                 .key    = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
23377                           "\x10\x57\x85\x39\x93\x8f\xaf\x70",
23378                 .klen   = 16,
23379                 .iv     = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
23380                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
23381                 .assoc  = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
23382                           "\x50\xc4\xde\x82\x90\x21\x11\x73"
23383                           "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
23384                           "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81",
23385                 .alen   = 32,
23386                 .input  = "\xe2\x2e\x44\xdf\xd3\x60\x6d\xb2"
23387                           "\x70\x57\x37\xc5\xc2\x4f\x8d\x14"
23388                           "\xc6\xbf\x8b\xec\xf5\x62\x67\xf2"
23389                           "\x2f\xa1\xe6\xd6\xa7\xb1\x8c\x54"
23390                           "\xe5\x6b\x49\xf9\x6e\x90\xc3\xaa"
23391                           "\x7a\x00\x2e\x4d\x7f\x31\x2e\x81",
23392                 .ilen   = 48,
23393                 .result = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
23394                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
23395                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
23396                           "\x29\x56\x52\x19\x79\xf5\xe9\x37",
23397                 .rlen   = 32,
23398         }, {
23399                 .key    = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
23400                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76",
23401                 .klen   = 16,
23402                 .iv     = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
23403                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
23404                 .assoc  = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
23405                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
23406                           "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
23407                           "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58"
23408                           "\x1a",
23409                 .alen   = 33,
23410                 .input  = "\xc7\xca\x26\x61\x57\xee\xa2\xb9"
23411                           "\xb1\x37\xde\x95\x06\x90\x11\x08"
23412                           "\x4d\x30\x9f\x24\xc0\x56\xb7\xe1"
23413                           "\x0b\x9f\xd2\x57\xe9\xd2\xb1\x76"
23414                           "\x56\x9a\xb4\x58\xc5\x08\xfc\xb5"
23415                           "\xf2\x31\x9b\xc9\xcd\xb3\x64\xdb"
23416                           "\x6f\x50\xbf\xf4\x73\x9d\xfb\x6b"
23417                           "\xef\x35\x25\x48\xed\xcf\x29\xa8"
23418                           "\xac\xc3\xb9\xcb\x61\x8f\x73\x92"
23419                           "\x2c\x7a\x6f\xda\xf9\x09\x6f\xe1"
23420                           "\xc4",
23421                 .ilen   = 81,
23422                 .result = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
23423                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
23424                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
23425                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
23426                           "\x9d\x4d\x54\x51\x84\x61\xf6\x8e"
23427                           "\x03\x31\xf2\x25\x16\xcc\xaa\xc6"
23428                           "\x75\x73\x20\x30\x59\x54\xb2\xf0"
23429                           "\x3a\x4b\xe0\x23\x8e\xa6\x08\x35"
23430                           "\x8a",
23431                 .rlen   = 65,
23432         }, {
23433                 .key    = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
23434                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c",
23435                 .klen   = 16,
23436                 .iv     = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
23437                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
23438                 .assoc  = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
23439                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
23440                           "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
23441                           "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e"
23442                           "\x28\xce\x57\x34\xcd\x6e\x84\x4c"
23443                           "\x17\x3c\xe1\xb2\xa8\x0b\xbb\xf1"
23444                           "\x96\x41\x0d\x69\xe8\x54\x0a\xc8"
23445                           "\x15\x4e\x91\x92\x89\x4b\xb7\x9b"
23446                           "\x21",
23447                 .alen   = 65,
23448                 .input  = "\x57\xcd\x3d\x46\xc5\xf9\x68\x3b"
23449                           "\x2c\x0f\xb4\x7e\x7b\x64\x3e\x40"
23450                           "\xf3\x78\x63\x34\x89\x79\x39\x6b"
23451                           "\x61\x64\x4a\x9a\xfa\x70\xa4\xd3"
23452                           "\x54\x0b\xea\x05\xa6\x95\x64\xed"
23453                           "\x3d\x69\xa2\x0c\x27\x56\x2f\x34"
23454                           "\x66",
23455                 .ilen   = 49,
23456                 .result = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
23457                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
23458                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
23459                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
23460                           "\xac",
23461                 .rlen   = 33,
23462         }, {
23463                 .key    = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
23464                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82",
23465                 .klen   = 16,
23466                 .iv     = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
23467                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
23468                 .assoc  = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
23469                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
23470                 .alen   = 16,
23471                 .input  = "\xfc\x85\x06\x28\x8f\xe8\x23\x1f"
23472                           "\x33\x98\x87\xde\x08\xb6\xb6\xae"
23473                           "\x3e\xa4\xf8\x19\xf1\x92\x60\x39"
23474                           "\xb9\x6b\x3f\xdf\xc8\xcb\x30",
23475                 .ilen   = 31,
23476                 .result = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
23477                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
23478                 .rlen   = 16,
23479         }, {
23480                 .key    = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
23481                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
23482                 .klen   = 16,
23483                 .iv     = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
23484                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
23485                 .assoc  = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
23486                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
23487                 .alen   = 16,
23488                 .input  = "\x74\x7d\x70\x07\xe9\xba\x01\xee"
23489                           "\x6c\xc6\x6f\x50\x25\x33\xbe\x50"
23490                           "\x17\xb8\x17\x62\xed\x80\xa2\xf5"
23491                           "\x03\xde\x85\x71\x5d\x34",
23492                 .ilen   = 30,
23493                 .result = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
23494                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
23495                 .rlen   = 16,
23496         }, {
23497                 .key    = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
23498                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
23499                 .klen   = 16,
23500                 .iv     = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
23501                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
23502                 .assoc  = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
23503                           "\xd5\x07\x58\x59\x72\xd7\xde\x92",
23504                 .alen   = 16,
23505                 .input  = "\xf4\xb3\x85\xf9\xac\xde\xb1\x38"
23506                           "\x29\xfd\x6c\x7c\x49\xe5\x1d\xaf"
23507                           "\xba\xea\xd4\xfa\x3f\x11\x33\x98",
23508                 .ilen   = 24,
23509                 .result = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
23510                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
23511                 .rlen   = 16,
23512         }, {
23513                 .key    = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
23514                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
23515                 .klen   = 16,
23516                 .iv     = "\xbb\x3a\xf7\x57\xc6\x36\x7c\x22"
23517                           "\x36\xab\xde\xc6\x6d\x32\x70\x17",
23518                 .assoc  = "\xcb\x03\x85\xbf\x0a\xd5\x26\xa9"
23519                           "\x56\xe1\x0a\xeb\x6c\xfb\xa1\x98",
23520                 .alen   = 16,
23521                 .input  = "\xe6\x5c\x49\x4f\x78\xf3\x62\x86"
23522                           "\xe1\xb7\xa5\xc3\x32\x88\x3c\x8c"
23523                           "\x6e",
23524                 .ilen   = 17,
23525                 .result = "\xda\xcc\x14\x27\x4e\x74\xd1\x30"
23526                           "\x76\x18\x37\x0f\x6a\xc4\xd1\x1a",
23527                 .rlen   = 16,
23528         },
23529 };
23530
23531 /*
23532  * MORUS-1280 test vectors - generated via reference implementation from
23533  * SUPERCOP (https://bench.cr.yp.to/supercop.html):
23534  *
23535  *   https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
23536  *   (see crypto_aead/morus1280128v2/ and crypto_aead/morus1280256v2/ )
23537  */
23538 static const struct aead_testvec morus1280_enc_tv_template[] = {
23539         {
23540                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
23541                           "\x00\x00\x00\x00\x00\x00\x00\x00",
23542                 .klen   = 16,
23543                 .iv     = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
23544                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
23545                 .assoc  = "",
23546                 .alen   = 0,
23547                 .input  = "",
23548                 .ilen   = 0,
23549                 .result = "\x91\x85\x0f\xf5\x52\x9e\xce\xce"
23550                           "\x65\x99\xc7\xbf\xd3\x76\xe8\x98",
23551                 .rlen   = 16,
23552         }, {
23553                 .key    = "\x3c\x24\x39\x9f\x10\x7b\xa8\x1b"
23554                           "\x80\xda\xb2\x91\xf9\x24\xc2\x06",
23555                 .klen   = 16,
23556                 .iv     = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
23557                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
23558                 .assoc  = "",
23559                 .alen   = 0,
23560                 .input  = "\x69",
23561                 .ilen   = 1,
23562                 .result = "\x88\xc3\x4c\xf0\x2f\x43\x76\x13"
23563                           "\x96\xda\x76\x34\x33\x4e\xd5\x39"
23564                           "\x73",
23565                 .rlen   = 17,
23566         }, {
23567                 .key    = "\x79\x49\x73\x3e\x20\xf7\x51\x37"
23568                           "\x01\xb4\x64\x22\xf3\x48\x85\x0c",
23569                 .klen   = 16,
23570                 .iv     = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
23571                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
23572                 .assoc  = "",
23573                 .alen   = 0,
23574                 .input  = "\xa6\xa4\x1e\x76\xec\xd4\x50\xcc"
23575                           "\x62\x58\xe9\x8f\xef\xa4\x17\x91"
23576                           "\xb4\x96\x9f\x6b\xce\x38\xa5\x46"
23577                           "\x13\x7d\x64\x93\xd7\x05\xf5",
23578                 .ilen   = 31,
23579                 .result = "\x3e\x5c\x3b\x58\x3b\x7d\x2a\x22"
23580                           "\x75\x0b\x24\xa6\x0e\xc3\xde\x52"
23581                           "\x97\x0b\x64\xd4\xce\x90\x52\xf7"
23582                           "\xef\xdb\x6a\x38\xd2\xa8\xa1\x0d"
23583                           "\xe0\x61\x33\x24\xc6\x4d\x51\xbc"
23584                           "\xa4\x21\x74\xcf\x19\x16\x59",
23585                 .rlen   = 47,
23586         }, {
23587                 .key    = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
23588                           "\x82\x8e\x16\xb4\xed\x6d\x47\x12",
23589                 .klen   = 16,
23590                 .iv     = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
23591                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
23592                 .assoc  = "",
23593                 .alen   = 0,
23594                 .input  = "\xe2\xc9\x58\x15\xfc\x4f\xf8\xe8"
23595                           "\xe3\x32\x9b\x21\xe9\xc8\xd9\x97"
23596                           "\xde\x58\xab\xf0\xd3\xd8\x27\x60"
23597                           "\xd5\xaa\x43\x6b\xb1\x64\x95\xa4",
23598                 .ilen   = 32,
23599                 .result = "\x30\x82\x9c\x2b\x67\xcb\xf9\x1f"
23600                           "\xde\x9f\x77\xb2\xda\x92\x61\x5c"
23601                           "\x09\x0b\x2d\x9a\x26\xaa\x1c\x06"
23602                           "\xab\x74\xb7\x2b\x95\x5f\x9f\xa1"
23603                           "\x9a\xff\x50\xa0\xa2\xff\xc5\xad"
23604                           "\x21\x8e\x84\x5c\x12\x61\xb2\xae",
23605                 .rlen   = 48,
23606         }, {
23607                 .key    = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
23608                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
23609                 .klen   = 16,
23610                 .iv     = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
23611                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
23612                 .assoc  = "",
23613                 .alen   = 0,
23614                 .input  = "\x1f\xee\x92\xb4\x0c\xcb\xa1\x04"
23615                           "\x64\x0c\x4d\xb2\xe3\xec\x9c\x9d"
23616                           "\x09\x1a\xb7\x74\xd8\x78\xa9\x79"
23617                           "\x96\xd8\x22\x43\x8c\xc3\x34\x7b"
23618                           "\xc4",
23619                 .ilen   = 33,
23620                 .result = "\x67\x5d\x8e\x45\xc8\x39\xf5\x17"
23621                           "\xc1\x1d\x2a\xdd\x88\x67\xda\x1f"
23622                           "\x6d\xe8\x37\x28\x5a\xc1\x5e\x9f"
23623                           "\xa6\xec\xc6\x92\x05\x4b\xc0\xa3"
23624                           "\x63\xef\x88\xa4\x9b\x0a\x5c\xed"
23625                           "\x2b\x6a\xac\x63\x52\xaa\x10\x94"
23626                           "\xd0",
23627                 .rlen   = 49,
23628         }, {
23629                 .key    = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
23630                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f",
23631                 .klen   = 16,
23632                 .iv     = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
23633                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
23634                 .assoc  = "",
23635                 .alen   = 0,
23636                 .input  = "\x5c\x13\xcb\x54\x1c\x47\x4a\x1f"
23637                           "\xe5\xe6\xff\x44\xdd\x11\x5f\xa3"
23638                           "\x33\xdd\xc2\xf8\xdd\x18\x2b\x93"
23639                           "\x57\x05\x01\x1c\x66\x22\xd3\x51"
23640                           "\xd3\xdf\x18\xc9\x30\x66\xed\xb1"
23641                           "\x96\x58\xd5\x8c\x64\x8c\x7c\xf5"
23642                           "\x01\xd0\x74\x5f\x9b\xaa\xf6\xd1"
23643                           "\xe6\x16\xa2\xac\xde\x47\x40",
23644                 .ilen   = 63,
23645                 .result = "\x7d\x61\x1a\x35\x20\xcc\x07\x88"
23646                           "\x03\x98\x87\xcf\xc0\x6e\x4d\x19"
23647                           "\xe3\xd4\x0b\xfb\x29\x8f\x49\x1a"
23648                           "\x3a\x06\x77\xce\x71\x2c\xcd\xdd"
23649                           "\xed\xf6\xc9\xbe\xa6\x3b\xb8\xfc"
23650                           "\x6c\xbe\x77\xed\x74\x0e\x20\x85"
23651                           "\xd0\x65\xde\x24\x6f\xe3\x25\xc5"
23652                           "\xdf\x5b\x0f\xbd\x8a\x88\x78\xc9"
23653                           "\xe5\x81\x37\xde\x84\x7a\xf6\x84"
23654                           "\x99\x7a\x72\x9c\x54\x31\xa1",
23655                 .rlen   = 79,
23656         }, {
23657                 .key    = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
23658                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25",
23659                 .klen   = 16,
23660                 .iv     = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
23661                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
23662                 .assoc  = "",
23663                 .alen   = 0,
23664                 .input  = "\x98\x37\x05\xf3\x2c\xc2\xf3\x3b"
23665                           "\x66\xc0\xb1\xd5\xd7\x35\x21\xaa"
23666                           "\x5d\x9f\xce\x7c\xe2\xb8\xad\xad"
23667                           "\x19\x33\xe0\xf4\x40\x81\x72\x28"
23668                           "\xe1\x8b\x1c\xf8\x91\x78\xff\xaf"
23669                           "\xb0\x68\x69\xf2\x27\x35\x91\x84"
23670                           "\x2e\x37\x5b\x00\x04\xff\x16\x9c"
23671                           "\xb5\x19\x39\xeb\xd9\xcd\x29\x9a",
23672                 .ilen   = 64,
23673                 .result = "\x05\xc5\xb1\xf9\x1b\xb9\xab\x2c"
23674                           "\xa5\x07\x12\xa7\x12\x39\x60\x66"
23675                           "\x30\x81\x4a\x03\x78\x28\x45\x52"
23676                           "\xd2\x2b\x24\xfd\x8b\xa5\xb7\x66"
23677                           "\x6f\x45\xd7\x3b\x67\x6f\x51\xb9"
23678                           "\xc0\x3d\x6c\xca\x1e\xae\xff\xb6"
23679                           "\x79\xa9\xe4\x82\x5d\x4c\x2d\xdf"
23680                           "\xeb\x71\x40\xc9\x2c\x40\x45\x6d"
23681                           "\x73\x77\x01\xf3\x4f\xf3\x9d\x2a"
23682                           "\x5d\x57\xa8\xa1\x18\xa2\xad\xcb",
23683                 .rlen   = 80,
23684         }, {
23685                 .key    = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
23686                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b",
23687                 .klen   = 16,
23688                 .iv     = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
23689                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
23690                 .assoc  = "\xc5",
23691                 .alen   = 1,
23692                 .input  = "",
23693                 .ilen   = 0,
23694                 .result = "\x4d\xbf\x11\xac\x7f\x97\x0b\x2e"
23695                           "\x89\x3b\x9d\x0f\x83\x1c\x08\xc3",
23696                 .rlen   = 16,
23697         }, {
23698                 .key    = "\xe4\x25\xcd\xfa\x80\xdd\x46\xde"
23699                           "\x07\xd1\x90\x8b\xcf\x23\x15\x31",
23700                 .klen   = 16,
23701                 .iv     = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
23702                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
23703                 .assoc  = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
23704                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34"
23705                           "\xe8\x73\x62\x64\xab\x50\xd0\xda"
23706                           "\x6b\x83\x66\xaf\x3e\x27\xc9",
23707                 .alen   = 31,
23708                 .input  = "",
23709                 .ilen   = 0,
23710                 .result = "\x5b\xc0\x8d\x54\xe4\xec\xbe\x38"
23711                           "\x03\x12\xf9\xcc\x9e\x46\x42\x92",
23712                 .rlen   = 16,
23713         }, {
23714                 .key    = "\x20\x4a\x07\x99\x91\x58\xee\xfa"
23715                           "\x88\xab\x42\x1c\xc9\x47\xd7\x38",
23716                 .klen   = 16,
23717                 .iv     = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
23718                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
23719                 .assoc  = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
23720                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b"
23721                           "\x12\x35\x6e\xe8\xb0\xf0\x52\xf3"
23722                           "\x2d\xb0\x45\x87\x18\x86\x68\xf6",
23723                 .alen   = 32,
23724                 .input  = "",
23725                 .ilen   = 0,
23726                 .result = "\x48\xc5\xc3\x4c\x40\x2e\x2f\xc2"
23727                           "\x6d\x65\xe0\x67\x9c\x1d\xa0\xf0",
23728                 .rlen   = 16,
23729         }, {
23730                 .key    = "\x5d\x6f\x41\x39\xa1\xd4\x97\x16"
23731                           "\x09\x85\xf4\xae\xc3\x6b\x9a\x3e",
23732                 .klen   = 16,
23733                 .iv     = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
23734                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
23735                 .assoc  = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
23736                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
23737                           "\x3c\xf8\x79\x6c\xb6\x90\xd4\x0d"
23738                           "\xee\xde\x23\x60\xf2\xe5\x08\xcc"
23739                           "\x97",
23740                 .alen   = 33,
23741                 .input  = "",
23742                 .ilen   = 0,
23743                 .result = "\x28\x64\x78\x51\x55\xd8\x56\x4a"
23744                           "\x58\x3e\xf7\xbe\xee\x21\xfe\x94",
23745                 .rlen   = 16,
23746         }, {
23747                 .key    = "\x99\x93\x7a\xd8\xb1\x50\x40\x31"
23748                           "\x8a\x60\xa6\x3f\xbd\x90\x5d\x44",
23749                 .klen   = 16,
23750                 .iv     = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
23751                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
23752                 .assoc  = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
23753                           "\xca\xcd\xff\x88\xba\x22\xbe\x47"
23754                           "\x67\xba\x85\xf1\xbb\x30\x56\x26"
23755                           "\xaf\x0b\x02\x38\xcc\x44\xa7\xa3"
23756                           "\xa6\xbf\x31\x93\x60\xcd\xda\x63"
23757                           "\x2c\xb1\xaa\x19\xc8\x19\xf8\xeb"
23758                           "\x03\xa1\xe8\xbe\x37\x54\xec\xa2"
23759                           "\xcd\x2c\x45\x58\xbd\x8e\x80",
23760                 .alen   = 63,
23761                 .input  = "",
23762                 .ilen   = 0,
23763                 .result = "\xb3\xa6\x00\x4e\x09\x20\xac\x21"
23764                           "\x77\x72\x69\x76\x2d\x36\xe5\xc8",
23765                 .rlen   = 16,
23766         }, {
23767                 .key    = "\xd6\xb8\xb4\x77\xc1\xcb\xe9\x4d"
23768                           "\x0a\x3a\x58\xd1\xb7\xb4\x1f\x4a",
23769                 .klen   = 16,
23770                 .iv     = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
23771                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
23772                 .assoc  = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
23773                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
23774                           "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
23775                           "\x71\x39\xe1\x10\xa6\xa3\x46\x7a"
23776                           "\xb4\x6b\x35\xc2\xc1\xdf\xed\x60"
23777                           "\x46\xc1\x3e\x7f\x8c\xc2\x0e\x7a"
23778                           "\x30\x08\xd0\x5f\xa0\xaa\x0c\x6d"
23779                           "\x9c\x2f\xdb\x97\xb8\x15\x69\x01",
23780                 .alen   = 64,
23781                 .input  = "",
23782                 .ilen   = 0,
23783                 .result = "\x65\x33\x7b\xa1\x63\xf4\x20\xdd"
23784                           "\xe4\xb9\x4a\xaa\x9a\x21\xaa\x14",
23785                 .rlen   = 16,
23786         }, {
23787                 .key    = "\x12\xdd\xee\x17\xd1\x47\x92\x69"
23788                           "\x8b\x14\x0a\x62\xb1\xd9\xe2\x50",
23789                 .klen   = 16,
23790                 .iv     = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
23791                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
23792                 .assoc  = "\x31",
23793                 .alen   = 1,
23794                 .input  = "\x40",
23795                 .ilen   = 1,
23796                 .result = "\x1d\x47\x17\x34\x86\xf5\x54\x1a"
23797                           "\x6d\x28\xb8\x5d\x6c\xcf\xa0\xb9"
23798                           "\xbf",
23799                 .rlen   = 17,
23800         }, {
23801                 .key    = "\x4f\x01\x27\xb6\xe1\xc3\x3a\x85"
23802                           "\x0c\xee\xbc\xf4\xab\xfd\xa5\x57",
23803                 .klen   = 16,
23804                 .iv     = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
23805                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
23806                 .assoc  = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
23807                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a"
23808                           "\xe6\x01\xa8\x7e\xca\x10\xdc\x73"
23809                           "\xf4\x94\x9f\xc1\x5a\x61\x85",
23810                 .alen   = 31,
23811                 .input  = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
23812                           "\x6d\x92\x42\x61\xa7\x58\x37\xdb"
23813                           "\xb0\xb2\x2b\x9f\x0b\xb8\xbd\x7a"
23814                           "\x24\xa0\xd6\xb7\x11\x79\x6c",
23815                 .ilen   = 31,
23816                 .result = "\x78\x90\x52\xae\x0f\xf7\x2e\xef"
23817                           "\x63\x09\x08\x58\xb5\x56\xbd\x72"
23818                           "\x6e\x42\xcf\x27\x04\x7c\xdb\x92"
23819                           "\x18\xe9\xa4\x33\x90\xba\x62\xb5"
23820                           "\x70\xd3\x88\x9b\x4f\x05\xa7\x51"
23821                           "\x85\x87\x17\x09\x42\xed\x4e",
23822                 .rlen   = 47,
23823         }, {
23824                 .key    = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
23825                           "\x8d\xc8\x6e\x85\xa5\x21\x67\x5d",
23826                 .klen   = 16,
23827                 .iv     = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
23828                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
23829                 .assoc  = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
23830                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60"
23831                           "\x10\xc3\xb3\x02\xcf\xb0\x5e\x8d"
23832                           "\xb5\xc2\x7e\x9a\x35\xc0\x24\xfd",
23833                 .alen   = 32,
23834                 .input  = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
23835                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2"
23836                           "\xdb\x74\x36\x23\x11\x58\x3f\x93"
23837                           "\xe5\xcd\xb5\x90\xeb\xd8\x0c\xb3",
23838                 .ilen   = 32,
23839                 .result = "\x1d\x2c\x57\xe0\x50\x38\x3d\x41"
23840                           "\x2e\x71\xc8\x3b\x92\x43\x58\xaf"
23841                           "\x5a\xfb\xad\x8f\xd9\xd5\x8a\x5e"
23842                           "\xdb\xf3\xcd\x3a\x2b\xe1\x2c\x1a"
23843                           "\xb0\xed\xe3\x0c\x6e\xf9\xf2\xd6"
23844                           "\x90\xe6\xb1\x0e\xa5\x8a\xac\xb7",
23845                 .rlen   = 48,
23846         }, {
23847                 .key    = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
23848                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
23849                 .klen   = 16,
23850                 .iv     = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
23851                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
23852                 .assoc  = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
23853                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
23854                           "\x3b\x86\xbf\x86\xd4\x50\xe0\xa7"
23855                           "\x76\xef\x5c\x72\x0f\x1f\xc3\xd4"
23856                           "\xee",
23857                 .alen   = 33,
23858                 .input  = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
23859                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
23860                           "\x05\x36\x42\xa7\x16\xf8\xc1\xad"
23861                           "\xa7\xfb\x94\x68\xc5\x37\xab\x8a"
23862                           "\x72",
23863                 .ilen   = 33,
23864                 .result = "\x59\x10\x84\x1c\x83\x4c\x8b\xfc"
23865                           "\xfd\x2e\x4b\x46\x84\xff\x78\x4e"
23866                           "\x50\xda\x5c\xb9\x61\x1d\xf5\xb9"
23867                           "\xfe\xbb\x7f\xae\x8c\xc1\x24\xbd"
23868                           "\x8c\x6f\x1f\x9b\xce\xc6\xc1\x37"
23869                           "\x08\x06\x5a\xe5\x96\x10\x95\xc2"
23870                           "\x5e",
23871                 .rlen   = 49,
23872         }, {
23873                 .key    = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
23874                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69",
23875                 .klen   = 16,
23876                 .iv     = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
23877                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
23878                 .assoc  = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
23879                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
23880                           "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
23881                           "\x38\x1d\x3b\x4a\xe9\x7e\x62\xaa"
23882                           "\xfd\xc9\x4a\xa9\xa9\x39\x4b\x54"
23883                           "\xc8\x0e\x24\x7f\x5e\x10\x7a\x45"
23884                           "\x10\x0b\x56\x85\xad\x54\xaa\x66"
23885                           "\xa8\x43\xcd\xd4\x9b\xb7\xfa",
23886                 .alen   = 63,
23887                 .input  = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
23888                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
23889                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
23890                           "\x68\x28\x73\x40\x9f\x96\x4a\x60"
23891                           "\x80\xf4\x4b\xf4\xc1\x3d\xd0\x93"
23892                           "\xcf\x12\xc9\x59\x8f\x7a\x7f\xa8"
23893                           "\x1b\xa5\x50\xed\x87\xa9\x72\x59"
23894                           "\x9c\x44\xb2\xa4\x99\x98\x34",
23895                 .ilen   = 63,
23896                 .result = "\x9a\x12\xbc\xdf\x72\xa8\x56\x22"
23897                           "\x49\x2d\x07\x92\xfc\x3d\x6d\x5f"
23898                           "\xef\x36\x19\xae\x91\xfa\xd6\x63"
23899                           "\x46\xea\x8a\x39\x14\x21\xa6\x37"
23900                           "\x18\xfc\x97\x3e\x16\xa5\x4d\x39"
23901                           "\x45\x2e\x69\xcc\x9c\x5f\xdf\x6d"
23902                           "\x5e\xa2\xbf\xac\x83\x32\x72\x52"
23903                           "\x58\x58\x23\x40\xfd\xa5\xc2\xe6"
23904                           "\xe9\x5a\x50\x98\x00\x58\xc9\x86"
23905                           "\x4f\x20\x37\xdb\x7b\x22\xa3",
23906                 .rlen   = 79,
23907         }, {
23908                 .key    = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
23909                           "\x10\x57\x85\x39\x93\x8f\xaf\x70",
23910                 .klen   = 16,
23911                 .iv     = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
23912                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
23913                 .assoc  = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
23914                           "\x50\xc4\xde\x82\x90\x21\x11\x73"
23915                           "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
23916                           "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81"
23917                           "\x0b\x76\x4f\xd7\x0a\x4b\x5e\x51"
23918                           "\xe3\x1d\xb9\xe5\x21\xb9\x8f\xd4"
23919                           "\x3d\x72\x3e\x26\x16\xa9\xca\x32"
23920                           "\x77\x47\x63\x14\x95\x3d\xe4\x34",
23921                 .alen   = 64,
23922                 .input  = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
23923                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
23924                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
23925                           "\x29\x56\x52\x19\x79\xf5\xe9\x37"
23926                           "\x8f\xa1\x50\x23\x22\x4f\xe3\x91"
23927                           "\xe9\x21\x5e\xbf\x52\x23\x95\x37"
23928                           "\x48\x0c\x38\x8f\xf0\xff\x92\x24"
23929                           "\x6b\x47\x49\xe3\x94\x1f\x1e\x01",
23930                 .ilen   = 64,
23931                 .result = "\xe6\xeb\x92\x5a\x5b\xf0\x2d\xbb"
23932                           "\x23\xec\x35\xe3\xae\xc9\xfb\x0b"
23933                           "\x90\x14\x46\xeb\xa8\x8d\xb0\x9b"
23934                           "\x39\xda\x8b\x48\xec\xb2\x00\x4e"
23935                           "\x80\x6f\x46\x4f\x9b\x1e\xbb\x35"
23936                           "\xea\x5a\xbc\xa2\x36\xa5\x89\x45"
23937                           "\xc2\xd6\xd7\x15\x0b\xf6\x6c\x56"
23938                           "\xec\x99\x7d\x61\xb3\x15\x93\xed"
23939                           "\x83\x1e\xd9\x48\x84\x0b\x37\xfe"
23940                           "\x95\x74\x44\xd5\x54\xa6\x27\x06",
23941                 .rlen   = 80,
23942         }, {
23943                 .key    = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
23944                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76",
23945                 .klen   = 16,
23946                 .iv     = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
23947                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
23948                 .assoc  = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
23949                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
23950                           "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
23951                           "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58"
23952                           "\x1a\x22\x53\x05\x6b\x5c\x71\x4f"
23953                           "\xfd\x2d\x4d\x4c\xe5\x62\xa5\x63"
23954                           "\x6a\xda\x26\xc8\x7f\xff\xea\xfd"
23955                           "\x46\x4a\xfa\x53\x8f\xc4\xcd\x68"
23956                           "\x58",
23957                 .alen   = 65,
23958                 .input  = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
23959                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
23960                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
23961                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
23962                           "\x9d\x4d\x54\x51\x84\x61\xf6\x8e"
23963                           "\x03\x31\xf2\x25\x16\xcc\xaa\xc6"
23964                           "\x75\x73\x20\x30\x59\x54\xb2\xf0"
23965                           "\x3a\x4b\xe0\x23\x8e\xa6\x08\x35"
23966                           "\x8a\xdf\x27\xa0\xe4\x60\x99\xae"
23967                           "\x8e\x43\xd9\x39\x7b\x10\x40\x67"
23968                           "\x5c\x7e\xc9\x70\x63\x34\xca\x59"
23969                           "\xfe\x86\xbc\xb7\x9c\x39\xf3\x6d"
23970                           "\x6a\x41\x64\x6f\x16\x7f\x65\x7e"
23971                           "\x89\x84\x68\xeb\xb0\x51\xbe\x55"
23972                           "\x33\x16\x59\x6c\x3b\xef\x88\xad"
23973                           "\x2f\xab\xbc\x25\x76\x87\x41\x2f"
23974                           "\x36",
23975                 .ilen   = 129,
23976                 .result = "\x89\x24\x27\x86\xdc\xd7\x6b\xd9"
23977                           "\xd1\xcd\xdc\x16\xdd\x2c\xc1\xfb"
23978                           "\x52\xb5\xb3\xab\x50\x99\x3f\xa0"
23979                           "\x38\xa4\x74\xa5\x04\x15\x63\x05"
23980                           "\x8f\x54\x81\x06\x5a\x6b\xa4\x63"
23981                           "\x6d\xa7\x21\xcb\xff\x42\x30\x8e"
23982                           "\x3b\xd1\xca\x3f\x4b\x1a\xb8\xc3"
23983                           "\x42\x01\xe6\xbc\x75\x15\x87\xee"
23984                           "\xc9\x8e\x65\x01\xd9\xd8\xb5\x9f"
23985                           "\x48\x86\xa6\x5f\x2c\xc7\xb5\xb0"
23986                           "\xed\x5d\x14\x7c\x3f\x40\xb1\x0b"
23987                           "\x72\xef\x94\x8d\x7a\x85\x56\xe5"
23988                           "\x56\x08\x15\x56\xba\xaf\xbd\xf0"
23989                           "\x20\xef\xa0\xf6\xa9\xad\xa2\xc9"
23990                           "\x1c\x3b\x28\x51\x7e\x77\xb2\x18"
23991                           "\x4f\x61\x64\x37\x22\x36\x6d\x78"
23992                           "\xed\xed\x35\xe8\x83\xa5\xec\x25"
23993                           "\x6b\xff\x5f\x1a\x09\x96\x3d\xdc"
23994                           "\x20",
23995                 .rlen   = 145,
23996         }, {
23997                 .key    = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
23998                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c",
23999                 .klen   = 16,
24000                 .iv     = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
24001                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
24002                 .assoc  = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
24003                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
24004                           "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
24005                           "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e"
24006                           "\x28\xce\x57\x34\xcd\x6e\x84\x4c"
24007                           "\x17\x3c\xe1\xb2\xa8\x0b\xbb\xf1"
24008                           "\x96\x41\x0d\x69\xe8\x54\x0a\xc8"
24009                           "\x15\x4e\x91\x92\x89\x4b\xb7\x9b"
24010                           "\x21\xf7\x42\x89\xac\x12\x2a\x54"
24011                           "\x69\xee\x18\xc7\x8d\xed\xe8\xfd"
24012                           "\xbb\x04\x28\xe6\x8a\x3c\x98\xc1"
24013                           "\x04\x2d\xa9\xa1\x24\x83\xff\xe9"
24014                           "\x55\x7a\xf0\xd1\xf6\x63\x05\xe1"
24015                           "\xd9\x1e\x75\x72\xc1\x9f\xae\x32"
24016                           "\xe1\x6b\xcd\x9e\x61\x19\x23\x86"
24017                           "\xd9\xd2\xaf\x8e\xd5\xd3\xa8\xa9"
24018                           "\x51",
24019                 .alen   = 129,
24020                 .input  = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
24021                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
24022                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
24023                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
24024                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
24025                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
24026                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
24027                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
24028                           "\x54",
24029                 .ilen   = 65,
24030                 .result = "\x36\x78\xb9\x22\xde\x62\x35\x55"
24031                           "\x1a\x7a\xf5\x45\xbc\xd7\x15\x82"
24032                           "\x01\xe9\x5a\x07\xea\x46\xaf\x91"
24033                           "\xcb\x73\xa5\xee\xe1\xb4\xbf\xc2"
24034                           "\xdb\xd2\x9d\x59\xde\xfc\x83\x00"
24035                           "\xf5\x46\xac\x97\xd5\x57\xa9\xb9"
24036                           "\x1f\x8c\xe8\xca\x68\x8b\x91\x0c"
24037                           "\x01\xbe\x0a\xaf\x7c\xf6\x67\xa4"
24038                           "\xbf\xbc\x88\x3f\x5d\xd1\xf9\x19"
24039                           "\x0f\x9d\xb2\xaf\xb9\x6e\x17\xdf"
24040                           "\xa2",
24041                 .rlen   = 81,
24042         }, {
24043                 .key    = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
24044                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82",
24045                 .klen   = 16,
24046                 .iv     = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
24047                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
24048                 .assoc  = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
24049                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85"
24050                           "\x0e\x51\xf9\x1c\xee\x70\x6a\x27"
24051                           "\x3d\xd3\xb7\xac\x51\xfa\xdf\x05",
24052                 .alen   = 32,
24053                 .input  = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
24054                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07"
24055                           "\xd9\x02\x7c\x3d\x2f\x18\x4b\x2d"
24056                           "\x6e\xde\xee\xa2\x08\x12\xc7\xba",
24057                 .ilen   = 32,
24058                 .result = "\x08\x1b\x95\x0e\x41\x95\x02\x4b"
24059                           "\x9c\xbb\xa8\xd0\x7c\xd3\x44\x6e"
24060                           "\x89\x14\x33\x70\x0a\xbc\xea\x39"
24061                           "\x88\xaa\x2b\xd5\x73\x11\x55\xf5"
24062                           "\x33\x33\x9c\xd7\x42\x34\x49\x8e"
24063                           "\x2f\x03\x30\x05\x47\xaf\x34",
24064                 .rlen   = 47,
24065         }, {
24066                 .key    = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
24067                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
24068                 .klen   = 16,
24069                 .iv     = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
24070                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
24071                 .assoc  = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
24072                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c"
24073                           "\x39\x14\x05\xa0\xf3\x10\xec\x41"
24074                           "\xff\x01\x95\x84\x2b\x59\x7f\xdb",
24075                 .alen   = 32,
24076                 .input  = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
24077                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d"
24078                           "\x03\xc4\x88\xc1\x35\xb8\xcd\x47"
24079                           "\x2f\x0c\xcd\x7a\xe2\x71\x66\x91",
24080                 .ilen   = 32,
24081                 .result = "\x97\xca\xf4\xe0\x8d\x89\xbf\x68"
24082                           "\x0c\x60\xb9\x27\xdf\xaa\x41\xc6"
24083                           "\x25\xd8\xf7\x1f\x10\x15\x48\x61"
24084                           "\x4c\x95\x00\xdf\x51\x9b\x7f\xe6"
24085                           "\x24\x40\x9e\xbe\x3b\xeb\x1b\x98"
24086                           "\xb9\x9c\xe5\xef\xf2\x05",
24087                 .rlen   = 46,
24088         }, {
24089                 .key    = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
24090                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
24091                 .klen   = 16,
24092                 .iv     = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
24093                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
24094                 .assoc  = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
24095                           "\xd5\x07\x58\x59\x72\xd7\xde\x92"
24096                           "\x63\xd6\x10\x24\xf8\xb0\x6e\x5a"
24097                           "\xc0\x2e\x74\x5d\x06\xb8\x1e\xb2",
24098                 .alen   = 32,
24099                 .input  = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
24100                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13"
24101                           "\x2e\x86\x93\x45\x3a\x58\x4f\x61"
24102                           "\xf0\x3a\xac\x53\xbc\xd0\x06\x68",
24103                 .ilen   = 32,
24104                 .result = "\x63\x4c\x2a\x8e\xb4\x6b\x63\x0d"
24105                           "\xb5\xec\x9b\x4e\x12\x23\xa3\xcf"
24106                           "\x1a\x5a\x70\x15\x5a\x10\x40\x51"
24107                           "\xca\x47\x4c\x9d\xc9\x97\xf4\x77"
24108                           "\xdb\xc8\x10\x2d\xdc\x65\x20\x3f",
24109                 .rlen   = 40,
24110         }, {
24111                 .key    = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
24112                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
24113                 .klen   = 16,
24114                 .iv     = "\xbb\x3a\xf7\x57\xc6\x36\x7c\x22"
24115                           "\x36\xab\xde\xc6\x6d\x32\x70\x17",
24116                 .assoc  = "\xcb\x03\x85\xbf\x0a\xd5\x26\xa9"
24117                           "\x56\xe1\x0a\xeb\x6c\xfb\xa1\x98"
24118                           "\x8d\x98\x1c\xa8\xfe\x50\xf0\x74"
24119                           "\x81\x5c\x53\x35\xe0\x17\xbd\x88",
24120                 .alen   = 32,
24121                 .input  = "\xda\xcc\x14\x27\x4e\x74\xd1\x30"
24122                           "\x76\x18\x37\x0f\x6a\xc4\xd1\x1a"
24123                           "\x58\x49\x9f\xc9\x3f\xf8\xd1\x7a"
24124                           "\xb2\x67\x8b\x2b\x96\x2f\xa5\x3e",
24125                 .ilen   = 32,
24126                 .result = "\xf1\x62\x44\xc7\x5f\x19\xca\x43"
24127                           "\x47\x2c\xaf\x68\x82\xbd\x51\xef"
24128                           "\x3d\x65\xd8\x45\x2d\x06\x07\x78"
24129                           "\x08\x2e\xb3\x23\xcd\x81\x12\x55"
24130                           "\x1a",
24131                 .rlen   = 33,
24132         }, {
24133                 .key    = "\xe9\x95\xa2\x8f\x93\x13\x7b\xb7"
24134                           "\x96\x4e\x63\x33\x69\x8d\x02\x9b"
24135                           "\x23\xf9\x22\xeb\x80\xa0\xb1\x81"
24136                           "\xe2\x73\xc3\x21\x4d\x47\x8d\xf4",
24137                 .klen   = 32,
24138                 .iv     = "\xf8\x5e\x31\xf7\xd7\xb2\x25\x3e"
24139                           "\xb7\x85\x90\x58\x67\x57\x33\x1d",
24140                 .assoc  = "",
24141                 .alen   = 0,
24142                 .input  = "",
24143                 .ilen   = 0,
24144                 .result = "\xdf\x2f\x83\xc0\x45\x4a\x2c\xcf"
24145                           "\xb9\xd2\x41\xf6\x80\xa1\x52\x70",
24146                 .rlen   = 16,
24147         }, {
24148                 .key    = "\x25\xba\xdc\x2e\xa3\x8f\x24\xd3"
24149                           "\x17\x29\x15\xc5\x63\xb2\xc5\xa1"
24150                           "\x4d\xbc\x2d\x6f\x85\x40\x33\x9a"
24151                           "\xa3\xa0\xa1\xfa\x27\xa6\x2c\xca",
24152                 .klen   = 32,
24153                 .iv     = "\x34\x83\x6a\x96\xe7\x2d\xce\x5a"
24154                           "\x38\x5f\x42\xe9\x61\x7b\xf5\x23",
24155                 .assoc  = "",
24156                 .alen   = 0,
24157                 .input  = "\x53",
24158                 .ilen   = 1,
24159                 .result = "\x01\xd8\x55\x3c\xc0\x5a\x4b\xc7"
24160                           "\x01\xf4\x08\xe3\x0d\xf7\xf0\x78"
24161                           "\x53",
24162                 .rlen   = 17,
24163         }, {
24164                 .key    = "\x62\xdf\x16\xcd\xb3\x0a\xcc\xef"
24165                           "\x98\x03\xc7\x56\x5d\xd6\x87\xa8"
24166                           "\x77\x7e\x39\xf3\x8a\xe0\xb5\xb4"
24167                           "\x65\xce\x80\xd2\x01\x05\xcb\xa1",
24168                 .klen   = 32,
24169                 .iv     = "\x71\xa8\xa4\x35\xf7\xa9\x76\x75"
24170                           "\xb8\x39\xf4\x7a\x5b\x9f\xb8\x29",
24171                 .assoc  = "",
24172                 .alen   = 0,
24173                 .input  = "\x8f\x3a\xc1\x05\x7f\xe7\xcb\x83"
24174                           "\xf9\xa6\x4d\xc3\x58\x31\x19\x2c"
24175                           "\xd7\x90\xc2\x56\x4e\xd8\x57\xc7"
24176                           "\xf6\xf0\x27\xb4\x25\x4c\x83",
24177                 .ilen   = 31,
24178                 .result = "\xc2\x4b\x41\x0f\x2d\xb9\x62\x07"
24179                           "\xff\x8e\x74\xf8\xa1\xa6\xd5\x37"
24180                           "\xa5\x64\x31\x5c\xca\x73\x9b\x43"
24181                           "\xe6\x70\x63\x46\x95\xcb\xf7\xb5"
24182                           "\x20\x8c\x75\x7a\x2a\x17\x2f\xa9"
24183                           "\xb8\x4d\x11\x42\xd1\xf8\xf1",
24184                 .rlen   = 47,
24185         }, {
24186                 .key    = "\x9e\x03\x4f\x6d\xc3\x86\x75\x0a"
24187                           "\x19\xdd\x79\xe8\x57\xfb\x4a\xae"
24188                           "\xa2\x40\x45\x77\x90\x80\x37\xce"
24189                           "\x26\xfb\x5f\xaa\xdb\x64\x6b\x77",
24190                 .klen   = 32,
24191                 .iv     = "\xae\xcc\xde\xd5\x07\x25\x1f\x91"
24192                           "\x39\x14\xa6\x0c\x55\xc4\x7b\x30",
24193                 .assoc  = "",
24194                 .alen   = 0,
24195                 .input  = "\xcc\x5f\xfb\xa4\x8f\x63\x74\x9f"
24196                           "\x7a\x81\xff\x55\x52\x56\xdc\x33"
24197                           "\x01\x52\xcd\xdb\x53\x78\xd9\xe1"
24198                           "\xb7\x1d\x06\x8d\xff\xab\x22\x98",
24199                 .ilen   = 32,
24200                 .result = "\xbb\x01\x7c\xd1\x2c\x33\x7b\x37"
24201                           "\x0a\xee\xc4\x30\x19\xd7\x3a\x6f"
24202                           "\xf8\x2b\x67\xf5\x3b\x84\x87\x2a"
24203                           "\xfb\x07\x7a\x82\xb5\xe4\x85\x26"
24204                           "\x1e\xa8\xe5\x04\x54\xce\xe5\x5f"
24205                           "\xb5\x3f\xc1\xd5\x7f\xbd\xd2\xa6",
24206                 .rlen   = 48,
24207         }, {
24208                 .key    = "\xdb\x28\x89\x0c\xd3\x01\x1e\x26"
24209                           "\x9a\xb7\x2b\x79\x51\x1f\x0d\xb4"
24210                           "\xcc\x03\x50\xfc\x95\x20\xb9\xe7"
24211                           "\xe8\x29\x3e\x83\xb5\xc3\x0a\x4e",
24212                 .klen   = 32,
24213                 .iv     = "\xea\xf1\x18\x74\x17\xa0\xc8\xad"
24214                           "\xba\xee\x58\x9d\x4f\xe8\x3d\x36",
24215                 .assoc  = "",
24216                 .alen   = 0,
24217                 .input  = "\x08\x84\x34\x44\x9f\xde\x1c\xbb"
24218                           "\xfb\x5b\xb1\xe6\x4c\x7a\x9f\x39"
24219                           "\x2c\x14\xd9\x5f\x59\x18\x5b\xfb"
24220                           "\x79\x4b\xe5\x65\xd9\x0a\xc1\x6f"
24221                           "\x2e",
24222                 .ilen   = 33,
24223                 .result = "\xc2\xf4\x40\x55\xf9\x59\xff\x73"
24224                           "\x08\xf5\x98\x92\x0c\x7b\x35\x9a"
24225                           "\xa8\xf4\x42\x7e\x6f\x93\xca\x22"
24226                           "\x23\x06\x1e\xf8\x89\x22\xf4\x46"
24227                           "\x7c\x7c\x67\x75\xab\xe5\x75\xaa"
24228                           "\x15\xd7\x83\x19\xfd\x31\x59\x5b"
24229                           "\x32",
24230                 .rlen   = 49,
24231         }, {
24232                 .key    = "\x17\x4d\xc3\xab\xe3\x7d\xc7\x42"
24233                           "\x1b\x91\xdd\x0a\x4b\x43\xcf\xba"
24234                           "\xf6\xc5\x5c\x80\x9a\xc0\x3b\x01"
24235                           "\xa9\x56\x1d\x5b\x8f\x22\xa9\x25",
24236                 .klen   = 32,
24237                 .iv     = "\x27\x16\x51\x13\x27\x1c\x71\xc9"
24238                           "\x3b\xc8\x0a\x2f\x49\x0c\x00\x3c",
24239                 .assoc  = "",
24240                 .alen   = 0,
24241                 .input  = "\x45\xa8\x6e\xe3\xaf\x5a\xc5\xd7"
24242                           "\x7c\x35\x63\x77\x46\x9f\x61\x3f"
24243                           "\x56\xd7\xe4\xe3\x5e\xb8\xdc\x14"
24244                           "\x3a\x79\xc4\x3e\xb3\x69\x61\x46"
24245                           "\x3c\xb6\x83\x4e\xb4\x26\xc7\x73"
24246                           "\x22\xda\x52\x8b\x7d\x11\x98\xea"
24247                           "\x62\xe1\x14\x1e\xdc\xfe\x0f\xad"
24248                           "\x20\x76\x5a\xdc\x4e\x71\x13",
24249                 .ilen   = 63,
24250                 .result = "\xc9\x82\x3b\x4b\x87\x84\xa5\xdb"
24251                           "\xa0\x8c\xd3\x3e\x7f\x8d\xe8\x28"
24252                           "\x2a\xdc\xfa\x01\x84\x87\x9a\x70"
24253                           "\x81\x75\x37\x0a\xd2\x75\xa9\xb6"
24254                           "\x21\x72\xee\x7e\x65\x95\xe5\xcc"
24255                           "\x01\xb7\x39\xa6\x51\x15\xca\xff"
24256                           "\x61\xdc\x97\x38\xcc\xf4\xca\xc7"
24257                           "\x83\x9b\x05\x11\x72\x60\xf0\xb4"
24258                           "\x7e\x06\xab\x0a\xc0\xbb\x59\x23"
24259                           "\xaa\x2d\xfc\x4e\x35\x05\x59",
24260                 .rlen   = 79,
24261         }, {
24262                 .key    = "\x54\x71\xfd\x4b\xf3\xf9\x6f\x5e"
24263                           "\x9c\x6c\x8f\x9c\x45\x68\x92\xc1"
24264                           "\x21\x87\x67\x04\x9f\x60\xbd\x1b"
24265                           "\x6a\x84\xfc\x34\x6a\x81\x48\xfb",
24266                 .klen   = 32,
24267                 .iv     = "\x63\x3b\x8b\xb3\x37\x98\x1a\xe5"
24268                           "\xbc\xa2\xbc\xc0\x43\x31\xc2\x42",
24269                 .assoc  = "",
24270                 .alen   = 0,
24271                 .input  = "\x81\xcd\xa8\x82\xbf\xd6\x6e\xf3"
24272                           "\xfd\x0f\x15\x09\x40\xc3\x24\x45"
24273                           "\x81\x99\xf0\x67\x63\x58\x5e\x2e"
24274                           "\xfb\xa6\xa3\x16\x8d\xc8\x00\x1c"
24275                           "\x4b\x62\x87\x7c\x15\x38\xda\x70"
24276                           "\x3d\xea\xe7\xf2\x40\xba\xae\x79"
24277                           "\x8f\x48\xfc\xbf\x45\x53\x2e\x78"
24278                           "\xef\x79\xf0\x1b\x49\xf7\xfd\x9c",
24279                 .ilen   = 64,
24280                 .result = "\x11\x7c\x7d\xef\xce\x29\x95\xec"
24281                           "\x7e\x9f\x42\xa6\x26\x07\xa1\x75"
24282                           "\x2f\x4e\x09\x9a\xf6\x6b\xc2\xfa"
24283                           "\x0d\xd0\x17\xdc\x25\x1e\x9b\xdc"
24284                           "\x5f\x8c\x1c\x60\x15\x4f\x9b\x20"
24285                           "\x7b\xff\xcd\x82\x60\x84\xf4\xa5"
24286                           "\x20\x9a\x05\x19\x5b\x02\x0a\x72"
24287                           "\x43\x11\x26\x58\xcf\xc5\x41\xcf"
24288                           "\x13\xcc\xde\x32\x92\xfa\x86\xf2"
24289                           "\xaf\x16\xe8\x8f\xca\xb6\xfd\x54",
24290                 .rlen   = 80,
24291         }, {
24292                 .key    = "\x90\x96\x36\xea\x03\x74\x18\x7a"
24293                           "\x1d\x46\x42\x2d\x3f\x8c\x54\xc7"
24294                           "\x4b\x4a\x73\x89\xa4\x00\x3f\x34"
24295                           "\x2c\xb1\xdb\x0c\x44\xe0\xe8\xd2",
24296                 .klen   = 32,
24297                 .iv     = "\xa0\x5f\xc5\x52\x47\x13\xc2\x01"
24298                           "\x3d\x7c\x6e\x52\x3d\x55\x85\x48",
24299                 .assoc  = "\xaf",
24300                 .alen   = 1,
24301                 .input  = "",
24302                 .ilen   = 0,
24303                 .result = "\x9b\xc5\x3b\x20\x0a\x88\x56\xbe"
24304                           "\x69\xdf\xc4\xc4\x02\x46\x3a\xf0",
24305                 .rlen   = 16,
24306         }, {
24307                 .key    = "\xcd\xbb\x70\x89\x13\xf0\xc1\x95"
24308                           "\x9e\x20\xf4\xbf\x39\xb1\x17\xcd"
24309                           "\x76\x0c\x7f\x0d\xa9\xa0\xc1\x4e"
24310                           "\xed\xdf\xb9\xe4\x1e\x3f\x87\xa8",
24311                 .klen   = 32,
24312                 .iv     = "\xdc\x84\xfe\xf1\x58\x8f\x6b\x1c"
24313                           "\xbe\x57\x20\xe3\x37\x7a\x48\x4f",
24314                 .assoc  = "\xeb\x4d\x8d\x59\x9c\x2e\x15\xa3"
24315                           "\xde\x8d\x4d\x07\x36\x43\x78\xd0"
24316                           "\x0b\x6d\x84\x4f\x2c\xf0\x82\x5b"
24317                           "\x4e\xf6\x29\xd1\x8b\x6f\x56",
24318                 .alen   = 31,
24319                 .input  = "",
24320                 .ilen   = 0,
24321                 .result = "\xe0\x6d\xa1\x07\x98\x2f\x40\x2d"
24322                           "\x2e\x9a\xd6\x61\x43\xc0\x74\x69",
24323                 .rlen   = 16,
24324         }, {
24325                 .key    = "\x0a\xe0\xaa\x29\x24\x6c\x6a\xb1"
24326                           "\x1f\xfa\xa6\x50\x33\xd5\xda\xd3"
24327                           "\xa0\xce\x8a\x91\xae\x40\x43\x68"
24328                           "\xae\x0d\x98\xbd\xf8\x9e\x26\x7f",
24329                 .klen   = 32,
24330                 .iv     = "\x19\xa9\x38\x91\x68\x0b\x14\x38"
24331                           "\x3f\x31\xd2\x74\x31\x9e\x0a\x55",
24332                 .assoc  = "\x28\x72\xc7\xf8\xac\xaa\xbe\xbf"
24333                           "\x5f\x67\xff\x99\x30\x67\x3b\xd6"
24334                           "\x35\x2f\x90\xd3\x31\x90\x04\x74"
24335                           "\x0f\x23\x08\xa9\x65\xce\xf6\xea",
24336                 .alen   = 32,
24337                 .input  = "",
24338                 .ilen   = 0,
24339                 .result = "\xb9\x57\x13\x3e\x82\x31\x61\x65"
24340                           "\x0d\x7f\x6c\x96\x93\x5c\x50\xe2",
24341                 .rlen   = 16,
24342         }, {
24343                 .key    = "\x46\x04\xe3\xc8\x34\xe7\x12\xcd"
24344                           "\xa0\xd4\x58\xe2\x2d\xf9\x9c\xda"
24345                           "\xca\x91\x96\x15\xb4\xe0\xc5\x81"
24346                           "\x70\x3a\x77\x95\xd2\xfd\xc5\x55",
24347                 .klen   = 32,
24348                 .iv     = "\x55\xcd\x72\x30\x78\x86\xbd\x54"
24349                           "\xc0\x0b\x84\x06\x2b\xc2\xcd\x5b",
24350                 .assoc  = "\x64\x97\x00\x98\xbc\x25\x67\xdb"
24351                           "\xe0\x41\xb1\x2a\x2a\x8c\xfe\xdd"
24352                           "\x5f\xf2\x9c\x58\x36\x30\x86\x8e"
24353                           "\xd1\x51\xe6\x81\x3f\x2d\x95\xc1"
24354                           "\x01",
24355                 .alen   = 33,
24356                 .input  = "",
24357                 .ilen   = 0,
24358                 .result = "\x81\x96\x34\xde\xbb\x36\xdd\x3e"
24359                           "\x4e\x5e\xcb\x44\x21\xb8\x3f\xf1",
24360                 .rlen   = 16,
24361         }, {
24362                 .key    = "\x83\x29\x1d\x67\x44\x63\xbb\xe9"
24363                           "\x20\xaf\x0a\x73\x27\x1e\x5f\xe0"
24364                           "\xf5\x53\xa1\x9a\xb9\x80\x47\x9b"
24365                           "\x31\x68\x56\x6e\xac\x5c\x65\x2c",
24366                 .klen   = 32,
24367                 .iv     = "\x92\xf2\xac\xcf\x88\x02\x65\x70"
24368                           "\x41\xe5\x36\x97\x25\xe7\x90\x61",
24369                 .assoc  = "\xa1\xbb\x3a\x37\xcc\xa1\x10\xf7"
24370                           "\x61\x1c\x63\xbc\x24\xb0\xc0\xe3"
24371                           "\x8a\xb4\xa7\xdc\x3b\xd0\x08\xa8"
24372                           "\x92\x7f\xc5\x5a\x19\x8c\x34\x97"
24373                           "\x0f\x95\x9b\x18\xe4\x8d\xb4\x24"
24374                           "\xb9\x33\x28\x18\xe1\x9d\x14\xe0"
24375                           "\x64\xb2\x89\x7d\x78\xa8\x05\x7e"
24376                           "\x07\x8c\xfc\x88\x2d\xb8\x53",
24377                 .alen   = 63,
24378                 .input  = "",
24379                 .ilen   = 0,
24380                 .result = "\x2e\x99\xb6\x79\x57\x56\x80\x36"
24381                           "\x8e\xc4\x1c\x12\x7d\x71\x36\x0c",
24382                 .rlen   = 16,
24383         }, {
24384                 .key    = "\xbf\x4e\x57\x07\x54\xdf\x64\x05"
24385                           "\xa1\x89\xbc\x04\x21\x42\x22\xe6"
24386                           "\x1f\x15\xad\x1e\xbe\x20\xc9\xb4"
24387                           "\xf3\x95\x35\x46\x86\xbb\x04\x03",
24388                 .klen   = 32,
24389                 .iv     = "\xce\x17\xe5\x6f\x98\x7e\x0e\x8c"
24390                           "\xc2\xbf\xe8\x29\x1f\x0b\x52\x68",
24391                 .assoc  = "\xdd\xe0\x74\xd6\xdc\x1d\xb8\x13"
24392                           "\xe2\xf6\x15\x4d\x1e\xd4\x83\xe9"
24393                           "\xb4\x76\xb3\x60\x40\x70\x8a\xc1"
24394                           "\x53\xac\xa4\x32\xf3\xeb\xd3\x6e"
24395                           "\x1e\x42\xa0\x46\x45\x9f\xc7\x22"
24396                           "\xd3\x43\xbc\x7e\xa5\x47\x2a\x6f"
24397                           "\x91\x19\x70\x1e\xe1\xfe\x25\x49"
24398                           "\xd6\x8f\x93\xc7\x28\x3f\x3d\x03",
24399                 .alen   = 64,
24400                 .input  = "",
24401                 .ilen   = 0,
24402                 .result = "\x7b\x25\x3d\x47\xd4\xa7\x08\xce"
24403                           "\x3b\x89\x40\x36\xba\x6d\x0e\xa2",
24404                 .rlen   = 16,
24405         }, {
24406                 .key    = "\xfc\x72\x90\xa6\x64\x5a\x0d\x21"
24407                           "\x22\x63\x6e\x96\x1b\x67\xe4\xec"
24408                           "\x49\xd7\xb9\xa2\xc3\xc0\x4b\xce"
24409                           "\xb4\xc3\x14\x1e\x61\x1a\xa3\xd9",
24410                 .klen   = 32,
24411                 .iv     = "\x0b\x3c\x1f\x0e\xa8\xf9\xb7\xa7"
24412                           "\x42\x9a\x9a\xba\x19\x30\x15\x6e",
24413                 .assoc  = "\x1a",
24414                 .alen   = 1,
24415                 .input  = "\x29",
24416                 .ilen   = 1,
24417                 .result = "\xe6\x09\x6f\x95\x9a\x18\xc8\xf6"
24418                           "\x17\x75\x81\x16\xdf\x26\xff\x67"
24419                           "\x92",
24420                 .rlen   = 17,
24421         }, {
24422                 .key    = "\x38\x97\xca\x45\x74\xd6\xb6\x3c"
24423                           "\xa3\x3d\x20\x27\x15\x8b\xa7\xf2"
24424                           "\x74\x9a\xc4\x27\xc8\x60\xcd\xe8"
24425                           "\x75\xf0\xf2\xf7\x3b\x79\x42\xb0",
24426                 .klen   = 32,
24427                 .iv     = "\x47\x60\x59\xad\xb8\x75\x60\xc3"
24428                           "\xc3\x74\x4c\x4c\x13\x54\xd8\x74",
24429                 .assoc  = "\x56\x29\xe7\x15\xfc\x14\x0a\x4a"
24430                           "\xe4\xaa\x79\x70\x12\x1d\x08\xf6"
24431                           "\x09\xfb\xca\x69\x4b\xb0\x8e\xf5"
24432                           "\xd6\x07\x62\xe3\xa8\xa9\x12",
24433                 .alen   = 31,
24434                 .input  = "\x66\xf3\x75\x7d\x40\xb3\xb4\xd1"
24435                           "\x04\xe1\xa6\x94\x10\xe6\x39\x77"
24436                           "\xd3\xac\x4d\x8a\x8c\x58\x6e\xfb"
24437                           "\x06\x13\x9a\xd9\x5e\xc0\xfa",
24438                 .ilen   = 31,
24439                 .result = "\x82\xc0\x56\xf0\xd7\xc4\xc9\xfd"
24440                           "\x3c\xd1\x2a\xd4\x15\x86\x9d\xda"
24441                           "\xea\x6c\x6f\xa1\x33\xb0\x7a\x01"
24442                           "\x57\xe7\xf3\x7b\x73\xe7\x54\x10"
24443                           "\xc6\x91\xe2\xc6\xa0\x69\xe7\xe6"
24444                           "\x76\xc3\xf5\x3a\x76\xfd\x4a",
24445                 .rlen   = 47,
24446         }, {
24447                 .key    = "\x75\xbc\x04\xe5\x84\x52\x5e\x58"
24448                           "\x24\x17\xd2\xb9\x0e\xaf\x6a\xf9"
24449                           "\x9e\x5c\xd0\xab\xcd\x00\x4f\x01"
24450                           "\x37\x1e\xd1\xcf\x15\xd8\xe2\x86",
24451                 .klen   = 32,
24452                 .iv     = "\x84\x85\x92\x4d\xc8\xf1\x08\xdf"
24453                           "\x44\x4e\xff\xdd\x0d\x78\x9a\x7a",
24454                 .assoc  = "\x93\x4e\x21\xb4\x0c\x90\xb3\x66"
24455                           "\x65\x84\x2b\x01\x0b\x42\xcb\xfc"
24456                           "\x33\xbd\xd6\xed\x50\x50\x10\x0e"
24457                           "\x97\x35\x41\xbb\x82\x08\xb1\xf2",
24458                 .alen   = 32,
24459                 .input  = "\xa2\x17\xaf\x1c\x50\x2e\x5d\xed"
24460                           "\x85\xbb\x58\x26\x0a\x0b\xfc\x7d"
24461                           "\xfe\x6e\x59\x0e\x91\xf8\xf0\x15"
24462                           "\xc8\x40\x78\xb1\x38\x1f\x99\xa7",
24463                 .ilen   = 32,
24464                 .result = "\x01\x47\x8e\x6c\xf6\x64\x89\x3a"
24465                           "\x71\xce\xe4\xaa\x45\x70\xe6\x84"
24466                           "\x62\x48\x08\x64\x86\x6a\xdf\xec"
24467                           "\xb4\xa0\xfb\x34\x03\x0c\x19\xf4"
24468                           "\x2b\x7b\x36\x73\xec\x54\xa9\x1e"
24469                           "\x30\x85\xdb\xe4\xac\xe9\x2c\xca",
24470                 .rlen   = 48,
24471         }, {
24472                 .key    = "\xb1\xe1\x3e\x84\x94\xcd\x07\x74"
24473                           "\xa5\xf2\x84\x4a\x08\xd4\x2c\xff"
24474                           "\xc8\x1e\xdb\x2f\xd2\xa0\xd1\x1b"
24475                           "\xf8\x4c\xb0\xa8\xef\x37\x81\x5d",
24476                 .klen   = 32,
24477                 .iv     = "\xc0\xaa\xcc\xec\xd8\x6c\xb1\xfb"
24478                           "\xc5\x28\xb1\x6e\x07\x9d\x5d\x81",
24479                 .assoc  = "\xd0\x73\x5a\x54\x1d\x0b\x5b\x82"
24480                           "\xe5\x5f\xdd\x93\x05\x66\x8e\x02"
24481                           "\x5e\x80\xe1\x71\x55\xf0\x92\x28"
24482                           "\x59\x62\x20\x94\x5c\x67\x50\xc8"
24483                           "\x58",
24484                 .alen   = 33,
24485                 .input  = "\xdf\x3c\xe9\xbc\x61\xaa\x06\x09"
24486                           "\x06\x95\x0a\xb7\x04\x2f\xbe\x84"
24487                           "\x28\x30\x64\x92\x96\x98\x72\x2e"
24488                           "\x89\x6e\x57\x8a\x13\x7e\x38\x7e"
24489                           "\xdb",
24490                 .ilen   = 33,
24491                 .result = "\x85\xe0\xf8\x0f\x8e\x49\xe3\x60"
24492                           "\xcb\x4a\x54\x94\xcf\xf5\x7e\x34"
24493                           "\xe9\xf8\x80\x65\x53\xd0\x72\x70"
24494                           "\x4f\x7d\x9d\xd1\x15\x6f\xb9\x2c"
24495                           "\xfa\xe8\xdd\xac\x2e\xe1\x3f\x67"
24496                           "\x63\x0f\x1a\x59\xb7\x89\xdb\xf4"
24497                           "\xc3",
24498                 .rlen   = 49,
24499         }, {
24500                 .key    = "\xee\x05\x77\x23\xa5\x49\xb0\x90"
24501                           "\x26\xcc\x36\xdc\x02\xf8\xef\x05"
24502                           "\xf3\xe1\xe7\xb3\xd8\x40\x53\x35"
24503                           "\xb9\x79\x8f\x80\xc9\x96\x20\x33",
24504                 .klen   = 32,
24505                 .iv     = "\xfd\xce\x06\x8b\xe9\xe8\x5a\x17"
24506                           "\x46\x02\x63\x00\x01\xc1\x20\x87",
24507                 .assoc  = "\x0c\x98\x94\xf3\x2d\x87\x04\x9e"
24508                           "\x66\x39\x8f\x24\xff\x8a\x50\x08"
24509                           "\x88\x42\xed\xf6\x5a\x90\x14\x42"
24510                           "\x1a\x90\xfe\x6c\x36\xc6\xf0\x9f"
24511                           "\x66\xa0\xb5\x2d\x2c\xf8\x25\x15"
24512                           "\x55\x90\xa2\x7e\x77\x94\x96\x3a"
24513                           "\x71\x1c\xf7\x44\xee\xa8\xc3\x42"
24514                           "\xe2\xa3\x84\x04\x0b\xe1\xce",
24515                 .alen   = 63,
24516                 .input  = "\x1b\x61\x23\x5b\x71\x26\xae\x25"
24517                           "\x87\x6f\xbc\x49\xfe\x53\x81\x8a"
24518                           "\x53\xf2\x70\x17\x9b\x38\xf4\x48"
24519                           "\x4b\x9b\x36\x62\xed\xdd\xd8\x54"
24520                           "\xea\xcb\xb6\x79\x45\xfc\xaa\x54"
24521                           "\x5c\x94\x47\x58\xa7\xff\x9c\x9e"
24522                           "\x7c\xb6\xf1\xac\xc8\xfd\x8b\x35"
24523                           "\xd5\xa4\x6a\xd4\x09\xc2\x08",
24524                 .ilen   = 63,
24525                 .result = "\x00\xe5\x5b\x87\x5c\x20\x22\x8a"
24526                           "\xda\x1f\xd3\xff\xbb\xb2\xb0\xf8"
24527                           "\xef\xe9\xeb\x9e\x7c\x80\xf4\x2b"
24528                           "\x59\xc0\x79\xbc\x17\xa0\x15\x01"
24529                           "\xf5\x72\xfb\x5a\xe7\xaf\x07\xe3"
24530                           "\x1b\x49\x21\x34\x23\x63\x55\x5e"
24531                           "\xee\x4f\x34\x17\xfa\xfe\xa5\x0c"
24532                           "\xed\x0b\x23\xea\x9b\xda\x57\x2f"
24533                           "\xf6\xa9\xae\x0d\x4e\x40\x96\x45"
24534                           "\x7f\xfa\xf0\xbf\xc4\x98\x78",
24535                 .rlen   = 79,
24536         }, {
24537                 .key    = "\x2a\x2a\xb1\xc3\xb5\xc5\x59\xac"
24538                           "\xa7\xa6\xe8\x6d\xfc\x1d\xb2\x0b"
24539                           "\x1d\xa3\xf3\x38\xdd\xe0\xd5\x4e"
24540                           "\x7b\xa7\x6e\x58\xa3\xf5\xbf\x0a",
24541                 .klen   = 32,
24542                 .iv     = "\x39\xf3\x3f\x2b\xf9\x64\x03\x33"
24543                           "\xc7\xdd\x15\x91\xfb\xe6\xe2\x8d",
24544                 .assoc  = "\x49\xbc\xce\x92\x3d\x02\xad\xba"
24545                           "\xe7\x13\x41\xb6\xf9\xaf\x13\x0f"
24546                           "\xb2\x04\xf8\x7a\x5f\x30\x96\x5b"
24547                           "\xdc\xbd\xdd\x44\x10\x25\x8f\x75"
24548                           "\x75\x4d\xb9\x5b\x8e\x0a\x38\x13"
24549                           "\x6f\x9f\x36\xe4\x3a\x3e\xac\xc9"
24550                           "\x9d\x83\xde\xe5\x57\xfd\xe3\x0e"
24551                           "\xb1\xa7\x1b\x44\x05\x67\xb7\x37",
24552                 .alen   = 64,
24553                 .input  = "\x58\x85\x5c\xfa\x81\xa1\x57\x40"
24554                           "\x08\x4a\x6e\xda\xf8\x78\x44\x90"
24555                           "\x7d\xb5\x7b\x9b\xa1\xd8\x76\x62"
24556                           "\x0c\xc9\x15\x3b\xc7\x3c\x77\x2b"
24557                           "\xf8\x78\xba\xa7\xa6\x0e\xbd\x52"
24558                           "\x76\xa3\xdc\xbe\x6b\xa8\xb1\x2d"
24559                           "\xa9\x1d\xd8\x4e\x31\x53\xab\x00"
24560                           "\xa5\xa7\x01\x13\x04\x49\xf2\x04",
24561                 .ilen   = 64,
24562                 .result = "\x28\xdd\xb9\x4a\x12\xc7\x0a\xe1"
24563                           "\x58\x06\x1a\x9b\x8c\x67\xdf\xeb"
24564                           "\x35\x35\x60\x9d\x06\x40\x65\xc1"
24565                           "\x93\xe8\xb3\x82\x50\x29\xdd\xb5"
24566                           "\x2b\xcb\xde\x18\x78\x6b\x42\xbe"
24567                           "\x6d\x24\xd0\xb2\x7d\xd7\x08\x8f"
24568                           "\x4a\x18\x98\xad\x8c\xf2\x97\xb4"
24569                           "\xf4\x77\xe4\xbf\x41\x3b\xc4\x06"
24570                           "\xce\x9e\x34\x81\xf0\x89\x11\x13"
24571                           "\x02\x65\xa1\x7c\xdf\x07\x33\x06",
24572                 .rlen   = 80,
24573         }, {
24574                 .key    = "\x67\x4f\xeb\x62\xc5\x40\x01\xc7"
24575                           "\x28\x80\x9a\xfe\xf6\x41\x74\x12"
24576                           "\x48\x65\xfe\xbc\xe2\x80\x57\x68"
24577                           "\x3c\xd4\x4d\x31\x7d\x54\x5f\xe1",
24578                 .klen   = 32,
24579                 .iv     = "\x76\x18\x79\xca\x09\xdf\xac\x4e"
24580                           "\x48\xb7\xc7\x23\xf5\x0a\xa5\x93",
24581                 .assoc  = "\x85\xe1\x08\x32\x4d\x7e\x56\xd5"
24582                           "\x68\xed\xf3\x47\xf3\xd3\xd6\x15"
24583                           "\xdd\xc7\x04\xfe\x64\xd0\x18\x75"
24584                           "\x9d\xeb\xbc\x1d\xea\x84\x2e\x4c"
24585                           "\x83\xf9\xbe\x8a\xef\x1c\x4b\x10"
24586                           "\x89\xaf\xcb\x4b\xfe\xe7\xc1\x58"
24587                           "\xca\xea\xc6\x87\xc0\x53\x03\xd9"
24588                           "\x80\xaa\xb2\x83\xff\xee\xa1\x6a"
24589                           "\x04",
24590                 .alen   = 65,
24591                 .input  = "\x94\xaa\x96\x9a\x91\x1d\x00\x5c"
24592                           "\x88\x24\x20\x6b\xf2\x9c\x06\x96"
24593                           "\xa7\x77\x87\x1f\xa6\x78\xf8\x7b"
24594                           "\xcd\xf6\xf4\x13\xa1\x9b\x16\x02"
24595                           "\x07\x24\xbf\xd5\x08\x20\xd0\x4f"
24596                           "\x90\xb3\x70\x24\x2f\x51\xc7\xbb"
24597                           "\xd6\x84\xc0\xef\x9a\xa8\xca\xcc"
24598                           "\x74\xab\x97\x53\xfe\xd0\xdb\x37"
24599                           "\x37\x6a\x0e\x9f\x3f\xa3\x2a\xe3"
24600                           "\x1b\x34\x6d\x51\x72\x2b\x17\xe7"
24601                           "\x4d\xaa\x2c\x18\xda\xa3\x33\x89"
24602                           "\x2a\x9f\xf4\xd2\xed\x76\x3d\x3f"
24603                           "\x3c\x15\x9d\x8e\x4f\x3c\x27\xb0"
24604                           "\x42\x3f\x2f\x8a\xd4\xc2\x10\xb2"
24605                           "\x27\x7f\xe3\x34\x80\x02\x49\x4b"
24606                           "\x07\x68\x22\x2a\x88\x25\x53\xb2"
24607                           "\x2f",
24608                 .ilen   = 129,
24609                 .result = "\x85\x39\x69\x35\xfb\xf9\xb0\xa6"
24610                           "\x85\x43\x88\xd0\xd7\x78\x60\x19"
24611                           "\x3e\x1f\xb1\xa4\xd6\xc5\x96\xec"
24612                           "\xf7\x84\x85\xc7\x27\x0f\x74\x57"
24613                           "\x28\x9e\xdd\x90\x3c\x43\x12\xc5"
24614                           "\x51\x3d\x39\x8f\xa5\xf4\xe0\x0b"
24615                           "\x57\x04\xf1\x6d\xfe\x9b\x84\x27"
24616                           "\xe8\xeb\x4d\xda\x02\x0a\xc5\x49"
24617                           "\x1a\x55\x5e\x50\x56\x4d\x94\xda"
24618                           "\x20\xf8\x12\x54\x50\xb3\x11\xda"
24619                           "\xed\x44\x27\x67\xd5\xd1\x8b\x4b"
24620                           "\x38\x67\x56\x65\x59\xda\xe6\x97"
24621                           "\x81\xae\x2f\x92\x3b\xae\x22\x1c"
24622                           "\x91\x59\x38\x18\x00\xe8\xba\x92"
24623                           "\x04\x19\x56\xdf\xb0\x82\xeb\x6f"
24624                           "\x2e\xdb\x54\x3c\x4b\xbb\x60\x90"
24625                           "\x4c\x50\x10\x62\xba\x7a\xb1\x68"
24626                           "\x37\xd7\x87\x4e\xe4\x66\x09\x1f"
24627                           "\xa5",
24628                 .rlen   = 145,
24629         }, {
24630                 .key    = "\xa3\x73\x24\x01\xd5\xbc\xaa\xe3"
24631                           "\xa9\x5a\x4c\x90\xf0\x65\x37\x18"
24632                           "\x72\x28\x0a\x40\xe7\x20\xd9\x82"
24633                           "\xfe\x02\x2b\x09\x57\xb3\xfe\xb7",
24634                 .klen   = 32,
24635                 .iv     = "\xb3\x3d\xb3\x69\x19\x5b\x54\x6a"
24636                           "\xc9\x91\x79\xb4\xef\x2e\x68\x99",
24637                 .assoc  = "\xc2\x06\x41\xd1\x5d\xfa\xff\xf1"
24638                           "\xe9\xc7\xa5\xd9\xed\xf8\x98\x1b"
24639                           "\x07\x89\x10\x82\x6a\x70\x9a\x8f"
24640                           "\x5e\x19\x9b\xf5\xc5\xe3\xcd\x22"
24641                           "\x92\xa5\xc2\xb8\x51\x2e\x5e\x0e"
24642                           "\xa4\xbe\x5f\xb1\xc1\x90\xd7\xe7"
24643                           "\xf7\x52\xae\x28\x29\xa8\x22\xa4"
24644                           "\x4f\xae\x48\xc2\xfa\x75\x8b\x9e"
24645                           "\xce\x83\x2a\x88\x07\x55\xbb\x89"
24646                           "\xf6\xdf\xac\xdf\x83\x08\xbf\x7d"
24647                           "\xac\x30\x8b\x8e\x02\xac\x00\xf1"
24648                           "\x30\x46\xe1\xbc\x75\xbf\x49\xbb"
24649                           "\x26\x4e\x29\xf0\x2f\x21\xc6\x13"
24650                           "\x92\xd9\x3d\x11\xe4\x10\x00\x8e"
24651                           "\xd4\xd4\x58\x65\xa6\x2b\xe3\x25"
24652                           "\xb1\x8f\x15\x93\xe7\x71\xb9\x2c"
24653                           "\x4b",
24654                 .alen   = 129,
24655                 .input  = "\xd1\xcf\xd0\x39\xa1\x99\xa9\x78"
24656                           "\x09\xfe\xd2\xfd\xec\xc1\xc9\x9d"
24657                           "\xd2\x39\x93\xa3\xab\x18\x7a\x95"
24658                           "\x8f\x24\xd3\xeb\x7b\xfa\xb5\xd8"
24659                           "\x15\xd1\xc3\x04\x69\x32\xe3\x4d"
24660                           "\xaa\xc2\x04\x8b\xf2\xfa\xdc\x4a"
24661                           "\x02\xeb\xa8\x90\x03\xfd\xea\x97"
24662                           "\x43\xaf\x2e\x92\xf8\x57\xc5\x6a"
24663                           "\x00",
24664                 .ilen   = 65,
24665                 .result = "\x7d\xde\x53\x22\xe4\x23\x3b\x30"
24666                           "\x78\xde\x35\x90\x7a\xd9\x0b\x93"
24667                           "\xf6\x0e\x0b\xed\x40\xee\x10\x9c"
24668                           "\x96\x3a\xd3\x34\xb2\xd0\x67\xcf"
24669                           "\x63\x7f\x2d\x0c\xcf\x96\xec\x64"
24670                           "\x1a\x87\xcc\x7d\x2c\x5e\x81\x4b"
24671                           "\xd2\x8f\x4c\x7c\x00\xb1\xb4\xe0"
24672                           "\x87\x4d\xb1\xbc\xd8\x78\x2c\x17"
24673                           "\xf2\x3b\xd8\x28\x40\xe2\x76\xf6"
24674                           "\x20\x13\x83\x46\xaf\xff\xe3\x0f"
24675                           "\x72",
24676                 .rlen   = 81,
24677         }, {
24678                 .key    = "\xe0\x98\x5e\xa1\xe5\x38\x53\xff"
24679                           "\x2a\x35\xfe\x21\xea\x8a\xfa\x1e"
24680                           "\x9c\xea\x15\xc5\xec\xc0\x5b\x9b"
24681                           "\xbf\x2f\x0a\xe1\x32\x12\x9d\x8e",
24682                 .klen   = 32,
24683                 .iv     = "\xef\x61\xed\x08\x29\xd7\xfd\x86"
24684                           "\x4a\x6b\x2b\x46\xe9\x53\x2a\xa0",
24685                 .assoc  = "\xfe\x2a\x7b\x70\x6d\x75\xa7\x0d"
24686                           "\x6a\xa2\x57\x6a\xe7\x1c\x5b\x21"
24687                           "\x31\x4b\x1b\x07\x6f\x10\x1c\xa8"
24688                           "\x20\x46\x7a\xce\x9f\x42\x6d\xf9",
24689                 .alen   = 32,
24690                 .input  = "\x0d\xf4\x09\xd8\xb1\x14\x51\x94"
24691                           "\x8a\xd8\x84\x8e\xe6\xe5\x8c\xa3"
24692                           "\xfc\xfc\x9e\x28\xb0\xb8\xfc\xaf"
24693                           "\x50\x52\xb1\xc4\x55\x59\x55\xaf",
24694                 .ilen   = 32,
24695                 .result = "\x5a\xcd\x8c\x57\xf2\x6a\xb6\xbe"
24696                           "\x53\xc7\xaa\x9a\x60\x74\x9c\xc4"
24697                           "\xa2\xc2\xd0\x6d\xe1\x03\x63\xdc"
24698                           "\xbb\x51\x7e\x9c\x89\x73\xde\x4e"
24699                           "\x24\xf8\x52\x7c\x15\x41\x0e\xba"
24700                           "\x69\x0e\x36\x5f\x2f\x22\x8c",
24701                 .rlen   = 47,
24702         }, {
24703                 .key    = "\x1c\xbd\x98\x40\xf5\xb3\xfc\x1b"
24704                           "\xaa\x0f\xb0\xb3\xe4\xae\xbc\x24"
24705                           "\xc7\xac\x21\x49\xf1\x60\xdd\xb5"
24706                           "\x80\x5d\xe9\xba\x0c\x71\x3c\x64",
24707                 .klen   = 32,
24708                 .iv     = "\x2c\x86\x26\xa8\x39\x52\xa6\xa2"
24709                           "\xcb\x45\xdd\xd7\xe3\x77\xed\xa6",
24710                 .assoc  = "\x3b\x4f\xb5\x10\x7d\xf1\x50\x29"
24711                           "\xeb\x7c\x0a\xfb\xe1\x40\x1e\x27"
24712                           "\x5c\x0d\x27\x8b\x74\xb0\x9e\xc2"
24713                           "\xe1\x74\x59\xa6\x79\xa1\x0c\xd0",
24714                 .alen   = 32,
24715                 .input  = "\x4a\x18\x43\x77\xc1\x90\xfa\xb0"
24716                           "\x0b\xb2\x36\x20\xe0\x09\x4e\xa9"
24717                           "\x26\xbe\xaa\xac\xb5\x58\x7e\xc8"
24718                           "\x11\x7f\x90\x9c\x2f\xb8\xf4\x85",
24719                 .ilen   = 32,
24720                 .result = "\x47\xd6\xce\x78\xd6\xbf\x4a\x51"
24721                           "\xb8\xda\x92\x3c\xfd\xda\xac\x8e"
24722                           "\x8d\x88\xd7\x4d\x90\xe5\xeb\xa1"
24723                           "\xab\xd6\x7c\x76\xad\xea\x7d\x76"
24724                           "\x53\xee\xb0\xcd\xd0\x02\xbb\x70"
24725                           "\x5b\x6f\x7b\xe2\x8c\xe8",
24726                 .rlen   = 46,
24727         }, {
24728                 .key    = "\x59\xe1\xd2\xdf\x05\x2f\xa4\x37"
24729                           "\x2b\xe9\x63\x44\xde\xd3\x7f\x2b"
24730                           "\xf1\x6f\x2d\xcd\xf6\x00\x5f\xcf"
24731                           "\x42\x8a\xc8\x92\xe6\xd0\xdc\x3b",
24732                 .klen   = 32,
24733                 .iv     = "\x68\xab\x60\x47\x49\xce\x4f\xbe"
24734                           "\x4c\x20\x8f\x68\xdd\x9c\xb0\xac",
24735                 .assoc  = "\x77\x74\xee\xaf\x8d\x6d\xf9\x45"
24736                           "\x6c\x56\xbc\x8d\xdb\x65\xe0\x2e"
24737                           "\x86\xd0\x32\x0f\x79\x50\x20\xdb"
24738                           "\xa2\xa1\x37\x7e\x53\x00\xab\xa6",
24739                 .alen   = 32,
24740                 .input  = "\x86\x3d\x7d\x17\xd1\x0c\xa3\xcc"
24741                           "\x8c\x8d\xe8\xb1\xda\x2e\x11\xaf"
24742                           "\x51\x80\xb5\x30\xba\xf8\x00\xe2"
24743                           "\xd3\xad\x6f\x75\x09\x18\x93\x5c",
24744                 .ilen   = 32,
24745                 .result = "\x9f\xa9\x2b\xa4\x8f\x00\x05\x2b"
24746                           "\xe7\x68\x81\x51\xbb\xfb\xdf\x60"
24747                           "\xbb\xac\xe8\xc1\xdc\x68\xae\x68"
24748                           "\x3a\xcd\x7a\x06\x49\xfe\x80\x11"
24749                           "\xe6\x61\x99\xe2\xdd\xbe\x2c\xbf",
24750                 .rlen   = 40,
24751         }, {
24752                 .key    = "\x96\x06\x0b\x7f\x15\xab\x4d\x53"
24753                           "\xac\xc3\x15\xd6\xd8\xf7\x42\x31"
24754                           "\x1b\x31\x38\x51\xfc\xa0\xe1\xe8"
24755                           "\x03\xb8\xa7\x6b\xc0\x2f\x7b\x11",
24756                 .klen   = 32,
24757                 .iv     = "\xa5\xcf\x9a\xe6\x59\x4a\xf7\xd9"
24758                           "\xcd\xfa\x41\xfa\xd7\xc0\x72\xb2",
24759                 .assoc  = "\xb4\x99\x28\x4e\x9d\xe8\xa2\x60"
24760                           "\xed\x30\x6e\x1e\xd5\x89\xa3\x34"
24761                           "\xb1\x92\x3e\x93\x7e\xf0\xa2\xf5"
24762                           "\x64\xcf\x16\x57\x2d\x5f\x4a\x7d",
24763                 .alen   = 32,
24764                 .input  = "\xc3\x62\xb7\xb6\xe2\x87\x4c\xe7"
24765                           "\x0d\x67\x9a\x43\xd4\x52\xd4\xb5"
24766                           "\x7b\x43\xc1\xb5\xbf\x98\x82\xfc"
24767                           "\x94\xda\x4e\x4d\xe4\x77\x32\x32",
24768                 .ilen   = 32,
24769                 .result = "\xe2\x34\xfa\x25\xfd\xfb\x89\x5e"
24770                           "\x5b\x4e\x0b\x15\x6e\x39\xfb\x0c"
24771                           "\x73\xc7\xd9\x6b\xbe\xce\x9b\x70"
24772                           "\xc7\x4f\x96\x16\x03\xfc\xea\xfb"
24773                           "\x56",
24774                 .rlen   = 33,
24775         },
24776 };
24777
24778 static const struct aead_testvec morus1280_dec_tv_template[] = {
24779         {
24780                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
24781                           "\x00\x00\x00\x00\x00\x00\x00\x00",
24782                 .klen   = 16,
24783                 .iv     = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
24784                           "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
24785                 .assoc  = "",
24786                 .alen   = 0,
24787                 .input  = "\x91\x85\x0f\xf5\x52\x9e\xce\xce"
24788                           "\x65\x99\xc7\xbf\xd3\x76\xe8\x98",
24789                 .ilen   = 16,
24790                 .result = "",
24791                 .rlen   = 0,
24792         }, {
24793                 .key    = "\x3c\x24\x39\x9f\x10\x7b\xa8\x1b"
24794                           "\x80\xda\xb2\x91\xf9\x24\xc2\x06",
24795                 .klen   = 16,
24796                 .iv     = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
24797                           "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
24798                 .assoc  = "",
24799                 .alen   = 0,
24800                 .input  = "\x88\xc3\x4c\xf0\x2f\x43\x76\x13"
24801                           "\x96\xda\x76\x34\x33\x4e\xd5\x39"
24802                           "\x73",
24803                 .ilen   = 17,
24804                 .result = "\x69",
24805                 .rlen   = 1,
24806         }, {
24807                 .key    = "\x79\x49\x73\x3e\x20\xf7\x51\x37"
24808                           "\x01\xb4\x64\x22\xf3\x48\x85\x0c",
24809                 .klen   = 16,
24810                 .iv     = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
24811                           "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
24812                 .assoc  = "",
24813                 .alen   = 0,
24814                 .input  = "\x3e\x5c\x3b\x58\x3b\x7d\x2a\x22"
24815                           "\x75\x0b\x24\xa6\x0e\xc3\xde\x52"
24816                           "\x97\x0b\x64\xd4\xce\x90\x52\xf7"
24817                           "\xef\xdb\x6a\x38\xd2\xa8\xa1\x0d"
24818                           "\xe0\x61\x33\x24\xc6\x4d\x51\xbc"
24819                           "\xa4\x21\x74\xcf\x19\x16\x59",
24820                 .ilen   = 47,
24821                 .result = "\xa6\xa4\x1e\x76\xec\xd4\x50\xcc"
24822                           "\x62\x58\xe9\x8f\xef\xa4\x17\x91"
24823                           "\xb4\x96\x9f\x6b\xce\x38\xa5\x46"
24824                           "\x13\x7d\x64\x93\xd7\x05\xf5",
24825                 .rlen   = 31,
24826         }, {
24827                 .key    = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
24828                           "\x82\x8e\x16\xb4\xed\x6d\x47\x12",
24829                 .klen   = 16,
24830                 .iv     = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
24831                           "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
24832                 .assoc  = "",
24833                 .alen   = 0,
24834                 .input  = "\x30\x82\x9c\x2b\x67\xcb\xf9\x1f"
24835                           "\xde\x9f\x77\xb2\xda\x92\x61\x5c"
24836                           "\x09\x0b\x2d\x9a\x26\xaa\x1c\x06"
24837                           "\xab\x74\xb7\x2b\x95\x5f\x9f\xa1"
24838                           "\x9a\xff\x50\xa0\xa2\xff\xc5\xad"
24839                           "\x21\x8e\x84\x5c\x12\x61\xb2\xae",
24840                 .ilen   = 48,
24841                 .result = "\xe2\xc9\x58\x15\xfc\x4f\xf8\xe8"
24842                           "\xe3\x32\x9b\x21\xe9\xc8\xd9\x97"
24843                           "\xde\x58\xab\xf0\xd3\xd8\x27\x60"
24844                           "\xd5\xaa\x43\x6b\xb1\x64\x95\xa4",
24845                 .rlen   = 32,
24846         }, {
24847                 .key    = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
24848                           "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
24849                 .klen   = 16,
24850                 .iv     = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
24851                           "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
24852                 .assoc  = "",
24853                 .alen   = 0,
24854                 .input  = "\x67\x5d\x8e\x45\xc8\x39\xf5\x17"
24855                           "\xc1\x1d\x2a\xdd\x88\x67\xda\x1f"
24856                           "\x6d\xe8\x37\x28\x5a\xc1\x5e\x9f"
24857                           "\xa6\xec\xc6\x92\x05\x4b\xc0\xa3"
24858                           "\x63\xef\x88\xa4\x9b\x0a\x5c\xed"
24859                           "\x2b\x6a\xac\x63\x52\xaa\x10\x94"
24860                           "\xd0",
24861                 .ilen   = 49,
24862                 .result = "\x1f\xee\x92\xb4\x0c\xcb\xa1\x04"
24863                           "\x64\x0c\x4d\xb2\xe3\xec\x9c\x9d"
24864                           "\x09\x1a\xb7\x74\xd8\x78\xa9\x79"
24865                           "\x96\xd8\x22\x43\x8c\xc3\x34\x7b"
24866                           "\xc4",
24867                 .rlen   = 33,
24868         }, {
24869                 .key    = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
24870                           "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f",
24871                 .klen   = 16,
24872                 .iv     = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
24873                           "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
24874                 .assoc  = "",
24875                 .alen   = 0,
24876                 .input  = "\x7d\x61\x1a\x35\x20\xcc\x07\x88"
24877                           "\x03\x98\x87\xcf\xc0\x6e\x4d\x19"
24878                           "\xe3\xd4\x0b\xfb\x29\x8f\x49\x1a"
24879                           "\x3a\x06\x77\xce\x71\x2c\xcd\xdd"
24880                           "\xed\xf6\xc9\xbe\xa6\x3b\xb8\xfc"
24881                           "\x6c\xbe\x77\xed\x74\x0e\x20\x85"
24882                           "\xd0\x65\xde\x24\x6f\xe3\x25\xc5"
24883                           "\xdf\x5b\x0f\xbd\x8a\x88\x78\xc9"
24884                           "\xe5\x81\x37\xde\x84\x7a\xf6\x84"
24885                           "\x99\x7a\x72\x9c\x54\x31\xa1",
24886                 .ilen   = 79,
24887                 .result = "\x5c\x13\xcb\x54\x1c\x47\x4a\x1f"
24888                           "\xe5\xe6\xff\x44\xdd\x11\x5f\xa3"
24889                           "\x33\xdd\xc2\xf8\xdd\x18\x2b\x93"
24890                           "\x57\x05\x01\x1c\x66\x22\xd3\x51"
24891                           "\xd3\xdf\x18\xc9\x30\x66\xed\xb1"
24892                           "\x96\x58\xd5\x8c\x64\x8c\x7c\xf5"
24893                           "\x01\xd0\x74\x5f\x9b\xaa\xf6\xd1"
24894                           "\xe6\x16\xa2\xac\xde\x47\x40",
24895                 .rlen   = 63,
24896         }, {
24897                 .key    = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
24898                           "\x05\x1d\x2c\x68\xdb\xda\x8f\x25",
24899                 .klen   = 16,
24900                 .iv     = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
24901                           "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
24902                 .assoc  = "",
24903                 .alen   = 0,
24904                 .input  = "\x05\xc5\xb1\xf9\x1b\xb9\xab\x2c"
24905                           "\xa5\x07\x12\xa7\x12\x39\x60\x66"
24906                           "\x30\x81\x4a\x03\x78\x28\x45\x52"
24907                           "\xd2\x2b\x24\xfd\x8b\xa5\xb7\x66"
24908                           "\x6f\x45\xd7\x3b\x67\x6f\x51\xb9"
24909                           "\xc0\x3d\x6c\xca\x1e\xae\xff\xb6"
24910                           "\x79\xa9\xe4\x82\x5d\x4c\x2d\xdf"
24911                           "\xeb\x71\x40\xc9\x2c\x40\x45\x6d"
24912                           "\x73\x77\x01\xf3\x4f\xf3\x9d\x2a"
24913                           "\x5d\x57\xa8\xa1\x18\xa2\xad\xcb",
24914                 .ilen   = 80,
24915                 .result = "\x98\x37\x05\xf3\x2c\xc2\xf3\x3b"
24916                           "\x66\xc0\xb1\xd5\xd7\x35\x21\xaa"
24917                           "\x5d\x9f\xce\x7c\xe2\xb8\xad\xad"
24918                           "\x19\x33\xe0\xf4\x40\x81\x72\x28"
24919                           "\xe1\x8b\x1c\xf8\x91\x78\xff\xaf"
24920                           "\xb0\x68\x69\xf2\x27\x35\x91\x84"
24921                           "\x2e\x37\x5b\x00\x04\xff\x16\x9c"
24922                           "\xb5\x19\x39\xeb\xd9\xcd\x29\x9a",
24923                 .rlen   = 64,
24924         }, {
24925                 .key    = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
24926                           "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b",
24927                 .klen   = 16,
24928                 .iv     = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
24929                           "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
24930                 .assoc  = "\xc5",
24931                 .alen   = 1,
24932                 .input  = "\x4d\xbf\x11\xac\x7f\x97\x0b\x2e"
24933                           "\x89\x3b\x9d\x0f\x83\x1c\x08\xc3",
24934                 .ilen   = 16,
24935                 .result = "",
24936                 .rlen   = 0,
24937         }, {
24938                 .key    = "\xe4\x25\xcd\xfa\x80\xdd\x46\xde"
24939                           "\x07\xd1\x90\x8b\xcf\x23\x15\x31",
24940                 .klen   = 16,
24941                 .iv     = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
24942                           "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
24943                 .assoc  = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
24944                           "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34"
24945                           "\xe8\x73\x62\x64\xab\x50\xd0\xda"
24946                           "\x6b\x83\x66\xaf\x3e\x27\xc9",
24947                 .alen   = 31,
24948                 .input  = "\x5b\xc0\x8d\x54\xe4\xec\xbe\x38"
24949                           "\x03\x12\xf9\xcc\x9e\x46\x42\x92",
24950                 .ilen   = 16,
24951                 .result = "",
24952                 .rlen   = 0,
24953         }, {
24954                 .key    = "\x20\x4a\x07\x99\x91\x58\xee\xfa"
24955                           "\x88\xab\x42\x1c\xc9\x47\xd7\x38",
24956                 .klen   = 16,
24957                 .iv     = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
24958                           "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
24959                 .assoc  = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
24960                           "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b"
24961                           "\x12\x35\x6e\xe8\xb0\xf0\x52\xf3"
24962                           "\x2d\xb0\x45\x87\x18\x86\x68\xf6",
24963                 .alen   = 32,
24964                 .input  = "\x48\xc5\xc3\x4c\x40\x2e\x2f\xc2"
24965                           "\x6d\x65\xe0\x67\x9c\x1d\xa0\xf0",
24966                 .ilen   = 16,
24967                 .result = "",
24968                 .rlen   = 0,
24969         }, {
24970                 .key    = "\x5d\x6f\x41\x39\xa1\xd4\x97\x16"
24971                           "\x09\x85\xf4\xae\xc3\x6b\x9a\x3e",
24972                 .klen   = 16,
24973                 .iv     = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
24974                           "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
24975                 .assoc  = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
24976                           "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
24977                           "\x3c\xf8\x79\x6c\xb6\x90\xd4\x0d"
24978                           "\xee\xde\x23\x60\xf2\xe5\x08\xcc"
24979                           "\x97",
24980                 .alen   = 33,
24981                 .input  = "\x28\x64\x78\x51\x55\xd8\x56\x4a"
24982                           "\x58\x3e\xf7\xbe\xee\x21\xfe\x94",
24983                 .ilen   = 16,
24984                 .result = "",
24985                 .rlen   = 0,
24986         }, {
24987                 .key    = "\x99\x93\x7a\xd8\xb1\x50\x40\x31"
24988                           "\x8a\x60\xa6\x3f\xbd\x90\x5d\x44",
24989                 .klen   = 16,
24990                 .iv     = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
24991                           "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
24992                 .assoc  = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
24993                           "\xca\xcd\xff\x88\xba\x22\xbe\x47"
24994                           "\x67\xba\x85\xf1\xbb\x30\x56\x26"
24995                           "\xaf\x0b\x02\x38\xcc\x44\xa7\xa3"
24996                           "\xa6\xbf\x31\x93\x60\xcd\xda\x63"
24997                           "\x2c\xb1\xaa\x19\xc8\x19\xf8\xeb"
24998                           "\x03\xa1\xe8\xbe\x37\x54\xec\xa2"
24999                           "\xcd\x2c\x45\x58\xbd\x8e\x80",
25000                 .alen   = 63,
25001                 .input  = "\xb3\xa6\x00\x4e\x09\x20\xac\x21"
25002                           "\x77\x72\x69\x76\x2d\x36\xe5\xc8",
25003                 .ilen   = 16,
25004                 .result = "",
25005                 .rlen   = 0,
25006         }, {
25007                 .key    = "\xd6\xb8\xb4\x77\xc1\xcb\xe9\x4d"
25008                           "\x0a\x3a\x58\xd1\xb7\xb4\x1f\x4a",
25009                 .klen   = 16,
25010                 .iv     = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
25011                           "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
25012                 .assoc  = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
25013                           "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
25014                           "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
25015                           "\x71\x39\xe1\x10\xa6\xa3\x46\x7a"
25016                           "\xb4\x6b\x35\xc2\xc1\xdf\xed\x60"
25017                           "\x46\xc1\x3e\x7f\x8c\xc2\x0e\x7a"
25018                           "\x30\x08\xd0\x5f\xa0\xaa\x0c\x6d"
25019                           "\x9c\x2f\xdb\x97\xb8\x15\x69\x01",
25020                 .alen   = 64,
25021                 .input  = "\x65\x33\x7b\xa1\x63\xf4\x20\xdd"
25022                           "\xe4\xb9\x4a\xaa\x9a\x21\xaa\x14",
25023                 .ilen   = 16,
25024                 .result = "",
25025                 .rlen   = 0,
25026         }, {
25027                 .key    = "\x12\xdd\xee\x17\xd1\x47\x92\x69"
25028                           "\x8b\x14\x0a\x62\xb1\xd9\xe2\x50",
25029                 .klen   = 16,
25030                 .iv     = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
25031                           "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
25032                 .assoc  = "\x31",
25033                 .alen   = 1,
25034                 .input  = "\x1d\x47\x17\x34\x86\xf5\x54\x1a"
25035                           "\x6d\x28\xb8\x5d\x6c\xcf\xa0\xb9"
25036                           "\xbf",
25037                 .ilen   = 17,
25038                 .result = "\x40",
25039                 .rlen   = 1,
25040         }, {
25041                 .key    = "\x4f\x01\x27\xb6\xe1\xc3\x3a\x85"
25042                           "\x0c\xee\xbc\xf4\xab\xfd\xa5\x57",
25043                 .klen   = 16,
25044                 .iv     = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
25045                           "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
25046                 .assoc  = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
25047                           "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a"
25048                           "\xe6\x01\xa8\x7e\xca\x10\xdc\x73"
25049                           "\xf4\x94\x9f\xc1\x5a\x61\x85",
25050                 .alen   = 31,
25051                 .input  = "\x78\x90\x52\xae\x0f\xf7\x2e\xef"
25052                           "\x63\x09\x08\x58\xb5\x56\xbd\x72"
25053                           "\x6e\x42\xcf\x27\x04\x7c\xdb\x92"
25054                           "\x18\xe9\xa4\x33\x90\xba\x62\xb5"
25055                           "\x70\xd3\x88\x9b\x4f\x05\xa7\x51"
25056                           "\x85\x87\x17\x09\x42\xed\x4e",
25057                 .ilen   = 47,
25058                 .result = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
25059                           "\x6d\x92\x42\x61\xa7\x58\x37\xdb"
25060                           "\xb0\xb2\x2b\x9f\x0b\xb8\xbd\x7a"
25061                           "\x24\xa0\xd6\xb7\x11\x79\x6c",
25062                 .rlen   = 31,
25063         }, {
25064                 .key    = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
25065                           "\x8d\xc8\x6e\x85\xa5\x21\x67\x5d",
25066                 .klen   = 16,
25067                 .iv     = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
25068                           "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
25069                 .assoc  = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
25070                           "\xce\x36\xc7\xce\xa2\xb4\xc9\x60"
25071                           "\x10\xc3\xb3\x02\xcf\xb0\x5e\x8d"
25072                           "\xb5\xc2\x7e\x9a\x35\xc0\x24\xfd",
25073                 .alen   = 32,
25074                 .input  = "\x1d\x2c\x57\xe0\x50\x38\x3d\x41"
25075                           "\x2e\x71\xc8\x3b\x92\x43\x58\xaf"
25076                           "\x5a\xfb\xad\x8f\xd9\xd5\x8a\x5e"
25077                           "\xdb\xf3\xcd\x3a\x2b\xe1\x2c\x1a"
25078                           "\xb0\xed\xe3\x0c\x6e\xf9\xf2\xd6"
25079                           "\x90\xe6\xb1\x0e\xa5\x8a\xac\xb7",
25080                 .ilen   = 48,
25081                 .result = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
25082                           "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2"
25083                           "\xdb\x74\x36\x23\x11\x58\x3f\x93"
25084                           "\xe5\xcd\xb5\x90\xeb\xd8\x0c\xb3",
25085                 .rlen   = 32,
25086         }, {
25087                 .key    = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
25088                           "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
25089                 .klen   = 16,
25090                 .iv     = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
25091                           "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
25092                 .assoc  = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
25093                           "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
25094                           "\x3b\x86\xbf\x86\xd4\x50\xe0\xa7"
25095                           "\x76\xef\x5c\x72\x0f\x1f\xc3\xd4"
25096                           "\xee",
25097                 .alen   = 33,
25098                 .input  = "\x59\x10\x84\x1c\x83\x4c\x8b\xfc"
25099                           "\xfd\x2e\x4b\x46\x84\xff\x78\x4e"
25100                           "\x50\xda\x5c\xb9\x61\x1d\xf5\xb9"
25101                           "\xfe\xbb\x7f\xae\x8c\xc1\x24\xbd"
25102                           "\x8c\x6f\x1f\x9b\xce\xc6\xc1\x37"
25103                           "\x08\x06\x5a\xe5\x96\x10\x95\xc2"
25104                           "\x5e",
25105                 .ilen   = 49,
25106                 .result = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
25107                           "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
25108                           "\x05\x36\x42\xa7\x16\xf8\xc1\xad"
25109                           "\xa7\xfb\x94\x68\xc5\x37\xab\x8a"
25110                           "\x72",
25111                 .rlen   = 33,
25112         }, {
25113                 .key    = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
25114                           "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69",
25115                 .klen   = 16,
25116                 .iv     = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
25117                           "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
25118                 .assoc  = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
25119                           "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
25120                           "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
25121                           "\x38\x1d\x3b\x4a\xe9\x7e\x62\xaa"
25122                           "\xfd\xc9\x4a\xa9\xa9\x39\x4b\x54"
25123                           "\xc8\x0e\x24\x7f\x5e\x10\x7a\x45"
25124                           "\x10\x0b\x56\x85\xad\x54\xaa\x66"
25125                           "\xa8\x43\xcd\xd4\x9b\xb7\xfa",
25126                 .alen   = 63,
25127                 .input  = "\x9a\x12\xbc\xdf\x72\xa8\x56\x22"
25128                           "\x49\x2d\x07\x92\xfc\x3d\x6d\x5f"
25129                           "\xef\x36\x19\xae\x91\xfa\xd6\x63"
25130                           "\x46\xea\x8a\x39\x14\x21\xa6\x37"
25131                           "\x18\xfc\x97\x3e\x16\xa5\x4d\x39"
25132                           "\x45\x2e\x69\xcc\x9c\x5f\xdf\x6d"
25133                           "\x5e\xa2\xbf\xac\x83\x32\x72\x52"
25134                           "\x58\x58\x23\x40\xfd\xa5\xc2\xe6"
25135                           "\xe9\x5a\x50\x98\x00\x58\xc9\x86"
25136                           "\x4f\x20\x37\xdb\x7b\x22\xa3",
25137                 .ilen   = 79,
25138                 .result = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
25139                           "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
25140                           "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
25141                           "\x68\x28\x73\x40\x9f\x96\x4a\x60"
25142                           "\x80\xf4\x4b\xf4\xc1\x3d\xd0\x93"
25143                           "\xcf\x12\xc9\x59\x8f\x7a\x7f\xa8"
25144                           "\x1b\xa5\x50\xed\x87\xa9\x72\x59"
25145                           "\x9c\x44\xb2\xa4\x99\x98\x34",
25146                 .rlen   = 63,
25147         }, {
25148                 .key    = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
25149                           "\x10\x57\x85\x39\x93\x8f\xaf\x70",
25150                 .klen   = 16,
25151                 .iv     = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
25152                           "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
25153                 .assoc  = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
25154                           "\x50\xc4\xde\x82\x90\x21\x11\x73"
25155                           "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
25156                           "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81"
25157                           "\x0b\x76\x4f\xd7\x0a\x4b\x5e\x51"
25158                           "\xe3\x1d\xb9\xe5\x21\xb9\x8f\xd4"
25159                           "\x3d\x72\x3e\x26\x16\xa9\xca\x32"
25160                           "\x77\x47\x63\x14\x95\x3d\xe4\x34",
25161                 .alen   = 64,
25162                 .input  = "\xe6\xeb\x92\x5a\x5b\xf0\x2d\xbb"
25163                           "\x23\xec\x35\xe3\xae\xc9\xfb\x0b"
25164                           "\x90\x14\x46\xeb\xa8\x8d\xb0\x9b"
25165                           "\x39\xda\x8b\x48\xec\xb2\x00\x4e"
25166                           "\x80\x6f\x46\x4f\x9b\x1e\xbb\x35"
25167                           "\xea\x5a\xbc\xa2\x36\xa5\x89\x45"
25168                           "\xc2\xd6\xd7\x15\x0b\xf6\x6c\x56"
25169                           "\xec\x99\x7d\x61\xb3\x15\x93\xed"
25170                           "\x83\x1e\xd9\x48\x84\x0b\x37\xfe"
25171                           "\x95\x74\x44\xd5\x54\xa6\x27\x06",
25172                 .ilen   = 80,
25173                 .result = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
25174                           "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
25175                           "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
25176                           "\x29\x56\x52\x19\x79\xf5\xe9\x37"
25177                           "\x8f\xa1\x50\x23\x22\x4f\xe3\x91"
25178                           "\xe9\x21\x5e\xbf\x52\x23\x95\x37"
25179                           "\x48\x0c\x38\x8f\xf0\xff\x92\x24"
25180                           "\x6b\x47\x49\xe3\x94\x1f\x1e\x01",
25181                 .rlen   = 64,
25182         }, {
25183                 .key    = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
25184                           "\x91\x31\x37\xcb\x8d\xb3\x72\x76",
25185                 .klen   = 16,
25186                 .iv     = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
25187                           "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
25188                 .assoc  = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
25189                           "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
25190                           "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
25191                           "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58"
25192                           "\x1a\x22\x53\x05\x6b\x5c\x71\x4f"
25193                           "\xfd\x2d\x4d\x4c\xe5\x62\xa5\x63"
25194                           "\x6a\xda\x26\xc8\x7f\xff\xea\xfd"
25195                           "\x46\x4a\xfa\x53\x8f\xc4\xcd\x68"
25196                           "\x58",
25197                 .alen   = 65,
25198                 .input  = "\x89\x24\x27\x86\xdc\xd7\x6b\xd9"
25199                           "\xd1\xcd\xdc\x16\xdd\x2c\xc1\xfb"
25200                           "\x52\xb5\xb3\xab\x50\x99\x3f\xa0"
25201                           "\x38\xa4\x74\xa5\x04\x15\x63\x05"
25202                           "\x8f\x54\x81\x06\x5a\x6b\xa4\x63"
25203                           "\x6d\xa7\x21\xcb\xff\x42\x30\x8e"
25204                           "\x3b\xd1\xca\x3f\x4b\x1a\xb8\xc3"
25205                           "\x42\x01\xe6\xbc\x75\x15\x87\xee"
25206                           "\xc9\x8e\x65\x01\xd9\xd8\xb5\x9f"
25207                           "\x48\x86\xa6\x5f\x2c\xc7\xb5\xb0"
25208                           "\xed\x5d\x14\x7c\x3f\x40\xb1\x0b"
25209                           "\x72\xef\x94\x8d\x7a\x85\x56\xe5"
25210                           "\x56\x08\x15\x56\xba\xaf\xbd\xf0"
25211                           "\x20\xef\xa0\xf6\xa9\xad\xa2\xc9"
25212                           "\x1c\x3b\x28\x51\x7e\x77\xb2\x18"
25213                           "\x4f\x61\x64\x37\x22\x36\x6d\x78"
25214                           "\xed\xed\x35\xe8\x83\xa5\xec\x25"
25215                           "\x6b\xff\x5f\x1a\x09\x96\x3d\xdc"
25216                           "\x20",
25217                 .ilen   = 145,
25218                 .result = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
25219                           "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
25220                           "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
25221                           "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
25222                           "\x9d\x4d\x54\x51\x84\x61\xf6\x8e"
25223                           "\x03\x31\xf2\x25\x16\xcc\xaa\xc6"
25224                           "\x75\x73\x20\x30\x59\x54\xb2\xf0"
25225                           "\x3a\x4b\xe0\x23\x8e\xa6\x08\x35"
25226                           "\x8a\xdf\x27\xa0\xe4\x60\x99\xae"
25227                           "\x8e\x43\xd9\x39\x7b\x10\x40\x67"
25228                           "\x5c\x7e\xc9\x70\x63\x34\xca\x59"
25229                           "\xfe\x86\xbc\xb7\x9c\x39\xf3\x6d"
25230                           "\x6a\x41\x64\x6f\x16\x7f\x65\x7e"
25231                           "\x89\x84\x68\xeb\xb0\x51\xbe\x55"
25232                           "\x33\x16\x59\x6c\x3b\xef\x88\xad"
25233                           "\x2f\xab\xbc\x25\x76\x87\x41\x2f"
25234                           "\x36",
25235                 .rlen   = 129,
25236         }, {
25237                 .key    = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
25238                           "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c",
25239                 .klen   = 16,
25240                 .iv     = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
25241                           "\x32\x42\x15\x80\x85\xa1\x65\xfe",
25242                 .assoc  = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
25243                           "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
25244                           "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
25245                           "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e"
25246                           "\x28\xce\x57\x34\xcd\x6e\x84\x4c"
25247                           "\x17\x3c\xe1\xb2\xa8\x0b\xbb\xf1"
25248                           "\x96\x41\x0d\x69\xe8\x54\x0a\xc8"
25249                           "\x15\x4e\x91\x92\x89\x4b\xb7\x9b"
25250                           "\x21\xf7\x42\x89\xac\x12\x2a\x54"
25251                           "\x69\xee\x18\xc7\x8d\xed\xe8\xfd"
25252                           "\xbb\x04\x28\xe6\x8a\x3c\x98\xc1"
25253                           "\x04\x2d\xa9\xa1\x24\x83\xff\xe9"
25254                           "\x55\x7a\xf0\xd1\xf6\x63\x05\xe1"
25255                           "\xd9\x1e\x75\x72\xc1\x9f\xae\x32"
25256                           "\xe1\x6b\xcd\x9e\x61\x19\x23\x86"
25257                           "\xd9\xd2\xaf\x8e\xd5\xd3\xa8\xa9"
25258                           "\x51",
25259                 .alen   = 129,
25260                 .input  = "\x36\x78\xb9\x22\xde\x62\x35\x55"
25261                           "\x1a\x7a\xf5\x45\xbc\xd7\x15\x82"
25262                           "\x01\xe9\x5a\x07\xea\x46\xaf\x91"
25263                           "\xcb\x73\xa5\xee\xe1\xb4\xbf\xc2"
25264                           "\xdb\xd2\x9d\x59\xde\xfc\x83\x00"
25265                           "\xf5\x46\xac\x97\xd5\x57\xa9\xb9"
25266                           "\x1f\x8c\xe8\xca\x68\x8b\x91\x0c"
25267                           "\x01\xbe\x0a\xaf\x7c\xf6\x67\xa4"
25268                           "\xbf\xbc\x88\x3f\x5d\xd1\xf9\x19"
25269                           "\x0f\x9d\xb2\xaf\xb9\x6e\x17\xdf"
25270                           "\xa2",
25271                 .ilen   = 81,
25272                 .result = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
25273                           "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
25274                           "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
25275                           "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
25276                           "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
25277                           "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
25278                           "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
25279                           "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
25280                           "\x54",
25281                 .rlen   = 65,
25282         }, {
25283                 .key    = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
25284                           "\x93\xe6\x9b\xee\x81\xfc\xf7\x82",
25285                 .klen   = 16,
25286                 .iv     = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
25287                           "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
25288                 .assoc  = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
25289                           "\xd3\x53\xf4\x36\x7e\x8e\x59\x85"
25290                           "\x0e\x51\xf9\x1c\xee\x70\x6a\x27"
25291                           "\x3d\xd3\xb7\xac\x51\xfa\xdf\x05",
25292                 .alen   = 32,
25293                 .input  = "\x08\x1b\x95\x0e\x41\x95\x02\x4b"
25294                           "\x9c\xbb\xa8\xd0\x7c\xd3\x44\x6e"
25295                           "\x89\x14\x33\x70\x0a\xbc\xea\x39"
25296                           "\x88\xaa\x2b\xd5\x73\x11\x55\xf5"
25297                           "\x33\x33\x9c\xd7\x42\x34\x49\x8e"
25298                           "\x2f\x03\x30\x05\x47\xaf\x34",
25299                 .ilen   = 47,
25300                 .result = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
25301                           "\xf3\x89\x20\x5b\x7c\x57\x89\x07"
25302                           "\xd9\x02\x7c\x3d\x2f\x18\x4b\x2d"
25303                           "\x6e\xde\xee\xa2\x08\x12\xc7\xba",
25304                 .rlen   = 32,
25305         }, {
25306                 .key    = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
25307                           "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
25308                 .klen   = 16,
25309                 .iv     = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
25310                           "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
25311                 .assoc  = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
25312                           "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c"
25313                           "\x39\x14\x05\xa0\xf3\x10\xec\x41"
25314                           "\xff\x01\x95\x84\x2b\x59\x7f\xdb",
25315                 .alen   = 32,
25316                 .input  = "\x97\xca\xf4\xe0\x8d\x89\xbf\x68"
25317                           "\x0c\x60\xb9\x27\xdf\xaa\x41\xc6"
25318                           "\x25\xd8\xf7\x1f\x10\x15\x48\x61"
25319                           "\x4c\x95\x00\xdf\x51\x9b\x7f\xe6"
25320                           "\x24\x40\x9e\xbe\x3b\xeb\x1b\x98"
25321                           "\xb9\x9c\xe5\xef\xf2\x05",
25322                 .ilen   = 46,
25323                 .result = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
25324                           "\x74\x63\xd2\xec\x76\x7c\x4c\x0d"
25325                           "\x03\xc4\x88\xc1\x35\xb8\xcd\x47"
25326                           "\x2f\x0c\xcd\x7a\xe2\x71\x66\x91",
25327                 .rlen   = 32,
25328         }, {
25329                 .key    = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
25330                           "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
25331                 .klen   = 16,
25332                 .iv     = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
25333                           "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
25334                 .assoc  = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
25335                           "\xd5\x07\x58\x59\x72\xd7\xde\x92"
25336                           "\x63\xd6\x10\x24\xf8\xb0\x6e\x5a"
25337                           "\xc0\x2e\x74\x5d\x06\xb8\x1e\xb2",
25338                 .alen   = 32,
25339                 .input  = "\x63\x4c\x2a\x8e\xb4\x6b\x63\x0d"
25340                           "\xb5\xec\x9b\x4e\x12\x23\xa3\xcf"
25341                           "\x1a\x5a\x70\x15\x5a\x10\x40\x51"
25342                           "\xca\x47\x4c\x9d\xc9\x97\xf4\x77"
25343                           "\xdb\xc8\x10\x2d\xdc\x65\x20\x3f",
25344                 .ilen   = 40,
25345                 .result = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
25346                           "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13"
25347                           "\x2e\x86\x93\x45\x3a\x58\x4f\x61"
25348                           "\xf0\x3a\xac\x53\xbc\xd0\x06\x68",
25349                 .rlen   = 32,
25350         }, {
25351                 .key    = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
25352                           "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
25353                 .klen   = 16,
25354                 .iv     = "\xbb\x3a\xf7\x57\xc6\x36\x7c\x22"
25355                           "\x36\xab\xde\xc6\x6d\x32\x70\x17",
25356                 .assoc  = "\xcb\x03\x85\xbf\x0a\xd5\x26\xa9"
25357                           "\x56\xe1\x0a\xeb\x6c\xfb\xa1\x98"
25358                           "\x8d\x98\x1c\xa8\xfe\x50\xf0\x74"
25359                           "\x81\x5c\x53\x35\xe0\x17\xbd\x88",
25360                 .alen   = 32,
25361                 .input  = "\xf1\x62\x44\xc7\x5f\x19\xca\x43"
25362                           "\x47\x2c\xaf\x68\x82\xbd\x51\xef"
25363                           "\x3d\x65\xd8\x45\x2d\x06\x07\x78"
25364                           "\x08\x2e\xb3\x23\xcd\x81\x12\x55"
25365                           "\x1a",
25366                 .ilen   = 33,
25367                 .result = "\xda\xcc\x14\x27\x4e\x74\xd1\x30"
25368                           "\x76\x18\x37\x0f\x6a\xc4\xd1\x1a"
25369                           "\x58\x49\x9f\xc9\x3f\xf8\xd1\x7a"
25370                           "\xb2\x67\x8b\x2b\x96\x2f\xa5\x3e",
25371                 .rlen   = 32,
25372         }, {
25373                 .key    = "\xe9\x95\xa2\x8f\x93\x13\x7b\xb7"
25374                           "\x96\x4e\x63\x33\x69\x8d\x02\x9b"
25375                           "\x23\xf9\x22\xeb\x80\xa0\xb1\x81"
25376                           "\xe2\x73\xc3\x21\x4d\x47\x8d\xf4",
25377                 .klen   = 32,
25378                 .iv     = "\xf8\x5e\x31\xf7\xd7\xb2\x25\x3e"
25379                           "\xb7\x85\x90\x58\x67\x57\x33\x1d",
25380                 .assoc  = "",
25381                 .alen   = 0,
25382                 .input  = "\xdf\x2f\x83\xc0\x45\x4a\x2c\xcf"
25383                           "\xb9\xd2\x41\xf6\x80\xa1\x52\x70",
25384                 .ilen   = 16,
25385                 .result = "",
25386                 .rlen   = 0,
25387         }, {
25388                 .key    = "\x25\xba\xdc\x2e\xa3\x8f\x24\xd3"
25389                           "\x17\x29\x15\xc5\x63\xb2\xc5\xa1"
25390                           "\x4d\xbc\x2d\x6f\x85\x40\x33\x9a"
25391                           "\xa3\xa0\xa1\xfa\x27\xa6\x2c\xca",
25392                 .klen   = 32,
25393                 .iv     = "\x34\x83\x6a\x96\xe7\x2d\xce\x5a"
25394                           "\x38\x5f\x42\xe9\x61\x7b\xf5\x23",
25395                 .assoc  = "",
25396                 .alen   = 0,
25397                 .input  = "\x01\xd8\x55\x3c\xc0\x5a\x4b\xc7"
25398                           "\x01\xf4\x08\xe3\x0d\xf7\xf0\x78"
25399                           "\x53",
25400                 .ilen   = 17,
25401                 .result = "\x53",
25402                 .rlen   = 1,
25403         }, {
25404                 .key    = "\x62\xdf\x16\xcd\xb3\x0a\xcc\xef"
25405                           "\x98\x03\xc7\x56\x5d\xd6\x87\xa8"
25406                           "\x77\x7e\x39\xf3\x8a\xe0\xb5\xb4"
25407                           "\x65\xce\x80\xd2\x01\x05\xcb\xa1",
25408                 .klen   = 32,
25409                 .iv     = "\x71\xa8\xa4\x35\xf7\xa9\x76\x75"
25410                           "\xb8\x39\xf4\x7a\x5b\x9f\xb8\x29",
25411                 .assoc  = "",
25412                 .alen   = 0,
25413                 .input  = "\xc2\x4b\x41\x0f\x2d\xb9\x62\x07"
25414                           "\xff\x8e\x74\xf8\xa1\xa6\xd5\x37"
25415                           "\xa5\x64\x31\x5c\xca\x73\x9b\x43"
25416                           "\xe6\x70\x63\x46\x95\xcb\xf7\xb5"
25417                           "\x20\x8c\x75\x7a\x2a\x17\x2f\xa9"
25418                           "\xb8\x4d\x11\x42\xd1\xf8\xf1",
25419                 .ilen   = 47,
25420                 .result = "\x8f\x3a\xc1\x05\x7f\xe7\xcb\x83"
25421                           "\xf9\xa6\x4d\xc3\x58\x31\x19\x2c"
25422                           "\xd7\x90\xc2\x56\x4e\xd8\x57\xc7"
25423                           "\xf6\xf0\x27\xb4\x25\x4c\x83",
25424                 .rlen   = 31,
25425         }, {
25426                 .key    = "\x9e\x03\x4f\x6d\xc3\x86\x75\x0a"
25427                           "\x19\xdd\x79\xe8\x57\xfb\x4a\xae"
25428                           "\xa2\x40\x45\x77\x90\x80\x37\xce"
25429                           "\x26\xfb\x5f\xaa\xdb\x64\x6b\x77",
25430                 .klen   = 32,
25431                 .iv     = "\xae\xcc\xde\xd5\x07\x25\x1f\x91"
25432                           "\x39\x14\xa6\x0c\x55\xc4\x7b\x30",
25433                 .assoc  = "",
25434                 .alen   = 0,
25435                 .input  = "\xbb\x01\x7c\xd1\x2c\x33\x7b\x37"
25436                           "\x0a\xee\xc4\x30\x19\xd7\x3a\x6f"
25437                           "\xf8\x2b\x67\xf5\x3b\x84\x87\x2a"
25438                           "\xfb\x07\x7a\x82\xb5\xe4\x85\x26"
25439                           "\x1e\xa8\xe5\x04\x54\xce\xe5\x5f"
25440                           "\xb5\x3f\xc1\xd5\x7f\xbd\xd2\xa6",
25441                 .ilen   = 48,
25442                 .result = "\xcc\x5f\xfb\xa4\x8f\x63\x74\x9f"
25443                           "\x7a\x81\xff\x55\x52\x56\xdc\x33"
25444                           "\x01\x52\xcd\xdb\x53\x78\xd9\xe1"
25445                           "\xb7\x1d\x06\x8d\xff\xab\x22\x98",
25446                 .rlen   = 32,
25447         }, {
25448                 .key    = "\xdb\x28\x89\x0c\xd3\x01\x1e\x26"
25449                           "\x9a\xb7\x2b\x79\x51\x1f\x0d\xb4"
25450                           "\xcc\x03\x50\xfc\x95\x20\xb9\xe7"
25451                           "\xe8\x29\x3e\x83\xb5\xc3\x0a\x4e",
25452                 .klen   = 32,
25453                 .iv     = "\xea\xf1\x18\x74\x17\xa0\xc8\xad"
25454                           "\xba\xee\x58\x9d\x4f\xe8\x3d\x36",
25455                 .assoc  = "",
25456                 .alen   = 0,
25457                 .input  = "\xc2\xf4\x40\x55\xf9\x59\xff\x73"
25458                           "\x08\xf5\x98\x92\x0c\x7b\x35\x9a"
25459                           "\xa8\xf4\x42\x7e\x6f\x93\xca\x22"
25460                           "\x23\x06\x1e\xf8\x89\x22\xf4\x46"
25461                           "\x7c\x7c\x67\x75\xab\xe5\x75\xaa"
25462                           "\x15\xd7\x83\x19\xfd\x31\x59\x5b"
25463                           "\x32",
25464                 .ilen   = 49,
25465                 .result = "\x08\x84\x34\x44\x9f\xde\x1c\xbb"
25466                           "\xfb\x5b\xb1\xe6\x4c\x7a\x9f\x39"
25467                           "\x2c\x14\xd9\x5f\x59\x18\x5b\xfb"
25468                           "\x79\x4b\xe5\x65\xd9\x0a\xc1\x6f"
25469                           "\x2e",
25470                 .rlen   = 33,
25471         }, {
25472                 .key    = "\x17\x4d\xc3\xab\xe3\x7d\xc7\x42"
25473                           "\x1b\x91\xdd\x0a\x4b\x43\xcf\xba"
25474                           "\xf6\xc5\x5c\x80\x9a\xc0\x3b\x01"
25475                           "\xa9\x56\x1d\x5b\x8f\x22\xa9\x25",
25476                 .klen   = 32,
25477                 .iv     = "\x27\x16\x51\x13\x27\x1c\x71\xc9"
25478                           "\x3b\xc8\x0a\x2f\x49\x0c\x00\x3c",
25479                 .assoc  = "",
25480                 .alen   = 0,
25481                 .input  = "\xc9\x82\x3b\x4b\x87\x84\xa5\xdb"
25482                           "\xa0\x8c\xd3\x3e\x7f\x8d\xe8\x28"
25483                           "\x2a\xdc\xfa\x01\x84\x87\x9a\x70"
25484                           "\x81\x75\x37\x0a\xd2\x75\xa9\xb6"
25485                           "\x21\x72\xee\x7e\x65\x95\xe5\xcc"
25486                           "\x01\xb7\x39\xa6\x51\x15\xca\xff"
25487                           "\x61\xdc\x97\x38\xcc\xf4\xca\xc7"
25488                           "\x83\x9b\x05\x11\x72\x60\xf0\xb4"
25489                           "\x7e\x06\xab\x0a\xc0\xbb\x59\x23"
25490                           "\xaa\x2d\xfc\x4e\x35\x05\x59",
25491                 .ilen   = 79,
25492                 .result = "\x45\xa8\x6e\xe3\xaf\x5a\xc5\xd7"
25493                           "\x7c\x35\x63\x77\x46\x9f\x61\x3f"
25494                           "\x56\xd7\xe4\xe3\x5e\xb8\xdc\x14"
25495                           "\x3a\x79\xc4\x3e\xb3\x69\x61\x46"
25496                           "\x3c\xb6\x83\x4e\xb4\x26\xc7\x73"
25497                           "\x22\xda\x52\x8b\x7d\x11\x98\xea"
25498                           "\x62\xe1\x14\x1e\xdc\xfe\x0f\xad"
25499                           "\x20\x76\x5a\xdc\x4e\x71\x13",
25500                 .rlen   = 63,
25501         }, {
25502                 .key    = "\x54\x71\xfd\x4b\xf3\xf9\x6f\x5e"
25503                           "\x9c\x6c\x8f\x9c\x45\x68\x92\xc1"
25504                           "\x21\x87\x67\x04\x9f\x60\xbd\x1b"
25505                           "\x6a\x84\xfc\x34\x6a\x81\x48\xfb",
25506                 .klen   = 32,
25507                 .iv     = "\x63\x3b\x8b\xb3\x37\x98\x1a\xe5"
25508                           "\xbc\xa2\xbc\xc0\x43\x31\xc2\x42",
25509                 .assoc  = "",
25510                 .alen   = 0,
25511                 .input  = "\x11\x7c\x7d\xef\xce\x29\x95\xec"
25512                           "\x7e\x9f\x42\xa6\x26\x07\xa1\x75"
25513                           "\x2f\x4e\x09\x9a\xf6\x6b\xc2\xfa"
25514                           "\x0d\xd0\x17\xdc\x25\x1e\x9b\xdc"
25515                           "\x5f\x8c\x1c\x60\x15\x4f\x9b\x20"
25516                           "\x7b\xff\xcd\x82\x60\x84\xf4\xa5"
25517                           "\x20\x9a\x05\x19\x5b\x02\x0a\x72"
25518                           "\x43\x11\x26\x58\xcf\xc5\x41\xcf"
25519                           "\x13\xcc\xde\x32\x92\xfa\x86\xf2"
25520                           "\xaf\x16\xe8\x8f\xca\xb6\xfd\x54",
25521                 .ilen   = 80,
25522                 .result = "\x81\xcd\xa8\x82\xbf\xd6\x6e\xf3"
25523                           "\xfd\x0f\x15\x09\x40\xc3\x24\x45"
25524                           "\x81\x99\xf0\x67\x63\x58\x5e\x2e"
25525                           "\xfb\xa6\xa3\x16\x8d\xc8\x00\x1c"
25526                           "\x4b\x62\x87\x7c\x15\x38\xda\x70"
25527                           "\x3d\xea\xe7\xf2\x40\xba\xae\x79"
25528                           "\x8f\x48\xfc\xbf\x45\x53\x2e\x78"
25529                           "\xef\x79\xf0\x1b\x49\xf7\xfd\x9c",
25530                 .rlen   = 64,
25531         }, {
25532                 .key    = "\x90\x96\x36\xea\x03\x74\x18\x7a"
25533                           "\x1d\x46\x42\x2d\x3f\x8c\x54\xc7"
25534                           "\x4b\x4a\x73\x89\xa4\x00\x3f\x34"
25535                           "\x2c\xb1\xdb\x0c\x44\xe0\xe8\xd2",
25536                 .klen   = 32,
25537                 .iv     = "\xa0\x5f\xc5\x52\x47\x13\xc2\x01"
25538                           "\x3d\x7c\x6e\x52\x3d\x55\x85\x48",
25539                 .assoc  = "\xaf",
25540                 .alen   = 1,
25541                 .input  = "\x9b\xc5\x3b\x20\x0a\x88\x56\xbe"
25542                           "\x69\xdf\xc4\xc4\x02\x46\x3a\xf0",
25543                 .ilen   = 16,
25544                 .result = "",
25545                 .rlen   = 0,
25546         }, {
25547                 .key    = "\xcd\xbb\x70\x89\x13\xf0\xc1\x95"
25548                           "\x9e\x20\xf4\xbf\x39\xb1\x17\xcd"
25549                           "\x76\x0c\x7f\x0d\xa9\xa0\xc1\x4e"
25550                           "\xed\xdf\xb9\xe4\x1e\x3f\x87\xa8",
25551                 .klen   = 32,
25552                 .iv     = "\xdc\x84\xfe\xf1\x58\x8f\x6b\x1c"
25553                           "\xbe\x57\x20\xe3\x37\x7a\x48\x4f",
25554                 .assoc  = "\xeb\x4d\x8d\x59\x9c\x2e\x15\xa3"
25555                           "\xde\x8d\x4d\x07\x36\x43\x78\xd0"
25556                           "\x0b\x6d\x84\x4f\x2c\xf0\x82\x5b"
25557                           "\x4e\xf6\x29\xd1\x8b\x6f\x56",
25558                 .alen   = 31,
25559                 .input  = "\xe0\x6d\xa1\x07\x98\x2f\x40\x2d"
25560                           "\x2e\x9a\xd6\x61\x43\xc0\x74\x69",
25561                 .ilen   = 16,
25562                 .result = "",
25563                 .rlen   = 0,
25564         }, {
25565                 .key    = "\x0a\xe0\xaa\x29\x24\x6c\x6a\xb1"
25566                           "\x1f\xfa\xa6\x50\x33\xd5\xda\xd3"
25567                           "\xa0\xce\x8a\x91\xae\x40\x43\x68"
25568                           "\xae\x0d\x98\xbd\xf8\x9e\x26\x7f",
25569                 .klen   = 32,
25570                 .iv     = "\x19\xa9\x38\x91\x68\x0b\x14\x38"
25571                           "\x3f\x31\xd2\x74\x31\x9e\x0a\x55",
25572                 .assoc  = "\x28\x72\xc7\xf8\xac\xaa\xbe\xbf"
25573                           "\x5f\x67\xff\x99\x30\x67\x3b\xd6"
25574                           "\x35\x2f\x90\xd3\x31\x90\x04\x74"
25575                           "\x0f\x23\x08\xa9\x65\xce\xf6\xea",
25576                 .alen   = 32,
25577                 .input  = "\xb9\x57\x13\x3e\x82\x31\x61\x65"
25578                           "\x0d\x7f\x6c\x96\x93\x5c\x50\xe2",
25579                 .ilen   = 16,
25580                 .result = "",
25581                 .rlen   = 0,
25582         }, {
25583                 .key    = "\x46\x04\xe3\xc8\x34\xe7\x12\xcd"
25584                           "\xa0\xd4\x58\xe2\x2d\xf9\x9c\xda"
25585                           "\xca\x91\x96\x15\xb4\xe0\xc5\x81"
25586                           "\x70\x3a\x77\x95\xd2\xfd\xc5\x55",
25587                 .klen   = 32,
25588                 .iv     = "\x55\xcd\x72\x30\x78\x86\xbd\x54"
25589                           "\xc0\x0b\x84\x06\x2b\xc2\xcd\x5b",
25590                 .assoc  = "\x64\x97\x00\x98\xbc\x25\x67\xdb"
25591                           "\xe0\x41\xb1\x2a\x2a\x8c\xfe\xdd"
25592                           "\x5f\xf2\x9c\x58\x36\x30\x86\x8e"
25593                           "\xd1\x51\xe6\x81\x3f\x2d\x95\xc1"
25594                           "\x01",
25595                 .alen   = 33,
25596                 .input  = "\x81\x96\x34\xde\xbb\x36\xdd\x3e"
25597                           "\x4e\x5e\xcb\x44\x21\xb8\x3f\xf1",
25598                 .ilen   = 16,
25599                 .result = "",
25600                 .rlen   = 0,
25601         }, {
25602                 .key    = "\x83\x29\x1d\x67\x44\x63\xbb\xe9"
25603                           "\x20\xaf\x0a\x73\x27\x1e\x5f\xe0"
25604                           "\xf5\x53\xa1\x9a\xb9\x80\x47\x9b"
25605                           "\x31\x68\x56\x6e\xac\x5c\x65\x2c",
25606                 .klen   = 32,
25607                 .iv     = "\x92\xf2\xac\xcf\x88\x02\x65\x70"
25608                           "\x41\xe5\x36\x97\x25\xe7\x90\x61",
25609                 .assoc  = "\xa1\xbb\x3a\x37\xcc\xa1\x10\xf7"
25610                           "\x61\x1c\x63\xbc\x24\xb0\xc0\xe3"
25611                           "\x8a\xb4\xa7\xdc\x3b\xd0\x08\xa8"
25612                           "\x92\x7f\xc5\x5a\x19\x8c\x34\x97"
25613                           "\x0f\x95\x9b\x18\xe4\x8d\xb4\x24"
25614                           "\xb9\x33\x28\x18\xe1\x9d\x14\xe0"
25615                           "\x64\xb2\x89\x7d\x78\xa8\x05\x7e"
25616                           "\x07\x8c\xfc\x88\x2d\xb8\x53",
25617                 .alen   = 63,
25618                 .input  = "\x2e\x99\xb6\x79\x57\x56\x80\x36"
25619                           "\x8e\xc4\x1c\x12\x7d\x71\x36\x0c",
25620                 .ilen   = 16,
25621                 .result = "",
25622                 .rlen   = 0,
25623         }, {
25624                 .key    = "\xbf\x4e\x57\x07\x54\xdf\x64\x05"
25625                           "\xa1\x89\xbc\x04\x21\x42\x22\xe6"
25626                           "\x1f\x15\xad\x1e\xbe\x20\xc9\xb4"
25627                           "\xf3\x95\x35\x46\x86\xbb\x04\x03",
25628                 .klen   = 32,
25629                 .iv     = "\xce\x17\xe5\x6f\x98\x7e\x0e\x8c"
25630                           "\xc2\xbf\xe8\x29\x1f\x0b\x52\x68",
25631                 .assoc  = "\xdd\xe0\x74\xd6\xdc\x1d\xb8\x13"
25632                           "\xe2\xf6\x15\x4d\x1e\xd4\x83\xe9"
25633                           "\xb4\x76\xb3\x60\x40\x70\x8a\xc1"
25634                           "\x53\xac\xa4\x32\xf3\xeb\xd3\x6e"
25635                           "\x1e\x42\xa0\x46\x45\x9f\xc7\x22"
25636                           "\xd3\x43\xbc\x7e\xa5\x47\x2a\x6f"
25637                           "\x91\x19\x70\x1e\xe1\xfe\x25\x49"
25638                           "\xd6\x8f\x93\xc7\x28\x3f\x3d\x03",
25639                 .alen   = 64,
25640                 .input  = "\x7b\x25\x3d\x47\xd4\xa7\x08\xce"
25641                           "\x3b\x89\x40\x36\xba\x6d\x0e\xa2",
25642                 .ilen   = 16,
25643                 .result = "",
25644                 .rlen   = 0,
25645         }, {
25646                 .key    = "\xfc\x72\x90\xa6\x64\x5a\x0d\x21"
25647                           "\x22\x63\x6e\x96\x1b\x67\xe4\xec"
25648                           "\x49\xd7\xb9\xa2\xc3\xc0\x4b\xce"
25649                           "\xb4\xc3\x14\x1e\x61\x1a\xa3\xd9",
25650                 .klen   = 32,
25651                 .iv     = "\x0b\x3c\x1f\x0e\xa8\xf9\xb7\xa7"
25652                           "\x42\x9a\x9a\xba\x19\x30\x15\x6e",
25653                 .assoc  = "\x1a",
25654                 .alen   = 1,
25655                 .input  = "\xe6\x09\x6f\x95\x9a\x18\xc8\xf6"
25656                           "\x17\x75\x81\x16\xdf\x26\xff\x67"
25657                           "\x92",
25658                 .ilen   = 17,
25659                 .result = "\x29",
25660                 .rlen   = 1,
25661         }, {
25662                 .key    = "\x38\x97\xca\x45\x74\xd6\xb6\x3c"
25663                           "\xa3\x3d\x20\x27\x15\x8b\xa7\xf2"
25664                           "\x74\x9a\xc4\x27\xc8\x60\xcd\xe8"
25665                           "\x75\xf0\xf2\xf7\x3b\x79\x42\xb0",
25666                 .klen   = 32,
25667                 .iv     = "\x47\x60\x59\xad\xb8\x75\x60\xc3"
25668                           "\xc3\x74\x4c\x4c\x13\x54\xd8\x74",
25669                 .assoc  = "\x56\x29\xe7\x15\xfc\x14\x0a\x4a"
25670                           "\xe4\xaa\x79\x70\x12\x1d\x08\xf6"
25671                           "\x09\xfb\xca\x69\x4b\xb0\x8e\xf5"
25672                           "\xd6\x07\x62\xe3\xa8\xa9\x12",
25673                 .alen   = 31,
25674                 .input  = "\x82\xc0\x56\xf0\xd7\xc4\xc9\xfd"
25675                           "\x3c\xd1\x2a\xd4\x15\x86\x9d\xda"
25676                           "\xea\x6c\x6f\xa1\x33\xb0\x7a\x01"
25677                           "\x57\xe7\xf3\x7b\x73\xe7\x54\x10"
25678                           "\xc6\x91\xe2\xc6\xa0\x69\xe7\xe6"
25679                           "\x76\xc3\xf5\x3a\x76\xfd\x4a",
25680                 .ilen   = 47,
25681                 .result = "\x66\xf3\x75\x7d\x40\xb3\xb4\xd1"
25682                           "\x04\xe1\xa6\x94\x10\xe6\x39\x77"
25683                           "\xd3\xac\x4d\x8a\x8c\x58\x6e\xfb"
25684                           "\x06\x13\x9a\xd9\x5e\xc0\xfa",
25685                 .rlen   = 31,
25686         }, {
25687                 .key    = "\x75\xbc\x04\xe5\x84\x52\x5e\x58"
25688                           "\x24\x17\xd2\xb9\x0e\xaf\x6a\xf9"
25689                           "\x9e\x5c\xd0\xab\xcd\x00\x4f\x01"
25690                           "\x37\x1e\xd1\xcf\x15\xd8\xe2\x86",
25691                 .klen   = 32,
25692                 .iv     = "\x84\x85\x92\x4d\xc8\xf1\x08\xdf"
25693                           "\x44\x4e\xff\xdd\x0d\x78\x9a\x7a",
25694                 .assoc  = "\x93\x4e\x21\xb4\x0c\x90\xb3\x66"
25695                           "\x65\x84\x2b\x01\x0b\x42\xcb\xfc"
25696                           "\x33\xbd\xd6\xed\x50\x50\x10\x0e"
25697                           "\x97\x35\x41\xbb\x82\x08\xb1\xf2",
25698                 .alen   = 32,
25699                 .input  = "\x01\x47\x8e\x6c\xf6\x64\x89\x3a"
25700                           "\x71\xce\xe4\xaa\x45\x70\xe6\x84"
25701                           "\x62\x48\x08\x64\x86\x6a\xdf\xec"
25702                           "\xb4\xa0\xfb\x34\x03\x0c\x19\xf4"
25703                           "\x2b\x7b\x36\x73\xec\x54\xa9\x1e"
25704                           "\x30\x85\xdb\xe4\xac\xe9\x2c\xca",
25705                 .ilen   = 48,
25706                 .result = "\xa2\x17\xaf\x1c\x50\x2e\x5d\xed"
25707                           "\x85\xbb\x58\x26\x0a\x0b\xfc\x7d"
25708                           "\xfe\x6e\x59\x0e\x91\xf8\xf0\x15"
25709                           "\xc8\x40\x78\xb1\x38\x1f\x99\xa7",
25710                 .rlen   = 32,
25711         }, {
25712                 .key    = "\xb1\xe1\x3e\x84\x94\xcd\x07\x74"
25713                           "\xa5\xf2\x84\x4a\x08\xd4\x2c\xff"
25714                           "\xc8\x1e\xdb\x2f\xd2\xa0\xd1\x1b"
25715                           "\xf8\x4c\xb0\xa8\xef\x37\x81\x5d",
25716                 .klen   = 32,
25717                 .iv     = "\xc0\xaa\xcc\xec\xd8\x6c\xb1\xfb"
25718                           "\xc5\x28\xb1\x6e\x07\x9d\x5d\x81",
25719                 .assoc  = "\xd0\x73\x5a\x54\x1d\x0b\x5b\x82"
25720                           "\xe5\x5f\xdd\x93\x05\x66\x8e\x02"
25721                           "\x5e\x80\xe1\x71\x55\xf0\x92\x28"
25722                           "\x59\x62\x20\x94\x5c\x67\x50\xc8"
25723                           "\x58",
25724                 .alen   = 33,
25725                 .input  = "\x85\xe0\xf8\x0f\x8e\x49\xe3\x60"
25726                           "\xcb\x4a\x54\x94\xcf\xf5\x7e\x34"
25727                           "\xe9\xf8\x80\x65\x53\xd0\x72\x70"
25728                           "\x4f\x7d\x9d\xd1\x15\x6f\xb9\x2c"
25729                           "\xfa\xe8\xdd\xac\x2e\xe1\x3f\x67"
25730                           "\x63\x0f\x1a\x59\xb7\x89\xdb\xf4"
25731                           "\xc3",
25732                 .ilen   = 49,
25733                 .result = "\xdf\x3c\xe9\xbc\x61\xaa\x06\x09"
25734                           "\x06\x95\x0a\xb7\x04\x2f\xbe\x84"
25735                           "\x28\x30\x64\x92\x96\x98\x72\x2e"
25736                           "\x89\x6e\x57\x8a\x13\x7e\x38\x7e"
25737                           "\xdb",
25738                 .rlen   = 33,
25739         }, {
25740                 .key    = "\xee\x05\x77\x23\xa5\x49\xb0\x90"
25741                           "\x26\xcc\x36\xdc\x02\xf8\xef\x05"
25742                           "\xf3\xe1\xe7\xb3\xd8\x40\x53\x35"
25743                           "\xb9\x79\x8f\x80\xc9\x96\x20\x33",
25744                 .klen   = 32,
25745                 .iv     = "\xfd\xce\x06\x8b\xe9\xe8\x5a\x17"
25746                           "\x46\x02\x63\x00\x01\xc1\x20\x87",
25747                 .assoc  = "\x0c\x98\x94\xf3\x2d\x87\x04\x9e"
25748                           "\x66\x39\x8f\x24\xff\x8a\x50\x08"
25749                           "\x88\x42\xed\xf6\x5a\x90\x14\x42"
25750                           "\x1a\x90\xfe\x6c\x36\xc6\xf0\x9f"
25751                           "\x66\xa0\xb5\x2d\x2c\xf8\x25\x15"
25752                           "\x55\x90\xa2\x7e\x77\x94\x96\x3a"
25753                           "\x71\x1c\xf7\x44\xee\xa8\xc3\x42"
25754                           "\xe2\xa3\x84\x04\x0b\xe1\xce",
25755                 .alen   = 63,
25756                 .input  = "\x00\xe5\x5b\x87\x5c\x20\x22\x8a"
25757                           "\xda\x1f\xd3\xff\xbb\xb2\xb0\xf8"
25758                           "\xef\xe9\xeb\x9e\x7c\x80\xf4\x2b"
25759                           "\x59\xc0\x79\xbc\x17\xa0\x15\x01"
25760                           "\xf5\x72\xfb\x5a\xe7\xaf\x07\xe3"
25761                           "\x1b\x49\x21\x34\x23\x63\x55\x5e"
25762                           "\xee\x4f\x34\x17\xfa\xfe\xa5\x0c"
25763                           "\xed\x0b\x23\xea\x9b\xda\x57\x2f"
25764                           "\xf6\xa9\xae\x0d\x4e\x40\x96\x45"
25765                           "\x7f\xfa\xf0\xbf\xc4\x98\x78",
25766                 .ilen   = 79,
25767                 .result = "\x1b\x61\x23\x5b\x71\x26\xae\x25"
25768                           "\x87\x6f\xbc\x49\xfe\x53\x81\x8a"
25769                           "\x53\xf2\x70\x17\x9b\x38\xf4\x48"
25770                           "\x4b\x9b\x36\x62\xed\xdd\xd8\x54"
25771                           "\xea\xcb\xb6\x79\x45\xfc\xaa\x54"
25772                           "\x5c\x94\x47\x58\xa7\xff\x9c\x9e"
25773                           "\x7c\xb6\xf1\xac\xc8\xfd\x8b\x35"
25774                           "\xd5\xa4\x6a\xd4\x09\xc2\x08",
25775                 .rlen   = 63,
25776         }, {
25777                 .key    = "\x2a\x2a\xb1\xc3\xb5\xc5\x59\xac"
25778                           "\xa7\xa6\xe8\x6d\xfc\x1d\xb2\x0b"
25779                           "\x1d\xa3\xf3\x38\xdd\xe0\xd5\x4e"
25780                           "\x7b\xa7\x6e\x58\xa3\xf5\xbf\x0a",
25781                 .klen   = 32,
25782                 .iv     = "\x39\xf3\x3f\x2b\xf9\x64\x03\x33"
25783                           "\xc7\xdd\x15\x91\xfb\xe6\xe2\x8d",
25784                 .assoc  = "\x49\xbc\xce\x92\x3d\x02\xad\xba"
25785                           "\xe7\x13\x41\xb6\xf9\xaf\x13\x0f"
25786                           "\xb2\x04\xf8\x7a\x5f\x30\x96\x5b"
25787                           "\xdc\xbd\xdd\x44\x10\x25\x8f\x75"
25788                           "\x75\x4d\xb9\x5b\x8e\x0a\x38\x13"
25789                           "\x6f\x9f\x36\xe4\x3a\x3e\xac\xc9"
25790                           "\x9d\x83\xde\xe5\x57\xfd\xe3\x0e"
25791                           "\xb1\xa7\x1b\x44\x05\x67\xb7\x37",
25792                 .alen   = 64,
25793                 .input  = "\x28\xdd\xb9\x4a\x12\xc7\x0a\xe1"
25794                           "\x58\x06\x1a\x9b\x8c\x67\xdf\xeb"
25795                           "\x35\x35\x60\x9d\x06\x40\x65\xc1"
25796                           "\x93\xe8\xb3\x82\x50\x29\xdd\xb5"
25797                           "\x2b\xcb\xde\x18\x78\x6b\x42\xbe"
25798                           "\x6d\x24\xd0\xb2\x7d\xd7\x08\x8f"
25799                           "\x4a\x18\x98\xad\x8c\xf2\x97\xb4"
25800                           "\xf4\x77\xe4\xbf\x41\x3b\xc4\x06"
25801                           "\xce\x9e\x34\x81\xf0\x89\x11\x13"
25802                           "\x02\x65\xa1\x7c\xdf\x07\x33\x06",
25803                 .ilen   = 80,
25804                 .result = "\x58\x85\x5c\xfa\x81\xa1\x57\x40"
25805                           "\x08\x4a\x6e\xda\xf8\x78\x44\x90"
25806                           "\x7d\xb5\x7b\x9b\xa1\xd8\x76\x62"
25807                           "\x0c\xc9\x15\x3b\xc7\x3c\x77\x2b"
25808                           "\xf8\x78\xba\xa7\xa6\x0e\xbd\x52"
25809                           "\x76\xa3\xdc\xbe\x6b\xa8\xb1\x2d"
25810                           "\xa9\x1d\xd8\x4e\x31\x53\xab\x00"
25811                           "\xa5\xa7\x01\x13\x04\x49\xf2\x04",
25812                 .rlen   = 64,
25813         }, {
25814                 .key    = "\x67\x4f\xeb\x62\xc5\x40\x01\xc7"
25815                           "\x28\x80\x9a\xfe\xf6\x41\x74\x12"
25816                           "\x48\x65\xfe\xbc\xe2\x80\x57\x68"
25817                           "\x3c\xd4\x4d\x31\x7d\x54\x5f\xe1",
25818                 .klen   = 32,
25819                 .iv     = "\x76\x18\x79\xca\x09\xdf\xac\x4e"
25820                           "\x48\xb7\xc7\x23\xf5\x0a\xa5\x93",
25821                 .assoc  = "\x85\xe1\x08\x32\x4d\x7e\x56\xd5"
25822                           "\x68\xed\xf3\x47\xf3\xd3\xd6\x15"
25823                           "\xdd\xc7\x04\xfe\x64\xd0\x18\x75"
25824                           "\x9d\xeb\xbc\x1d\xea\x84\x2e\x4c"
25825                           "\x83\xf9\xbe\x8a\xef\x1c\x4b\x10"
25826                           "\x89\xaf\xcb\x4b\xfe\xe7\xc1\x58"
25827                           "\xca\xea\xc6\x87\xc0\x53\x03\xd9"
25828                           "\x80\xaa\xb2\x83\xff\xee\xa1\x6a"
25829                           "\x04",
25830                 .alen   = 65,
25831                 .input  = "\x85\x39\x69\x35\xfb\xf9\xb0\xa6"
25832                           "\x85\x43\x88\xd0\xd7\x78\x60\x19"
25833                           "\x3e\x1f\xb1\xa4\xd6\xc5\x96\xec"
25834                           "\xf7\x84\x85\xc7\x27\x0f\x74\x57"
25835                           "\x28\x9e\xdd\x90\x3c\x43\x12\xc5"
25836                           "\x51\x3d\x39\x8f\xa5\xf4\xe0\x0b"
25837                           "\x57\x04\xf1\x6d\xfe\x9b\x84\x27"
25838                           "\xe8\xeb\x4d\xda\x02\x0a\xc5\x49"
25839                           "\x1a\x55\x5e\x50\x56\x4d\x94\xda"
25840                           "\x20\xf8\x12\x54\x50\xb3\x11\xda"
25841                           "\xed\x44\x27\x67\xd5\xd1\x8b\x4b"
25842                           "\x38\x67\x56\x65\x59\xda\xe6\x97"
25843                           "\x81\xae\x2f\x92\x3b\xae\x22\x1c"
25844                           "\x91\x59\x38\x18\x00\xe8\xba\x92"
25845                           "\x04\x19\x56\xdf\xb0\x82\xeb\x6f"
25846                           "\x2e\xdb\x54\x3c\x4b\xbb\x60\x90"
25847                           "\x4c\x50\x10\x62\xba\x7a\xb1\x68"
25848                           "\x37\xd7\x87\x4e\xe4\x66\x09\x1f"
25849                           "\xa5",
25850                 .ilen   = 145,
25851                 .result = "\x94\xaa\x96\x9a\x91\x1d\x00\x5c"
25852                           "\x88\x24\x20\x6b\xf2\x9c\x06\x96"
25853                           "\xa7\x77\x87\x1f\xa6\x78\xf8\x7b"
25854                           "\xcd\xf6\xf4\x13\xa1\x9b\x16\x02"
25855                           "\x07\x24\xbf\xd5\x08\x20\xd0\x4f"
25856                           "\x90\xb3\x70\x24\x2f\x51\xc7\xbb"
25857                           "\xd6\x84\xc0\xef\x9a\xa8\xca\xcc"
25858                           "\x74\xab\x97\x53\xfe\xd0\xdb\x37"
25859                           "\x37\x6a\x0e\x9f\x3f\xa3\x2a\xe3"
25860                           "\x1b\x34\x6d\x51\x72\x2b\x17\xe7"
25861                           "\x4d\xaa\x2c\x18\xda\xa3\x33\x89"
25862                           "\x2a\x9f\xf4\xd2\xed\x76\x3d\x3f"
25863                           "\x3c\x15\x9d\x8e\x4f\x3c\x27\xb0"
25864                           "\x42\x3f\x2f\x8a\xd4\xc2\x10\xb2"
25865                           "\x27\x7f\xe3\x34\x80\x02\x49\x4b"
25866                           "\x07\x68\x22\x2a\x88\x25\x53\xb2"
25867                           "\x2f",
25868                 .rlen   = 129,
25869         }, {
25870                 .key    = "\xa3\x73\x24\x01\xd5\xbc\xaa\xe3"
25871                           "\xa9\x5a\x4c\x90\xf0\x65\x37\x18"
25872                           "\x72\x28\x0a\x40\xe7\x20\xd9\x82"
25873                           "\xfe\x02\x2b\x09\x57\xb3\xfe\xb7",
25874                 .klen   = 32,
25875                 .iv     = "\xb3\x3d\xb3\x69\x19\x5b\x54\x6a"
25876                           "\xc9\x91\x79\xb4\xef\x2e\x68\x99",
25877                 .assoc  = "\xc2\x06\x41\xd1\x5d\xfa\xff\xf1"
25878                           "\xe9\xc7\xa5\xd9\xed\xf8\x98\x1b"
25879                           "\x07\x89\x10\x82\x6a\x70\x9a\x8f"
25880                           "\x5e\x19\x9b\xf5\xc5\xe3\xcd\x22"
25881                           "\x92\xa5\xc2\xb8\x51\x2e\x5e\x0e"
25882                           "\xa4\xbe\x5f\xb1\xc1\x90\xd7\xe7"
25883                           "\xf7\x52\xae\x28\x29\xa8\x22\xa4"
25884                           "\x4f\xae\x48\xc2\xfa\x75\x8b\x9e"
25885                           "\xce\x83\x2a\x88\x07\x55\xbb\x89"
25886                           "\xf6\xdf\xac\xdf\x83\x08\xbf\x7d"
25887                           "\xac\x30\x8b\x8e\x02\xac\x00\xf1"
25888                           "\x30\x46\xe1\xbc\x75\xbf\x49\xbb"
25889                           "\x26\x4e\x29\xf0\x2f\x21\xc6\x13"
25890                           "\x92\xd9\x3d\x11\xe4\x10\x00\x8e"
25891                           "\xd4\xd4\x58\x65\xa6\x2b\xe3\x25"
25892                           "\xb1\x8f\x15\x93\xe7\x71\xb9\x2c"
25893                           "\x4b",
25894                 .alen   = 129,
25895                 .input  = "\x7d\xde\x53\x22\xe4\x23\x3b\x30"
25896                           "\x78\xde\x35\x90\x7a\xd9\x0b\x93"
25897                           "\xf6\x0e\x0b\xed\x40\xee\x10\x9c"
25898                           "\x96\x3a\xd3\x34\xb2\xd0\x67\xcf"
25899                           "\x63\x7f\x2d\x0c\xcf\x96\xec\x64"
25900                           "\x1a\x87\xcc\x7d\x2c\x5e\x81\x4b"
25901                           "\xd2\x8f\x4c\x7c\x00\xb1\xb4\xe0"
25902                           "\x87\x4d\xb1\xbc\xd8\x78\x2c\x17"
25903                           "\xf2\x3b\xd8\x28\x40\xe2\x76\xf6"
25904                           "\x20\x13\x83\x46\xaf\xff\xe3\x0f"
25905                           "\x72",
25906                 .ilen   = 81,
25907                 .result = "\xd1\xcf\xd0\x39\xa1\x99\xa9\x78"
25908                           "\x09\xfe\xd2\xfd\xec\xc1\xc9\x9d"
25909                           "\xd2\x39\x93\xa3\xab\x18\x7a\x95"
25910                           "\x8f\x24\xd3\xeb\x7b\xfa\xb5\xd8"
25911                           "\x15\xd1\xc3\x04\x69\x32\xe3\x4d"
25912                           "\xaa\xc2\x04\x8b\xf2\xfa\xdc\x4a"
25913                           "\x02\xeb\xa8\x90\x03\xfd\xea\x97"
25914                           "\x43\xaf\x2e\x92\xf8\x57\xc5\x6a"
25915                           "\x00",
25916                 .rlen   = 65,
25917         }, {
25918                 .key    = "\xe0\x98\x5e\xa1\xe5\x38\x53\xff"
25919                           "\x2a\x35\xfe\x21\xea\x8a\xfa\x1e"
25920                           "\x9c\xea\x15\xc5\xec\xc0\x5b\x9b"
25921                           "\xbf\x2f\x0a\xe1\x32\x12\x9d\x8e",
25922                 .klen   = 32,
25923                 .iv     = "\xef\x61\xed\x08\x29\xd7\xfd\x86"
25924                           "\x4a\x6b\x2b\x46\xe9\x53\x2a\xa0",
25925                 .assoc  = "\xfe\x2a\x7b\x70\x6d\x75\xa7\x0d"
25926                           "\x6a\xa2\x57\x6a\xe7\x1c\x5b\x21"
25927                           "\x31\x4b\x1b\x07\x6f\x10\x1c\xa8"
25928                           "\x20\x46\x7a\xce\x9f\x42\x6d\xf9",
25929                 .alen   = 32,
25930                 .input  = "\x5a\xcd\x8c\x57\xf2\x6a\xb6\xbe"
25931                           "\x53\xc7\xaa\x9a\x60\x74\x9c\xc4"
25932                           "\xa2\xc2\xd0\x6d\xe1\x03\x63\xdc"
25933                           "\xbb\x51\x7e\x9c\x89\x73\xde\x4e"
25934                           "\x24\xf8\x52\x7c\x15\x41\x0e\xba"
25935                           "\x69\x0e\x36\x5f\x2f\x22\x8c",
25936                 .ilen   = 47,
25937                 .result = "\x0d\xf4\x09\xd8\xb1\x14\x51\x94"
25938                           "\x8a\xd8\x84\x8e\xe6\xe5\x8c\xa3"
25939                           "\xfc\xfc\x9e\x28\xb0\xb8\xfc\xaf"
25940                           "\x50\x52\xb1\xc4\x55\x59\x55\xaf",
25941                 .rlen   = 32,
25942         }, {
25943                 .key    = "\x1c\xbd\x98\x40\xf5\xb3\xfc\x1b"
25944                           "\xaa\x0f\xb0\xb3\xe4\xae\xbc\x24"
25945                           "\xc7\xac\x21\x49\xf1\x60\xdd\xb5"
25946                           "\x80\x5d\xe9\xba\x0c\x71\x3c\x64",
25947                 .klen   = 32,
25948                 .iv     = "\x2c\x86\x26\xa8\x39\x52\xa6\xa2"
25949                           "\xcb\x45\xdd\xd7\xe3\x77\xed\xa6",
25950                 .assoc  = "\x3b\x4f\xb5\x10\x7d\xf1\x50\x29"
25951                           "\xeb\x7c\x0a\xfb\xe1\x40\x1e\x27"
25952                           "\x5c\x0d\x27\x8b\x74\xb0\x9e\xc2"
25953                           "\xe1\x74\x59\xa6\x79\xa1\x0c\xd0",
25954                 .alen   = 32,
25955                 .input  = "\x47\xd6\xce\x78\xd6\xbf\x4a\x51"
25956                           "\xb8\xda\x92\x3c\xfd\xda\xac\x8e"
25957                           "\x8d\x88\xd7\x4d\x90\xe5\xeb\xa1"
25958                           "\xab\xd6\x7c\x76\xad\xea\x7d\x76"
25959                           "\x53\xee\xb0\xcd\xd0\x02\xbb\x70"
25960                           "\x5b\x6f\x7b\xe2\x8c\xe8",
25961                 .ilen   = 46,
25962                 .result = "\x4a\x18\x43\x77\xc1\x90\xfa\xb0"
25963                           "\x0b\xb2\x36\x20\xe0\x09\x4e\xa9"
25964                           "\x26\xbe\xaa\xac\xb5\x58\x7e\xc8"
25965                           "\x11\x7f\x90\x9c\x2f\xb8\xf4\x85",
25966                 .rlen   = 32,
25967         }, {
25968                 .key    = "\x59\xe1\xd2\xdf\x05\x2f\xa4\x37"
25969                           "\x2b\xe9\x63\x44\xde\xd3\x7f\x2b"
25970                           "\xf1\x6f\x2d\xcd\xf6\x00\x5f\xcf"
25971                           "\x42\x8a\xc8\x92\xe6\xd0\xdc\x3b",
25972                 .klen   = 32,
25973                 .iv     = "\x68\xab\x60\x47\x49\xce\x4f\xbe"
25974                           "\x4c\x20\x8f\x68\xdd\x9c\xb0\xac",
25975                 .assoc  = "\x77\x74\xee\xaf\x8d\x6d\xf9\x45"
25976                           "\x6c\x56\xbc\x8d\xdb\x65\xe0\x2e"
25977                           "\x86\xd0\x32\x0f\x79\x50\x20\xdb"
25978                           "\xa2\xa1\x37\x7e\x53\x00\xab\xa6",
25979                 .alen   = 32,
25980                 .input  = "\x9f\xa9\x2b\xa4\x8f\x00\x05\x2b"
25981                           "\xe7\x68\x81\x51\xbb\xfb\xdf\x60"
25982                           "\xbb\xac\xe8\xc1\xdc\x68\xae\x68"
25983                           "\x3a\xcd\x7a\x06\x49\xfe\x80\x11"
25984                           "\xe6\x61\x99\xe2\xdd\xbe\x2c\xbf",
25985                 .ilen   = 40,
25986                 .result = "\x86\x3d\x7d\x17\xd1\x0c\xa3\xcc"
25987                           "\x8c\x8d\xe8\xb1\xda\x2e\x11\xaf"
25988                           "\x51\x80\xb5\x30\xba\xf8\x00\xe2"
25989                           "\xd3\xad\x6f\x75\x09\x18\x93\x5c",
25990                 .rlen   = 32,
25991         }, {
25992                 .key    = "\x96\x06\x0b\x7f\x15\xab\x4d\x53"
25993                           "\xac\xc3\x15\xd6\xd8\xf7\x42\x31"
25994                           "\x1b\x31\x38\x51\xfc\xa0\xe1\xe8"
25995                           "\x03\xb8\xa7\x6b\xc0\x2f\x7b\x11",
25996                 .klen   = 32,
25997                 .iv     = "\xa5\xcf\x9a\xe6\x59\x4a\xf7\xd9"
25998                           "\xcd\xfa\x41\xfa\xd7\xc0\x72\xb2",
25999                 .assoc  = "\xb4\x99\x28\x4e\x9d\xe8\xa2\x60"
26000                           "\xed\x30\x6e\x1e\xd5\x89\xa3\x34"
26001                           "\xb1\x92\x3e\x93\x7e\xf0\xa2\xf5"
26002                           "\x64\xcf\x16\x57\x2d\x5f\x4a\x7d",
26003                 .alen   = 32,
26004                 .input  = "\xe2\x34\xfa\x25\xfd\xfb\x89\x5e"
26005                           "\x5b\x4e\x0b\x15\x6e\x39\xfb\x0c"
26006                           "\x73\xc7\xd9\x6b\xbe\xce\x9b\x70"
26007                           "\xc7\x4f\x96\x16\x03\xfc\xea\xfb"
26008                           "\x56",
26009                 .ilen   = 33,
26010                 .result = "\xc3\x62\xb7\xb6\xe2\x87\x4c\xe7"
26011                           "\x0d\x67\x9a\x43\xd4\x52\xd4\xb5"
26012                           "\x7b\x43\xc1\xb5\xbf\x98\x82\xfc"
26013                           "\x94\xda\x4e\x4d\xe4\x77\x32\x32",
26014                 .rlen   = 32,
26015         },
26016 };
26017
26018 /*
26019  * All key wrapping test vectors taken from
26020  * http://csrc.nist.gov/groups/STM/cavp/documents/mac/kwtestvectors.zip
26021  *
26022  * Note: as documented in keywrap.c, the ivout for encryption is the first
26023  * semiblock of the ciphertext from the test vector. For decryption, iv is
26024  * the first semiblock of the ciphertext.
26025  */
26026 static const struct cipher_testvec aes_kw_tv_template[] = {
26027         {
26028                 .key    = "\x75\x75\xda\x3a\x93\x60\x7c\xc2"
26029                           "\xbf\xd8\xce\xc7\xaa\xdf\xd9\xa6",
26030                 .klen   = 16,
26031                 .ptext  = "\x42\x13\x6d\x3c\x38\x4a\x3e\xea"
26032                           "\xc9\x5a\x06\x6f\xd2\x8f\xed\x3f",
26033                 .ctext  = "\xf6\x85\x94\x81\x6f\x64\xca\xa3"
26034                           "\xf5\x6f\xab\xea\x25\x48\xf5\xfb",
26035                 .len    = 16,
26036                 .iv     = "\x03\x1f\x6b\xd7\xe6\x1e\x64\x3d",
26037                 .generates_iv = true,
26038         }, {
26039                 .key    = "\x80\xaa\x99\x73\x27\xa4\x80\x6b"
26040                           "\x6a\x7a\x41\xa5\x2b\x86\xc3\x71"
26041                           "\x03\x86\xf9\x32\x78\x6e\xf7\x96"
26042                           "\x76\xfa\xfb\x90\xb8\x26\x3c\x5f",
26043                 .klen   = 32,
26044                 .ptext  = "\x0a\x25\x6b\xa7\x5c\xfa\x03\xaa"
26045                           "\xa0\x2b\xa9\x42\x03\xf1\x5b\xaa",
26046                 .ctext  = "\xd3\x3d\x3d\x97\x7b\xf0\xa9\x15"
26047                           "\x59\xf9\x9c\x8a\xcd\x29\x3d\x43",
26048                 .len    = 16,
26049                 .iv     = "\x42\x3c\x96\x0d\x8a\x2a\xc4\xc1",
26050                 .generates_iv = true,
26051         },
26052 };
26053
26054 /*
26055  * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
26056  * test vectors, taken from Appendix B.2.9 and B.2.10:
26057  *     http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
26058  * Only AES-128 is supported at this time.
26059  */
26060 static const struct cprng_testvec ansi_cprng_aes_tv_template[] = {
26061         {
26062                 .key    = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
26063                           "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
26064                 .klen   = 16,
26065                 .dt     = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
26066                           "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
26067                 .dtlen  = 16,
26068                 .v      = "\x80\x00\x00\x00\x00\x00\x00\x00"
26069                           "\x00\x00\x00\x00\x00\x00\x00\x00",
26070                 .vlen   = 16,
26071                 .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
26072                           "\x84\x79\x66\x85\xc1\x2f\x76\x41",
26073                 .rlen   = 16,
26074                 .loops  = 1,
26075         }, {
26076                 .key    = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
26077                           "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
26078                 .klen   = 16,
26079                 .dt     = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
26080                           "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
26081                 .dtlen  = 16,
26082                 .v      = "\xc0\x00\x00\x00\x00\x00\x00\x00"
26083                           "\x00\x00\x00\x00\x00\x00\x00\x00",
26084                 .vlen   = 16,
26085                 .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
26086                           "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
26087                 .rlen   = 16,
26088                 .loops  = 1,
26089         }, {
26090                 .key    = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
26091                           "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
26092                 .klen   = 16,
26093                 .dt     = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
26094                           "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
26095                 .dtlen  = 16,
26096                 .v      = "\xe0\x00\x00\x00\x00\x00\x00\x00"
26097                           "\x00\x00\x00\x00\x00\x00\x00\x00",
26098                 .vlen   = 16,
26099                 .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
26100                           "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
26101                 .rlen   = 16,
26102                 .loops  = 1,
26103         }, {
26104                 .key    = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
26105                           "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
26106                 .klen   = 16,
26107                 .dt     = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
26108                           "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
26109                 .dtlen  = 16,
26110                 .v      = "\xf0\x00\x00\x00\x00\x00\x00\x00"
26111                           "\x00\x00\x00\x00\x00\x00\x00\x00",
26112                 .vlen   = 16,
26113                 .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
26114                           "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
26115                 .rlen   = 16,
26116                 .loops  = 1,
26117         }, {
26118                 .key    = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
26119                           "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
26120                 .klen   = 16,
26121                 .dt     = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
26122                           "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd",
26123                 .dtlen  = 16,
26124                 .v      = "\xf8\x00\x00\x00\x00\x00\x00\x00"
26125                           "\x00\x00\x00\x00\x00\x00\x00\x00",
26126                 .vlen   = 16,
26127                 .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb"
26128                           "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
26129                 .rlen   = 16,
26130                 .loops  = 1,
26131         }, {    /* Monte Carlo Test */
26132                 .key    = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
26133                           "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
26134                 .klen   = 16,
26135                 .dt     = "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
26136                           "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
26137                 .dtlen  = 16,
26138                 .v      = "\x57\x2c\x8e\x76\x87\x26\x47\x97"
26139                           "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
26140                 .vlen   = 16,
26141                 .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
26142                           "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
26143                 .rlen   = 16,
26144                 .loops  = 10000,
26145         },
26146 };
26147
26148 /*
26149  * SP800-90A DRBG Test vectors from
26150  * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
26151  *
26152  * Test vectors for DRBG with prediction resistance. All types of DRBGs
26153  * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
26154  * w/o personalization string, w/ and w/o additional input string).
26155  */
26156 static const struct drbg_testvec drbg_pr_sha256_tv_template[] = {
26157         {
26158                 .entropy = (unsigned char *)
26159                         "\x72\x88\x4c\xcd\x6c\x85\x57\x70\xf7\x0b\x8b\x86"
26160                         "\xc1\xeb\xd2\x4e\x36\x14\xab\x18\xc4\x9c\xc9\xcf"
26161                         "\x1a\xe8\xf7\x7b\x02\x49\x73\xd7\xf1\x42\x7d\xc6"
26162                         "\x3f\x29\x2d\xec\xd3\x66\x51\x3f\x1d\x8d\x5b\x4e",
26163                 .entropylen = 48,
26164                 .entpra = (unsigned char *)
26165                         "\x38\x9c\x91\xfa\xc2\xa3\x46\x89\x56\x08\x3f\x62"
26166                         "\x73\xd5\x22\xa9\x29\x63\x3a\x1d\xe5\x5d\x5e\x4f"
26167                         "\x67\xb0\x67\x7a\x5e\x9e\x0c\x62",
26168                 .entprb = (unsigned char *)
26169                         "\xb2\x8f\x36\xb2\xf6\x8d\x39\x13\xfa\x6c\x66\xcf"
26170                         "\x62\x8a\x7e\x8c\x12\x33\x71\x9c\x69\xe4\xa5\xf0"
26171                         "\x8c\xee\xeb\x9c\xf5\x31\x98\x31",
26172                 .entprlen = 32,
26173                 .expected = (unsigned char *)
26174                         "\x52\x7b\xa3\xad\x71\x77\xa4\x49\x42\x04\x61\xc7"
26175                         "\xf0\xaf\xa5\xfd\xd3\xb3\x0d\x6a\x61\xba\x35\x49"
26176                         "\xbb\xaa\xaf\xe4\x25\x7d\xb5\x48\xaf\x5c\x18\x3d"
26177                         "\x33\x8d\x9d\x45\xdf\x98\xd5\x94\xa8\xda\x92\xfe"
26178                         "\xc4\x3c\x94\x2a\xcf\x7f\x7b\xf2\xeb\x28\xa9\xf1"
26179                         "\xe0\x86\x30\xa8\xfe\xf2\x48\x90\x91\x0c\x75\xb5"
26180                         "\x3c\x00\xf0\x4d\x09\x4f\x40\xa7\xa2\x8c\x52\xdf"
26181                         "\x52\xef\x17\xbf\x3d\xd1\xa2\x31\xb4\xb8\xdc\xe6"
26182                         "\x5b\x0d\x1f\x78\x36\xb4\xe6\x4b\xa7\x11\x25\xd5"
26183                         "\x94\xc6\x97\x36\xab\xf0\xe5\x31\x28\x6a\xbb\xce"
26184                         "\x30\x81\xa6\x8f\x27\x14\xf8\x1c",
26185                 .expectedlen = 128,
26186                 .addtla = NULL,
26187                 .addtlb = NULL,
26188                 .addtllen = 0,
26189                 .pers = NULL,
26190                 .perslen = 0,
26191         }, {
26192                 .entropy = (unsigned char *)
26193                         "\x5d\xf2\x14\xbc\xf6\xb5\x4e\x0b\xf0\x0d\x6f\x2d"
26194                         "\xe2\x01\x66\x7b\xd0\xa4\x73\xa4\x21\xdd\xb0\xc0"
26195                         "\x51\x79\x09\xf4\xea\xa9\x08\xfa\xa6\x67\xe0\xe1"
26196                         "\xd1\x88\xa8\xad\xee\x69\x74\xb3\x55\x06\x9b\xf6",
26197                 .entropylen = 48,
26198                 .entpra = (unsigned char *)
26199                         "\xef\x48\x06\xa2\xc2\x45\xf1\x44\xfa\x34\x2c\xeb"
26200                         "\x8d\x78\x3c\x09\x8f\x34\x72\x20\xf2\xe7\xfd\x13"
26201                         "\x76\x0a\xf6\xdc\x3c\xf5\xc0\x15",
26202                 .entprb = (unsigned char *)
26203                         "\x4b\xbe\xe5\x24\xed\x6a\x2d\x0c\xdb\x73\x5e\x09"
26204                         "\xf9\xad\x67\x7c\x51\x47\x8b\x6b\x30\x2a\xc6\xde"
26205                         "\x76\xaa\x55\x04\x8b\x0a\x72\x95",
26206                 .entprlen = 32,
26207                 .expected = (unsigned char *)
26208                         "\x3b\x14\x71\x99\xa1\xda\xa0\x42\xe6\xc8\x85\x32"
26209                         "\x70\x20\x32\x53\x9a\xbe\xd1\x1e\x15\xef\xfb\x4c"
26210                         "\x25\x6e\x19\x3a\xf0\xb9\xcb\xde\xf0\x3b\xc6\x18"
26211                         "\x4d\x85\x5a\x9b\xf1\xe3\xc2\x23\x03\x93\x08\xdb"
26212                         "\xa7\x07\x4b\x33\x78\x40\x4d\xeb\x24\xf5\x6e\x81"
26213                         "\x4a\x1b\x6e\xa3\x94\x52\x43\xb0\xaf\x2e\x21\xf4"
26214                         "\x42\x46\x8e\x90\xed\x34\x21\x75\xea\xda\x67\xb6"
26215                         "\xe4\xf6\xff\xc6\x31\x6c\x9a\x5a\xdb\xb3\x97\x13"
26216                         "\x09\xd3\x20\x98\x33\x2d\x6d\xd7\xb5\x6a\xa8\xa9"
26217                         "\x9a\x5b\xd6\x87\x52\xa1\x89\x2b\x4b\x9c\x64\x60"
26218                         "\x50\x47\xa3\x63\x81\x16\xaf\x19",
26219                 .expectedlen = 128,
26220                 .addtla = (unsigned char *)
26221                         "\xbe\x13\xdb\x2a\xe9\xa8\xfe\x09\x97\xe1\xce\x5d"
26222                         "\xe8\xbb\xc0\x7c\x4f\xcb\x62\x19\x3f\x0f\xd2\xad"
26223                         "\xa9\xd0\x1d\x59\x02\xc4\xff\x70",
26224                 .addtlb = (unsigned char *)
26225                         "\x6f\x96\x13\xe2\xa7\xf5\x6c\xfe\xdf\x66\xe3\x31"
26226                         "\x63\x76\xbf\x20\x27\x06\x49\xf1\xf3\x01\x77\x41"
26227                         "\x9f\xeb\xe4\x38\xfe\x67\x00\xcd",
26228                 .addtllen = 32,
26229                 .pers = NULL,
26230                 .perslen = 0,
26231         }, {
26232                 .entropy = (unsigned char *)
26233                         "\xc6\x1c\xaf\x83\xa2\x56\x38\xf9\xb0\xbc\xd9\x85"
26234                         "\xf5\x2e\xc4\x46\x9c\xe1\xb9\x40\x98\x70\x10\x72"
26235                         "\xd7\x7d\x15\x85\xa1\x83\x5a\x97\xdf\xc8\xa8\xe8"
26236                         "\x03\x4c\xcb\x70\x35\x8b\x90\x94\x46\x8a\x6e\xa1",
26237                 .entropylen = 48,
26238                 .entpra = (unsigned char *)
26239                         "\xc9\x05\xa4\xcf\x28\x80\x4b\x93\x0f\x8b\xc6\xf9"
26240                         "\x09\x41\x58\x74\xe9\xec\x28\xc7\x53\x0a\x73\x60"
26241                         "\xba\x0a\xde\x57\x5b\x4b\x9f\x29",
26242                 .entprb = (unsigned char *)
26243                         "\x4f\x31\xd2\xeb\xac\xfa\xa8\xe2\x01\x7d\xf3\xbd"
26244                         "\x42\xbd\x20\xa0\x30\x65\x74\xd5\x5d\xd2\xad\xa4"
26245                         "\xa9\xeb\x1f\x4d\xf6\xfd\xb8\x26",
26246                 .entprlen = 32,
26247                 .expected = (unsigned char *)
26248                         "\xf6\x13\x05\xcb\x83\x60\x16\x42\x49\x1d\xc6\x25"
26249                         "\x3b\x8c\x31\xa3\xbe\x8b\xbd\x1c\xe2\xec\x1d\xde"
26250                         "\xbb\xbf\xa1\xac\xa8\x9f\x50\xce\x69\xce\xef\xd5"
26251                         "\xd6\xf2\xef\x6a\xf7\x81\x38\xdf\xbc\xa7\x5a\xb9"
26252                         "\xb2\x42\x65\xab\xe4\x86\x8d\x2d\x9d\x59\x99\x2c"
26253                         "\x5a\x0d\x71\x55\x98\xa4\x45\xc2\x8d\xdb\x05\x5e"
26254                         "\x50\x21\xf7\xcd\xe8\x98\x43\xce\x57\x74\x63\x4c"
26255                         "\xf3\xb1\xa5\x14\x1e\x9e\x01\xeb\x54\xd9\x56\xae"
26256                         "\xbd\xb6\x6f\x1a\x47\x6b\x3b\x44\xe4\xa2\xe9\x3c"
26257                         "\x6c\x83\x12\x30\xb8\x78\x7f\x8e\x54\x82\xd4\xfe"
26258                         "\x90\x35\x0d\x4c\x4d\x85\xe7\x13",
26259                 .expectedlen = 128,
26260                 .addtla = NULL,
26261                 .addtlb = NULL,
26262                 .addtllen = 0,
26263                 .pers = (unsigned char *)
26264                         "\xa5\xbf\xac\x4f\x71\xa1\xbb\x67\x94\xc6\x50\xc7"
26265                         "\x2a\x45\x9e\x10\xa8\xed\xf7\x52\x4f\xfe\x21\x90"
26266                         "\xa4\x1b\xe1\xe2\x53\xcc\x61\x47",
26267                 .perslen = 32,
26268         }, {
26269                 .entropy = (unsigned char *)
26270                         "\xb6\xc1\x8d\xdf\x99\x54\xbe\x95\x10\x48\xd9\xf6"
26271                         "\xd7\x48\xa8\x73\x2d\x74\xde\x1e\xde\x57\x7e\xf4"
26272                         "\x7b\x7b\x64\xef\x88\x7a\xa8\x10\x4b\xe1\xc1\x87"
26273                         "\xbb\x0b\xe1\x39\x39\x50\xaf\x68\x9c\xa2\xbf\x5e",
26274                 .entropylen = 48,
26275                 .entpra = (unsigned char *)
26276                         "\xdc\x81\x0a\x01\x58\xa7\x2e\xce\xee\x48\x8c\x7c"
26277                         "\x77\x9e\x3c\xf1\x17\x24\x7a\xbb\xab\x9f\xca\x12"
26278                         "\x19\xaf\x97\x2d\x5f\xf9\xff\xfc",
26279                 .entprb = (unsigned char *)
26280                         "\xaf\xfc\x4f\x98\x8b\x93\x95\xc1\xb5\x8b\x7f\x73"
26281                         "\x6d\xa6\xbe\x6d\x33\xeb\x2c\x82\xb1\xaf\xc1\xb6"
26282                         "\xb6\x05\xe2\x44\xaa\xfd\xe7\xdb",
26283                 .entprlen = 32,
26284                 .expected = (unsigned char *)
26285                         "\x51\x79\xde\x1c\x0f\x58\xf3\xf4\xc9\x57\x2e\x31"
26286                         "\xa7\x09\xa1\x53\x64\x63\xa2\xc5\x1d\x84\x88\x65"
26287                         "\x01\x1b\xc6\x16\x3c\x49\x5b\x42\x8e\x53\xf5\x18"
26288                         "\xad\x94\x12\x0d\x4f\x55\xcc\x45\x5c\x98\x0f\x42"
26289                         "\x28\x2f\x47\x11\xf9\xc4\x01\x97\x6b\xa0\x94\x50"
26290                         "\xa9\xd1\x5e\x06\x54\x3f\xdf\xbb\xc4\x98\xee\x8b"
26291                         "\xba\xa9\xfa\x49\xee\x1d\xdc\xfb\x50\xf6\x51\x9f"
26292                         "\x6c\x4a\x9a\x6f\x63\xa2\x7d\xad\xaf\x3a\x24\xa0"
26293                         "\xd9\x9f\x07\xeb\x15\xee\x26\xe0\xd5\x63\x39\xda"
26294                         "\x3c\x59\xd6\x33\x6c\x02\xe8\x05\x71\x46\x68\x44"
26295                         "\x63\x4a\x68\x72\xe9\xf5\x55\xfe",
26296                 .expectedlen = 128,
26297                 .addtla = (unsigned char *)
26298                         "\x15\x20\x2f\xf6\x98\x28\x63\xa2\xc4\x4e\xbb\x6c"
26299                         "\xb2\x25\x92\x61\x79\xc9\x22\xc4\x61\x54\x96\xff"
26300                         "\x4a\x85\xca\x80\xfe\x0d\x1c\xd0",
26301                 .addtlb = (unsigned char *)
26302                         "\xde\x29\x8e\x03\x42\x61\xa3\x28\x5e\xc8\x80\xc2"
26303                         "\x6d\xbf\xad\x13\xe1\x8d\x2a\xc7\xe8\xc7\x18\x89"
26304                         "\x42\x58\x9e\xd6\xcc\xad\x7b\x1e",
26305                 .addtllen = 32,
26306                 .pers = (unsigned char *)
26307                         "\x84\xc3\x73\x9e\xce\xb3\xbc\x89\xf7\x62\xb3\xe1"
26308                         "\xd7\x48\x45\x8a\xa9\xcc\xe9\xed\xd5\x81\x84\x52"
26309                         "\x82\x4c\xdc\x19\xb8\xf8\x92\x5c",
26310                 .perslen = 32,
26311         },
26312 };
26313
26314 static const struct drbg_testvec drbg_pr_hmac_sha256_tv_template[] = {
26315         {
26316                 .entropy = (unsigned char *)
26317                         "\x99\x69\xe5\x4b\x47\x03\xff\x31\x78\x5b\x87\x9a"
26318                         "\x7e\x5c\x0e\xae\x0d\x3e\x30\x95\x59\xe9\xfe\x96"
26319                         "\xb0\x67\x6d\x49\xd5\x91\xea\x4d\x07\xd2\x0d\x46"
26320                         "\xd0\x64\x75\x7d\x30\x23\xca\xc2\x37\x61\x27\xab",
26321                 .entropylen = 48,
26322                 .entpra = (unsigned char *)
26323                         "\xc6\x0f\x29\x99\x10\x0f\x73\x8c\x10\xf7\x47\x92"
26324                         "\x67\x6a\x3f\xc4\xa2\x62\xd1\x37\x21\x79\x80\x46"
26325                         "\xe2\x9a\x29\x51\x81\x56\x9f\x54",
26326                 .entprb = (unsigned char *)
26327                         "\xc1\x1d\x45\x24\xc9\x07\x1b\xd3\x09\x60\x15\xfc"
26328                         "\xf7\xbc\x24\xa6\x07\xf2\x2f\xa0\x65\xc9\x37\x65"
26329                         "\x8a\x2a\x77\xa8\x69\x90\x89\xf4",
26330                 .entprlen = 32,
26331                 .expected = (unsigned char *)
26332                         "\xab\xc0\x15\x85\x60\x94\x80\x3a\x93\x8d\xff\xd2"
26333                         "\x0d\xa9\x48\x43\x87\x0e\xf9\x35\xb8\x2c\xfe\xc1"
26334                         "\x77\x06\xb8\xf5\x51\xb8\x38\x50\x44\x23\x5d\xd4"
26335                         "\x4b\x59\x9f\x94\xb3\x9b\xe7\x8d\xd4\x76\xe0\xcf"
26336                         "\x11\x30\x9c\x99\x5a\x73\x34\xe0\xa7\x8b\x37\xbc"
26337                         "\x95\x86\x23\x50\x86\xfa\x3b\x63\x7b\xa9\x1c\xf8"
26338                         "\xfb\x65\xef\xa2\x2a\x58\x9c\x13\x75\x31\xaa\x7b"
26339                         "\x2d\x4e\x26\x07\xaa\xc2\x72\x92\xb0\x1c\x69\x8e"
26340                         "\x6e\x01\xae\x67\x9e\xb8\x7c\x01\xa8\x9c\x74\x22"
26341                         "\xd4\x37\x2d\x6d\x75\x4a\xba\xbb\x4b\xf8\x96\xfc"
26342                         "\xb1\xcd\x09\xd6\x92\xd0\x28\x3f",
26343                 .expectedlen = 128,
26344                 .addtla = NULL,
26345                 .addtlb = NULL,
26346                 .addtllen = 0,
26347                 .pers = NULL,
26348                 .perslen = 0,
26349         }, {
26350                 .entropy = (unsigned char *)
26351                         "\xb9\x1f\xe9\xef\xdd\x9b\x7d\x20\xb6\xec\xe0\x2f"
26352                         "\xdb\x76\x24\xce\x41\xc8\x3a\x4a\x12\x7f\x3e\x2f"
26353                         "\xae\x05\x99\xea\xb5\x06\x71\x0d\x0c\x4c\xb4\x05"
26354                         "\x26\xc6\xbd\xf5\x7f\x2a\x3d\xf2\xb5\x49\x7b\xda",
26355                 .entropylen = 48,
26356                 .entpra = (unsigned char *)
26357                         "\xef\x67\x50\x9c\xa7\x7d\xdf\xb7\x2d\x81\x01\xa4"
26358                         "\x62\x81\x6a\x69\x5b\xb3\x37\x45\xa7\x34\x8e\x26"
26359                         "\x46\xd9\x26\xa2\x19\xd4\x94\x43",
26360                 .entprb = (unsigned char *)
26361                         "\x97\x75\x53\x53\xba\xb4\xa6\xb2\x91\x60\x71\x79"
26362                         "\xd1\x6b\x4a\x24\x9a\x34\x66\xcc\x33\xab\x07\x98"
26363                         "\x51\x78\x72\xb2\x79\xfd\x2c\xff",
26364                 .entprlen = 32,
26365                 .expected = (unsigned char *)
26366                         "\x9c\xdc\x63\x8a\x19\x23\x22\x66\x0c\xc5\xb9\xd7"
26367                         "\xfb\x2a\xb0\x31\xe3\x8a\x36\xa8\x5a\xa8\x14\xda"
26368                         "\x1e\xa9\xcc\xfe\xb8\x26\x44\x83\x9f\xf6\xff\xaa"
26369                         "\xc8\x98\xb8\x30\x35\x3b\x3d\x36\xd2\x49\xd4\x40"
26370                         "\x62\x0a\x65\x10\x76\x55\xef\xc0\x95\x9c\xa7\xda"
26371                         "\x3f\xcf\xb7\x7b\xc6\xe1\x28\x52\xfc\x0c\xe2\x37"
26372                         "\x0d\x83\xa7\x51\x4b\x31\x47\x3c\xe1\x3c\xae\x70"
26373                         "\x01\xc8\xa3\xd3\xc2\xac\x77\x9c\xd1\x68\x77\x9b"
26374                         "\x58\x27\x3b\xa5\x0f\xc2\x7a\x8b\x04\x65\x62\xd5"
26375                         "\xe8\xd6\xfe\x2a\xaf\xd3\xd3\xfe\xbd\x18\xfb\xcd"
26376                         "\xcd\x66\xb5\x01\x69\x66\xa0\x3c",
26377                 .expectedlen = 128,
26378                 .addtla = (unsigned char *)
26379                         "\x17\xc1\x56\xcb\xcc\x50\xd6\x03\x7d\x45\x76\xa3"
26380                         "\x75\x76\xc1\x4a\x66\x1b\x2e\xdf\xb0\x2e\x7d\x56"
26381                         "\x6d\x99\x3b\xc6\x58\xda\x03\xf6",
26382                 .addtlb = (unsigned char *)
26383                         "\x7c\x7b\x4a\x4b\x32\x5e\x6f\x67\x34\xf5\x21\x4c"
26384                         "\xf9\x96\xf9\xbf\x1c\x8c\x81\xd3\x9b\x60\x6a\x44"
26385                         "\xc6\x03\xa2\xfb\x13\x20\x19\xb7",
26386                 .addtllen = 32,
26387                 .pers = NULL,
26388                 .perslen = 0,
26389         }, {
26390                 .entropy = (unsigned char *)
26391                         "\x13\x54\x96\xfc\x1b\x7d\x28\xf3\x18\xc9\xa7\x89"
26392                         "\xb6\xb3\xc8\x72\xac\x00\xd4\x59\x36\x25\x05\xaf"
26393                         "\xa5\xdb\x96\xcb\x3c\x58\x46\x87\xa5\xaa\xbf\x20"
26394                         "\x3b\xfe\x23\x0e\xd1\xc7\x41\x0f\x3f\xc9\xb3\x67",
26395                 .entropylen = 48,
26396                 .entpra = (unsigned char *)
26397                         "\xe2\xbd\xb7\x48\x08\x06\xf3\xe1\x93\x3c\xac\x79"
26398                         "\xa7\x2b\x11\xda\xe3\x2e\xe1\x91\xa5\x02\x19\x57"
26399                         "\x20\x28\xad\xf2\x60\xd7\xcd\x45",
26400                 .entprb = (unsigned char *)
26401                         "\x8b\xd4\x69\xfc\xff\x59\x95\x95\xc6\x51\xde\x71"
26402                         "\x68\x5f\xfc\xf9\x4a\xab\xec\x5a\xcb\xbe\xd3\x66"
26403                         "\x1f\xfa\x74\xd3\xac\xa6\x74\x60",
26404                 .entprlen = 32,
26405                 .expected = (unsigned char *)
26406                         "\x1f\x9e\xaf\xe4\xd2\x46\xb7\x47\x41\x4c\x65\x99"
26407                         "\x01\xe9\x3b\xbb\x83\x0c\x0a\xb0\xc1\x3a\xe2\xb3"
26408                         "\x31\x4e\xeb\x93\x73\xee\x0b\x26\xc2\x63\xa5\x75"
26409                         "\x45\x99\xd4\x5c\x9f\xa1\xd4\x45\x87\x6b\x20\x61"
26410                         "\x40\xea\x78\xa5\x32\xdf\x9e\x66\x17\xaf\xb1\x88"
26411                         "\x9e\x2e\x23\xdd\xc1\xda\x13\x97\x88\xa5\xb6\x5e"
26412                         "\x90\x14\x4e\xef\x13\xab\x5c\xd9\x2c\x97\x9e\x7c"
26413                         "\xd7\xf8\xce\xea\x81\xf5\xcd\x71\x15\x49\x44\xce"
26414                         "\x83\xb6\x05\xfb\x7d\x30\xb5\x57\x2c\x31\x4f\xfc"
26415                         "\xfe\x80\xb6\xc0\x13\x0c\x5b\x9b\x2e\x8f\x3d\xfc"
26416                         "\xc2\xa3\x0c\x11\x1b\x80\x5f\xf3",
26417                 .expectedlen = 128,
26418                 .addtla = NULL,
26419                 .addtlb = NULL,
26420                 .addtllen = 0,
26421                 .pers = (unsigned char *)
26422                         "\x64\xb6\xfc\x60\xbc\x61\x76\x23\x6d\x3f\x4a\x0f"
26423                         "\xe1\xb4\xd5\x20\x9e\x70\xdd\x03\x53\x6d\xbf\xce"
26424                         "\xcd\x56\x80\xbc\xb8\x15\xc8\xaa",
26425                 .perslen = 32,
26426         }, {
26427                 .entropy = (unsigned char *)
26428                         "\xc7\xcc\xbc\x67\x7e\x21\x66\x1e\x27\x2b\x63\xdd"
26429                         "\x3a\x78\xdc\xdf\x66\x6d\x3f\x24\xae\xcf\x37\x01"
26430                         "\xa9\x0d\x89\x8a\xa7\xdc\x81\x58\xae\xb2\x10\x15"
26431                         "\x7e\x18\x44\x6d\x13\xea\xdf\x37\x85\xfe\x81\xfb",
26432                 .entropylen = 48,
26433                 .entpra = (unsigned char *)
26434                         "\x7b\xa1\x91\x5b\x3c\x04\xc4\x1b\x1d\x19\x2f\x1a"
26435                         "\x18\x81\x60\x3c\x6c\x62\x91\xb7\xe9\xf5\xcb\x96"
26436                         "\xbb\x81\x6a\xcc\xb5\xae\x55\xb6",
26437                 .entprb = (unsigned char *)
26438                         "\x99\x2c\xc7\x78\x7e\x3b\x88\x12\xef\xbe\xd3\xd2"
26439                         "\x7d\x2a\xa5\x86\xda\x8d\x58\x73\x4a\x0a\xb2\x2e"
26440                         "\xbb\x4c\x7e\xe3\x9a\xb6\x81\xc1",
26441                 .entprlen = 32,
26442                 .expected = (unsigned char *)
26443                         "\x95\x6f\x95\xfc\x3b\xb7\xfe\x3e\xd0\x4e\x1a\x14"
26444                         "\x6c\x34\x7f\x7b\x1d\x0d\x63\x5e\x48\x9c\x69\xe6"
26445                         "\x46\x07\xd2\x87\xf3\x86\x52\x3d\x98\x27\x5e\xd7"
26446                         "\x54\xe7\x75\x50\x4f\xfb\x4d\xfd\xac\x2f\x4b\x77"
26447                         "\xcf\x9e\x8e\xcc\x16\xa2\x24\xcd\x53\xde\x3e\xc5"
26448                         "\x55\x5d\xd5\x26\x3f\x89\xdf\xca\x8b\x4e\x1e\xb6"
26449                         "\x88\x78\x63\x5c\xa2\x63\x98\x4e\x6f\x25\x59\xb1"
26450                         "\x5f\x2b\x23\xb0\x4b\xa5\x18\x5d\xc2\x15\x74\x40"
26451                         "\x59\x4c\xb4\x1e\xcf\x9a\x36\xfd\x43\xe2\x03\xb8"
26452                         "\x59\x91\x30\x89\x2a\xc8\x5a\x43\x23\x7c\x73\x72"
26453                         "\xda\x3f\xad\x2b\xba\x00\x6b\xd1",
26454                 .expectedlen = 128,
26455                 .addtla = (unsigned char *)
26456                         "\x18\xe8\x17\xff\xef\x39\xc7\x41\x5c\x73\x03\x03"
26457                         "\xf6\x3d\xe8\x5f\xc8\xab\xe4\xab\x0f\xad\xe8\xd6"
26458                         "\x86\x88\x55\x28\xc1\x69\xdd\x76",
26459                 .addtlb = (unsigned char *)
26460                         "\xac\x07\xfc\xbe\x87\x0e\xd3\xea\x1f\x7e\xb8\xe7"
26461                         "\x9d\xec\xe8\xe7\xbc\xf3\x18\x25\x77\x35\x4a\xaa"
26462                         "\x00\x99\x2a\xdd\x0a\x00\x50\x82",
26463                 .addtllen = 32,
26464                 .pers = (unsigned char *)
26465                         "\xbc\x55\xab\x3c\xf6\x52\xb0\x11\x3d\x7b\x90\xb8"
26466                         "\x24\xc9\x26\x4e\x5a\x1e\x77\x0d\x3d\x58\x4a\xda"
26467                         "\xd1\x81\xe9\xf8\xeb\x30\x8f\x6f",
26468                 .perslen = 32,
26469         },
26470 };
26471
26472 static const struct drbg_testvec drbg_pr_ctr_aes128_tv_template[] = {
26473         {
26474                 .entropy = (unsigned char *)
26475                         "\xd1\x44\xc6\x61\x81\x6d\xca\x9d\x15\x28\x8a\x42"
26476                         "\x94\xd7\x28\x9c\x43\x77\x19\x29\x1a\x6d\xc3\xa2",
26477                 .entropylen = 24,
26478                 .entpra = (unsigned char *)
26479                         "\x96\xd8\x9e\x45\x32\xc9\xd2\x08\x7a\x6d\x97\x15"
26480                         "\xb4\xec\x80\xb1",
26481                 .entprb = (unsigned char *)
26482                         "\x8b\xb6\x72\xb5\x24\x0b\x98\x65\x95\x95\xe9\xc9"
26483                         "\x28\x07\xeb\xc2",
26484                 .entprlen = 16,
26485                 .expected = (unsigned char *)
26486                         "\x70\x19\xd0\x4c\x45\x78\xd6\x68\xa9\x9a\xaa\xfe"
26487                         "\xc1\xdf\x27\x9a\x1c\x0d\x0d\xf7\x24\x75\x46\xcc"
26488                         "\x77\x6b\xdf\x89\xc6\x94\xdc\x74\x50\x10\x70\x18"
26489                         "\x9b\xdc\x96\xb4\x89\x23\x40\x1a\xce\x09\x87\xce"
26490                         "\xd2\xf3\xd5\xe4\x51\x67\x74\x11\x5a\xcc\x8b\x3b"
26491                         "\x8a\xf1\x23\xa8",
26492                 .expectedlen = 64,
26493                 .addtla = NULL,
26494                 .addtlb = NULL,
26495                 .addtllen = 0,
26496                 .pers = NULL,
26497                 .perslen = 0,
26498         }, {
26499                 .entropy = (unsigned char *)
26500                         "\x8e\x83\xe0\xeb\x37\xea\x3e\x53\x5e\x17\x6e\x77"
26501                         "\xbd\xb1\x53\x90\xfc\xdc\xc1\x3c\x9a\x88\x22\x94",
26502                 .entropylen = 24,
26503                 .entpra = (unsigned char *)
26504                         "\x6a\x85\xe7\x37\xc8\xf1\x04\x31\x98\x4f\xc8\x73"
26505                         "\x67\xd1\x08\xf8",
26506                 .entprb = (unsigned char *)
26507                         "\xd7\xa4\x68\xe2\x12\x74\xc3\xd9\xf1\xb7\x05\xbc"
26508                         "\xd4\xba\x04\x58",
26509                 .entprlen = 16,
26510                 .expected = (unsigned char *)
26511                         "\x78\xd6\xa6\x70\xff\xd1\x82\xf5\xa2\x88\x7f\x6d"
26512                         "\x3d\x8c\x39\xb1\xa8\xcb\x2c\x91\xab\x14\x7e\xbc"
26513                         "\x95\x45\x9f\x24\xb8\x20\xac\x21\x23\xdb\x72\xd7"
26514                         "\x12\x8d\x48\x95\xf3\x19\x0c\x43\xc6\x19\x45\xfc"
26515                         "\x8b\xac\x40\x29\x73\x00\x03\x45\x5e\x12\xff\x0c"
26516                         "\xc1\x02\x41\x82",
26517                 .expectedlen = 64,
26518                 .addtla = (unsigned char *)
26519                         "\xa2\xd9\x38\xcf\x8b\x29\x67\x5b\x65\x62\x6f\xe8"
26520                         "\xeb\xb3\x01\x76",
26521                 .addtlb = (unsigned char *)
26522                         "\x59\x63\x1e\x81\x8a\x14\xa8\xbb\xa1\xb8\x41\x25"
26523                         "\xd0\x7f\xcc\x43",
26524                 .addtllen = 16,
26525                 .pers = NULL,
26526                 .perslen = 0,
26527         }, {
26528                 .entropy = (unsigned char *)
26529                         "\x04\xd9\x49\xa6\xdc\xe8\x6e\xbb\xf1\x08\x77\x2b"
26530                         "\x9e\x08\xca\x92\x65\x16\xda\x99\xa2\x59\xf3\xe8",
26531                 .entropylen = 24,
26532                 .entpra = (unsigned char *)
26533                         "\x38\x7e\x3f\x6b\x51\x70\x7b\x20\xec\x53\xd0\x66"
26534                         "\xc3\x0f\xe3\xb0",
26535                 .entprb = (unsigned char *)
26536                         "\xe0\x86\xa6\xaa\x5f\x72\x2f\xad\xf7\xef\x06\xb8"
26537                         "\xd6\x9c\x9d\xe8",
26538                 .entprlen = 16,
26539                 .expected = (unsigned char *)
26540                         "\xc9\x0a\xaf\x85\x89\x71\x44\x66\x4f\x25\x0b\x2b"
26541                         "\xde\xd8\xfa\xff\x52\x5a\x1b\x32\x5e\x41\x7a\x10"
26542                         "\x1f\xef\x1e\x62\x23\xe9\x20\x30\xc9\x0d\xad\x69"
26543                         "\xb4\x9c\x5b\xf4\x87\x42\xd5\xae\x5e\x5e\x43\xcc"
26544                         "\xd9\xfd\x0b\x93\x4a\xe3\xd4\x06\x37\x36\x0f\x3f"
26545                         "\x72\x82\x0c\xcf",
26546                 .expectedlen = 64,
26547                 .addtla = NULL,
26548                 .addtlb = NULL,
26549                 .addtllen = 0,
26550                 .pers = (unsigned char *)
26551                         "\xbf\xa4\x9a\x8f\x7b\xd8\xb1\x7a\x9d\xfa\x45\xed"
26552                         "\x21\x52\xb3\xad",
26553                 .perslen = 16,
26554         }, {
26555                 .entropy = (unsigned char *)
26556                         "\x92\x89\x8f\x31\xfa\x1c\xff\x6d\x18\x2f\x26\x06"
26557                         "\x43\xdf\xf8\x18\xc2\xa4\xd9\x72\xc3\xb9\xb6\x97",
26558                 .entropylen = 24,
26559                 .entpra = (unsigned char *)
26560                         "\x20\x72\x8a\x06\xf8\x6f\x8d\xd4\x41\xe2\x72\xb7"
26561                         "\xc4\x2c\xe8\x10",
26562                 .entprb = (unsigned char *)
26563                         "\x3d\xb0\xf0\x94\xf3\x05\x50\x33\x17\x86\x3e\x22"
26564                         "\x08\xf7\xa5\x01",
26565                 .entprlen = 16,
26566                 .expected = (unsigned char *)
26567                         "\x5a\x35\x39\x87\x0f\x4d\x22\xa4\x09\x24\xee\x71"
26568                         "\xc9\x6f\xac\x72\x0a\xd6\xf0\x88\x82\xd0\x83\x28"
26569                         "\x73\xec\x3f\x93\xd8\xab\x45\x23\xf0\x7e\xac\x45"
26570                         "\x14\x5e\x93\x9f\xb1\xd6\x76\x43\x3d\xb6\xe8\x08"
26571                         "\x88\xf6\xda\x89\x08\x77\x42\xfe\x1a\xf4\x3f\xc4"
26572                         "\x23\xc5\x1f\x68",
26573                 .expectedlen = 64,
26574                 .addtla = (unsigned char *)
26575                         "\x1a\x40\xfa\xe3\xcc\x6c\x7c\xa0\xf8\xda\xba\x59"
26576                         "\x23\x6d\xad\x1d",
26577                 .addtlb = (unsigned char *)
26578                         "\x9f\x72\x76\x6c\xc7\x46\xe5\xed\x2e\x53\x20\x12"
26579                         "\xbc\x59\x31\x8c",
26580                 .addtllen = 16,
26581                 .pers = (unsigned char *)
26582                         "\xea\x65\xee\x60\x26\x4e\x7e\xb6\x0e\x82\x68\xc4"
26583                         "\x37\x3c\x5c\x0b",
26584                 .perslen = 16,
26585         },
26586 };
26587
26588 /*
26589  * SP800-90A DRBG Test vectors from
26590  * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
26591  *
26592  * Test vectors for DRBG without prediction resistance. All types of DRBGs
26593  * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
26594  * w/o personalization string, w/ and w/o additional input string).
26595  */
26596 static const struct drbg_testvec drbg_nopr_sha256_tv_template[] = {
26597         {
26598                 .entropy = (unsigned char *)
26599                         "\xa6\x5a\xd0\xf3\x45\xdb\x4e\x0e\xff\xe8\x75\xc3"
26600                         "\xa2\xe7\x1f\x42\xc7\x12\x9d\x62\x0f\xf5\xc1\x19"
26601                         "\xa9\xef\x55\xf0\x51\x85\xe0\xfb\x85\x81\xf9\x31"
26602                         "\x75\x17\x27\x6e\x06\xe9\x60\x7d\xdb\xcb\xcc\x2e",
26603                 .entropylen = 48,
26604                 .expected = (unsigned char *)
26605                         "\xd3\xe1\x60\xc3\x5b\x99\xf3\x40\xb2\x62\x82\x64"
26606                         "\xd1\x75\x10\x60\xe0\x04\x5d\xa3\x83\xff\x57\xa5"
26607                         "\x7d\x73\xa6\x73\xd2\xb8\xd8\x0d\xaa\xf6\xa6\xc3"
26608                         "\x5a\x91\xbb\x45\x79\xd7\x3f\xd0\xc8\xfe\xd1\x11"
26609                         "\xb0\x39\x13\x06\x82\x8a\xdf\xed\x52\x8f\x01\x81"
26610                         "\x21\xb3\xfe\xbd\xc3\x43\xe7\x97\xb8\x7d\xbb\x63"
26611                         "\xdb\x13\x33\xde\xd9\xd1\xec\xe1\x77\xcf\xa6\xb7"
26612                         "\x1f\xe8\xab\x1d\xa4\x66\x24\xed\x64\x15\xe5\x1c"
26613                         "\xcd\xe2\xc7\xca\x86\xe2\x83\x99\x0e\xea\xeb\x91"
26614                         "\x12\x04\x15\x52\x8b\x22\x95\x91\x02\x81\xb0\x2d"
26615                         "\xd4\x31\xf4\xc9\xf7\x04\x27\xdf",
26616                 .expectedlen = 128,
26617                 .addtla = NULL,
26618                 .addtlb = NULL,
26619                 .addtllen = 0,
26620                 .pers = NULL,
26621                 .perslen = 0,
26622         }, {
26623                 .entropy = (unsigned char *)
26624                         "\x73\xd3\xfb\xa3\x94\x5f\x2b\x5f\xb9\x8f\xf6\x9c"
26625                         "\x8a\x93\x17\xae\x19\xc3\x4c\xc3\xd6\xca\xa3\x2d"
26626                         "\x16\xfc\x42\xd2\x2d\xd5\x6f\x56\xcc\x1d\x30\xff"
26627                         "\x9e\x06\x3e\x09\xce\x58\xe6\x9a\x35\xb3\xa6\x56",
26628                 .entropylen = 48,
26629                 .expected = (unsigned char *)
26630                         "\x71\x7b\x93\x46\x1a\x40\xaa\x35\xa4\xaa\xc5\xe7"
26631                         "\x6d\x5b\x5b\x8a\xa0\xdf\x39\x7d\xae\x71\x58\x5b"
26632                         "\x3c\x7c\xb4\xf0\x89\xfa\x4a\x8c\xa9\x5c\x54\xc0"
26633                         "\x40\xdf\xbc\xce\x26\x81\x34\xf8\xba\x7d\x1c\xe8"
26634                         "\xad\x21\xe0\x74\xcf\x48\x84\x30\x1f\xa1\xd5\x4f"
26635                         "\x81\x42\x2f\xf4\xdb\x0b\x23\xf8\x73\x27\xb8\x1d"
26636                         "\x42\xf8\x44\x58\xd8\x5b\x29\x27\x0a\xf8\x69\x59"
26637                         "\xb5\x78\x44\xeb\x9e\xe0\x68\x6f\x42\x9a\xb0\x5b"
26638                         "\xe0\x4e\xcb\x6a\xaa\xe2\xd2\xd5\x33\x25\x3e\xe0"
26639                         "\x6c\xc7\x6a\x07\xa5\x03\x83\x9f\xe2\x8b\xd1\x1c"
26640                         "\x70\xa8\x07\x59\x97\xeb\xf6\xbe",
26641                 .expectedlen = 128,
26642                 .addtla = (unsigned char *)
26643                         "\xf4\xd5\x98\x3d\xa8\xfc\xfa\x37\xb7\x54\x67\x73"
26644                         "\xc7\xc3\xdd\x47\x34\x71\x02\x5d\xc1\xa0\xd3\x10"
26645                         "\xc1\x8b\xbd\xf5\x66\x34\x6f\xdd",
26646                 .addtlb = (unsigned char *)
26647                         "\xf7\x9e\x6a\x56\x0e\x73\xe9\xd9\x7a\xd1\x69\xe0"
26648                         "\x6f\x8c\x55\x1c\x44\xd1\xce\x6f\x28\xcc\xa4\x4d"
26649                         "\xa8\xc0\x85\xd1\x5a\x0c\x59\x40",
26650                 .addtllen = 32,
26651                 .pers = NULL,
26652                 .perslen = 0,
26653         }, {
26654                 .entropy = (unsigned char *)
26655                         "\x2a\x85\xa9\x8b\xd0\xda\x83\xd6\xad\xab\x9f\xbb"
26656                         "\x54\x31\x15\x95\x1c\x4d\x49\x9f\x6a\x15\xf6\xe4"
26657                         "\x15\x50\x88\x06\x29\x0d\xed\x8d\xb9\x6f\x96\xe1"
26658                         "\x83\x9f\xf7\x88\xda\x84\xbf\x44\x28\xd9\x1d\xaa",
26659                 .entropylen = 48,
26660                 .expected = (unsigned char *)
26661                         "\x2d\x55\xde\xc9\xed\x05\x47\x07\x3d\x04\xfc\x28"
26662                         "\x0f\x92\xf0\x4d\xd8\x00\x32\x47\x0a\x1b\x1c\x4b"
26663                         "\xef\xd9\x97\xa1\x17\x67\xda\x26\x6c\xfe\x76\x46"
26664                         "\x6f\xbc\x6d\x82\x4e\x83\x8a\x98\x66\x6c\x01\xb6"
26665                         "\xe6\x64\xe0\x08\x10\x6f\xd3\x5d\x90\xe7\x0d\x72"
26666                         "\xa6\xa7\xe3\xbb\x98\x11\x12\x56\x23\xc2\x6d\xd1"
26667                         "\xc8\xa8\x7a\x39\xf3\x34\xe3\xb8\xf8\x66\x00\x77"
26668                         "\x7d\xcf\x3c\x3e\xfa\xc9\x0f\xaf\xe0\x24\xfa\xe9"
26669                         "\x84\xf9\x6a\x01\xf6\x35\xdb\x5c\xab\x2a\xef\x4e"
26670                         "\xac\xab\x55\xb8\x9b\xef\x98\x68\xaf\x51\xd8\x16"
26671                         "\xa5\x5e\xae\xf9\x1e\xd2\xdb\xe6",
26672                 .expectedlen = 128,
26673                 .addtla = NULL,
26674                 .addtlb = NULL,
26675                 .addtllen = 0,
26676                 .pers = (unsigned char *)
26677                         "\xa8\x80\xec\x98\x30\x98\x15\xd2\xc6\xc4\x68\xf1"
26678                         "\x3a\x1c\xbf\xce\x6a\x40\x14\xeb\x36\x99\x53\xda"
26679                         "\x57\x6b\xce\xa4\x1c\x66\x3d\xbc",
26680                 .perslen = 32,
26681         }, {
26682                 .entropy = (unsigned char *)
26683                         "\x69\xed\x82\xa9\xc5\x7b\xbf\xe5\x1d\x2f\xcb\x7a"
26684                         "\xd3\x50\x7d\x96\xb4\xb9\x2b\x50\x77\x51\x27\x74"
26685                         "\x33\x74\xba\xf1\x30\xdf\x8e\xdf\x87\x1d\x87\xbc"
26686                         "\x96\xb2\xc3\xa7\xed\x60\x5e\x61\x4e\x51\x29\x1a",
26687                 .entropylen = 48,
26688                 .expected = (unsigned char *)
26689                         "\xa5\x71\x24\x31\x11\xfe\x13\xe1\xa8\x24\x12\xfb"
26690                         "\x37\xa1\x27\xa5\xab\x77\xa1\x9f\xae\x8f\xaf\x13"
26691                         "\x93\xf7\x53\x85\x91\xb6\x1b\xab\xd4\x6b\xea\xb6"
26692                         "\xef\xda\x4c\x90\x6e\xef\x5f\xde\xe1\xc7\x10\x36"
26693                         "\xd5\x67\xbd\x14\xb6\x89\x21\x0c\xc9\x92\x65\x64"
26694                         "\xd0\xf3\x23\xe0\x7f\xd1\xe8\x75\xc2\x85\x06\xea"
26695                         "\xca\xc0\xcb\x79\x2d\x29\x82\xfc\xaa\x9a\xc6\x95"
26696                         "\x7e\xdc\x88\x65\xba\xec\x0e\x16\x87\xec\xa3\x9e"
26697                         "\xd8\x8c\x80\xab\x3a\x64\xe0\xcb\x0e\x45\x98\xdd"
26698                         "\x7c\x6c\x6c\x26\x11\x13\xc8\xce\xa9\x47\xa6\x06"
26699                         "\x57\xa2\x66\xbb\x2d\x7f\xf3\xc1",
26700                 .expectedlen = 128,
26701                 .addtla = (unsigned char *)
26702                         "\x74\xd3\x6d\xda\xe8\xd6\x86\x5f\x63\x01\xfd\xf2"
26703                         "\x7d\x06\x29\x6d\x94\xd1\x66\xf0\xd2\x72\x67\x4e"
26704                         "\x77\xc5\x3d\x9e\x03\xe3\xa5\x78",
26705                 .addtlb = (unsigned char *)
26706                         "\xf6\xb6\x3d\xf0\x7c\x26\x04\xc5\x8b\xcd\x3e\x6a"
26707                         "\x9f\x9c\x3a\x2e\xdb\x47\x87\xe5\x8e\x00\x5e\x2b"
26708                         "\x74\x7f\xa6\xf6\x80\xcd\x9b\x21",
26709                 .addtllen = 32,
26710                 .pers = (unsigned char *)
26711                         "\x74\xa6\xe0\x08\xf9\x27\xee\x1d\x6e\x3c\x28\x20"
26712                         "\x87\xdd\xd7\x54\x31\x47\x78\x4b\xe5\x6d\xa3\x73"
26713                         "\xa9\x65\xb1\x10\xc1\xdc\x77\x7c",
26714                 .perslen = 32,
26715         },
26716 };
26717
26718 static const struct drbg_testvec drbg_nopr_hmac_sha256_tv_template[] = {
26719         {
26720                 .entropy = (unsigned char *)
26721                         "\xca\x85\x19\x11\x34\x93\x84\xbf\xfe\x89\xde\x1c"
26722                         "\xbd\xc4\x6e\x68\x31\xe4\x4d\x34\xa4\xfb\x93\x5e"
26723                         "\xe2\x85\xdd\x14\xb7\x1a\x74\x88\x65\x9b\xa9\x6c"
26724                         "\x60\x1d\xc6\x9f\xc9\x02\x94\x08\x05\xec\x0c\xa8",
26725                 .entropylen = 48,
26726                 .expected = (unsigned char *)
26727                         "\xe5\x28\xe9\xab\xf2\xde\xce\x54\xd4\x7c\x7e\x75"
26728                         "\xe5\xfe\x30\x21\x49\xf8\x17\xea\x9f\xb4\xbe\xe6"
26729                         "\xf4\x19\x96\x97\xd0\x4d\x5b\x89\xd5\x4f\xbb\x97"
26730                         "\x8a\x15\xb5\xc4\x43\xc9\xec\x21\x03\x6d\x24\x60"
26731                         "\xb6\xf7\x3e\xba\xd0\xdc\x2a\xba\x6e\x62\x4a\xbf"
26732                         "\x07\x74\x5b\xc1\x07\x69\x4b\xb7\x54\x7b\xb0\x99"
26733                         "\x5f\x70\xde\x25\xd6\xb2\x9e\x2d\x30\x11\xbb\x19"
26734                         "\xd2\x76\x76\xc0\x71\x62\xc8\xb5\xcc\xde\x06\x68"
26735                         "\x96\x1d\xf8\x68\x03\x48\x2c\xb3\x7e\xd6\xd5\xc0"
26736                         "\xbb\x8d\x50\xcf\x1f\x50\xd4\x76\xaa\x04\x58\xbd"
26737                         "\xab\xa8\x06\xf4\x8b\xe9\xdc\xb8",
26738                 .expectedlen = 128,
26739                 .addtla = NULL,
26740                 .addtlb = NULL,
26741                 .addtllen = 0,
26742                 .pers = NULL,
26743                 .perslen = 0,
26744         }, {
26745                 .entropy = (unsigned char *)
26746                         "\xf9\x7a\x3c\xfd\x91\xfa\xa0\x46\xb9\xe6\x1b\x94"
26747                         "\x93\xd4\x36\xc4\x93\x1f\x60\x4b\x22\xf1\x08\x15"
26748                         "\x21\xb3\x41\x91\x51\xe8\xff\x06\x11\xf3\xa7\xd4"
26749                         "\x35\x95\x35\x7d\x58\x12\x0b\xd1\xe2\xdd\x8a\xed",
26750                 .entropylen = 48,
26751                 .expected = (unsigned char *)
26752                         "\xc6\x87\x1c\xff\x08\x24\xfe\x55\xea\x76\x89\xa5"
26753                         "\x22\x29\x88\x67\x30\x45\x0e\x5d\x36\x2d\xa5\xbf"
26754                         "\x59\x0d\xcf\x9a\xcd\x67\xfe\xd4\xcb\x32\x10\x7d"
26755                         "\xf5\xd0\x39\x69\xa6\x6b\x1f\x64\x94\xfd\xf5\xd6"
26756                         "\x3d\x5b\x4d\x0d\x34\xea\x73\x99\xa0\x7d\x01\x16"
26757                         "\x12\x6d\x0d\x51\x8c\x7c\x55\xba\x46\xe1\x2f\x62"
26758                         "\xef\xc8\xfe\x28\xa5\x1c\x9d\x42\x8e\x6d\x37\x1d"
26759                         "\x73\x97\xab\x31\x9f\xc7\x3d\xed\x47\x22\xe5\xb4"
26760                         "\xf3\x00\x04\x03\x2a\x61\x28\xdf\x5e\x74\x97\xec"
26761                         "\xf8\x2c\xa7\xb0\xa5\x0e\x86\x7e\xf6\x72\x8a\x4f"
26762                         "\x50\x9a\x8c\x85\x90\x87\x03\x9c",
26763                 .expectedlen = 128,
26764                 .addtla = (unsigned char *)
26765                         "\x51\x72\x89\xaf\xe4\x44\xa0\xfe\x5e\xd1\xa4\x1d"
26766                         "\xbb\xb5\xeb\x17\x15\x00\x79\xbd\xd3\x1e\x29\xcf"
26767                         "\x2f\xf3\x00\x34\xd8\x26\x8e\x3b",
26768                 .addtlb = (unsigned char *)
26769                         "\x88\x02\x8d\x29\xef\x80\xb4\xe6\xf0\xfe\x12\xf9"
26770                         "\x1d\x74\x49\xfe\x75\x06\x26\x82\xe8\x9c\x57\x14"
26771                         "\x40\xc0\xc9\xb5\x2c\x42\xa6\xe0",
26772                 .addtllen = 32,
26773                 .pers = NULL,
26774                 .perslen = 0,
26775         }, {
26776                 .entropy = (unsigned char *)
26777                         "\x8d\xf0\x13\xb4\xd1\x03\x52\x30\x73\x91\x7d\xdf"
26778                         "\x6a\x86\x97\x93\x05\x9e\x99\x43\xfc\x86\x54\x54"
26779                         "\x9e\x7a\xb2\x2f\x7c\x29\xf1\x22\xda\x26\x25\xaf"
26780                         "\x2d\xdd\x4a\xbc\xce\x3c\xf4\xfa\x46\x59\xd8\x4e",
26781                 .entropylen = 48,
26782                 .expected = (unsigned char *)
26783                         "\xb9\x1c\xba\x4c\xc8\x4f\xa2\x5d\xf8\x61\x0b\x81"
26784                         "\xb6\x41\x40\x27\x68\xa2\x09\x72\x34\x93\x2e\x37"
26785                         "\xd5\x90\xb1\x15\x4c\xbd\x23\xf9\x74\x52\xe3\x10"
26786                         "\xe2\x91\xc4\x51\x46\x14\x7f\x0d\xa2\xd8\x17\x61"
26787                         "\xfe\x90\xfb\xa6\x4f\x94\x41\x9c\x0f\x66\x2b\x28"
26788                         "\xc1\xed\x94\xda\x48\x7b\xb7\xe7\x3e\xec\x79\x8f"
26789                         "\xbc\xf9\x81\xb7\x91\xd1\xbe\x4f\x17\x7a\x89\x07"
26790                         "\xaa\x3c\x40\x16\x43\xa5\xb6\x2b\x87\xb8\x9d\x66"
26791                         "\xb3\xa6\x0e\x40\xd4\xa8\xe4\xe9\xd8\x2a\xf6\xd2"
26792                         "\x70\x0e\x6f\x53\x5c\xdb\x51\xf7\x5c\x32\x17\x29"
26793                         "\x10\x37\x41\x03\x0c\xcc\x3a\x56",
26794                 .expectedlen = 128,
26795                 .addtla = NULL,
26796                 .addtlb = NULL,
26797                 .addtllen = 0,
26798                 .pers = (unsigned char *)
26799                         "\xb5\x71\xe6\x6d\x7c\x33\x8b\xc0\x7b\x76\xad\x37"
26800                         "\x57\xbb\x2f\x94\x52\xbf\x7e\x07\x43\x7a\xe8\x58"
26801                         "\x1c\xe7\xbc\x7c\x3a\xc6\x51\xa9",
26802                 .perslen = 32,
26803         }, {
26804                 .entropy = (unsigned char *)
26805                         "\xc2\xa5\x66\xa9\xa1\x81\x7b\x15\xc5\xc3\xb7\x78"
26806                         "\x17\x7a\xc8\x7c\x24\xe7\x97\xbe\x0a\x84\x5f\x11"
26807                         "\xc2\xfe\x39\x9d\xd3\x77\x32\xf2\xcb\x18\x94\xeb"
26808                         "\x2b\x97\xb3\xc5\x6e\x62\x83\x29\x51\x6f\x86\xec",
26809                 .entropylen = 48,
26810                 .expected = (unsigned char *)
26811                         "\xb3\xa3\x69\x8d\x77\x76\x99\xa0\xdd\x9f\xa3\xf0"
26812                         "\xa9\xfa\x57\x83\x2d\x3c\xef\xac\x5d\xf2\x44\x37"
26813                         "\xc6\xd7\x3a\x0f\xe4\x10\x40\xf1\x72\x90\x38\xae"
26814                         "\xf1\xe9\x26\x35\x2e\xa5\x9d\xe1\x20\xbf\xb7\xb0"
26815                         "\x73\x18\x3a\x34\x10\x6e\xfe\xd6\x27\x8f\xf8\xad"
26816                         "\x84\x4b\xa0\x44\x81\x15\xdf\xdd\xf3\x31\x9a\x82"
26817                         "\xde\x6b\xb1\x1d\x80\xbd\x87\x1a\x9a\xcd\x35\xc7"
26818                         "\x36\x45\xe1\x27\x0f\xb9\xfe\x4f\xa8\x8e\xc0\xe4"
26819                         "\x65\x40\x9e\xa0\xcb\xa8\x09\xfe\x2f\x45\xe0\x49"
26820                         "\x43\xa2\xe3\x96\xbb\xb7\xdd\x2f\x4e\x07\x95\x30"
26821                         "\x35\x24\xcc\x9c\xc5\xea\x54\xa1",
26822                 .expectedlen = 128,
26823                 .addtla = (unsigned char *)
26824                         "\x41\x3d\xd8\x3f\xe5\x68\x35\xab\xd4\x78\xcb\x96"
26825                         "\x93\xd6\x76\x35\x90\x1c\x40\x23\x9a\x26\x64\x62"
26826                         "\xd3\x13\x3b\x83\xe4\x9c\x82\x0b",
26827                 .addtlb = (unsigned char *)
26828                         "\xd5\xc4\xa7\x1f\x9d\x6d\x95\xa1\xbe\xdf\x0b\xd2"
26829                         "\x24\x7c\x27\x7d\x1f\x84\xa4\xe5\x7a\x4a\x88\x25"
26830                         "\xb8\x2a\x2d\x09\x7d\xe6\x3e\xf1",
26831                 .addtllen = 32,
26832                 .pers = (unsigned char *)
26833                         "\x13\xce\x4d\x8d\xd2\xdb\x97\x96\xf9\x41\x56\xc8"
26834                         "\xe8\xf0\x76\x9b\x0a\xa1\xc8\x2c\x13\x23\xb6\x15"
26835                         "\x36\x60\x3b\xca\x37\xc9\xee\x29",
26836                 .perslen = 32,
26837         },
26838 };
26839
26840 static const struct drbg_testvec drbg_nopr_ctr_aes192_tv_template[] = {
26841         {
26842                 .entropy = (unsigned char *)
26843                         "\xc3\x5c\x2f\xa2\xa8\x9d\x52\xa1\x1f\xa3\x2a\xa9"
26844                         "\x6c\x95\xb8\xf1\xc9\xa8\xf9\xcb\x24\x5a\x8b\x40"
26845                         "\xf3\xa6\xe5\xa7\xfb\xd9\xd3\xc6\x8e\x27\x7b\xa9"
26846                         "\xac\x9b\xbb\x00",
26847                 .entropylen = 40,
26848                 .expected = (unsigned char *)
26849                         "\x8c\x2e\x72\xab\xfd\x9b\xb8\x28\x4d\xb7\x9e\x17"
26850                         "\xa4\x3a\x31\x46\xcd\x76\x94\xe3\x52\x49\xfc\x33"
26851                         "\x83\x91\x4a\x71\x17\xf4\x13\x68\xe6\xd4\xf1\x48"
26852                         "\xff\x49\xbf\x29\x07\x6b\x50\x15\xc5\x9f\x45\x79"
26853                         "\x45\x66\x2e\x3d\x35\x03\x84\x3f\x4a\xa5\xa3\xdf"
26854                         "\x9a\x9d\xf1\x0d",
26855                 .expectedlen = 64,
26856                 .addtla = NULL,
26857                 .addtlb = NULL,
26858                 .addtllen = 0,
26859                 .pers = NULL,
26860                 .perslen = 0,
26861         },
26862 };
26863
26864 static const struct drbg_testvec drbg_nopr_ctr_aes256_tv_template[] = {
26865         {
26866                 .entropy = (unsigned char *)
26867                         "\x36\x40\x19\x40\xfa\x8b\x1f\xba\x91\xa1\x66\x1f"
26868                         "\x21\x1d\x78\xa0\xb9\x38\x9a\x74\xe5\xbc\xcf\xec"
26869                         "\xe8\xd7\x66\xaf\x1a\x6d\x3b\x14\x49\x6f\x25\xb0"
26870                         "\xf1\x30\x1b\x4f\x50\x1b\xe3\x03\x80\xa1\x37\xeb",
26871                 .entropylen = 48,
26872                 .expected = (unsigned char *)
26873                         "\x58\x62\xeb\x38\xbd\x55\x8d\xd9\x78\xa6\x96\xe6"
26874                         "\xdf\x16\x47\x82\xdd\xd8\x87\xe7\xe9\xa6\xc9\xf3"
26875                         "\xf1\xfb\xaf\xb7\x89\x41\xb5\x35\xa6\x49\x12\xdf"
26876                         "\xd2\x24\xc6\xdc\x74\x54\xe5\x25\x0b\x3d\x97\x16"
26877                         "\x5e\x16\x26\x0c\x2f\xaf\x1c\xc7\x73\x5c\xb7\x5f"
26878                         "\xb4\xf0\x7e\x1d",
26879                 .expectedlen = 64,
26880                 .addtla = NULL,
26881                 .addtlb = NULL,
26882                 .addtllen = 0,
26883                 .pers = NULL,
26884                 .perslen = 0,
26885         },
26886 };
26887
26888 static const struct drbg_testvec drbg_nopr_ctr_aes128_tv_template[] = {
26889         {
26890                 .entropy = (unsigned char *)
26891                         "\x87\xe1\xc5\x32\x99\x7f\x57\xa3\x5c\x28\x6d\xe8"
26892                         "\x64\xbf\xf2\x64\xa3\x9e\x98\xdb\x6c\x10\x78\x7f",
26893                 .entropylen = 24,
26894                 .expected = (unsigned char *)
26895                         "\x2c\x14\x7e\x24\x11\x9a\xd8\xd4\xb2\xed\x61\xc1"
26896                         "\x53\xd0\x50\xc9\x24\xff\x59\x75\x15\xf1\x17\x3a"
26897                         "\x3d\xf4\x4b\x2c\x84\x28\xef\x89\x0e\xb9\xde\xf3"
26898                         "\xe4\x78\x04\xb2\xfd\x9b\x35\x7f\xe1\x3f\x8a\x3e"
26899                         "\x10\xc8\x67\x0a\xf9\xdf\x2d\x6c\x96\xfb\xb2\xb8"
26900                         "\xcb\x2d\xd6\xb0",
26901                 .expectedlen = 64,
26902                 .addtla = NULL,
26903                 .addtlb = NULL,
26904                 .addtllen = 0,
26905                 .pers = NULL,
26906                 .perslen = 0,
26907         }, {
26908                 .entropy = (unsigned char *)
26909                         "\x71\xbd\xce\x35\x42\x7d\x20\xbf\x58\xcf\x17\x74"
26910                         "\xce\x72\xd8\x33\x34\x50\x2d\x8f\x5b\x14\xc4\xdd",
26911                 .entropylen = 24,
26912                 .expected = (unsigned char *)
26913                         "\x97\x33\xe8\x20\x12\xe2\x7b\xa1\x46\x8f\xf2\x34"
26914                         "\xb3\xc9\xb6\x6b\x20\xb2\x4f\xee\x27\xd8\x0b\x21"
26915                         "\x8c\xff\x63\x73\x69\x29\xfb\xf3\x85\xcd\x88\x8e"
26916                         "\x43\x2c\x71\x8b\xa2\x55\xd2\x0f\x1d\x7f\xe3\xe1"
26917                         "\x2a\xa3\xe9\x2c\x25\x89\xc7\x14\x52\x99\x56\xcc"
26918                         "\xc3\xdf\xb3\x81",
26919                 .expectedlen = 64,
26920                 .addtla = (unsigned char *)
26921                         "\x66\xef\x42\xd6\x9a\x8c\x3d\x6d\x4a\x9e\x95\xa6"
26922                         "\x91\x4d\x81\x56",
26923                 .addtlb = (unsigned char *)
26924                         "\xe3\x18\x83\xd9\x4b\x5e\xc4\xcc\xaa\x61\x2f\xbb"
26925                         "\x4a\x55\xd1\xc6",
26926                 .addtllen = 16,
26927                 .pers = NULL,
26928                 .perslen = 0,
26929         }, {
26930                 .entropy = (unsigned char *)
26931                         "\xca\x4b\x1e\xfa\x75\xbd\x69\x36\x38\x73\xb8\xf9"
26932                         "\xdb\x4d\x35\x0e\x47\xbf\x6c\x37\x72\xfd\xf7\xa9",
26933                 .entropylen = 24,
26934                 .expected = (unsigned char *)
26935                         "\x59\xc3\x19\x79\x1b\xb1\xf3\x0e\xe9\x34\xae\x6e"
26936                         "\x8b\x1f\xad\x1f\x74\xca\x25\x45\x68\xb8\x7f\x75"
26937                         "\x12\xf8\xf2\xab\x4c\x23\x01\x03\x05\xe1\x70\xee"
26938                         "\x75\xd8\xcb\xeb\x23\x4c\x7a\x23\x6e\x12\x27\xdb"
26939                         "\x6f\x7a\xac\x3c\x44\xb7\x87\x4b\x65\x56\x74\x45"
26940                         "\x34\x30\x0c\x3d",
26941                 .expectedlen = 64,
26942                 .addtla = NULL,
26943                 .addtlb = NULL,
26944                 .addtllen = 0,
26945                 .pers = (unsigned char *)
26946                         "\xeb\xaa\x60\x2c\x4d\xbe\x33\xff\x1b\xef\xbf\x0a"
26947                         "\x0b\xc6\x97\x54",
26948                 .perslen = 16,
26949         }, {
26950                 .entropy = (unsigned char *)
26951                         "\xc0\x70\x1f\x92\x50\x75\x8f\xcd\xf2\xbe\x73\x98"
26952                         "\x80\xdb\x66\xeb\x14\x68\xb4\xa5\x87\x9c\x2d\xa6",
26953                 .entropylen = 24,
26954                 .expected = (unsigned char *)
26955                         "\x97\xc0\xc0\xe5\xa0\xcc\xf2\x4f\x33\x63\x48\x8a"
26956                         "\xdb\x13\x0a\x35\x89\xbf\x80\x65\x62\xee\x13\x95"
26957                         "\x7c\x33\xd3\x7d\xf4\x07\x77\x7a\x2b\x65\x0b\x5f"
26958                         "\x45\x5c\x13\xf1\x90\x77\x7f\xc5\x04\x3f\xcc\x1a"
26959                         "\x38\xf8\xcd\x1b\xbb\xd5\x57\xd1\x4a\x4c\x2e\x8a"
26960                         "\x2b\x49\x1e\x5c",
26961                 .expectedlen = 64,
26962                 .addtla = (unsigned char *)
26963                         "\xf9\x01\xf8\x16\x7a\x1d\xff\xde\x8e\x3c\x83\xe2"
26964                         "\x44\x85\xe7\xfe",
26965                 .addtlb = (unsigned char *)
26966                         "\x17\x1c\x09\x38\xc2\x38\x9f\x97\x87\x60\x55\xb4"
26967                         "\x82\x16\x62\x7f",
26968                 .addtllen = 16,
26969                 .pers = (unsigned char *)
26970                         "\x80\x08\xae\xe8\xe9\x69\x40\xc5\x08\x73\xc7\x9f"
26971                         "\x8e\xcf\xe0\x02",
26972                 .perslen = 16,
26973         },
26974 };
26975
26976 /* Cast5 test vectors from RFC 2144 */
26977 static const struct cipher_testvec cast5_tv_template[] = {
26978         {
26979                 .key    = "\x01\x23\x45\x67\x12\x34\x56\x78"
26980                           "\x23\x45\x67\x89\x34\x56\x78\x9a",
26981                 .klen   = 16,
26982                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26983                 .ctext  = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
26984                 .len    = 8,
26985         }, {
26986                 .key    = "\x01\x23\x45\x67\x12\x34\x56\x78"
26987                           "\x23\x45",
26988                 .klen   = 10,
26989                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26990                 .ctext  = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
26991                 .len    = 8,
26992         }, {
26993                 .key    = "\x01\x23\x45\x67\x12",
26994                 .klen   = 5,
26995                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26996                 .ctext  = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
26997                 .len    = 8,
26998         }, { /* Generated from TF test vectors */
26999                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
27000                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
27001                 .klen   = 16,
27002                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
27003                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
27004                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
27005                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
27006                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
27007                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
27008                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
27009                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
27010                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
27011                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
27012                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
27013                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
27014                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
27015                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
27016                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
27017                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
27018                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
27019                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
27020                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
27021                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
27022                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
27023                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
27024                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
27025                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
27026                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
27027                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
27028                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
27029                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
27030                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
27031                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
27032                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
27033                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
27034                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
27035                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
27036                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
27037                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
27038                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
27039                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
27040                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
27041                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
27042                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
27043                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
27044                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
27045                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
27046                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
27047                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
27048                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
27049                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
27050                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
27051                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
27052                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
27053                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
27054                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
27055                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
27056                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
27057                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
27058                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
27059                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
27060                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
27061                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
27062                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
27063                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
27064                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
27065                 .ctext  = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
27066                           "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
27067                           "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
27068                           "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
27069                           "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
27070                           "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
27071                           "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
27072                           "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
27073                           "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
27074                           "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
27075                           "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
27076                           "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
27077                           "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
27078                           "\xED\x34\x35\x78\x6B\x91\xC9\x32"
27079                           "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
27080                           "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
27081                           "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
27082                           "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
27083                           "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
27084                           "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
27085                           "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
27086                           "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
27087                           "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
27088                           "\x78\x75\x37\x55\xC1\xF5\x90\x40"
27089                           "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
27090                           "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
27091                           "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
27092                           "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
27093                           "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
27094                           "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
27095                           "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
27096                           "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
27097                           "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
27098                           "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
27099                           "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
27100                           "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
27101                           "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
27102                           "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
27103                           "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
27104                           "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
27105                           "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
27106                           "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
27107                           "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
27108                           "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
27109                           "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
27110                           "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
27111                           "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
27112                           "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
27113                           "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
27114                           "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
27115                           "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
27116                           "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
27117                           "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
27118                           "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
27119                           "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
27120                           "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
27121                           "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
27122                           "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
27123                           "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
27124                           "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
27125                           "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
27126                           "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
27127                 .len    = 496,
27128                 .also_non_np = 1,
27129                 .np     = 3,
27130                 .tap    = { 496 - 20, 4, 16 },
27131         },
27132 };
27133
27134 static const struct cipher_testvec cast5_cbc_tv_template[] = {
27135         { /* Generated from TF test vectors */
27136                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
27137                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
27138                 .klen   = 16,
27139                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
27140                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
27141                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
27142                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
27143                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
27144                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
27145                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
27146                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
27147                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
27148                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
27149                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
27150                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
27151                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
27152                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
27153                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
27154                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
27155                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
27156                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
27157                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
27158                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
27159                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
27160                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
27161                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
27162                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
27163                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
27164                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
27165                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
27166                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
27167                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
27168                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
27169                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
27170                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
27171                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
27172                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
27173                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
27174                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
27175                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
27176                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
27177                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
27178                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
27179                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
27180                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
27181                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
27182                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
27183                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
27184                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
27185                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
27186                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
27187                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
27188                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
27189                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
27190                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
27191                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
27192                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
27193                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
27194                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
27195                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
27196                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
27197                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
27198                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
27199                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
27200                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
27201                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
27202                 .ctext  = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
27203                           "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
27204                           "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
27205                           "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
27206                           "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
27207                           "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
27208                           "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
27209                           "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
27210                           "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
27211                           "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
27212                           "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
27213                           "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
27214                           "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
27215                           "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
27216                           "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
27217                           "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
27218                           "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
27219                           "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
27220                           "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
27221                           "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
27222                           "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
27223                           "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
27224                           "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
27225                           "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
27226                           "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
27227                           "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
27228                           "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
27229                           "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
27230                           "\x90\x12\x37\x49\x27\x98\x69\x18"
27231                           "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
27232                           "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
27233                           "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
27234                           "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
27235                           "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
27236                           "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
27237                           "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
27238                           "\x03\x55\x0E\x02\x41\x4A\x45\x06"
27239                           "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
27240                           "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
27241                           "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
27242                           "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
27243                           "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
27244                           "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
27245                           "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
27246                           "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
27247                           "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
27248                           "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
27249                           "\x11\xB4\x18\x17\x1A\x65\x92\x56"
27250                           "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
27251                           "\x1A\x01\x22\x45\x17\x62\x52\x6C"
27252                           "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
27253                           "\x32\x66\x6F\x23\x7F\x94\x36\x88"
27254                           "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
27255                           "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
27256                           "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
27257                           "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
27258                           "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
27259                           "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
27260                           "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
27261                           "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
27262                           "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
27263                           "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
27264                 .len    = 496,
27265                 .also_non_np = 1,
27266                 .np     = 3,
27267                 .tap    = { 496 - 20, 4, 16 },
27268         },
27269 };
27270
27271 static const struct cipher_testvec cast5_ctr_tv_template[] = {
27272         { /* Generated from TF test vectors */
27273                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
27274                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
27275                 .klen   = 16,
27276                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
27277                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
27278                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
27279                           "\x3A",
27280                 .ctext  = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
27281                           "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
27282                           "\x0C",
27283                 .len    = 17,
27284         }, { /* Generated from TF test vectors */
27285                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
27286                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
27287                 .klen   = 16,
27288                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
27289                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
27290                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
27291                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
27292                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
27293                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
27294                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
27295                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
27296                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
27297                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
27298                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
27299                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
27300                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
27301                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
27302                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
27303                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
27304                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
27305                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
27306                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
27307                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
27308                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
27309                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
27310                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
27311                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
27312                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
27313                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
27314                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
27315                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
27316                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
27317                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
27318                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
27319                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
27320                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
27321                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
27322                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
27323                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
27324                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
27325                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
27326                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
27327                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
27328                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
27329                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
27330                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
27331                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
27332                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
27333                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
27334                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
27335                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
27336                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
27337                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
27338                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
27339                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
27340                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
27341                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
27342                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
27343                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
27344                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
27345                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
27346                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
27347                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
27348                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
27349                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
27350                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
27351                 .ctext  = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
27352                           "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
27353                           "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
27354                           "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
27355                           "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
27356                           "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
27357                           "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
27358                           "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
27359                           "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
27360                           "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
27361                           "\x88\x18\x52\x56\x48\x58\xD1\x6B"
27362                           "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
27363                           "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
27364                           "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
27365                           "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
27366                           "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
27367                           "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
27368                           "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
27369                           "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
27370                           "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
27371                           "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
27372                           "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
27373                           "\x44\x67\x90\x20\xAC\x41\xDF\x43"
27374                           "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
27375                           "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
27376                           "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
27377                           "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
27378                           "\xAE\x59\x0F\x07\x88\x79\x53\x26"
27379                           "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
27380                           "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
27381                           "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
27382                           "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
27383                           "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
27384                           "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
27385                           "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
27386                           "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
27387                           "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
27388                           "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
27389                           "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
27390                           "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
27391                           "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
27392                           "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
27393                           "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
27394                           "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
27395                           "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
27396                           "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
27397                           "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
27398                           "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
27399                           "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
27400                           "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
27401                           "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
27402                           "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
27403                           "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
27404                           "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
27405                           "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
27406                           "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
27407                           "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
27408                           "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
27409                           "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
27410                           "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
27411                           "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
27412                           "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
27413                 .len    = 496,
27414                 .also_non_np = 1,
27415                 .np     = 3,
27416                 .tap    = { 496 - 20, 4, 16 },
27417         },
27418 };
27419
27420 /*
27421  * ARC4 test vectors from OpenSSL
27422  */
27423 static const struct cipher_testvec arc4_tv_template[] = {
27424         {
27425                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
27426                 .klen   = 8,
27427                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef",
27428                 .ctext  = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
27429                 .len    = 8,
27430         }, {
27431                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
27432                 .klen   = 8,
27433                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00",
27434                 .ctext  = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
27435                 .len    = 8,
27436         }, {
27437                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00",
27438                 .klen   = 8,
27439                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00",
27440                 .ctext  = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
27441                 .len    = 8,
27442         }, {
27443                 .key    = "\xef\x01\x23\x45",
27444                 .klen   = 4,
27445                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
27446                           "\x00\x00\x00\x00\x00\x00\x00\x00"
27447                           "\x00\x00\x00\x00",
27448                 .ctext  = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
27449                           "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
27450                           "\x36\xb6\x78\x58",
27451                 .len    = 20,
27452         }, {
27453                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef",
27454                 .klen   = 8,
27455                 .ptext  = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
27456                           "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
27457                           "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
27458                           "\x12\x34\x56\x78",
27459                 .ctext  = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
27460                           "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
27461                           "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
27462                           "\x40\x01\x1e\xcf",
27463                 .len    = 28,
27464         }, {
27465                 .key    = "\xef\x01\x23\x45",
27466                 .klen   = 4,
27467                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
27468                           "\x00\x00",
27469                 .ctext  = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
27470                           "\xbd\x61",
27471                 .len    = 10,
27472         }, {
27473                 .key    = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
27474                         "\x00\x00\x00\x00\x00\x00\x00\x00",
27475                 .klen   = 16,
27476                 .ptext  = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
27477                 .ctext  = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
27478                 .len    = 8,
27479         },
27480 };
27481
27482 /*
27483  * TEA test vectors
27484  */
27485 static const struct cipher_testvec tea_tv_template[] = {
27486         {
27487                 .key    = zeroed_string,
27488                 .klen   = 16,
27489                 .ptext  = zeroed_string,
27490                 .ctext  = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
27491                 .len    = 8,
27492         }, {
27493                 .key    = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27494                           "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27495                 .klen   = 16,
27496                 .ptext  = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27497                 .ctext  = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
27498                 .len    = 8,
27499         }, {
27500                 .key    = "\x09\x65\x43\x11\x66\x44\x39\x25"
27501                           "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27502                 .klen   = 16,
27503                 .ptext  = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27504                           "\x65\x73\x74\x5f\x76\x65\x63\x74",
27505                 .ctext  = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
27506                           "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
27507                 .len    = 16,
27508         }, {
27509                 .key    = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27510                           "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27511                 .klen   = 16,
27512                 .ptext  = "\x54\x65\x61\x20\x69\x73\x20\x67"
27513                           "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27514                           "\x79\x6f\x75\x21\x21\x21\x20\x72"
27515                           "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27516                 .ctext  = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
27517                           "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
27518                           "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
27519                           "\x07\x89\x73\xc2\x45\x92\xc6\x90",
27520                 .len    = 32,
27521         }
27522 };
27523
27524 /*
27525  * XTEA test vectors
27526  */
27527 static const struct cipher_testvec xtea_tv_template[] = {
27528         {
27529                 .key    = zeroed_string,
27530                 .klen   = 16,
27531                 .ptext  = zeroed_string,
27532                 .ctext  = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
27533                 .len    = 8,
27534         }, {
27535                 .key    = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27536                           "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27537                 .klen   = 16,
27538                 .ptext  = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27539                 .ctext  = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
27540                 .len    = 8,
27541         }, {
27542                 .key    = "\x09\x65\x43\x11\x66\x44\x39\x25"
27543                           "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27544                 .klen   = 16,
27545                 .ptext  = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27546                           "\x65\x73\x74\x5f\x76\x65\x63\x74",
27547                 .ctext  = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
27548                           "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
27549                 .len    = 16,
27550         }, {
27551                 .key    = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27552                           "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27553                 .klen   = 16,
27554                 .ptext  = "\x54\x65\x61\x20\x69\x73\x20\x67"
27555                           "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27556                           "\x79\x6f\x75\x21\x21\x21\x20\x72"
27557                           "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27558                 .ctext  = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
27559                           "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
27560                           "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
27561                           "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
27562                 .len    = 32,
27563         }
27564 };
27565
27566 /*
27567  * KHAZAD test vectors.
27568  */
27569 static const struct cipher_testvec khazad_tv_template[] = {
27570         {
27571                 .key    = "\x80\x00\x00\x00\x00\x00\x00\x00"
27572                           "\x00\x00\x00\x00\x00\x00\x00\x00",
27573                 .klen   = 16,
27574                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00",
27575                 .ctext  = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
27576                 .len    = 8,
27577         }, {
27578                 .key    = "\x38\x38\x38\x38\x38\x38\x38\x38"
27579                           "\x38\x38\x38\x38\x38\x38\x38\x38",
27580                 .klen   = 16,
27581                 .ptext  = "\x38\x38\x38\x38\x38\x38\x38\x38",
27582                 .ctext  = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
27583                 .len    = 8,
27584         }, {
27585                 .key    = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
27586                         "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27587                 .klen   = 16,
27588                 .ptext  = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27589                 .ctext  = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
27590                 .len    = 8,
27591         }, {
27592                 .key    = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27593                         "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27594                 .klen   = 16,
27595                 .ptext  = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27596                 .ctext  = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27597                 .len    = 8,
27598         }, {
27599                 .key    = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27600                         "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27601                 .klen   = 16,
27602                 .ptext  = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27603                         "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27604                 .ctext  = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
27605                         "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27606                 .len    = 16,
27607         },
27608 };
27609
27610 /*
27611  * Anubis test vectors.
27612  */
27613
27614 static const struct cipher_testvec anubis_tv_template[] = {
27615         {
27616                 .key    = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27617                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27618                 .klen   = 16,
27619                 .ptext  = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27620                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27621                 .ctext  = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27622                           "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
27623                 .len    = 16,
27624         }, {
27625
27626                 .key    = "\x03\x03\x03\x03\x03\x03\x03\x03"
27627                           "\x03\x03\x03\x03\x03\x03\x03\x03"
27628                           "\x03\x03\x03\x03",
27629                 .klen   = 20,
27630                 .ptext  = "\x03\x03\x03\x03\x03\x03\x03\x03"
27631                           "\x03\x03\x03\x03\x03\x03\x03\x03",
27632                 .ctext  = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
27633                           "\x87\x41\x6f\x82\x0a\x98\x64\xae",
27634                 .len    = 16,
27635         }, {
27636                 .key    = "\x24\x24\x24\x24\x24\x24\x24\x24"
27637                           "\x24\x24\x24\x24\x24\x24\x24\x24"
27638                           "\x24\x24\x24\x24\x24\x24\x24\x24"
27639                           "\x24\x24\x24\x24",
27640                 .klen   = 28,
27641                 .ptext  = "\x24\x24\x24\x24\x24\x24\x24\x24"
27642                           "\x24\x24\x24\x24\x24\x24\x24\x24",
27643                 .ctext  = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
27644                           "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
27645                 .len    = 16,
27646         }, {
27647                 .key    = "\x25\x25\x25\x25\x25\x25\x25\x25"
27648                           "\x25\x25\x25\x25\x25\x25\x25\x25"
27649                           "\x25\x25\x25\x25\x25\x25\x25\x25"
27650                           "\x25\x25\x25\x25\x25\x25\x25\x25",
27651                 .klen   = 32,
27652                 .ptext  = "\x25\x25\x25\x25\x25\x25\x25\x25"
27653                           "\x25\x25\x25\x25\x25\x25\x25\x25",
27654                 .ctext  = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
27655                         "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
27656                 .len    = 16,
27657         }, {
27658                 .key    = "\x35\x35\x35\x35\x35\x35\x35\x35"
27659                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27660                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27661                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27662                           "\x35\x35\x35\x35\x35\x35\x35\x35",
27663                 .klen   = 40,
27664                 .ptext  = "\x35\x35\x35\x35\x35\x35\x35\x35"
27665                           "\x35\x35\x35\x35\x35\x35\x35\x35",
27666                 .ctext  = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27667                           "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
27668                 .len    = 16,
27669         },
27670 };
27671
27672 static const struct cipher_testvec anubis_cbc_tv_template[] = {
27673         {
27674                 .key    = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27675                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27676                 .klen   = 16,
27677                 .ptext  = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27678                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27679                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27680                           "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27681                 .ctext  = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27682                           "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
27683                           "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
27684                           "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
27685                 .len    = 32,
27686         }, {
27687                 .key    = "\x35\x35\x35\x35\x35\x35\x35\x35"
27688                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27689                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27690                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27691                           "\x35\x35\x35\x35\x35\x35\x35\x35",
27692                 .klen   = 40,
27693                 .ptext  = "\x35\x35\x35\x35\x35\x35\x35\x35"
27694                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27695                           "\x35\x35\x35\x35\x35\x35\x35\x35"
27696                           "\x35\x35\x35\x35\x35\x35\x35\x35",
27697                 .ctext  = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27698                           "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
27699                           "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
27700                           "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
27701                 .len    = 32,
27702         },
27703 };
27704
27705 /*
27706  * XETA test vectors
27707  */
27708 static const struct cipher_testvec xeta_tv_template[] = {
27709         {
27710                 .key    = zeroed_string,
27711                 .klen   = 16,
27712                 .ptext  = zeroed_string,
27713                 .ctext  = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
27714                 .len    = 8,
27715         }, {
27716                 .key    = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27717                           "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27718                 .klen   = 16,
27719                 .ptext  = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27720                 .ctext  = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
27721                 .len    = 8,
27722         }, {
27723                 .key    = "\x09\x65\x43\x11\x66\x44\x39\x25"
27724                           "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27725                 .klen   = 16,
27726                 .ptext  = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27727                           "\x65\x73\x74\x5f\x76\x65\x63\x74",
27728                 .ctext  = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
27729                           "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
27730                 .len    = 16,
27731         }, {
27732                 .key    = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27733                           "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27734                 .klen   = 16,
27735                 .ptext  = "\x54\x65\x61\x20\x69\x73\x20\x67"
27736                           "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27737                           "\x79\x6f\x75\x21\x21\x21\x20\x72"
27738                           "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27739                 .ctext  = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
27740                           "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
27741                           "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
27742                           "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
27743                 .len    = 32,
27744         }
27745 };
27746
27747 /*
27748  * FCrypt test vectors
27749  */
27750 static const struct cipher_testvec fcrypt_pcbc_tv_template[] = {
27751         { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
27752                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00",
27753                 .klen   = 8,
27754                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
27755                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00",
27756                 .ctext  = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
27757                 .len    = 8,
27758         }, {
27759                 .key    = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
27760                 .klen   = 8,
27761                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
27762                 .ptext  = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
27763                 .ctext  = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
27764                 .len    = 8,
27765         }, { /* From Arla */
27766                 .key    = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27767                 .klen   = 8,
27768                 .iv     = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27769                 .ptext  = "The quick brown fox jumps over the lazy dogs.\0\0",
27770                 .ctext  = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
27771                           "\xee\xac\x98\x62\x44\x51\xe4\x84"
27772                           "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
27773                           "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
27774                           "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
27775                           "\xf8\x91\x3c\xac\x44\x22\x92\xef",
27776                 .len    = 48,
27777         }, {
27778                 .key    = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27779                 .klen   = 8,
27780                 .iv     = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27781                 .ptext  = "The quick brown fox jumps over the lazy dogs.\0\0",
27782                 .ctext  = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27783                           "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27784                           "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27785                           "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27786                           "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27787                           "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27788                 .len    = 48,
27789         }, { /* split-page version */
27790                 .key    = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27791                 .klen   = 8,
27792                 .iv     = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27793                 .ptext  = "The quick brown fox jumps over the lazy dogs.\0\0",
27794                 .ctext  = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27795                           "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27796                           "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27797                           "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27798                           "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27799                           "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27800                 .len    = 48,
27801                 .np     = 2,
27802                 .tap    = { 20, 28 },
27803         }
27804 };
27805
27806 /*
27807  * CAMELLIA test vectors.
27808  */
27809 static const struct cipher_testvec camellia_tv_template[] = {
27810         {
27811                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27812                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27813                 .klen   = 16,
27814                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27815                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27816                 .ctext  = "\x67\x67\x31\x38\x54\x96\x69\x73"
27817                           "\x08\x57\x06\x56\x48\xea\xbe\x43",
27818                 .len    = 16,
27819         }, {
27820                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27821                           "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27822                           "\x00\x11\x22\x33\x44\x55\x66\x77",
27823                 .klen   = 24,
27824                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27825                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27826                 .ctext  = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
27827                           "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
27828                 .len    = 16,
27829         }, {
27830                 .key    = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27831                           "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27832                           "\x00\x11\x22\x33\x44\x55\x66\x77"
27833                           "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
27834                 .klen   = 32,
27835                 .ptext  = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27836                           "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27837                 .ctext  = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
27838                           "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
27839                 .len    = 16,
27840         }, { /* Generated with Crypto++ */
27841                 .key    = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
27842                           "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
27843                           "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
27844                           "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
27845                 .klen   = 32,
27846                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
27847                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
27848                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
27849                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
27850                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
27851                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
27852                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
27853                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
27854                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
27855                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
27856                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
27857                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
27858                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
27859                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
27860                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
27861                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
27862                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
27863                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
27864                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
27865                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
27866                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
27867                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
27868                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
27869                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
27870                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
27871                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
27872                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
27873                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
27874                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
27875                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
27876                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
27877                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
27878                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
27879                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
27880                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
27881                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
27882                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
27883                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
27884                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
27885                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
27886                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
27887                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
27888                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
27889                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
27890                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
27891                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
27892                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
27893                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
27894                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
27895                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
27896                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
27897                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
27898                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
27899                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
27900                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
27901                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
27902                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
27903                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
27904                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
27905                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
27906                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
27907                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
27908                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
27909                           "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
27910                           "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
27911                           "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
27912                           "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
27913                           "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
27914                           "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
27915                           "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
27916                           "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
27917                           "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
27918                           "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
27919                           "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
27920                           "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
27921                           "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
27922                           "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
27923                           "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
27924                           "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
27925                           "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
27926                           "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
27927                           "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
27928                           "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
27929                           "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
27930                           "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
27931                           "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
27932                           "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
27933                           "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
27934                           "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
27935                           "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
27936                           "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
27937                           "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
27938                           "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
27939                           "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
27940                           "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
27941                           "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
27942                           "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
27943                           "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
27944                           "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
27945                           "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
27946                           "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
27947                           "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
27948                           "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
27949                           "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
27950                           "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
27951                           "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
27952                           "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
27953                           "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
27954                           "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
27955                           "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
27956                           "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
27957                           "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
27958                           "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
27959                           "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
27960                           "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
27961                           "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
27962                           "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
27963                           "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
27964                           "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
27965                           "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
27966                           "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
27967                           "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
27968                           "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
27969                           "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
27970                           "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
27971                           "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
27972                 .ctext  = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
27973                           "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
27974                           "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
27975                           "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
27976                           "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
27977                           "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
27978                           "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
27979                           "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
27980                           "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
27981                           "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
27982                           "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
27983                           "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
27984                           "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
27985                           "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
27986                           "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
27987                           "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
27988                           "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
27989                           "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
27990                           "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
27991                           "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
27992                           "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
27993                           "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
27994                           "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
27995                           "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
27996                           "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
27997                           "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
27998                           "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
27999                           "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
28000                           "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
28001                           "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
28002                           "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
28003                           "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
28004                           "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
28005                           "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
28006                           "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
28007                           "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
28008                           "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
28009                           "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
28010                           "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
28011                           "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
28012                           "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
28013                           "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
28014                           "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
28015                           "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
28016                           "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
28017                           "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
28018                           "\x83\x06\xAB\x82\x99\x01\x16\x1A"
28019                           "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
28020                           "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
28021                           "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
28022                           "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
28023                           "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
28024                           "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
28025                           "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
28026                           "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
28027                           "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
28028                           "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
28029                           "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
28030                           "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
28031                           "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
28032                           "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
28033                           "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
28034                           "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
28035                           "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
28036                           "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
28037                           "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
28038                           "\xED\x28\x39\xE9\x63\xED\x41\x70"
28039                           "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
28040                           "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
28041                           "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
28042                           "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
28043                           "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
28044                           "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
28045                           "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
28046                           "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
28047                           "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
28048                           "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
28049                           "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
28050                           "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
28051                           "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
28052                           "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
28053                           "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
28054                           "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
28055                           "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
28056                           "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
28057                           "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
28058                           "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
28059                           "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
28060                           "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
28061                           "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
28062                           "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
28063                           "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
28064                           "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
28065                           "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
28066                           "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
28067                           "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
28068                           "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
28069                           "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
28070                           "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
28071                           "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
28072                           "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
28073                           "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
28074                           "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
28075                           "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
28076                           "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
28077                           "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
28078                           "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
28079                           "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
28080                           "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
28081                           "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
28082                           "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
28083                           "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
28084                           "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
28085                           "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
28086                           "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
28087                           "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
28088                           "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
28089                           "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
28090                           "\x31\x93\x51\x1C\x63\x97\x70\xB0"
28091                           "\x99\x78\x83\x13\xFD\xCF\x53\x81"
28092                           "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
28093                           "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
28094                           "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
28095                           "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
28096                           "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
28097                           "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
28098                 .len    = 1008,
28099                 .also_non_np = 1,
28100                 .np     = 3,
28101                 .tap    = { 1008 - 20, 4, 16 },
28102         },
28103 };
28104
28105 static const struct cipher_testvec camellia_cbc_tv_template[] = {
28106         {
28107                 .key    = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
28108                           "\x51\x2e\x03\xd5\x34\x12\x00\x06",
28109                 .klen   = 16,
28110                 .iv     = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
28111                           "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
28112                 .ptext  = "Single block msg",
28113                 .ctext  = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
28114                           "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
28115                 .len    = 16,
28116         }, {
28117                 .key    = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
28118                           "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
28119                 .klen   = 16,
28120                 .iv     = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
28121                           "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
28122                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
28123                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
28124                           "\x10\x11\x12\x13\x14\x15\x16\x17"
28125                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
28126                 .ctext  = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
28127                           "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
28128                           "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
28129                           "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
28130                 .len    = 32,
28131         }, { /* Generated with Crypto++ */
28132                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28133                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28134                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28135                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28136                 .klen   = 32,
28137                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28138                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28139                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28140                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28141                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28142                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28143                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28144                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28145                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28146                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28147                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28148                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28149                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28150                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28151                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28152                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28153                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28154                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28155                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28156                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28157                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28158                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28159                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28160                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28161                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28162                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28163                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28164                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28165                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28166                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28167                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28168                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28169                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28170                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28171                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28172                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28173                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28174                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28175                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28176                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28177                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28178                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28179                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28180                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28181                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28182                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28183                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28184                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28185                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28186                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28187                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28188                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28189                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28190                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28191                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28192                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28193                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28194                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28195                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28196                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28197                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28198                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28199                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28200                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28201                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28202                           "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28203                           "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28204                           "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28205                           "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28206                           "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28207                           "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28208                           "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28209                           "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28210                           "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28211                           "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28212                           "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28213                           "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28214                           "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28215                           "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28216                           "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28217                           "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28218                           "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28219                           "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28220                           "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28221                           "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28222                           "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28223                           "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28224                           "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28225                           "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28226                           "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28227                           "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28228                           "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28229                           "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28230                           "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28231                           "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28232                           "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28233                           "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28234                           "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28235                           "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28236                           "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28237                           "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28238                           "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28239                           "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28240                           "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28241                           "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28242                           "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28243                           "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28244                           "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28245                           "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28246                           "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28247                           "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28248                           "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28249                           "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28250                           "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28251                           "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28252                           "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28253                           "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28254                           "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28255                           "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28256                           "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28257                           "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28258                           "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28259                           "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28260                           "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28261                           "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28262                           "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28263                           "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28264                           "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
28265                 .ctext  = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
28266                           "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
28267                           "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
28268                           "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
28269                           "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
28270                           "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
28271                           "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
28272                           "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
28273                           "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
28274                           "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
28275                           "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
28276                           "\x37\x49\x88\xA4\xEF\x91\x21\x47"
28277                           "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
28278                           "\x28\x90\x77\x46\xD8\xD2\x35\x16"
28279                           "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
28280                           "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
28281                           "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
28282                           "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
28283                           "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
28284                           "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
28285                           "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
28286                           "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
28287                           "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
28288                           "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
28289                           "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
28290                           "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
28291                           "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
28292                           "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
28293                           "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
28294                           "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
28295                           "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
28296                           "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
28297                           "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
28298                           "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
28299                           "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
28300                           "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
28301                           "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
28302                           "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
28303                           "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
28304                           "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
28305                           "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
28306                           "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
28307                           "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
28308                           "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
28309                           "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
28310                           "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
28311                           "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
28312                           "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
28313                           "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
28314                           "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
28315                           "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
28316                           "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
28317                           "\x38\xB8\x48\x36\x66\x4E\x20\x43"
28318                           "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
28319                           "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
28320                           "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
28321                           "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
28322                           "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
28323                           "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
28324                           "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
28325                           "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
28326                           "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
28327                           "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
28328                           "\x21\x41\x56\x72\x13\xE1\x86\x07"
28329                           "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
28330                           "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
28331                           "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
28332                           "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
28333                           "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
28334                           "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
28335                           "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
28336                           "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
28337                           "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
28338                           "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
28339                           "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
28340                           "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
28341                           "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
28342                           "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
28343                           "\xBE\x31\x31\x96\x8B\x40\x18\x75"
28344                           "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
28345                           "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
28346                           "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
28347                           "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
28348                           "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
28349                           "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
28350                           "\x09\xB0\x43\x96\x4A\x64\x80\x40"
28351                           "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
28352                           "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
28353                           "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
28354                           "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
28355                           "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
28356                           "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
28357                           "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
28358                           "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
28359                           "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
28360                           "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
28361                           "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
28362                           "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
28363                           "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
28364                           "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
28365                           "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
28366                           "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
28367                           "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
28368                           "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
28369                           "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
28370                           "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
28371                           "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
28372                           "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
28373                           "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
28374                           "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
28375                           "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
28376                           "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
28377                           "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
28378                           "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
28379                           "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
28380                           "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
28381                           "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
28382                           "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
28383                           "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
28384                           "\x80\xE7\x29\xDC\x23\x55\x98\x54"
28385                           "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
28386                           "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
28387                           "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
28388                           "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
28389                           "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
28390                           "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
28391                 .len    = 1008,
28392                 .also_non_np = 1,
28393                 .np     = 3,
28394                 .tap    = { 1008 - 20, 4, 16 },
28395         },
28396 };
28397
28398 static const struct cipher_testvec camellia_ctr_tv_template[] = {
28399         { /* Generated with Crypto++ */
28400                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28401                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28402                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28403                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28404                 .klen   = 32,
28405                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28406                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28407                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28408                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28409                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28410                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28411                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28412                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28413                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28414                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28415                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28416                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28417                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28418                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28419                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28420                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28421                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28422                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28423                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28424                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28425                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28426                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28427                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28428                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28429                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28430                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28431                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28432                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28433                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28434                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28435                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28436                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28437                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28438                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28439                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28440                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28441                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28442                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28443                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28444                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28445                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28446                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28447                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28448                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28449                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28450                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28451                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28452                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28453                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28454                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28455                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28456                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28457                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28458                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28459                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28460                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28461                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28462                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28463                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28464                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28465                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28466                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28467                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28468                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
28469                 .ctext  = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
28470                           "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
28471                           "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
28472                           "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
28473                           "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
28474                           "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
28475                           "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
28476                           "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
28477                           "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
28478                           "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
28479                           "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
28480                           "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
28481                           "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
28482                           "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
28483                           "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
28484                           "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
28485                           "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
28486                           "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
28487                           "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
28488                           "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
28489                           "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
28490                           "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
28491                           "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
28492                           "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
28493                           "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
28494                           "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
28495                           "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
28496                           "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
28497                           "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
28498                           "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
28499                           "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
28500                           "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
28501                           "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
28502                           "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
28503                           "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
28504                           "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
28505                           "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
28506                           "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
28507                           "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
28508                           "\x79\xA2\x99\x28\x93\x1B\x00\x57"
28509                           "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
28510                           "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
28511                           "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
28512                           "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
28513                           "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
28514                           "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
28515                           "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
28516                           "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
28517                           "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
28518                           "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
28519                           "\x76\x44\x45\xF3\x24\x11\x57\x98"
28520                           "\x9A\x86\xB4\x12\x80\x28\x86\x20"
28521                           "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
28522                           "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
28523                           "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
28524                           "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
28525                           "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
28526                           "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
28527                           "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
28528                           "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
28529                           "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
28530                           "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
28531                 .len    = 496,
28532         }, { /* Generated with Crypto++ */
28533                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28534                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28535                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28536                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28537                 .klen   = 32,
28538                 .iv     = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28539                           "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28540                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28541                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28542                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28543                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28544                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28545                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28546                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28547                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28548                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28549                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28550                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28551                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28552                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28553                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28554                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28555                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28556                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28557                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28558                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28559                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28560                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28561                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28562                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28563                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28564                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28565                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28566                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28567                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28568                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28569                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28570                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28571                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28572                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28573                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28574                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28575                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28576                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28577                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28578                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28579                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28580                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28581                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28582                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28583                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28584                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28585                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28586                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28587                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28588                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28589                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28590                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28591                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28592                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28593                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28594                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28595                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28596                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28597                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28598                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28599                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28600                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28601                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28602                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28603                           "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28604                           "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28605                           "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28606                           "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28607                           "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28608                           "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28609                           "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28610                           "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28611                           "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28612                           "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28613                           "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28614                           "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28615                           "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28616                           "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28617                           "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28618                           "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28619                           "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28620                           "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28621                           "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28622                           "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28623                           "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28624                           "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28625                           "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28626                           "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28627                           "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28628                           "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28629                           "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28630                           "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28631                           "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28632                           "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28633                           "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28634                           "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28635                           "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28636                           "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28637                           "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28638                           "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28639                           "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28640                           "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28641                           "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28642                           "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28643                           "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28644                           "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28645                           "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28646                           "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28647                           "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28648                           "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28649                           "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28650                           "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28651                           "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28652                           "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28653                           "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28654                           "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28655                           "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28656                           "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28657                           "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28658                           "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28659                           "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28660                           "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28661                           "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28662                           "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28663                           "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28664                           "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28665                           "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
28666                           "\xE4\x7B\x12",
28667                 .ctext  = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
28668                           "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
28669                           "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
28670                           "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
28671                           "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
28672                           "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
28673                           "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
28674                           "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
28675                           "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
28676                           "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
28677                           "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
28678                           "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
28679                           "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
28680                           "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
28681                           "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
28682                           "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
28683                           "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
28684                           "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
28685                           "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
28686                           "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
28687                           "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
28688                           "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
28689                           "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
28690                           "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
28691                           "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
28692                           "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
28693                           "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
28694                           "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
28695                           "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
28696                           "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
28697                           "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
28698                           "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
28699                           "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
28700                           "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
28701                           "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
28702                           "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
28703                           "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
28704                           "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
28705                           "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
28706                           "\x79\xA2\x99\x28\x93\x1B\x00\x57"
28707                           "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
28708                           "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
28709                           "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
28710                           "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
28711                           "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
28712                           "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
28713                           "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
28714                           "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
28715                           "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
28716                           "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
28717                           "\x76\x44\x45\xF3\x24\x11\x57\x98"
28718                           "\x9A\x86\xB4\x12\x80\x28\x86\x20"
28719                           "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
28720                           "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
28721                           "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
28722                           "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
28723                           "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
28724                           "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
28725                           "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
28726                           "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
28727                           "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
28728                           "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
28729                           "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
28730                           "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
28731                           "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
28732                           "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
28733                           "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
28734                           "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
28735                           "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
28736                           "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
28737                           "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
28738                           "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
28739                           "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
28740                           "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
28741                           "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
28742                           "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
28743                           "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
28744                           "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
28745                           "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
28746                           "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
28747                           "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
28748                           "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
28749                           "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
28750                           "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
28751                           "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
28752                           "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
28753                           "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
28754                           "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
28755                           "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
28756                           "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
28757                           "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
28758                           "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
28759                           "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
28760                           "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
28761                           "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
28762                           "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
28763                           "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
28764                           "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
28765                           "\x00\x70\x12\x56\x56\x50\xAD\x14"
28766                           "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
28767                           "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
28768                           "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
28769                           "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
28770                           "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
28771                           "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
28772                           "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
28773                           "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
28774                           "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
28775                           "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
28776                           "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
28777                           "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
28778                           "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
28779                           "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
28780                           "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
28781                           "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
28782                           "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
28783                           "\x40\x48\x19\x73\x7C\x78\x64\x0B"
28784                           "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
28785                           "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
28786                           "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
28787                           "\x74\x28\x9D\x05\x30\x20\x62\x41"
28788                           "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
28789                           "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
28790                           "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
28791                           "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
28792                           "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
28793                           "\xF1\x6B\xD9",
28794                 .len    = 1011,
28795                 .also_non_np = 1,
28796                 .np     = 2,
28797                 .tap    = { 1011 - 16, 16 },
28798         }, { /* Generated with Crypto++ */
28799                 .key    = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28800                           "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28801                           "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28802                           "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28803                 .klen   = 32,
28804                 .iv     = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
28805                           "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
28806                 .ptext  = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28807                           "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28808                           "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28809                           "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28810                           "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28811                           "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28812                           "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28813                           "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28814                           "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28815                           "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28816                           "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28817                           "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28818                           "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28819                           "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28820                           "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28821                           "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28822                           "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28823                           "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28824                           "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28825                           "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28826                           "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28827                           "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28828                           "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28829                           "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28830                           "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28831                           "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28832                           "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28833                           "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28834                           "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28835                           "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28836                           "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28837                           "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28838                           "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28839                           "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28840                           "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28841                           "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28842                           "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28843                           "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28844                           "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28845                           "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28846                           "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28847                           "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28848                           "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28849                           "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28850                           "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28851                           "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28852                           "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28853                           "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28854                           "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28855                           "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28856                           "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28857                           "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28858                           "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28859                           "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28860                           "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28861                           "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28862                           "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28863                           "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28864                           "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28865                           "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28866                           "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28867                           "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28868                           "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28869                           "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28870                           "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28871                           "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28872                           "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28873                           "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28874                           "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28875                           "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28876                           "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28877                           "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28878                           "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28879                           "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28880                           "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28881                           "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28882                           "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28883                           "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28884                           "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28885                           "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28886                           "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28887                           "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28888                           "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28889                           "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28890                           "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28891                           "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28892                           "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28893                           "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28894                           "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28895                           "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28896                           "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28897                           "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28898                           "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28899                           "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28900                           "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28901                           "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28902                           "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28903                           "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28904                           "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28905                           "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28906                           "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28907                           "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28908                           "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28909                           "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28910                           "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28911                           "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28912                           "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28913                           "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28914                           "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28915                           "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28916                           "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28917                           "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28918                           "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28919                           "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28920                           "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28921                           "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28922                           "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28923                           "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28924                           "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28925                           "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28926                           "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28927                           "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28928                           "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28929                           "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28930                           "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28931                           "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
28932                 .ctext  = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
28933                           "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
28934                           "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
28935                           "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
28936                           "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
28937                           "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
28938                           "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
28939                           "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
28940                           "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
28941                           "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
28942                           "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
28943                           "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
28944                           "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
28945                           "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
28946                           "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
28947                           "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
28948                           "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
28949                           "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
28950                           "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
28951                           "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
28952                           "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
28953                           "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
28954                           "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
28955                           "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
28956                           "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
28957                           "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
28958                           "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
28959                           "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
28960                           "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
28961                           "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
28962                           "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
28963                           "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
28964                           "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
28965                           "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
28966                           "\x93\x78\x86\x05\x69\x46\xD0\xC5"
28967                           "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
28968                           "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
28969                           "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
28970                           "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
28971                           "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
28972                           "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
28973                           "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
28974                           "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
28975                           "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
28976                           "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
28977                           "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
28978                           "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
28979                           "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
28980                           "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
28981                           "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
28982                           "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
28983                           "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
28984                           "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
28985                           "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
28986                           "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
28987                           "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
28988                           "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
28989                           "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
28990                           "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
28991                           "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
28992                           "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
28993                           "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
28994                           "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
28995                           "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
28996                           "\x3F\x23\x69\x63\x56\x96\x45\xD6"
28997                           "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
28998                           "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
28999                           "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
29000                           "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
29001                           "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
29002                           "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
29003                           "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
29004                           "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
29005                           "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
29006                           "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
29007                           "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
29008                           "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
29009                           "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
29010                           "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
29011                           "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
29012                           "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
29013                           "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
29014                           "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
29015                           "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
29016                           "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
29017                           "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
29018                           "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
29019                           "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
29020                           "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
29021                           "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
29022                           "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
29023                           "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
29024                           "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
29025                           "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
29026                           "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
29027                           "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
29028                           "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
29029                           "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
29030                           "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
29031                           "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
29032                           "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
29033                           "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
29034                           "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
29035                           "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
29036                           "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
29037                           "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
29038                           "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
29039                           "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
29040                           "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
29041                           "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
29042                           "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
29043                           "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
29044                           "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
29045                           "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
29046                           "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
29047                           "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
29048                           "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
29049                           "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
29050                           "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
29051                           "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
29052                           "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
29053                           "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
29054                           "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
29055                           "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
29056                           "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
29057                           "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
29058                 .len    = 1008,
29059         },
29060 };
29061
29062 static const struct cipher_testvec camellia_lrw_tv_template[] = {
29063         /* Generated from AES-LRW test vectors */
29064         {
29065                 .key    = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
29066                           "\x4c\x26\x84\x14\xb5\x68\x01\x85"
29067                           "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
29068                           "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
29069                 .klen   = 32,
29070                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
29071                           "\x00\x00\x00\x00\x00\x00\x00\x01",
29072                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
29073                           "\x38\x39\x41\x42\x43\x44\x45\x46",
29074                 .ctext  = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
29075                           "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
29076                 .len    = 16,
29077         }, {
29078                 .key    = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
29079                           "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
29080                           "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
29081                           "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
29082                 .klen   = 32,
29083                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
29084                           "\x00\x00\x00\x00\x00\x00\x00\x02",
29085                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
29086                           "\x38\x39\x41\x42\x43\x44\x45\x46",
29087                 .ctext  = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
29088                           "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
29089                 .len    = 16,
29090         }, {
29091                 .key    = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
29092                           "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
29093                           "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
29094                           "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
29095                 .klen   = 32,
29096                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
29097                           "\x00\x00\x00\x02\x00\x00\x00\x00",
29098                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
29099                           "\x38\x39\x41\x42\x43\x44\x45\x46",
29100                 .ctext  = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
29101                           "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
29102                 .len    = 16,
29103         }, {
29104                 .key    = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
29105                           "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
29106                           "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
29107                           "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
29108                           "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
29109                 .klen   = 40,
29110                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
29111                           "\x00\x00\x00\x00\x00\x00\x00\x01",
29112                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
29113                           "\x38\x39\x41\x42\x43\x44\x45\x46",
29114                 .ctext  = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
29115                           "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
29116                 .len    = 16,
29117         }, {
29118                 .key    = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
29119                           "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
29120                           "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
29121                           "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
29122                           "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
29123                 .klen   = 40,
29124                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
29125                           "\x00\x00\x00\x02\x00\x00\x00\x00",
29126                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
29127                           "\x38\x39\x41\x42\x43\x44\x45\x46",
29128                 .ctext  = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
29129                           "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
29130                 .len    = 16,
29131         }, {
29132                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
29133                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
29134                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
29135                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
29136                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
29137                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
29138                 .klen   = 48,
29139                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
29140                           "\x00\x00\x00\x00\x00\x00\x00\x01",
29141                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
29142                           "\x38\x39\x41\x42\x43\x44\x45\x46",
29143                 .ctext  = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
29144                           "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
29145                 .len    = 16,
29146         }, {
29147                 .key    = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
29148                           "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
29149                           "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
29150                           "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
29151                           "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
29152                           "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
29153                 .klen   = 48,
29154                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
29155                           "\x00\x00\x00\x02\x00\x00\x00\x00",
29156                 .ptext  = "\x30\x31\x32\x33\x34\x35\x36\x37"
29157                           "\x38\x39\x41\x42\x43\x44\x45\x46",
29158                 .ctext  = "\x04\xab\x28\x37\x31\x7a\x26\xab"
29159                           "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
29160                 .len    = 16,
29161         }, {
29162                 .key    = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
29163                           "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
29164                           "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
29165                           "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
29166                           "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
29167                           "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
29168                 .klen   = 48,
29169                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
29170                           "\x00\x00\x00\x00\x00\x00\x00\x01",
29171                 .ptext  = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
29172                           "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
29173                           "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
29174                           "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
29175                           "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
29176                           "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
29177                           "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
29178                           "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
29179                           "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
29180                           "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
29181                           "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
29182                           "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
29183                           "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
29184                           "\x4c\x96\x12\xed\x7c\x92\x03\x01"
29185                           "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
29186                           "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
29187                           "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
29188                           "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
29189                           "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
29190                           "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
29191                           "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
29192                           "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
29193                           "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
29194                           "\x76\x12\x73\x44\x1a\x56\xd7\x72"
29195                           "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
29196                           "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
29197                           "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
29198                           "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
29199                           "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
29200                           "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
29201                           "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
29202                           "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
29203                           "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
29204                           "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
29205                           "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
29206                           "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
29207                           "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
29208                           "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
29209                           "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
29210                           "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
29211                           "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
29212                           "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
29213                           "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
29214                           "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
29215                           "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
29216                           "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
29217                           "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
29218                           "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
29219                           "\x62\x73\x65\xfd\x46\x63\x25\x3d"
29220                           "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
29221                           "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
29222                           "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
29223                           "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
29224                           "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
29225                           "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
29226                           "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
29227                           "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
29228                           "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
29229                           "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
29230                           "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
29231                           "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
29232                           "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
29233                           "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
29234                           "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
29235                 .ctext  = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
29236                           "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
29237                           "\x67\x76\xac\x2c\xd2\x63\x18\x93"
29238                           "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
29239                           "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
29240                           "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
29241                           "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
29242                           "\x62\xdd\x78\x81\xea\x1d\xef\x04"
29243                           "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
29244                           "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
29245                           "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
29246                           "\x40\x41\x69\xaa\x71\xc0\x37\xec"
29247                           "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
29248                           "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
29249                           "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
29250                           "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
29251                           "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
29252                           "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
29253                           "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
29254                           "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
29255                           "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
29256                           "\x42\x08\x40\x82\x06\x1c\x2d\x55"
29257                           "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
29258                           "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
29259                           "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
29260                           "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
29261                           "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
29262                           "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
29263                           "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
29264                           "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
29265                           "\xed\x14\xa9\x57\x19\x63\x40\x04"
29266                           "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
29267                           "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
29268                           "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
29269                           "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
29270                           "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
29271                           "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
29272                           "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
29273                           "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
29274                           "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
29275                           "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
29276                           "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
29277                           "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
29278                           "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
29279                           "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
29280                           "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
29281                           "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
29282                           "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
29283                           "\x35\xa5\x83\x04\x84\x01\x99\x56"
29284                           "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
29285                           "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
29286                           "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
29287                           "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
29288                           "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
29289                           "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
29290                           "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
29291                           "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
29292                           "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
29293                           "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
29294                           "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
29295                           "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
29296                           "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
29297                           "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
29298                           "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
29299                 .len    = 512,
29300                 .also_non_np = 1,
29301                 .np     = 3,
29302                 .tap    = { 512 - 20, 4, 16 },
29303         },
29304 };
29305
29306 static const struct cipher_testvec camellia_xts_tv_template[] = {
29307         /* Generated from AES-XTS test vectors */
29308         {
29309                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
29310                           "\x00\x00\x00\x00\x00\x00\x00\x00"
29311                           "\x00\x00\x00\x00\x00\x00\x00\x00"
29312                           "\x00\x00\x00\x00\x00\x00\x00\x00",
29313                 .klen   = 32,
29314                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
29315                           "\x00\x00\x00\x00\x00\x00\x00\x00",
29316                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
29317                           "\x00\x00\x00\x00\x00\x00\x00\x00"
29318                           "\x00\x00\x00\x00\x00\x00\x00\x00"
29319                           "\x00\x00\x00\x00\x00\x00\x00\x00",
29320                 .ctext  = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
29321                           "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
29322                           "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
29323                           "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
29324                 .len    = 32,
29325         }, {
29326                 .key    = "\x11\x11\x11\x11\x11\x11\x11\x11"
29327                           "\x11\x11\x11\x11\x11\x11\x11\x11"
29328                           "\x22\x22\x22\x22\x22\x22\x22\x22"
29329                           "\x22\x22\x22\x22\x22\x22\x22\x22",
29330                 .klen   = 32,
29331                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
29332                           "\x00\x00\x00\x00\x00\x00\x00\x00",
29333                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
29334                           "\x44\x44\x44\x44\x44\x44\x44\x44"
29335                           "\x44\x44\x44\x44\x44\x44\x44\x44"
29336                           "\x44\x44\x44\x44\x44\x44\x44\x44",
29337                 .ctext  = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
29338                           "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
29339                           "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
29340                           "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
29341                 .len    = 32,
29342         }, {
29343                 .key    = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
29344                           "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
29345                           "\x22\x22\x22\x22\x22\x22\x22\x22"
29346                           "\x22\x22\x22\x22\x22\x22\x22\x22",
29347                 .klen   = 32,
29348                 .iv     = "\x33\x33\x33\x33\x33\x00\x00\x00"
29349                           "\x00\x00\x00\x00\x00\x00\x00\x00",
29350                 .ptext  = "\x44\x44\x44\x44\x44\x44\x44\x44"
29351                           "\x44\x44\x44\x44\x44\x44\x44\x44"
29352                           "\x44\x44\x44\x44\x44\x44\x44\x44"
29353                           "\x44\x44\x44\x44\x44\x44\x44\x44",
29354                 .ctext  = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
29355                           "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
29356                           "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
29357                           "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
29358                 .len    = 32,
29359         }, {
29360                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
29361                           "\x23\x53\x60\x28\x74\x71\x35\x26"
29362                           "\x31\x41\x59\x26\x53\x58\x97\x93"
29363                           "\x23\x84\x62\x64\x33\x83\x27\x95",
29364                 .klen   = 32,
29365                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
29366                           "\x00\x00\x00\x00\x00\x00\x00\x00",
29367                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
29368                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29369                           "\x10\x11\x12\x13\x14\x15\x16\x17"
29370                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
29371                           "\x20\x21\x22\x23\x24\x25\x26\x27"
29372                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
29373                           "\x30\x31\x32\x33\x34\x35\x36\x37"
29374                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
29375                           "\x40\x41\x42\x43\x44\x45\x46\x47"
29376                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
29377                           "\x50\x51\x52\x53\x54\x55\x56\x57"
29378                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
29379                           "\x60\x61\x62\x63\x64\x65\x66\x67"
29380                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
29381                           "\x70\x71\x72\x73\x74\x75\x76\x77"
29382                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
29383                           "\x80\x81\x82\x83\x84\x85\x86\x87"
29384                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
29385                           "\x90\x91\x92\x93\x94\x95\x96\x97"
29386                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
29387                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
29388                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
29389                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
29390                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
29391                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
29392                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
29393                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
29394                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
29395                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
29396                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
29397                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
29398                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
29399                           "\x00\x01\x02\x03\x04\x05\x06\x07"
29400                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29401                           "\x10\x11\x12\x13\x14\x15\x16\x17"
29402                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
29403                           "\x20\x21\x22\x23\x24\x25\x26\x27"
29404                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
29405                           "\x30\x31\x32\x33\x34\x35\x36\x37"
29406                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
29407                           "\x40\x41\x42\x43\x44\x45\x46\x47"
29408                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
29409                           "\x50\x51\x52\x53\x54\x55\x56\x57"
29410                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
29411                           "\x60\x61\x62\x63\x64\x65\x66\x67"
29412                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
29413                           "\x70\x71\x72\x73\x74\x75\x76\x77"
29414                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
29415                           "\x80\x81\x82\x83\x84\x85\x86\x87"
29416                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
29417                           "\x90\x91\x92\x93\x94\x95\x96\x97"
29418                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
29419                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
29420                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
29421                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
29422                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
29423                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
29424                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
29425                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
29426                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
29427                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
29428                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
29429                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
29430                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
29431                 .ctext  = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
29432                           "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
29433                           "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
29434                           "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
29435                           "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
29436                           "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
29437                           "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
29438                           "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
29439                           "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
29440                           "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
29441                           "\x08\xda\x76\x00\x65\xcf\x7b\x31"
29442                           "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
29443                           "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
29444                           "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
29445                           "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
29446                           "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
29447                           "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
29448                           "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
29449                           "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
29450                           "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
29451                           "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
29452                           "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
29453                           "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
29454                           "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
29455                           "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
29456                           "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
29457                           "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
29458                           "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
29459                           "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
29460                           "\x16\x31\xb2\x47\x91\x67\xaa\x28"
29461                           "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
29462                           "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
29463                           "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
29464                           "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
29465                           "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
29466                           "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
29467                           "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
29468                           "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
29469                           "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
29470                           "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
29471                           "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
29472                           "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
29473                           "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
29474                           "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
29475                           "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
29476                           "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
29477                           "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
29478                           "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
29479                           "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
29480                           "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
29481                           "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
29482                           "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
29483                           "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
29484                           "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
29485                           "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
29486                           "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
29487                           "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
29488                           "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
29489                           "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
29490                           "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
29491                           "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
29492                           "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
29493                           "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
29494                           "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
29495                 .len    = 512,
29496         }, {
29497                 .key    = "\x27\x18\x28\x18\x28\x45\x90\x45"
29498                           "\x23\x53\x60\x28\x74\x71\x35\x26"
29499                           "\x62\x49\x77\x57\x24\x70\x93\x69"
29500                           "\x99\x59\x57\x49\x66\x96\x76\x27"
29501                           "\x31\x41\x59\x26\x53\x58\x97\x93"
29502                           "\x23\x84\x62\x64\x33\x83\x27\x95"
29503                           "\x02\x88\x41\x97\x16\x93\x99\x37"
29504                           "\x51\x05\x82\x09\x74\x94\x45\x92",
29505                 .klen   = 64,
29506                 .iv     = "\xff\x00\x00\x00\x00\x00\x00\x00"
29507                           "\x00\x00\x00\x00\x00\x00\x00\x00",
29508                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
29509                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29510                           "\x10\x11\x12\x13\x14\x15\x16\x17"
29511                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
29512                           "\x20\x21\x22\x23\x24\x25\x26\x27"
29513                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
29514                           "\x30\x31\x32\x33\x34\x35\x36\x37"
29515                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
29516                           "\x40\x41\x42\x43\x44\x45\x46\x47"
29517                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
29518                           "\x50\x51\x52\x53\x54\x55\x56\x57"
29519                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
29520                           "\x60\x61\x62\x63\x64\x65\x66\x67"
29521                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
29522                           "\x70\x71\x72\x73\x74\x75\x76\x77"
29523                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
29524                           "\x80\x81\x82\x83\x84\x85\x86\x87"
29525                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
29526                           "\x90\x91\x92\x93\x94\x95\x96\x97"
29527                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
29528                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
29529                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
29530                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
29531                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
29532                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
29533                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
29534                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
29535                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
29536                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
29537                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
29538                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
29539                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
29540                           "\x00\x01\x02\x03\x04\x05\x06\x07"
29541                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29542                           "\x10\x11\x12\x13\x14\x15\x16\x17"
29543                           "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
29544                           "\x20\x21\x22\x23\x24\x25\x26\x27"
29545                           "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
29546                           "\x30\x31\x32\x33\x34\x35\x36\x37"
29547                           "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
29548                           "\x40\x41\x42\x43\x44\x45\x46\x47"
29549                           "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
29550                           "\x50\x51\x52\x53\x54\x55\x56\x57"
29551                           "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
29552                           "\x60\x61\x62\x63\x64\x65\x66\x67"
29553                           "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
29554                           "\x70\x71\x72\x73\x74\x75\x76\x77"
29555                           "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
29556                           "\x80\x81\x82\x83\x84\x85\x86\x87"
29557                           "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
29558                           "\x90\x91\x92\x93\x94\x95\x96\x97"
29559                           "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
29560                           "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
29561                           "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
29562                           "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
29563                           "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
29564                           "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
29565                           "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
29566                           "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
29567                           "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
29568                           "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
29569                           "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
29570                           "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
29571                           "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
29572                 .ctext  = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
29573                           "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
29574                           "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
29575                           "\xf1\x74\xac\x96\x05\x7b\x32\xca"
29576                           "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
29577                           "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
29578                           "\x97\x07\x82\xf0\x07\x12\x38\x0a"
29579                           "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
29580                           "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
29581                           "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
29582                           "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
29583                           "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
29584                           "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
29585                           "\x41\x82\x0c\x45\x39\x35\xa8\x75"
29586                           "\x03\x29\x01\x84\x8c\xab\x48\xbe"
29587                           "\x11\x56\x22\x67\xb7\x67\x1a\x09"
29588                           "\xa1\x72\x25\x41\x3c\x39\x65\x80"
29589                           "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
29590                           "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
29591                           "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
29592                           "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
29593                           "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
29594                           "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
29595                           "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
29596                           "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
29597                           "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
29598                           "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
29599                           "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
29600                           "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
29601                           "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
29602                           "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
29603                           "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
29604                           "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
29605                           "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
29606                           "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
29607                           "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
29608                           "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
29609                           "\xef\x38\x52\x18\x0e\x29\x7e\xef"
29610                           "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
29611                           "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
29612                           "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
29613                           "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
29614                           "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
29615                           "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
29616                           "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
29617                           "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
29618                           "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
29619                           "\x21\x17\xf8\x59\x15\x24\x64\x22"
29620                           "\x57\x48\x80\xd5\x3d\x92\x30\x07"
29621                           "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
29622                           "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
29623                           "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
29624                           "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
29625                           "\x6b\x84\xf3\x00\xba\x52\x05\x02"
29626                           "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
29627                           "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
29628                           "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
29629                           "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
29630                           "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
29631                           "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
29632                           "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
29633                           "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
29634                           "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
29635                           "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
29636                 .len    = 512,
29637                 .also_non_np = 1,
29638                 .np     = 3,
29639                 .tap    = { 512 - 20, 4, 16 },
29640         },
29641 };
29642
29643 /*
29644  * SEED test vectors
29645  */
29646 static const struct cipher_testvec seed_tv_template[] = {
29647         {
29648                 .key    = zeroed_string,
29649                 .klen   = 16,
29650                 .ptext  = "\x00\x01\x02\x03\x04\x05\x06\x07"
29651                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
29652                 .ctext  = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
29653                           "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
29654                 .len    = 16,
29655         }, {
29656                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
29657                           "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
29658                 .klen   = 16,
29659                 .ptext  = zeroed_string,
29660                 .ctext  = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
29661                           "\x84\x48\x35\x97\xe4\x37\x0f\x43",
29662                 .len    = 16,
29663         }, {
29664                 .key    = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
29665                           "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
29666                 .klen   = 16,
29667                 .ptext  = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
29668                           "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
29669                 .ctext  = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
29670                           "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
29671                 .len    = 16,
29672         }, {
29673                 .key    = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
29674                           "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
29675                 .klen   = 16,
29676                 .ptext  = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
29677                           "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
29678                 .ctext  = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
29679                           "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
29680                 .len    = 16,
29681         }
29682 };
29683
29684 static const struct cipher_testvec salsa20_stream_tv_template[] = {
29685         /*
29686         * Testvectors from verified.test-vectors submitted to ECRYPT.
29687         * They are truncated to size 39, 64, 111, 129 to test a variety
29688         * of input length.
29689         */
29690         { /* Set 3, vector 0 */
29691                 .key    = "\x00\x01\x02\x03\x04\x05\x06\x07"
29692                         "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
29693                 .klen   = 16,
29694                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
29695                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
29696                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29697                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29698                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29699                         "\x00\x00\x00\x00\x00\x00\x00",
29700                 .ctext  = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
29701                          "\x68\x02\x41\x0C\x68\x86\x88\x89"
29702                          "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
29703                          "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
29704                          "\x58\x3F\x52\x79\x70\xEB\xC1",
29705                 .len    = 39,
29706         }, { /* Set 5, vector 0 */
29707                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
29708                         "\x00\x00\x00\x00\x00\x00\x00\x00",
29709                 .klen   = 16,
29710                 .iv     = "\x80\x00\x00\x00\x00\x00\x00\x00",
29711                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
29712                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29713                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29714                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29715                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29716                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29717                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29718                         "\x00\x00\x00\x00\x00\x00\x00\x00",
29719                 .ctext  = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
29720                          "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
29721                          "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
29722                          "\x46\x26\xBF\x44\x3F\x21\x97\x76"
29723                          "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
29724                          "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
29725                          "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
29726                          "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
29727                 .len    = 64,
29728         }, { /* Set 3, vector 27 */
29729                 .key    = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
29730                         "\x23\x24\x25\x26\x27\x28\x29\x2A"
29731                         "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
29732                         "\x33\x34\x35\x36\x37\x38\x39\x3A",
29733                 .klen   = 32,
29734                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00",
29735                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
29736                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29737                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29738                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29739                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29740                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29741                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29742                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29743                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29744                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29745                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29746                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29747                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29748                         "\x00\x00\x00\x00\x00\x00\x00",
29749                 .ctext  = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
29750                          "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
29751                          "\x87\xD9\x47\xF8\x28\x91\x35\x98"
29752                          "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
29753                          "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
29754                          "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
29755                          "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
29756                          "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
29757                          "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
29758                          "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
29759                          "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
29760                          "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
29761                          "\x95\x46\x45\x54\xE9\x75\x03\x08"
29762                          "\x44\xAF\xE5\x8A\x81\x12\x09",
29763                 .len    = 111,
29764         }, { /* Set 5, vector 27 */
29765                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
29766                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29767                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29768                         "\x00\x00\x00\x00\x00\x00\x00\x00",
29769                 .klen   = 32,
29770                 .iv     = "\x00\x00\x00\x10\x00\x00\x00\x00",
29771                 .ptext  = "\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                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29777                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29778                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29779                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29780                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29781                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29782                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29783                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29784                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29785                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29786                         "\x00\x00\x00\x00\x00\x00\x00\x00"
29787                         "\x00",
29788                 .ctext  = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
29789                          "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
29790                          "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
29791                          "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
29792                          "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
29793                          "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
29794                          "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
29795                          "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
29796                          "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
29797                          "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
29798                          "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
29799                          "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
29800                          "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
29801                          "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
29802                          "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
29803                          "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
29804                          "\x5A",
29805                 .len    = 129,
29806         }, { /* large test vector generated using Crypto++ */
29807                 .key =  "\x00\x01\x02\x03\x04\x05\x06\x07"
29808                         "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29809                         "\x10\x11\x12\x13\x14\x15\x16\x17"
29810                         "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
29811                 .klen = 32,
29812                 .iv =   "\x00\x00\x00\x00\x00\x00\x00\x00"
29813                         "\x00\x00\x00\x00\x00\x00\x00\x00",
29814                 .ptext =
29815                         "\x00\x01\x02\x03\x04\x05\x06\x07"
29816                         "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29817                         "\x10\x11\x12\x13\x14\x15\x16\x17"
29818                         "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
29819                         "\x20\x21\x22\x23\x24\x25\x26\x27"
29820                         "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
29821                         "\x30\x31\x32\x33\x34\x35\x36\x37"
29822                         "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
29823                         "\x40\x41\x42\x43\x44\x45\x46\x47"
29824                         "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
29825                         "\x50\x51\x52\x53\x54\x55\x56\x57"
29826                         "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
29827                         "\x60\x61\x62\x63\x64\x65\x66\x67"
29828                         "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
29829                         "\x70\x71\x72\x73\x74\x75\x76\x77"
29830                         "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
29831                         "\x80\x81\x82\x83\x84\x85\x86\x87"
29832                         "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
29833                         "\x90\x91\x92\x93\x94\x95\x96\x97"
29834                         "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
29835                         "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
29836                         "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
29837                         "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
29838                         "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
29839                         "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
29840                         "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
29841                         "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
29842                         "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
29843                         "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
29844                         "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
29845                         "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
29846                         "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
29847                         "\x00\x03\x06\x09\x0c\x0f\x12\x15"
29848                         "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
29849                         "\x30\x33\x36\x39\x3c\x3f\x42\x45"
29850                         "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
29851                         "\x60\x63\x66\x69\x6c\x6f\x72\x75"
29852                         "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
29853                         "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
29854                         "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
29855                         "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
29856                         "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
29857                         "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
29858                         "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
29859                         "\x20\x23\x26\x29\x2c\x2f\x32\x35"
29860                         "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
29861                         "\x50\x53\x56\x59\x5c\x5f\x62\x65"
29862                         "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
29863                         "\x80\x83\x86\x89\x8c\x8f\x92\x95"
29864                         "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
29865                         "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
29866                         "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
29867                         "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
29868                         "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
29869                         "\x10\x13\x16\x19\x1c\x1f\x22\x25"
29870                         "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
29871                         "\x40\x43\x46\x49\x4c\x4f\x52\x55"
29872                         "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
29873                         "\x70\x73\x76\x79\x7c\x7f\x82\x85"
29874                         "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
29875                         "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
29876                         "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
29877                         "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
29878                         "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
29879                         "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
29880                         "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
29881                         "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
29882                         "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
29883                         "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
29884                         "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
29885                         "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
29886                         "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
29887                         "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
29888                         "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
29889                         "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
29890                         "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
29891                         "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
29892                         "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
29893                         "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
29894                         "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
29895                         "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
29896                         "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
29897                         "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
29898                         "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
29899                         "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
29900                         "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
29901                         "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
29902                         "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
29903                         "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
29904                         "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
29905                         "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
29906                         "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
29907                         "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
29908                         "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
29909                         "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
29910                         "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
29911                         "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
29912                         "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
29913                         "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
29914                         "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
29915                         "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
29916                         "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
29917                         "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
29918                         "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
29919                         "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
29920                         "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
29921                         "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
29922                         "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
29923                         "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
29924                         "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
29925                         "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
29926                         "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
29927                         "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
29928                         "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
29929                         "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
29930                         "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
29931                         "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
29932                         "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
29933                         "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
29934                         "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
29935                         "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
29936                         "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
29937                         "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
29938                         "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
29939                         "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
29940                         "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
29941                         "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
29942                         "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
29943                         "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
29944                         "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
29945                         "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
29946                         "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
29947                         "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
29948                         "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
29949                         "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
29950                         "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
29951                         "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
29952                         "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
29953                         "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
29954                         "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
29955                         "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
29956                         "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
29957                         "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
29958                         "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
29959                         "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
29960                         "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
29961                         "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
29962                         "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
29963                         "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
29964                         "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
29965                         "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
29966                         "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
29967                         "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
29968                         "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
29969                         "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
29970                         "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
29971                         "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
29972                         "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
29973                         "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
29974                         "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
29975                         "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
29976                         "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
29977                         "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
29978                         "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
29979                         "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
29980                         "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
29981                         "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
29982                         "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
29983                         "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
29984                         "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
29985                         "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
29986                         "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
29987                         "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
29988                         "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
29989                         "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
29990                         "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
29991                         "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
29992                         "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
29993                         "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
29994                         "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
29995                         "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
29996                         "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
29997                         "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
29998                         "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
29999                         "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
30000                         "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
30001                         "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
30002                         "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
30003                         "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
30004                         "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
30005                         "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
30006                         "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
30007                         "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
30008                         "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
30009                         "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
30010                         "\x38\x45\x52\x5f\x6c\x79\x86\x93"
30011                         "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
30012                         "\x08\x15\x22\x2f\x3c\x49\x56\x63"
30013                         "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
30014                         "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
30015                         "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
30016                         "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
30017                         "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
30018                         "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
30019                         "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
30020                         "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
30021                         "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
30022                         "\x18\x25\x32\x3f\x4c\x59\x66\x73"
30023                         "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
30024                         "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
30025                         "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
30026                         "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
30027                         "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
30028                         "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
30029                         "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
30030                         "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
30031                         "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
30032                         "\x28\x35\x42\x4f\x5c\x69\x76\x83"
30033                         "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
30034                         "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
30035                         "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
30036                         "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
30037                         "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
30038                         "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
30039                         "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
30040                         "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
30041                         "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
30042                         "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
30043                         "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
30044                         "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
30045                         "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
30046                         "\x48\x57\x66\x75\x84\x93\xa2\xb1"
30047                         "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
30048                         "\x38\x47\x56\x65\x74\x83\x92\xa1"
30049                         "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
30050                         "\x28\x37\x46\x55\x64\x73\x82\x91"
30051                         "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
30052                         "\x18\x27\x36\x45\x54\x63\x72\x81"
30053                         "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
30054                         "\x08\x17\x26\x35\x44\x53\x62\x71"
30055                         "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
30056                         "\xf8\x07\x16\x25\x34\x43\x52\x61"
30057                         "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
30058                         "\xe8\xf7\x06\x15\x24\x33\x42\x51"
30059                         "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
30060                         "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
30061                         "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
30062                         "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
30063                         "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
30064                         "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
30065                         "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
30066                         "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
30067                         "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
30068                         "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
30069                         "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
30070                         "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
30071                         "\x00\x11\x22\x33\x44\x55\x66\x77"
30072                         "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
30073                         "\x10\x21\x32\x43\x54\x65\x76\x87"
30074                         "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
30075                         "\x20\x31\x42\x53\x64\x75\x86\x97"
30076                         "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
30077                         "\x30\x41\x52\x63\x74\x85\x96\xa7"
30078                         "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
30079                         "\x40\x51\x62\x73\x84\x95\xa6\xb7"
30080                         "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
30081                         "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
30082                         "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
30083                         "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
30084                         "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
30085                         "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
30086                         "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
30087                         "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
30088                         "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
30089                         "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
30090                         "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
30091                         "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
30092                         "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
30093                         "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
30094                         "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
30095                         "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
30096                         "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
30097                         "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
30098                         "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
30099                         "\xe0\xf1\x02\x13\x24\x35\x46\x57"
30100                         "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
30101                         "\xf0\x01\x12\x23\x34\x45\x56\x67"
30102                         "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
30103                         "\x00\x13\x26\x39\x4c\x5f\x72\x85"
30104                         "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
30105                         "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
30106                         "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
30107                         "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
30108                         "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
30109                         "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
30110                         "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
30111                         "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
30112                         "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
30113                         "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
30114                         "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
30115                         "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
30116                         "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
30117                         "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
30118                         "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
30119                         "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
30120                         "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
30121                         "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
30122                         "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
30123                         "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
30124                         "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
30125                         "\x10\x23\x36\x49\x5c\x6f\x82\x95"
30126                         "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
30127                         "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
30128                         "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
30129                         "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
30130                         "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
30131                         "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
30132                         "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
30133                         "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
30134                         "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
30135                         "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
30136                         "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
30137                         "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
30138                         "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
30139                         "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
30140                         "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
30141                         "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
30142                         "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
30143                         "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
30144                         "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
30145                         "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
30146                         "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
30147                         "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
30148                         "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
30149                         "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
30150                         "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
30151                         "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
30152                         "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
30153                         "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
30154                         "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
30155                         "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
30156                         "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
30157                         "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
30158                         "\x18\x2d\x42\x57\x6c\x81\x96\xab"
30159                         "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
30160                         "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
30161                         "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
30162                         "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
30163                         "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
30164                         "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
30165                         "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
30166                         "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
30167                         "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
30168                         "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
30169                         "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
30170                         "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
30171                         "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
30172                         "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
30173                         "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
30174                         "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
30175                         "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
30176                         "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
30177                         "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
30178                         "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
30179                         "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
30180                         "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
30181                         "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
30182                         "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
30183                         "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
30184                         "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
30185                         "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
30186                         "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
30187                         "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
30188                         "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
30189                         "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
30190                         "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
30191                         "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
30192                         "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
30193                         "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
30194                         "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
30195                         "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
30196                         "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
30197                         "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
30198                         "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
30199                         "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
30200                         "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
30201                         "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
30202                         "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
30203                         "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
30204                         "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
30205                         "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
30206                         "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
30207                         "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
30208                         "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
30209                         "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
30210                         "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
30211                         "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
30212                         "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
30213                         "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
30214                         "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
30215                         "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
30216                         "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
30217                         "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
30218                         "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
30219                         "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
30220                         "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
30221                         "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
30222                         "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
30223                         "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
30224                         "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
30225                         "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
30226                         "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
30227                         "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
30228                         "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
30229                         "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
30230                         "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
30231                         "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
30232                         "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
30233                         "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
30234                         "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
30235                         "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
30236                         "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
30237                         "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
30238                         "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
30239                         "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
30240                         "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
30241                         "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
30242                         "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
30243                         "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
30244                         "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
30245                         "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
30246                         "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
30247                         "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
30248                         "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
30249                         "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
30250                         "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
30251                         "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
30252                         "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
30253                         "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
30254                         "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
30255                         "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
30256                         "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
30257                         "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
30258                         "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
30259                         "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
30260                         "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
30261                         "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
30262                         "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
30263                         "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
30264                         "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
30265                         "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
30266                         "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
30267                         "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
30268                         "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
30269                         "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
30270                         "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
30271                         "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
30272                         "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
30273                         "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
30274                         "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
30275                         "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
30276                         "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
30277                         "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
30278                         "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
30279                         "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
30280                         "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
30281                         "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
30282                         "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
30283                         "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
30284                         "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
30285                         "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
30286                         "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
30287                         "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
30288                         "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
30289                         "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
30290                         "\x78\x95\xb2\xcf\xec\x09\x26\x43"
30291                         "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
30292                         "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
30293                         "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
30294                         "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
30295                         "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
30296                         "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
30297                         "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
30298                         "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
30299                         "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
30300                         "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
30301                         "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
30302                         "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
30303                         "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
30304                         "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
30305                         "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
30306                         "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
30307                         "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
30308                         "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
30309                         "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
30310                         "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
30311                         "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
30312                         "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
30313                         "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
30314                         "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
30315                         "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
30316                         "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
30317                         "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
30318                         "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
30319                         "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
30320                         "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
30321                         "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
30322                         "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
30323                         "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
30324                         "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
30325                         "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
30326                         "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
30327                         "\x00\x21\x42\x63",
30328                 .ctext =
30329                         "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
30330                         "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
30331                         "\x29\x01\xce\x98\x55\x53\xf9\x0c"
30332                         "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
30333                         "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
30334                         "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
30335                         "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
30336                         "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
30337                         "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
30338                         "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
30339                         "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
30340                         "\xbb\xde\x56\x86\xab\x65\x21\x30"
30341                         "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
30342                         "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
30343                         "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
30344                         "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
30345                         "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
30346                         "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
30347                         "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
30348                         "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
30349                         "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
30350                         "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
30351                         "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
30352                         "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
30353                         "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
30354                         "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
30355                         "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
30356                         "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
30357                         "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
30358                         "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
30359                         "\x45\xff\x3f\xce\x55\xf6\x95\x10"
30360                         "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
30361                         "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
30362                         "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
30363                         "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
30364                         "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
30365                         "\x62\x08\x18\x7a\x25\x49\x28\xac"
30366                         "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
30367                         "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
30368                         "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
30369                         "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
30370                         "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
30371                         "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
30372                         "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
30373                         "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
30374                         "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
30375                         "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
30376                         "\x33\xee\x14\x19\x22\x52\x89\xa7"
30377                         "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
30378                         "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
30379                         "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
30380                         "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
30381                         "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
30382                         "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
30383                         "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
30384                         "\x04\x07\x08\x52\xe6\xc0\xda\x93"
30385                         "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
30386                         "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
30387                         "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
30388                         "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
30389                         "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
30390                         "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
30391                         "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
30392                         "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
30393                         "\x5a\x90\xae\x75\x0a\x74\x18\x89"
30394                         "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
30395                         "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
30396                         "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
30397                         "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
30398                         "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
30399                         "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
30400                         "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
30401                         "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
30402                         "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
30403                         "\x49\x97\x33\xab\x36\x14\x0a\x70"
30404                         "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
30405                         "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
30406                         "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
30407                         "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
30408                         "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
30409                         "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
30410                         "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
30411                         "\x47\x13\x28\x73\x3c\xbb\x00\x90"
30412                         "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
30413                         "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
30414                         "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
30415                         "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
30416                         "\xad\x04\x07\xae\x22\x90\x4a\x93"
30417                         "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
30418                         "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
30419                         "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
30420                         "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
30421                         "\x53\xf9\x80\x10\xde\x80\xa2\x41"
30422                         "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
30423                         "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
30424                         "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
30425                         "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
30426                         "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
30427                         "\xde\xff\x07\x44\xdd\x56\x1b\xad"
30428                         "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
30429                         "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
30430                         "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
30431                         "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
30432                         "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
30433                         "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
30434                         "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
30435                         "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
30436                         "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
30437                         "\x23\xf8\x66\x18\x14\x28\x34\x0f"
30438                         "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
30439                         "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
30440                         "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
30441                         "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
30442                         "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
30443                         "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
30444                         "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
30445                         "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
30446                         "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
30447                         "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
30448                         "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
30449                         "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
30450                         "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
30451                         "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
30452                         "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
30453                         "\xca\x8e\x61\x87\xde\xad\x80\xd2"
30454                         "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
30455                         "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
30456                         "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
30457                         "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
30458                         "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
30459                         "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
30460                         "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
30461                         "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
30462                         "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
30463                         "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
30464                         "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
30465                         "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
30466                         "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
30467                         "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
30468                         "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
30469                         "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
30470                         "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
30471                         "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
30472                         "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
30473                         "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
30474                         "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
30475                         "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
30476                         "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
30477                         "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
30478                         "\x54\xda\x24\x6a\xc4\x41\x65\x46"
30479                         "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
30480                         "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
30481                         "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
30482                         "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
30483                         "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
30484                         "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
30485                         "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
30486                         "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
30487                         "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
30488                         "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
30489                         "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
30490                         "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
30491                         "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
30492                         "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
30493                         "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
30494                         "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
30495                         "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
30496                         "\xef\xcc\xa7\xec\xab\x43\x09\x18"
30497                         "\xd3\xab\x68\xd1\x07\x99\x44\x47"
30498                         "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
30499                         "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
30500                         "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
30501                         "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
30502                         "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
30503                         "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
30504                         "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
30505                         "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
30506                         "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
30507                         "\x71\x6e\x9f\x58\x15\x67\x72\x87"
30508                         "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
30509                         "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
30510                         "\xba\x41\x54\xac\xf0\xfc\x59\x12"
30511                         "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
30512                         "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
30513                         "\x2e\x53\x49\x97\x94\x33\xae\x40"
30514                         "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
30515                         "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
30516                         "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
30517                         "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
30518                         "\xce\x87\xad\xcc\x72\x05\x00\x29"
30519                         "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
30520                         "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
30521                         "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
30522                         "\xac\xc0\x79\x50\x69\xca\x59\x32"
30523                         "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
30524                         "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
30525                         "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
30526                         "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
30527                         "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
30528                         "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
30529                         "\x05\x68\x6b\xab\xe3\x41\x49\xed"
30530                         "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
30531                         "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
30532                         "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
30533                         "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
30534                         "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
30535                         "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
30536                         "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
30537                         "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
30538                         "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
30539                         "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
30540                         "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
30541                         "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
30542                         "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
30543                         "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
30544                         "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
30545                         "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
30546                         "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
30547                         "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
30548                         "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
30549                         "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
30550                         "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
30551                         "\x85\x75\xe6\x43\xf6\x87\x08\x68"
30552                         "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
30553                         "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
30554                         "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
30555                         "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
30556                         "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
30557                         "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
30558                         "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
30559                         "\xaf\x55\xeb\x22\xac\x93\x68\x32"
30560                         "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
30561                         "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
30562                         "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
30563                         "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
30564                         "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
30565                         "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
30566                         "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
30567                         "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
30568                         "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
30569                         "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
30570                         "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
30571                         "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
30572                         "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
30573                         "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
30574                         "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
30575                         "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
30576                         "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
30577                         "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
30578                         "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
30579                         "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
30580                         "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
30581                         "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
30582                         "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
30583                         "\x38\x55\xab\x33\x26\xef\x9f\x43"
30584                         "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
30585                         "\x58\x09\x09\x1b\xc3\x65\x46\x46"
30586                         "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
30587                         "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
30588                         "\x63\x86\xf2\x03\x67\x45\xd2\x72"
30589                         "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
30590                         "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
30591                         "\x2b\x82\x39\xbd\x69\x54\xed\x62"
30592                         "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
30593                         "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
30594                         "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
30595                         "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
30596                         "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
30597                         "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
30598                         "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
30599                         "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
30600                         "\x55\xad\xa4\xd1\x22\x54\x70\x94"
30601                         "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
30602                         "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
30603                         "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
30604                         "\x62\x36\x43\xb2\x82\x15\x75\x50"
30605                         "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
30606                         "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
30607                         "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
30608                         "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
30609                         "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
30610                         "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
30611                         "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
30612                         "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
30613                         "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
30614                         "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
30615                         "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
30616                         "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
30617                         "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
30618                         "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
30619                         "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
30620                         "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
30621                         "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
30622                         "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
30623                         "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
30624                         "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
30625                         "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
30626                         "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
30627                         "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
30628                         "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
30629                         "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
30630                         "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
30631                         "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
30632                         "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
30633                         "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
30634                         "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
30635                         "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
30636                         "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
30637                         "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
30638                         "\x42\x19\x23\x7d\xc8\x73\xee\x25"
30639                         "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
30640                         "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
30641                         "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
30642                         "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
30643                         "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
30644                         "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
30645                         "\xdb\x87\xee\xef\x55\x89\x2a\x59"
30646                         "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
30647                         "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
30648                         "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
30649                         "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
30650                         "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
30651                         "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
30652                         "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
30653                         "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
30654                         "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
30655                         "\xae\xab\x86\x09\x89\xc9\xc2\x40"
30656                         "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
30657                         "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
30658                         "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
30659                         "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
30660                         "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
30661                         "\x95\xd9\x34\x34\x86\xc6\x41\x94"
30662                         "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
30663                         "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
30664                         "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
30665                         "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
30666                         "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
30667                         "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
30668                         "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
30669                         "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
30670                         "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
30671                         "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
30672                         "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
30673                         "\xa7\x33\x34\x86\xca\xe4\x96\x23"
30674                         "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
30675                         "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
30676                         "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
30677                         "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
30678                         "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
30679                         "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
30680                         "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
30681                         "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
30682                         "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
30683                         "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
30684                         "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
30685                         "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
30686                         "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
30687                         "\x68\xc8\x7f\x51\x22\x42\xef\x49"
30688                         "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
30689                         "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
30690                         "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
30691                         "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
30692                         "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
30693                         "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
30694                         "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
30695                         "\x73\x2e\x71\x79\x16\x06\x63\x28"
30696                         "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
30697                         "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
30698                         "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
30699                         "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
30700                         "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
30701                         "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
30702                         "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
30703                         "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
30704                         "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
30705                         "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
30706                         "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
30707                         "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
30708                         "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
30709                         "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
30710                         "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
30711                         "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
30712                         "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
30713                         "\x19\x07\xaf\x90\x62\x5c\x68\x98"
30714                         "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
30715                         "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
30716                         "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
30717                         "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
30718                         "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
30719                         "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
30720                         "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
30721                         "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
30722                         "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
30723                         "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
30724                         "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
30725                         "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
30726                         "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
30727                         "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
30728                         "\x21\x33\x44\xfe\x7f\x35\x32\x93"
30729                         "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
30730                         "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
30731                         "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
30732                         "\x64\xf0\x48\xe5\x57\x99\xee\x75"
30733                         "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
30734                         "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
30735                         "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
30736                         "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
30737                         "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
30738                         "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
30739                         "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
30740                         "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
30741                         "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
30742                         "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
30743                         "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
30744                         "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
30745                         "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
30746                         "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
30747                         "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
30748                         "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
30749                         "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
30750                         "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
30751                         "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
30752                         "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
30753                         "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
30754                         "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
30755                         "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
30756                         "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
30757                         "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
30758                         "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
30759                         "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
30760                         "\x56\xf5\x4e\x01\x35\x27\x45\x77"
30761                         "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
30762                         "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
30763                         "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
30764                         "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
30765                         "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
30766                         "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
30767                         "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
30768                         "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
30769                         "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
30770                         "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
30771                         "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
30772                         "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
30773                         "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
30774                         "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
30775                         "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
30776                         "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
30777                         "\x87\x8f\x03\x21\x28\x95\x0c\x89"
30778                         "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
30779                         "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
30780                         "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
30781                         "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
30782                         "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
30783                         "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
30784                         "\x85\x73\x78\x45\x20\x7f\xae\x13"
30785                         "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
30786                         "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
30787                         "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
30788                         "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
30789                         "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
30790                         "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
30791                         "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
30792                         "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
30793                         "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
30794                         "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
30795                         "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
30796                         "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
30797                         "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
30798                         "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
30799                         "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
30800                         "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
30801                         "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
30802                         "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
30803                         "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
30804                         "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
30805                         "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
30806                         "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
30807                         "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
30808                         "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
30809                         "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
30810                         "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
30811                         "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
30812                         "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
30813                         "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
30814                         "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
30815                         "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
30816                         "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
30817                         "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
30818                         "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
30819                         "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
30820                         "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
30821                         "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
30822                         "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
30823                         "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
30824                         "\x6e\x12\x17\x72\x63\x57\xc7\xba"
30825                         "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
30826                         "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
30827                         "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
30828                         "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
30829                         "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
30830                         "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
30831                         "\x0c\x24\x43\x31\x40\x57\xf1\x72"
30832                         "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
30833                         "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
30834                         "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
30835                         "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
30836                         "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
30837                         "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
30838                         "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
30839                         "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
30840                         "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
30841                         "\xaf\xdf\x11\x95",
30842                 .len    = 4100,
30843                 .np     = 2,
30844                 .tap    = { 4064, 36 },
30845         },
30846 };
30847
30848 static const struct cipher_testvec chacha20_tv_template[] = {
30849         { /* RFC7539 A.2. Test Vector #1 */
30850                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
30851                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30852                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30853                           "\x00\x00\x00\x00\x00\x00\x00\x00",
30854                 .klen   = 32,
30855                 .iv     = "\x00\x00\x00\x00\x00\x00\x00\x00"
30856                           "\x00\x00\x00\x00\x00\x00\x00\x00",
30857                 .ptext  = "\x00\x00\x00\x00\x00\x00\x00\x00"
30858                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30859                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30860                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30861                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30862                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30863                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30864                           "\x00\x00\x00\x00\x00\x00\x00\x00",
30865                 .ctext  = "\x76\xb8\xe0\xad\xa0\xf1\x3d\x90"
30866                           "\x40\x5d\x6a\xe5\x53\x86\xbd\x28"
30867                           "\xbd\xd2\x19\xb8\xa0\x8d\xed\x1a"
30868                           "\xa8\x36\xef\xcc\x8b\x77\x0d\xc7"
30869                           "\xda\x41\x59\x7c\x51\x57\x48\x8d"
30870                           "\x77\x24\xe0\x3f\xb8\xd8\x4a\x37"
30871                           "\x6a\x43\xb8\xf4\x15\x18\xa1\x1c"
30872                           "\xc3\x87\xb6\x69\xb2\xee\x65\x86",
30873                 .len    = 64,
30874         }, { /* RFC7539 A.2. Test Vector #2 */
30875                 .key    = "\x00\x00\x00\x00\x00\x00\x00\x00"
30876                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30877                           "\x00\x00\x00\x00\x00\x00\x00\x00"
30878                           "\x00\x00\x00\x00\x00\x00\x00\x01",
30879                 .klen   = 32,
30880                 .iv     = "\x01\x00\x00\x00\x00\x00\x00\x00"
30881                           "\x00\x00\x00\x00\x00\x00\x00\x02",
30882                 .ptext  = "\x41\x6e\x79\x20\x73\x75\x62\x6d"
30883                           "\x69\x73\x73\x69\x6f\x6e\x20\x74"
30884                           "\x6f\x20\x74\x68\x65\x20\x49\x45"
30885                           "\x54\x46\x20\x69\x6e\x74\x65\x6e"
30886                           "\x64\x65\x64\x20\x62\x79\x20\x74"
30887                           "\x68\x65\x20\x43\x6f\x6e\x74\x72"
30888                           "\x69\x62\x75\x74\x6f\x72\x20\x66"
30889                           "\x6f\x72\x20\x70\x75\x62\x6c\x69"
30890                           "\x63\x61\x74\x69\x6f\x6e\x20\x61"
30891                           "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
30892                           "\x20\x70\x61\x72\x74\x20\x6f\x66"
30893                           "\x20\x61\x6e\x20\x49\x45\x54\x46"
30894                           "\x20\x49\x6e\x74\x65\x72\x6e\x65"
30895                           "\x74\x2d\x44\x72\x61\x66\x74\x20"
30896                           "\x6f\x72\x20\x52\x46\x43\x20\x61"
30897                           "\x6e\x64\x20\x61\x6e\x79\x20\x73"
30898                           "\x74\x61\x74\x65\x6d\x65\x6e\x74"
30899                           "\x20\x6d\x61\x64\x65\x20\x77\x69"
30900                           "\x74\x68\x69\x6e\x20\x74\x68\x65"
30901                           "\x20\x63\x6f\x6e\x74\x65\x78\x74"
30902                           "\x20\x6f\x66\x20\x61\x6e\x20\x49"
30903                           "\x45\x54\x46\x20\x61\x63\x74\x69"
30904                           "\x76\x69\x74\x79\x20\x69\x73\x20"
30905                           "\x63\x6f\x6e\x73\x69\x64\x65\x72"
30906                           "\x65\x64\x20\x61\x6e\x20\x22\x49"
30907                           "\x45\x54\x46\x20\x43\x6f\x6e\x74"
30908                           "\x72\x69\x62\x75\x74\x69\x6f\x6e"
30909                           "\x22\x2e\x20\x53\x75\x63\x68\x20"
30910                           "\x73\x74\x61\x74\x65\x6d\x65\x6e"
30911                           "\x74\x73\x20\x69\x6e\x63\x6c\x75"
30912                           "\x64\x65\x20\x6f\x72\x61\x6c\x20"
30913                           "\x73\x74\x61\x74\x65\x6d\x65\x6e"
30914                           "\x74\x73\x20\x69\x6e\x20\x49\x45"
30915                           "\x54\x46\x20\x73\x65\x73\x73\x69"
30916                           "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
30917                           "\x77\x65\x6c\x6c\x20\x61\x73\x20"
30918                           "\x77\x72\x69\x74\x74\x65\x6e\x20"
30919                           "\x61\x6e\x64\x20\x65\x6c\x65\x63"
30920                           "\x74\x72\x6f\x6e\x69\x63\x20\x63"
30921                           "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
30922                           "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
30923                           "\x64\x65\x20\x61\x74\x20\x61\x6e"
30924                           "\x79\x20\x74\x69\x6d\x65\x20\x6f"
30925                           "\x72\x20\x70\x6c\x61\x63\x65\x2c"
30926                           "\x20\x77\x68\x69\x63\x68\x20\x61"
30927                           "\x72\x65\x20\x61\x64\x64\x72\x65"
30928                           "\x73\x73\x65\x64\x20\x74\x6f",
30929                 .ctext  = "\xa3\xfb\xf0\x7d\xf3\xfa\x2f\xde"
30930                           "\x4f\x37\x6c\xa2\x3e\x82\x73\x70"
30931                           "\x41\x60\x5d\x9f\x4f\x4f\x57\xbd"
30932                           "\x8c\xff\x2c\x1d\x4b\x79\x55\xec"
30933                           "\x2a\x97\x94\x8b\xd3\x72\x29\x15"
30934                           "\xc8\xf3\xd3\x37\xf7\xd3\x70\x05"
30935                           "\x0e\x9e\x96\xd6\x47\xb7\xc3\x9f"
30936                           "\x56\xe0\x31\xca\x5e\xb6\x25\x0d"
30937                           "\x40\x42\xe0\x27\x85\xec\xec\xfa"
30938                           "\x4b\x4b\xb5\xe8\xea\xd0\x44\x0e"
30939                           "\x20\xb6\xe8\xdb\x09\xd8\x81\xa7"
30940                           "\xc6\x13\x2f\x42\x0e\x52\x79\x50"
30941                           "\x42\xbd\xfa\x77\x73\xd8\xa9\x05"
30942                           "\x14\x47\xb3\x29\x1c\xe1\x41\x1c"
30943                           "\x68\x04\x65\x55\x2a\xa6\xc4\x05"
30944                           "\xb7\x76\x4d\x5e\x87\xbe\xa8\x5a"
30945                           "\xd0\x0f\x84\x49\xed\x8f\x72\xd0"
30946                           "\xd6\x62\xab\x05\x26\x91\xca\x66"
30947                           "\x42\x4b\xc8\x6d\x2d\xf8\x0e\xa4"
30948                           "\x1f\x43\xab\xf9\x37\xd3\x25\x9d"
30949                           "\xc4\xb2\xd0\xdf\xb4\x8a\x6c\x91"
30950                           "\x39\xdd\xd7\xf7\x69\x66\xe9\x28"
30951                           "\xe6\x35\x55\x3b\xa7\x6c\x5c\x87"
30952                           "\x9d\x7b\x35\xd4\x9e\xb2\xe6\x2b"
30953                           "\x08\x71\xcd\xac\x63\x89\x39\xe2"
30954                           "\x5e\x8a\x1e\x0e\xf9\xd5\x28\x0f"
30955                           "\xa8\xca\x32\x8b\x35\x1c\x3c\x76"
30956                           "\x59\x89\xcb\xcf\x3d\xaa\x8b\x6c"
30957                           "\xcc\x3a\xaf\x9f\x39\x79\xc9\x2b"
30958                           "\x37\x20\xfc\x88\xdc\x95\xed\x84"
30959                           "\xa1\xbe\x05\x9c\x64\x99\xb9\xfd"
30960                           "\xa2\x36\xe7\xe8\x18\xb0\x4b\x0b"
30961                           "\xc3\x9c\x1e\x87\x6b\x19\x3b\xfe"
30962                           "\x55\x69\x75\x3f\x88\x12\x8c\xc0"
30963                           "\x8a\xaa\x9b\x63\xd1\xa1\x6f\x80"
30964                           "\xef\x25\x54\xd7\x18\x9c\x41\x1f"
30965                           "\x58\x69\xca\x52\xc5\xb8\x3f\xa3"
30966                           "\x6f\xf2\x16\xb9\xc1\xd3\x00\x62"
30967                           "\xbe\xbc\xfd\x2d\xc5\xbc\xe0\x91"
30968                           "\x19\x34\xfd\xa7\x9a\x86\xf6\xe6"
30969                           "\x98\xce\xd7\x59\xc3\xff\x9b\x64"
30970                           "\x77\x33\x8f\x3d\xa4\xf9\xcd\x85"
30971                           "\x14\xea\x99\x82\xcc\xaf\xb3\x41"
30972                           "\xb2\x38\x4d\xd9\x02\xf3\xd1\xab"
30973                           "\x7a\xc6\x1d\xd2\x9c\x6f\x21\xba"
30974                           "\x5b\x86\x2f\x37\x30\xe3\x7c\xfd"
30975                           "\xc4\xfd\x80\x6c\x22\xf2\x21",
30976                 .len    = 375,
30977                 .also_non_np = 1,
30978                 .np     = 3,
30979                 .tap    = { 375 - 20, 4, 16 },
30980
30981         }, { /* RFC7539 A.2. Test Vector #3 */
30982                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
30983                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
30984                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
30985                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
30986                 .klen   = 32,
30987                 .iv     = "\x2a\x00\x00\x00\x00\x00\x00\x00"
30988                           "\x00\x00\x00\x00\x00\x00\x00\x02",
30989                 .ptext  = "\x27\x54\x77\x61\x73\x20\x62\x72"
30990                           "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
30991                           "\x6e\x64\x20\x74\x68\x65\x20\x73"
30992                           "\x6c\x69\x74\x68\x79\x20\x74\x6f"
30993                           "\x76\x65\x73\x0a\x44\x69\x64\x20"
30994                           "\x67\x79\x72\x65\x20\x61\x6e\x64"
30995                           "\x20\x67\x69\x6d\x62\x6c\x65\x20"
30996                           "\x69\x6e\x20\x74\x68\x65\x20\x77"
30997                           "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
30998                           "\x20\x6d\x69\x6d\x73\x79\x20\x77"
30999                           "\x65\x72\x65\x20\x74\x68\x65\x20"
31000                           "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
31001                           "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
31002                           "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
31003                           "\x72\x61\x74\x68\x73\x20\x6f\x75"
31004                           "\x74\x67\x72\x61\x62\x65\x2e",
31005                 .ctext  = "\x62\xe6\x34\x7f\x95\xed\x87\xa4"
31006                           "\x5f\xfa\xe7\x42\x6f\x27\xa1\xdf"
31007                           "\x5f\xb6\x91\x10\x04\x4c\x0d\x73"
31008                           "\x11\x8e\xff\xa9\x5b\x01\xe5\xcf"
31009                           "\x16\x6d\x3d\xf2\xd7\x21\xca\xf9"
31010                           "\xb2\x1e\x5f\xb1\x4c\x61\x68\x71"
31011                           "\xfd\x84\xc5\x4f\x9d\x65\xb2\x83"
31012                           "\x19\x6c\x7f\xe4\xf6\x05\x53\xeb"
31013                           "\xf3\x9c\x64\x02\xc4\x22\x34\xe3"
31014                           "\x2a\x35\x6b\x3e\x76\x43\x12\xa6"
31015                           "\x1a\x55\x32\x05\x57\x16\xea\xd6"
31016                           "\x96\x25\x68\xf8\x7d\x3f\x3f\x77"
31017                           "\x04\xc6\xa8\xd1\xbc\xd1\xbf\x4d"
31018                           "\x50\xd6\x15\x4b\x6d\xa7\x31\xb1"
31019                           "\x87\xb5\x8d\xfd\x72\x8a\xfa\x36"
31020                           "\x75\x7a\x79\x7a\xc1\x88\xd1",
31021                 .len    = 127,
31022         }, { /* Self-made test vector for long data */
31023                 .key    = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
31024                           "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
31025                           "\x47\x39\x17\xc1\x40\x2b\x80\x09"
31026                           "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
31027                 .klen   = 32,
31028                 .iv     = "\x1c\x00\x00\x00\x00\x00\x00\x00"
31029                           "\x00\x00\x00\x00\x00\x00\x00\x01",
31030                 .ptext  = "\x49\xee\xe0\xdc\x24\x90\x40\xcd"
31031                           "\xc5\x40\x8f\x47\x05\xbc\xdd\x81"
31032                           "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb"
31033                           "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8"
31034                           "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4"
31035                           "\x19\x4b\x01\x0f\x4e\xa4\x43\xce"
31036                           "\x01\xc6\x67\xda\x03\x91\x18\x90"
31037                           "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac"
31038                           "\x74\x92\xd3\x53\x47\xc8\xdd\x25"
31039                           "\x53\x6c\x02\x03\x87\x0d\x11\x0c"
31040                           "\x58\xe3\x12\x18\xfd\x2a\x5b\x40"
31041                           "\x0c\x30\xf0\xb8\x3f\x43\xce\xae"
31042                           "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc"
31043                           "\x33\x97\xc3\x77\xba\xc5\x70\xde"
31044                           "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f"
31045                           "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c"
31046                           "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c"
31047                           "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe"
31048                           "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6"
31049                           "\x79\x49\x41\xf4\x58\x18\xcb\x86"
31050                           "\x7f\x30\x0e\xf8\x7d\x44\x36\xea"
31051                           "\x75\xeb\x88\x84\x40\x3c\xad\x4f"
31052                           "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5"
31053                           "\x21\x66\xe9\xa7\xe3\xb2\x15\x88"
31054                           "\x78\xf6\x79\xa1\x59\x47\x12\x4e"
31055                           "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08"
31056                           "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b"
31057                           "\xdd\x60\x71\xf7\x47\x8c\x61\xc3"
31058                           "\xda\x8a\x78\x1e\x16\xfa\x1e\x86"
31059                           "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7"
31060                           "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4"
31061                           "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6"
31062                           "\xf4\xe6\x33\x43\x84\x93\xa5\x67"
31063                           "\x9b\x16\x58\x58\x80\x0f\x2b\x5c"
31064                           "\x24\x74\x75\x7f\x95\x81\xb7\x30"
31065                           "\x7a\x33\xa7\xf7\x94\x87\x32\x27"
31066                           "\x10\x5d\x14\x4c\x43\x29\xdd\x26"
31067                           "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10"
31068                           "\xea\x6b\x64\xfd\x73\xc6\xed\xec"
31069                           "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07"
31070                           "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5"
31071                           "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1"
31072                           "\xec\xca\x60\x09\x4c\x6a\xd5\x09"
31073                           "\x49\x46\x00\x88\x22\x8d\xce\xea"
31074                           "\xb1\x17\x11\xde\x42\xd2\x23\xc1"
31075                           "\x72\x11\xf5\x50\x73\x04\x40\x47"
31076                           "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0"
31077                           "\x3f\x58\xc1\x52\xab\x12\x67\x9d"
31078                           "\x3f\x43\x4b\x68\xd4\x9c\x68\x38"
31079                           "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b"
31080                           "\xf9\xe5\x31\x69\x22\xf9\xa6\x69"
31081                           "\xc6\x9c\x96\x9a\x12\x35\x95\x1d"
31082                           "\x95\xd5\xdd\xbe\xbf\x93\x53\x24"
31083                           "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00"
31084                           "\x6f\x88\xc4\x37\x18\x69\x7c\xd7"
31085                           "\x41\x92\x55\x4c\x03\xa1\x9a\x4b"
31086                           "\x15\xe5\xdf\x7f\x37\x33\x72\xc1"
31087                           "\x8b\x10\x67\xa3\x01\x57\x94\x25"
31088                           "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73"
31089                           "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda"
31090                           "\x58\xb1\x47\x90\xfe\x42\x21\x72"
31091                           "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd"
31092                           "\xc6\x84\x6e\xca\xae\xe3\x68\xb4"
31093                           "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b"
31094                           "\x03\xa1\x31\xd9\xde\x8d\xf5\x22"
31095                           "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76"
31096                           "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe"
31097                           "\x54\xf7\x27\x1b\xf4\xde\x02\xf5"
31098                           "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e"
31099                           "\x4b\x6e\xed\x46\x23\xdc\x65\xb2"
31100                           "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7"
31101                           "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8"
31102                           "\x65\x69\x8a\x45\x29\xef\x74\x85"
31103                           "\xde\x79\xc7\x08\xae\x30\xb0\xf4"
31104                           "\xa3\x1d\x51\x41\xab\xce\xcb\xf6"
31105                           "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3"
31106                           "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7"
31107                           "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9"
31108                           "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a"
31109                           "\x9f\xd7\xb9\x6c\x65\x14\x22\x45"
31110                           "\x6e\x45\x32\x3e\x7e\x60\x1a\x12"
31111                           "\x97\x82\x14\xfb\xaa\x04\x22\xfa"
31112                           "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d"
31113                           "\x78\x33\x5a\x7c\xad\xdb\x29\xce"
31114                           "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac"
31115                           "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21"
31116                           "\x83\x35\x7e\xad\x73\xc2\xb5\x6c"
31117                           "\x10\x26\x38\x07\xe5\xc7\x36\x80"
31118                           "\xe2\x23\x12\x61\xf5\x48\x4b\x2b"
31119                           "\xc5\xdf\x15\xd9\x87\x01\xaa\xac"
31120                           "\x1e\x7c\xad\x73\x78\x18\x63\xe0"
31121                           "\x8b\x9f\x81\xd8\x12\x6a\x28\x10"
31122                           "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c"
31123                           "\x83\x66\x80\x47\x80\xe8\xfd\x35"
31124                           "\x1c\x97\x6f\xae\x49\x10\x66\xcc"
31125                           "\xc6\xd8\xcc\x3a\x84\x91\x20\x77"
31126                           "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9"
31127                           "\x25\x94\x10\x5f\x40\x00\x64\x99"
31128                           "\xdc\xae\xd7\x21\x09\x78\x50\x15"
31129                           "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39"
31130                           "\x87\x6e\x6d\xab\xde\x08\x51\x16"
31131                           "\xc7\x13\xe9\xea\xed\x06\x8e\x2c"
31132                           "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43"
31133                           "\xb6\x98\x37\xb2\x43\xed\xde\xdf"
31134                           "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b"
31135                           "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9"
31136                           "\x80\x55\xc9\x34\x91\xd1\x59\xe8"
31137                           "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06"
31138                           "\x20\xa8\x5d\xfa\xd1\xde\x70\x56"
31139                           "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8"
31140                           "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5"
31141                           "\x44\x4b\x9f\xc2\x93\x03\xea\x2b"
31142                           "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23"
31143                           "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee"
31144                           "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab"
31145                           "\x82\x6b\x37\x04\xeb\x74\xbe\x79"
31146                           "\xb9\x83\x90\xef\x20\x59\x46\xff"
31147                           "\xe9\x97\x3e\x2f\xee\xb6\x64\x18"
31148                           "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a"
31149                           "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4"
31150                           "\xce\xd3\x91\x49\x88\xc7\xb8\x4d"
31151                           "\xb1\xb9\x07\x6d\x16\x72\xae\x46"
31152                           "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8"
31153                           "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62"
31154                           "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9"
31155                           "\x94\x97\xea\xdd\x58\x9e\xae\x76"
31156                           "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde"
31157                           "\xf7\x32\x87\xcd\x93\xbf\x11\x56"
31158                           "\x11\xbe\x08\x74\xe1\x69\xad\xe2"
31159                           "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe"
31160                           "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76"
31161                           "\x35\xea\x5d\x85\x81\xaf\x85\xeb"
31162                           "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc"
31163                           "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a"
31164                           "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9"
31165                           "\x37\x1c\xeb\x46\x54\x3f\xa5\x91"
31166                           "\xc2\xb5\x8c\xfe\x53\x08\x97\x32"
31167                           "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc"
31168                           "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1"
31169                           "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c"
31170                           "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd"
31171                           "\x20\x4e\x7c\x51\xb0\x60\x73\xb8"
31172                           "\x9c\xac\x91\x90\x7e\x01\xb0\xe1"
31173                           "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a"
31174                           "\x06\x52\x95\x52\xb2\xe9\x25\x2e"
31175                           "\x4c\xe2\x5a\x00\xb2\x13\x81\x03"
31176                           "\x77\x66\x0d\xa5\x99\xda\x4e\x8c"
31177                           "\xac\xf3\x13\x53\x27\x45\xaf\x64"
31178                           "\x46\xdc\xea\x23\xda\x97\xd1\xab"
31179                           "\x7d\x6c\x30\x96\x1f\xbc\x06\x34"
31180                           "\x18\x0b\x5e\x21\x35\x11\x8d\x4c"
31181                           "\xe0\x2d\xe9\x50\x16\x74\x81\xa8"
31182                           "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc"
31183                           "\xca\x34\x83\x27\x10\x5b\x68\x45"
31184                           "\x8f\x52\x22\x0c\x55\x3d\x29\x7c"
31185                           "\xe3\xc0\x66\x05\x42\x91\x5f\x58"
31186                           "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19"
31187                           "\x04\xa9\x08\x4b\x57\xfc\x67\x53"
31188                           "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f"
31189                           "\x92\xd6\x41\x7c\x5b\x2a\x00\x79"
31190                           "\x72",
31191                 .ctext  = "\x45\xe8\xe0\xb6\x9c\xca\xfd\x87"
31192                           "\xe8\x1d\x37\x96\x8a\xe3\x40\x35"
31193                           "\xcf\x5e\x3a\x46\x3d\xfb\xd0\x69"
31194                           "\xde\xaf\x7a\xd5\x0d\xe9\x52\xec"
31195                           "\xc2\x82\xe5\x3e\x7d\xb2\x4a\xd9"
31196                           "\xbb\xc3\x9f\xc0\x5d\xac\x93\x8d"
31197                           "\x0e\x6f\xd3\xd7\xfb\x6a\x0d\xce"
31198                           "\x92\x2c\xf7\xbb\x93\x57\xcc\xee"
31199                           "\x42\x72\x6f\xc8\x4b\xd2\x76\xbf"
31200                           "\xa0\xe3\x7a\x39\xf9\x5c\x8e\xfd"
31201                           "\xa1\x1d\x41\xe5\x08\xc1\x1c\x11"
31202                           "\x92\xfd\x39\x5c\x51\xd0\x2f\x66"
31203                           "\x33\x4a\x71\x15\xfe\xee\x12\x54"
31204                           "\x8c\x8f\x34\xd8\x50\x3c\x18\xa6"
31205                           "\xc5\xe1\x46\x8a\xfb\x5f\x7e\x25"
31206                           "\x9b\xe2\xc3\x66\x41\x2b\xb3\xa5"
31207                           "\x57\x0e\x94\x17\x26\x39\xbb\x54"
31208                           "\xae\x2e\x6f\x42\xfb\x4d\x89\x6f"
31209                           "\x9d\xf1\x16\x2e\xe3\xe7\xfc\xe3"
31210                           "\xb2\x4b\x2b\xa6\x7c\x04\x69\x3a"
31211                           "\x70\x5a\xa7\xf1\x31\x64\x19\xca"
31212                           "\x45\x79\xd8\x58\x23\x61\xaf\xc2"
31213                           "\x52\x05\xc3\x0b\xc1\x64\x7c\x81"
31214                           "\xd9\x11\xcf\xff\x02\x3d\x51\x84"
31215                           "\x01\xac\xc6\x2e\x34\x2b\x09\x3a"
31216                           "\xa8\x5d\x98\x0e\x89\xd9\xef\x8f"
31217                           "\xd9\xd7\x7d\xdd\x63\x47\x46\x7d"
31218                           "\xa1\xda\x0b\x53\x7d\x79\xcd\xc9"
31219                           "\x86\xdd\x6b\x13\xa1\x9a\x70\xdd"
31220                           "\x5c\xa1\x69\x3c\xe4\x5d\xe3\x8c"
31221                           "\xe5\xf4\x87\x9c\x10\xcf\x0f\x0b"
31222                           "\xc8\x43\xdc\xf8\x1d\x62\x5e\x5b"
31223                           "\xe2\x03\x06\xc5\x71\xb6\x48\xa5"
31224                           "\xf0\x0f\x2d\xd5\xa2\x73\x55\x8f"
31225                           "\x01\xa7\x59\x80\x5f\x11\x6c\x40"
31226                           "\xff\xb1\xf2\xc6\x7e\x01\xbb\x1c"
31227                           "\x69\x9c\xc9\x3f\x71\x5f\x07\x7e"
31228                           "\xdf\x6f\x99\xca\x9c\xfd\xf9\xb9"
31229                           "\x49\xe7\xcc\x91\xd5\x9b\x8f\x03"
31230                           "\xae\xe7\x61\x32\xef\x41\x6c\x75"
31231                           "\x84\x9b\x8c\xce\x1d\x6b\x93\x21"
31232                           "\x41\xec\xc6\xad\x8e\x0c\x48\xa8"
31233                           "\xe2\xf5\x57\xde\xf7\x38\xfd\x4a"
31234                           "\x6f\xa7\x4a\xf9\xac\x7d\xb1\x85"
31235                           "\x7d\x6c\x95\x0a\x5a\xcf\x68\xd2"
31236                           "\xe0\x7a\x26\xd9\xc1\x6d\x3e\xc6"
31237                           "\x37\xbd\xbe\x24\x36\x77\x9f\x1b"
31238                           "\xc1\x22\xf3\x79\xae\x95\x78\x66"
31239                           "\x97\x11\xc0\x1a\xf1\xe8\x0d\x38"
31240                           "\x09\xc2\xee\xb7\xd3\x46\x7b\x59"
31241                           "\x77\x23\xe8\xb4\x92\x3d\x78\xbe"
31242                           "\xe2\x25\x63\xa5\x2a\x06\x70\x92"
31243                           "\x32\x63\xf9\x19\x21\x68\xe1\x0b"
31244                           "\x9a\xd0\xee\x21\xdb\x1f\xe0\xde"
31245                           "\x3e\x64\x02\x4d\x0e\xe0\x0a\xa9"
31246                           "\xed\x19\x8c\xa8\xbf\xe3\x2e\x75"
31247                           "\x24\x2b\xb0\xe5\x82\x6a\x1e\x6f"
31248                           "\x71\x2a\x3a\x60\xed\x06\x0d\x17"
31249                           "\xa2\xdb\x29\x1d\xae\xb2\xc4\xfb"
31250                           "\x94\x04\xd8\x58\xfc\xc4\x04\x4e"
31251                           "\xee\xc7\xc1\x0f\xe9\x9b\x63\x2d"
31252                           "\x02\x3e\x02\x67\xe5\xd8\xbb\x79"
31253                           "\xdf\xd2\xeb\x50\xe9\x0a\x02\x46"
31254                           "\xdf\x68\xcf\xe7\x2b\x0a\x56\xd6"
31255                           "\xf7\xbc\x44\xad\xb8\xb5\x5f\xeb"
31256                           "\xbc\x74\x6b\xe8\x7e\xb0\x60\xc6"
31257                           "\x0d\x96\x09\xbb\x19\xba\xe0\x3c"
31258                           "\xc4\x6c\xbf\x0f\x58\xc0\x55\x62"
31259                           "\x23\xa0\xff\xb5\x1c\xfd\x18\xe1"
31260                           "\xcf\x6d\xd3\x52\xb4\xce\xa6\xfa"
31261                           "\xaa\xfb\x1b\x0b\x42\x6d\x79\x42"
31262                           "\x48\x70\x5b\x0e\xdd\x3a\xc9\x69"
31263                           "\x8b\x73\x67\xf6\x95\xdb\x8c\xfb"
31264                           "\xfd\xb5\x08\x47\x42\x84\x9a\xfa"
31265                           "\xcc\x67\xb2\x3c\xb6\xfd\xd8\x32"
31266                           "\xd6\x04\xb6\x4a\xea\x53\x4b\xf5"
31267                           "\x94\x16\xad\xf0\x10\x2e\x2d\xb4"
31268                           "\x8b\xab\xe5\x89\xc7\x39\x12\xf3"
31269                           "\x8d\xb5\x96\x0b\x87\x5d\xa7\x7c"
31270                           "\xb0\xc2\xf6\x2e\x57\x97\x2c\xdc"
31271                           "\x54\x1c\x34\x72\xde\x0c\x68\x39"
31272                           "\x9d\x32\xa5\x75\x92\x13\x32\xea"
31273                           "\x90\x27\xbd\x5b\x1d\xb9\x21\x02"
31274                           "\x1c\xcc\xba\x97\x5e\x49\x58\xe8"
31275                           "\xac\x8b\xf3\xce\x3c\xf0\x00\xe9"
31276                           "\x6c\xae\xe9\x77\xdf\xf4\x02\xcd"
31277                           "\x55\x25\x89\x9e\x90\xf3\x6b\x8f"
31278                           "\xb7\xd6\x47\x98\x26\x2f\x31\x2f"
31279                           "\x8d\xbf\x54\xcd\x99\xeb\x80\xd7"
31280                           "\xac\xc3\x08\xc2\xa6\x32\xf1\x24"
31281                           "\x76\x7c\x4f\x78\x53\x55\xfb\x00"
31282                           "\x8a\xd6\x52\x53\x25\x45\xfb\x0a"
31283                           "\x6b\xb9\xbe\x3c\x5e\x11\xcc\x6a"
31284                           "\xdd\xfc\xa7\xc4\x79\x4d\xbd\xfb"
31285                           "\xce\x3a\xf1\x7a\xda\xeb\xfe\x64"
31286                           "\x28\x3d\x0f\xee\x80\xba\x0c\xf8"
31287                           "\xe9\x5b\x3a\xd4\xae\xc9\xf3\x0e"
31288                           "\xe8\x5d\xc5\x5c\x0b\x20\x20\xee"
31289                           "\x40\x0d\xde\x07\xa7\x14\xb4\x90"
31290                           "\xb6\xbd\x3b\xae\x7d\x2b\xa7\xc7"
31291                           "\xdc\x0b\x4c\x5d\x65\xb0\xd2\xc5"
31292                           "\x79\x61\x23\xe0\xa2\x99\x73\x55"
31293                           "\xad\xc6\xfb\xc7\x54\xb5\x98\x1f"
31294                           "\x8c\x86\xc2\x3f\xbe\x5e\xea\x64"
31295                           "\xa3\x60\x18\x9f\x80\xaf\x52\x74"
31296                           "\x1a\xfe\x22\xc2\x92\x67\x40\x02"
31297                           "\x08\xee\x67\x5b\x67\xe0\x3d\xde"
31298                           "\x7a\xaf\x8e\x28\xf3\x5e\x0e\xf4"
31299                           "\x48\x56\xaa\x85\x22\xd8\x36\xed"
31300                           "\x3b\x3d\x68\x69\x30\xbc\x71\x23"
31301                           "\xb1\x6e\x61\x03\x89\x44\x03\xf4"
31302                           "\x32\xaa\x4c\x40\x9f\x69\xfb\x70"
31303                           "\x91\xcc\x1f\x11\xbd\x76\x67\xe6"
31304                           "\x10\x8b\x29\x39\x68\xea\x4e\x6d"
31305                           "\xae\xfb\x40\xcf\xe2\xd0\x0d\x8d"
31306                           "\x6f\xed\x9b\x8d\x64\x7a\x94\x8e"
31307                           "\x32\x38\x78\xeb\x7d\x5f\xf9\x4d"
31308                           "\x13\xbe\x21\xea\x16\xe7\x5c\xee"
31309                           "\xcd\xf6\x5f\xc6\x45\xb2\x8f\x2b"
31310                           "\xb5\x93\x3e\x45\xdb\xfd\xa2\x6a"
31311                           "\xec\x83\x92\x99\x87\x47\xe0\x7c"
31312                           "\xa2\x7b\xc4\x2a\xcd\xc0\x81\x03"
31313                           "\x98\xb0\x87\xb6\x86\x13\x64\x33"
31314                           "\x4c\xd7\x99\xbf\xdb\x7b\x6e\xaa"
31315                           "\x76\xcc\xa0\x74\x1b\xa3\x6e\x83"
31316                           "\xd4\xba\x7a\x84\x9d\x91\x71\xcd"
31317                           "\x60\x2d\x56\xfd\x26\x35\xcb\xeb"
31318                           "\xac\xe9\xee\xa4\xfc\x18\x5b\x91"
31319                           "\xd5\xfe\x84\x45\xe0\xc7\xfd\x11"
31320                           "\xe9\x00\xb6\x54\xdf\xe1\x94\xde"
31321                           "\x2b\x70\x9f\x94\x7f\x15\x0e\x83"
31322                           "\x63\x10\xb3\xf5\xea\xd3\xe8\xd1"
31323                           "\xa5\xfc\x17\x19\x68\x9a\xbc\x17"
31324                           "\x30\x43\x0a\x1a\x33\x92\xd4\x2a"
31325                           "\x2e\x68\x99\xbc\x49\xf0\x68\xe3"
31326                           "\xf0\x1f\xcb\xcc\xfa\xbb\x05\x56"
31327                           "\x46\x84\x8b\x69\x83\x64\xc5\xe0"
31328                           "\xc5\x52\x99\x07\x3c\xa6\x5c\xaf"
31329                           "\xa3\xde\xd7\xdb\x43\xe6\xb7\x76"
31330                           "\x4e\x4d\xd6\x71\x60\x63\x4a\x0c"
31331                           "\x5f\xae\x25\x84\x22\x90\x5f\x26"
31332                           "\x61\x4d\x8f\xaf\xc9\x22\xf2\x05"
31333                           "\xcf\xc1\xdc\x68\xe5\x57\x8e\x24"
31334                           "\x1b\x30\x59\xca\xd7\x0d\xc3\xd3"
31335                           "\x52\x9e\x09\x3e\x0e\xaf\xdb\x5f"
31336                           "\xc7\x2b\xde\x3a\xfd\xad\x93\x04"
31337                           "\x74\x06\x89\x0e\x90\xeb\x85\xff"
31338                           "\xe6\x3c\x12\x42\xf4\xfa\x80\x75"
31339                           "\x5e\x4e\xd7\x2f\x93\x0b\x34\x41"
31340                           "\x02\x85\x68\xd0\x03\x12\xde\x92"
31341                           "\x54\x7a\x7e\xfb\x55\xe7\x88\xfb"
31342                           "\xa4\xa9\xf2\xd1\xc6\x70\x06\x37"
31343                           "\x25\xee\xa7\x6e\xd9\x89\x86\x50"
31344                           "\x2e\x07\xdb\xfb\x2a\x86\x45\x0e"
31345                           "\x91\xf4\x7c\xbb\x12\x60\xe8\x3f"
31346                           "\x71\xbe\x8f\x9d\x26\xef\xd9\x89"
31347                           "\xc4\x8f\xd8\xc5\x73\xd8\x84\xaa"
31348                           "\x2f\xad\x22\x1e\x7e\xcf\xa2\x08"
31349                           "\x23\x45\x89\x42\xa0\x30\xeb\xbf"
31350                           "\xa1\xed\xad\xd5\x76\xfa\x24\x8f"
31351                           "\x98",
31352                 .len    = 1281,
31353                 .also_non_np = 1,
31354                 .np     = 3,
31355                 .tap    = { 1200, 1, 80 },
31356         },
31357 };
31358
31359 /*
31360  * CTS (Cipher Text Stealing) mode tests
31361  */
31362 static const struct cipher_testvec cts_mode_tv_template[] = {
31363         { /* from rfc3962 */
31364                 .klen   = 16,
31365                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
31366                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
31367                 .ptext  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
31368                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
31369                           "\x20",
31370                 .len    = 17,
31371                 .ctext  = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
31372                           "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
31373                           "\x97",
31374         }, {
31375                 .klen   = 16,
31376                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
31377                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
31378                 .ptext  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
31379                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
31380                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
31381                           "\x20\x47\x61\x75\x27\x73\x20",
31382                 .len    = 31,
31383                 .ctext  = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
31384                           "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
31385                           "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
31386                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
31387         }, {
31388                 .klen   = 16,
31389                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
31390                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
31391                 .ptext  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
31392                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
31393                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
31394                           "\x20\x47\x61\x75\x27\x73\x20\x43",
31395                 .len    = 32,
31396                 .ctext  = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
31397                           "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
31398                           "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
31399                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
31400         }, {
31401                 .klen   = 16,
31402                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
31403                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
31404                 .ptext  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
31405                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
31406                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
31407                           "\x20\x47\x61\x75\x27\x73\x20\x43"
31408                           "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
31409                           "\x70\x6c\x65\x61\x73\x65\x2c",
31410                 .len    = 47,
31411                 .ctext  = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
31412                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
31413                           "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
31414                           "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
31415                           "\x39\x31\x25\x23\xa7\x86\x62\xd5"
31416                           "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
31417         }, {
31418                 .klen   = 16,
31419                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
31420                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
31421                 .ptext  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
31422                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
31423                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
31424                           "\x20\x47\x61\x75\x27\x73\x20\x43"
31425                           "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
31426                           "\x70\x6c\x65\x61\x73\x65\x2c\x20",
31427                 .len    = 48,
31428                 .ctext  = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
31429                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
31430                           "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
31431                           "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
31432                           "\x39\x31\x25\x23\xa7\x86\x62\xd5"
31433                           "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
31434         }, {
31435                 .klen   = 16,
31436                 .key    = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
31437                           "\x74\x65\x72\x69\x79\x61\x6b\x69",
31438                 .ptext  = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
31439                           "\x6c\x69\x6b\x65\x20\x74\x68\x65"
31440                           "\x20\x47\x65\x6e\x65\x72\x61\x6c"
31441                           "\x20\x47\x61\x75\x27\x73\x20\x43"
31442                           "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
31443                           "\x70\x6c\x65\x61\x73\x65\x2c\x20"
31444                           "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
31445                           "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
31446                 .len    = 64,
31447                 .ctext  = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
31448                           "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
31449                           "\x39\x31\x25\x23\xa7\x86\x62\xd5"
31450                           "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
31451                           "\x48\x07\xef\xe8\x36\xee\x89\xa5"
31452                           "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
31453                           "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
31454                           "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
31455         }
31456 };
31457
31458 /*
31459  * Compression stuff.
31460  */
31461 #define COMP_BUF_SIZE           512
31462
31463 struct comp_testvec {
31464         int inlen, outlen;
31465         char input[COMP_BUF_SIZE];
31466         char output[COMP_BUF_SIZE];
31467 };
31468
31469 /*
31470  * Deflate test vectors (null-terminated strings).
31471  * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
31472  */
31473
31474 static const struct comp_testvec deflate_comp_tv_template[] = {
31475         {
31476                 .inlen  = 70,
31477                 .outlen = 38,
31478                 .input  = "Join us now and share the software "
31479                         "Join us now and share the software ",
31480                 .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
31481                           "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
31482                           "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
31483                           "\x48\x55\x28\xce\x4f\x2b\x29\x07"
31484                           "\x71\xbc\x08\x2b\x01\x00",
31485         }, {
31486                 .inlen  = 191,
31487                 .outlen = 122,
31488                 .input  = "This document describes a compression method based on the DEFLATE"
31489                         "compression algorithm.  This document defines the application of "
31490                         "the DEFLATE algorithm to the IP Payload Compression Protocol.",
31491                 .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
31492                           "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
31493                           "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
31494                           "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
31495                           "\x68\x12\x51\xae\x76\x67\xd6\x27"
31496                           "\x19\x88\x1a\xde\x85\xab\x21\xf2"
31497                           "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
31498                           "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
31499                           "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
31500                           "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
31501                           "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
31502                           "\x52\x37\xed\x0e\x52\x6b\x59\x02"
31503                           "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
31504                           "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
31505                           "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
31506                           "\xfa\x02",
31507         },
31508 };
31509
31510 static const struct comp_testvec deflate_decomp_tv_template[] = {
31511         {
31512                 .inlen  = 122,
31513                 .outlen = 191,
31514                 .input  = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
31515                           "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
31516                           "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
31517                           "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
31518                           "\x68\x12\x51\xae\x76\x67\xd6\x27"
31519                           "\x19\x88\x1a\xde\x85\xab\x21\xf2"
31520                           "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
31521                           "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
31522                           "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
31523                           "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
31524                           "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
31525                           "\x52\x37\xed\x0e\x52\x6b\x59\x02"
31526                           "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
31527                           "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
31528                           "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
31529                           "\xfa\x02",
31530                 .output = "This document describes a compression method based on the DEFLATE"
31531                         "compression algorithm.  This document defines the application of "
31532                         "the DEFLATE algorithm to the IP Payload Compression Protocol.",
31533         }, {
31534                 .inlen  = 38,
31535                 .outlen = 70,
31536                 .input  = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
31537                           "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
31538                           "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
31539                           "\x48\x55\x28\xce\x4f\x2b\x29\x07"
31540                           "\x71\xbc\x08\x2b\x01\x00",
31541                 .output = "Join us now and share the software "
31542                         "Join us now and share the software ",
31543         },
31544 };
31545
31546 static const struct comp_testvec zlib_deflate_comp_tv_template[] = {
31547         {
31548                 .inlen  = 70,
31549                 .outlen = 44,
31550                 .input  = "Join us now and share the software "
31551                         "Join us now and share the software ",
31552                 .output = "\x78\x5e\xf3\xca\xcf\xcc\x53\x28"
31553                           "\x2d\x56\xc8\xcb\x2f\x57\x48\xcc"
31554                           "\x4b\x51\x28\xce\x48\x2c\x4a\x55"
31555                           "\x28\xc9\x48\x55\x28\xce\x4f\x2b"
31556                           "\x29\x07\x71\xbc\x08\x2b\x01\x00"
31557                           "\x7c\x65\x19\x3d",
31558         }, {
31559                 .inlen  = 191,
31560                 .outlen = 129,
31561                 .input  = "This document describes a compression method based on the DEFLATE"
31562                         "compression algorithm.  This document defines the application of "
31563                         "the DEFLATE algorithm to the IP Payload Compression Protocol.",
31564                 .output = "\x78\x5e\x5d\xce\x41\x0a\xc3\x30"
31565                           "\x0c\x04\xc0\xaf\xec\x0b\xf2\x87"
31566                           "\xd2\xa6\x50\xe8\xc1\x07\x7f\x40"
31567                           "\xb1\x95\x5a\x60\x5b\xc6\x56\x0f"
31568                           "\xfd\x7d\x93\x1e\x42\xe8\x51\xec"
31569                           "\xee\x20\x9f\x64\x20\x6a\x78\x17"
31570                           "\xae\x86\xc8\x23\x74\x59\x78\x80"
31571                           "\x10\xb4\xb4\xce\x63\x88\x56\x14"
31572                           "\xb6\xa4\x11\x0b\x0d\x8e\xd8\x6e"
31573                           "\x4b\x8c\xdb\x7c\x7f\x5e\xfc\x7c"
31574                           "\xae\x51\x7e\x69\x17\x4b\x65\x02"
31575                           "\xfc\x1f\xbc\x4a\xdd\xd8\x7d\x48"
31576                           "\xad\x65\x09\x64\x3b\xac\xeb\xd9"
31577                           "\xc2\x01\xc0\xf4\x17\x3c\x1c\x1c"
31578                           "\x7d\xb2\x52\xc4\xf5\xf4\x8f\xeb"
31579                           "\x6a\x1a\x34\x4f\x5f\x2e\x32\x45"
31580                           "\x4e",
31581         },
31582 };
31583
31584 static const struct comp_testvec zlib_deflate_decomp_tv_template[] = {
31585         {
31586                 .inlen  = 128,
31587                 .outlen = 191,
31588                 .input  = "\x78\x9c\x5d\x8d\x31\x0e\xc2\x30"
31589                           "\x10\x04\xbf\xb2\x2f\xc8\x1f\x10"
31590                           "\x04\x09\x89\xc2\x85\x3f\x70\xb1"
31591                           "\x2f\xf8\x24\xdb\x67\xd9\x47\xc1"
31592                           "\xef\x49\x68\x12\x51\xae\x76\x67"
31593                           "\xd6\x27\x19\x88\x1a\xde\x85\xab"
31594                           "\x21\xf2\x08\x5d\x16\x1e\x20\x04"
31595                           "\x2d\xad\xf3\x18\xa2\x15\x85\x2d"
31596                           "\x69\xc4\x42\x83\x23\xb6\x6c\x89"
31597                           "\x71\x9b\xef\xcf\x8b\x9f\xcf\x33"
31598                           "\xca\x2f\xed\x62\xa9\x4c\x80\xff"
31599                           "\x13\xaf\x52\x37\xed\x0e\x52\x6b"
31600                           "\x59\x02\xd9\x4e\xe8\x7a\x76\x1d"
31601                           "\x02\x98\xfe\x8a\x87\x83\xa3\x4f"
31602                           "\x56\x8a\xb8\x9e\x8e\x5c\x57\xd3"
31603                           "\xa0\x79\xfa\x02\x2e\x32\x45\x4e",
31604                 .output = "This document describes a compression method based on the DEFLATE"
31605                         "compression algorithm.  This document defines the application of "
31606                         "the DEFLATE algorithm to the IP Payload Compression Protocol.",
31607         }, {
31608                 .inlen  = 44,
31609                 .outlen = 70,
31610                 .input  = "\x78\x9c\xf3\xca\xcf\xcc\x53\x28"
31611                           "\x2d\x56\xc8\xcb\x2f\x57\x48\xcc"
31612                           "\x4b\x51\x28\xce\x48\x2c\x4a\x55"
31613                           "\x28\xc9\x48\x55\x28\xce\x4f\x2b"
31614                           "\x29\x07\x71\xbc\x08\x2b\x01\x00"
31615                           "\x7c\x65\x19\x3d",
31616                 .output = "Join us now and share the software "
31617                         "Join us now and share the software ",
31618         },
31619 };
31620
31621 /*
31622  * LZO test vectors (null-terminated strings).
31623  */
31624 static const struct comp_testvec lzo_comp_tv_template[] = {
31625         {
31626                 .inlen  = 70,
31627                 .outlen = 57,
31628                 .input  = "Join us now and share the software "
31629                         "Join us now and share the software ",
31630                 .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
31631                           "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
31632                           "\x64\x20\x73\x68\x61\x72\x65\x20"
31633                           "\x74\x68\x65\x20\x73\x6f\x66\x74"
31634                           "\x77\x70\x01\x32\x88\x00\x0c\x65"
31635                           "\x20\x74\x68\x65\x20\x73\x6f\x66"
31636                           "\x74\x77\x61\x72\x65\x20\x11\x00"
31637                           "\x00",
31638         }, {
31639                 .inlen  = 159,
31640                 .outlen = 131,
31641                 .input  = "This document describes a compression method based on the LZO "
31642                         "compression algorithm.  This document defines the application of "
31643                         "the LZO algorithm used in UBIFS.",
31644                 .output = "\x00\x2c\x54\x68\x69\x73\x20\x64"
31645                           "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
31646                           "\x64\x65\x73\x63\x72\x69\x62\x65"
31647                           "\x73\x20\x61\x20\x63\x6f\x6d\x70"
31648                           "\x72\x65\x73\x73\x69\x6f\x6e\x20"
31649                           "\x6d\x65\x74\x68\x6f\x64\x20\x62"
31650                           "\x61\x73\x65\x64\x20\x6f\x6e\x20"
31651                           "\x74\x68\x65\x20\x4c\x5a\x4f\x20"
31652                           "\x2a\x8c\x00\x09\x61\x6c\x67\x6f"
31653                           "\x72\x69\x74\x68\x6d\x2e\x20\x20"
31654                           "\x2e\x54\x01\x03\x66\x69\x6e\x65"
31655                           "\x73\x20\x74\x06\x05\x61\x70\x70"
31656                           "\x6c\x69\x63\x61\x74\x76\x0a\x6f"
31657                           "\x66\x88\x02\x60\x09\x27\xf0\x00"
31658                           "\x0c\x20\x75\x73\x65\x64\x20\x69"
31659                           "\x6e\x20\x55\x42\x49\x46\x53\x2e"
31660                           "\x11\x00\x00",
31661         },
31662 };
31663
31664 static const struct comp_testvec lzo_decomp_tv_template[] = {
31665         {
31666                 .inlen  = 133,
31667                 .outlen = 159,
31668                 .input  = "\x00\x2b\x54\x68\x69\x73\x20\x64"
31669                           "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
31670                           "\x64\x65\x73\x63\x72\x69\x62\x65"
31671                           "\x73\x20\x61\x20\x63\x6f\x6d\x70"
31672                           "\x72\x65\x73\x73\x69\x6f\x6e\x20"
31673                           "\x6d\x65\x74\x68\x6f\x64\x20\x62"
31674                           "\x61\x73\x65\x64\x20\x6f\x6e\x20"
31675                           "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
31676                           "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
31677                           "\x69\x74\x68\x6d\x2e\x20\x20\x54"
31678                           "\x68\x69\x73\x2a\x54\x01\x02\x66"
31679                           "\x69\x6e\x65\x73\x94\x06\x05\x61"
31680                           "\x70\x70\x6c\x69\x63\x61\x74\x76"
31681                           "\x0a\x6f\x66\x88\x02\x60\x09\x27"
31682                           "\xf0\x00\x0c\x20\x75\x73\x65\x64"
31683                           "\x20\x69\x6e\x20\x55\x42\x49\x46"
31684                           "\x53\x2e\x11\x00\x00",
31685                 .output = "This document describes a compression method based on the LZO "
31686                         "compression algorithm.  This document defines the application of "
31687                         "the LZO algorithm used in UBIFS.",
31688         }, {
31689                 .inlen  = 46,
31690                 .outlen = 70,
31691                 .input  = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
31692                           "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
31693                           "\x64\x20\x73\x68\x61\x72\x65\x20"
31694                           "\x74\x68\x65\x20\x73\x6f\x66\x74"
31695                           "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
31696                           "\x3d\x88\x00\x11\x00\x00",
31697                 .output = "Join us now and share the software "
31698                         "Join us now and share the software ",
31699         },
31700 };
31701
31702 /*
31703  * Michael MIC test vectors from IEEE 802.11i
31704  */
31705 #define MICHAEL_MIC_TEST_VECTORS 6
31706
31707 static const struct hash_testvec michael_mic_tv_template[] = {
31708         {
31709                 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
31710                 .ksize = 8,
31711                 .plaintext = zeroed_string,
31712                 .psize = 0,
31713                 .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
31714         },
31715         {
31716                 .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
31717                 .ksize = 8,
31718                 .plaintext = "M",
31719                 .psize = 1,
31720                 .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
31721         },
31722         {
31723                 .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
31724                 .ksize = 8,
31725                 .plaintext = "Mi",
31726                 .psize = 2,
31727                 .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
31728         },
31729         {
31730                 .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
31731                 .ksize = 8,
31732                 .plaintext = "Mic",
31733                 .psize = 3,
31734                 .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
31735         },
31736         {
31737                 .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
31738                 .ksize = 8,
31739                 .plaintext = "Mich",
31740                 .psize = 4,
31741                 .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
31742         },
31743         {
31744                 .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
31745                 .ksize = 8,
31746                 .plaintext = "Michael",
31747                 .psize = 7,
31748                 .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
31749         }
31750 };
31751
31752 /*
31753  * CRC32 test vectors
31754  */
31755 static const struct hash_testvec crc32_tv_template[] = {
31756         {
31757                 .psize = 0,
31758                 .digest = "\x00\x00\x00\x00",
31759         },
31760         {
31761                 .plaintext = "abcdefg",
31762                 .psize = 7,
31763                 .digest = "\xd8\xb5\x46\xac",
31764         },
31765         {
31766                 .key = "\x87\xa9\xcb\xed",
31767                 .ksize = 4,
31768                 .psize = 0,
31769                 .digest = "\x87\xa9\xcb\xed",
31770         },
31771         {
31772                 .key = "\xff\xff\xff\xff",
31773                 .ksize = 4,
31774                 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
31775                              "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
31776                              "\x11\x12\x13\x14\x15\x16\x17\x18"
31777                              "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
31778                              "\x21\x22\x23\x24\x25\x26\x27\x28",
31779                 .psize = 40,
31780                 .digest = "\x3a\xdf\x4b\xb0",
31781         },
31782         {
31783                 .key = "\xff\xff\xff\xff",
31784                 .ksize = 4,
31785                 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
31786                              "\x31\x32\x33\x34\x35\x36\x37\x38"
31787                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
31788                              "\x41\x42\x43\x44\x45\x46\x47\x48"
31789                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
31790                 .psize = 40,
31791                 .digest = "\xa9\x7a\x7f\x7b",
31792         },
31793         {
31794                 .key = "\xff\xff\xff\xff",
31795                 .ksize = 4,
31796                 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
31797                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
31798                              "\x61\x62\x63\x64\x65\x66\x67\x68"
31799                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
31800                              "\x71\x72\x73\x74\x75\x76\x77\x78",
31801                 .psize = 40,
31802                 .digest = "\xba\xd3\xf8\x1c",
31803         },
31804         {
31805                 .key = "\xff\xff\xff\xff",
31806                 .ksize = 4,
31807                 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
31808                              "\x81\x82\x83\x84\x85\x86\x87\x88"
31809                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
31810                              "\x91\x92\x93\x94\x95\x96\x97\x98"
31811                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
31812                 .psize = 40,
31813                 .digest = "\xa8\xa9\xc2\x02",
31814         },
31815         {
31816                 .key = "\xff\xff\xff\xff",
31817                 .ksize = 4,
31818                 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
31819                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
31820                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
31821                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
31822                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
31823                 .psize = 40,
31824                 .digest = "\x27\xf0\x57\xe2",
31825         },
31826         {
31827                 .key = "\xff\xff\xff\xff",
31828                 .ksize = 4,
31829                 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
31830                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
31831                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
31832                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
31833                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
31834                 .psize = 40,
31835                 .digest = "\x49\x78\x10\x08",
31836         },
31837         {
31838                 .key = "\x80\xea\xd3\xf1",
31839                 .ksize = 4,
31840                 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
31841                              "\x31\x32\x33\x34\x35\x36\x37\x38"
31842                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
31843                              "\x41\x42\x43\x44\x45\x46\x47\x48"
31844                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
31845                 .psize = 40,
31846                 .digest = "\x9a\xb1\xdc\xf0",
31847         },
31848         {
31849                 .key = "\xf3\x4a\x1d\x5d",
31850                 .ksize = 4,
31851                 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
31852                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
31853                              "\x61\x62\x63\x64\x65\x66\x67\x68"
31854                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
31855                              "\x71\x72\x73\x74\x75\x76\x77\x78",
31856                 .psize = 40,
31857                 .digest = "\xb4\x97\xcc\xd4",
31858         },
31859         {
31860                 .key = "\x2e\x80\x04\x59",
31861                 .ksize = 4,
31862                 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
31863                              "\x81\x82\x83\x84\x85\x86\x87\x88"
31864                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
31865                              "\x91\x92\x93\x94\x95\x96\x97\x98"
31866                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
31867                 .psize = 40,
31868                 .digest = "\x67\x9b\xfa\x79",
31869         },
31870         {
31871                 .key = "\xa6\xcc\x19\x85",
31872                 .ksize = 4,
31873                 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
31874                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
31875                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
31876                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
31877                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
31878                 .psize = 40,
31879                 .digest = "\x24\xb5\x16\xef",
31880         },
31881         {
31882                 .key = "\x41\xfc\xfe\x2d",
31883                 .ksize = 4,
31884                 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
31885                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
31886                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
31887                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
31888                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
31889                 .psize = 40,
31890                 .digest = "\x15\x94\x80\x39",
31891         },
31892         {
31893                 .key = "\xff\xff\xff\xff",
31894                 .ksize = 4,
31895                 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
31896                              "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
31897                              "\x11\x12\x13\x14\x15\x16\x17\x18"
31898                              "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
31899                              "\x21\x22\x23\x24\x25\x26\x27\x28"
31900                              "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
31901                              "\x31\x32\x33\x34\x35\x36\x37\x38"
31902                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
31903                              "\x41\x42\x43\x44\x45\x46\x47\x48"
31904                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
31905                              "\x51\x52\x53\x54\x55\x56\x57\x58"
31906                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
31907                              "\x61\x62\x63\x64\x65\x66\x67\x68"
31908                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
31909                              "\x71\x72\x73\x74\x75\x76\x77\x78"
31910                              "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
31911                              "\x81\x82\x83\x84\x85\x86\x87\x88"
31912                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
31913                              "\x91\x92\x93\x94\x95\x96\x97\x98"
31914                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
31915                              "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
31916                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
31917                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
31918                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
31919                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
31920                              "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
31921                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
31922                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
31923                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
31924                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
31925                 .psize = 240,
31926                 .digest = "\x6c\xc6\x56\xde",
31927                 .np = 2,
31928                 .tap = { 31, 209 }
31929         }, {
31930                 .key = "\xff\xff\xff\xff",
31931                 .ksize = 4,
31932                 .plaintext =    "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
31933                                 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
31934                                 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
31935                                 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
31936                                 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
31937                                 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
31938                                 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
31939                                 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
31940                                 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
31941                                 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
31942                                 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
31943                                 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
31944                                 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
31945                                 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
31946                                 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
31947                                 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
31948                                 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
31949                                 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
31950                                 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
31951                                 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
31952                                 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
31953                                 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
31954                                 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
31955                                 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
31956                                 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
31957                                 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
31958                                 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
31959                                 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
31960                                 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
31961                                 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
31962                                 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
31963                                 "\x47\xde\x75\x0c\x80\x17\xae\x22"
31964                                 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
31965                                 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
31966                                 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
31967                                 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
31968                                 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
31969                                 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
31970                                 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
31971                                 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
31972                                 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
31973                                 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
31974                                 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
31975                                 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
31976                                 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
31977                                 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
31978                                 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
31979                                 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
31980                                 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
31981                                 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
31982                                 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
31983                                 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
31984                                 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
31985                                 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
31986                                 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
31987                                 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
31988                                 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
31989                                 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
31990                                 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
31991                                 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
31992                                 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
31993                                 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
31994                                 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
31995                                 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
31996                                 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
31997                                 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
31998                                 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
31999                                 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
32000                                 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
32001                                 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
32002                                 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
32003                                 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
32004                                 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
32005                                 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
32006                                 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
32007                                 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
32008                                 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
32009                                 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
32010                                 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
32011                                 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
32012                                 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
32013                                 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
32014                                 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
32015                                 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
32016                                 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
32017                                 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
32018                                 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
32019                                 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
32020                                 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
32021                                 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
32022                                 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
32023                                 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
32024                                 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
32025                                 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
32026                                 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
32027                                 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
32028                                 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
32029                                 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
32030                                 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
32031                                 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
32032                                 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
32033                                 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
32034                                 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
32035                                 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
32036                                 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
32037                                 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
32038                                 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
32039                                 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
32040                                 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
32041                                 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
32042                                 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
32043                                 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
32044                                 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
32045                                 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
32046                                 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
32047                                 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
32048                                 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
32049                                 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
32050                                 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
32051                                 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
32052                                 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
32053                                 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
32054                                 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
32055                                 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
32056                                 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
32057                                 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
32058                                 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
32059                                 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
32060                                 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
32061                                 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
32062                                 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
32063                                 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
32064                                 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
32065                                 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
32066                                 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
32067                                 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
32068                                 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
32069                                 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
32070                                 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
32071                                 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
32072                                 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
32073                                 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
32074                                 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
32075                                 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
32076                                 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
32077                                 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
32078                                 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
32079                                 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
32080                                 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
32081                                 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
32082                                 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
32083                                 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
32084                                 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
32085                                 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
32086                                 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
32087                                 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
32088                                 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
32089                                 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
32090                                 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
32091                                 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
32092                                 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
32093                                 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
32094                                 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
32095                                 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
32096                                 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
32097                                 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
32098                                 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
32099                                 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
32100                                 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
32101                                 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
32102                                 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
32103                                 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
32104                                 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
32105                                 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
32106                                 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
32107                                 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
32108                                 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
32109                                 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
32110                                 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
32111                                 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
32112                                 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
32113                                 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
32114                                 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
32115                                 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
32116                                 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
32117                                 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
32118                                 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
32119                                 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
32120                                 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
32121                                 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
32122                                 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
32123                                 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
32124                                 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
32125                                 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
32126                                 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
32127                                 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
32128                                 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
32129                                 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
32130                                 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
32131                                 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
32132                                 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
32133                                 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
32134                                 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
32135                                 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
32136                                 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
32137                                 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
32138                                 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
32139                                 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
32140                                 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
32141                                 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
32142                                 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
32143                                 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
32144                                 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
32145                                 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
32146                                 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
32147                                 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
32148                                 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
32149                                 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
32150                                 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
32151                                 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
32152                                 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
32153                                 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
32154                                 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
32155                                 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
32156                                 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
32157                                 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
32158                                 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
32159                                 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
32160                                 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
32161                                 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
32162                                 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
32163                                 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
32164                                 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
32165                                 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
32166                                 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
32167                                 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
32168                                 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
32169                                 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
32170                                 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
32171                                 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
32172                                 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
32173                                 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
32174                                 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
32175                                 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
32176                                 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
32177                                 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
32178                                 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
32179                                 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
32180                                 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
32181                                 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
32182                                 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
32183                                 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
32184                                 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
32185                                 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
32186                                 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
32187                                 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
32188                 .psize = 2048,
32189                 .digest = "\xfb\x3a\x7a\xda",
32190         }
32191 };
32192
32193 /*
32194  * CRC32C test vectors
32195  */
32196 static const struct hash_testvec crc32c_tv_template[] = {
32197         {
32198                 .psize = 0,
32199                 .digest = "\x00\x00\x00\x00",
32200         },
32201         {
32202                 .plaintext = "abcdefg",
32203                 .psize = 7,
32204                 .digest = "\x41\xf4\x27\xe6",
32205         },
32206         {
32207                 .key = "\x87\xa9\xcb\xed",
32208                 .ksize = 4,
32209                 .psize = 0,
32210                 .digest = "\x78\x56\x34\x12",
32211         },
32212         {
32213                 .key = "\xff\xff\xff\xff",
32214                 .ksize = 4,
32215                 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
32216                              "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
32217                              "\x11\x12\x13\x14\x15\x16\x17\x18"
32218                              "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
32219                              "\x21\x22\x23\x24\x25\x26\x27\x28",
32220                 .psize = 40,
32221                 .digest = "\x7f\x15\x2c\x0e",
32222         },
32223         {
32224                 .key = "\xff\xff\xff\xff",
32225                 .ksize = 4,
32226                 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
32227                              "\x31\x32\x33\x34\x35\x36\x37\x38"
32228                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
32229                              "\x41\x42\x43\x44\x45\x46\x47\x48"
32230                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
32231                 .psize = 40,
32232                 .digest = "\xf6\xeb\x80\xe9",
32233         },
32234         {
32235                 .key = "\xff\xff\xff\xff",
32236                 .ksize = 4,
32237                 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
32238                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
32239                              "\x61\x62\x63\x64\x65\x66\x67\x68"
32240                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
32241                              "\x71\x72\x73\x74\x75\x76\x77\x78",
32242                 .psize = 40,
32243                 .digest = "\xed\xbd\x74\xde",
32244         },
32245         {
32246                 .key = "\xff\xff\xff\xff",
32247                 .ksize = 4,
32248                 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
32249                              "\x81\x82\x83\x84\x85\x86\x87\x88"
32250                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
32251                              "\x91\x92\x93\x94\x95\x96\x97\x98"
32252                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
32253                 .psize = 40,
32254                 .digest = "\x62\xc8\x79\xd5",
32255         },
32256         {
32257                 .key = "\xff\xff\xff\xff",
32258                 .ksize = 4,
32259                 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
32260                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
32261                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
32262                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
32263                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
32264                 .psize = 40,
32265                 .digest = "\xd0\x9a\x97\xba",
32266         },
32267         {
32268                 .key = "\xff\xff\xff\xff",
32269                 .ksize = 4,
32270                 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
32271                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
32272                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
32273                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
32274                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
32275                 .psize = 40,
32276                 .digest = "\x13\xd9\x29\x2b",
32277         },
32278         {
32279                 .key = "\x80\xea\xd3\xf1",
32280                 .ksize = 4,
32281                 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
32282                              "\x31\x32\x33\x34\x35\x36\x37\x38"
32283                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
32284                              "\x41\x42\x43\x44\x45\x46\x47\x48"
32285                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
32286                 .psize = 40,
32287                 .digest = "\x0c\xb5\xe2\xa2",
32288         },
32289         {
32290                 .key = "\xf3\x4a\x1d\x5d",
32291                 .ksize = 4,
32292                 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
32293                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
32294                              "\x61\x62\x63\x64\x65\x66\x67\x68"
32295                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
32296                              "\x71\x72\x73\x74\x75\x76\x77\x78",
32297                 .psize = 40,
32298                 .digest = "\xd1\x7f\xfb\xa6",
32299         },
32300         {
32301                 .key = "\x2e\x80\x04\x59",
32302                 .ksize = 4,
32303                 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
32304                              "\x81\x82\x83\x84\x85\x86\x87\x88"
32305                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
32306                              "\x91\x92\x93\x94\x95\x96\x97\x98"
32307                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
32308                 .psize = 40,
32309                 .digest = "\x59\x33\xe6\x7a",
32310         },
32311         {
32312                 .key = "\xa6\xcc\x19\x85",
32313                 .ksize = 4,
32314                 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
32315                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
32316                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
32317                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
32318                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
32319                 .psize = 40,
32320                 .digest = "\xbe\x03\x01\xd2",
32321         },
32322         {
32323                 .key = "\x41\xfc\xfe\x2d",
32324                 .ksize = 4,
32325                 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
32326                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
32327                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
32328                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
32329                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
32330                 .psize = 40,
32331                 .digest = "\x75\xd3\xc5\x24",
32332         },
32333         {
32334                 .key = "\xff\xff\xff\xff",
32335                 .ksize = 4,
32336                 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
32337                              "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
32338                              "\x11\x12\x13\x14\x15\x16\x17\x18"
32339                              "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
32340                              "\x21\x22\x23\x24\x25\x26\x27\x28"
32341                              "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
32342                              "\x31\x32\x33\x34\x35\x36\x37\x38"
32343                              "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
32344                              "\x41\x42\x43\x44\x45\x46\x47\x48"
32345                              "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
32346                              "\x51\x52\x53\x54\x55\x56\x57\x58"
32347                              "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
32348                              "\x61\x62\x63\x64\x65\x66\x67\x68"
32349                              "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
32350                              "\x71\x72\x73\x74\x75\x76\x77\x78"
32351                              "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
32352                              "\x81\x82\x83\x84\x85\x86\x87\x88"
32353                              "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
32354                              "\x91\x92\x93\x94\x95\x96\x97\x98"
32355                              "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
32356                              "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
32357                              "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
32358                              "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
32359                              "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
32360                              "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
32361                              "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
32362                              "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
32363                              "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
32364                              "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
32365                              "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
32366                 .psize = 240,
32367                 .digest = "\x75\xd3\xc5\x24",
32368                 .np = 2,
32369                 .tap = { 31, 209 }
32370         }, {
32371                 .key = "\xff\xff\xff\xff",
32372                 .ksize = 4,
32373                 .plaintext =    "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
32374                                 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
32375                                 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
32376                                 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
32377                                 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
32378                                 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
32379                                 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
32380                                 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
32381                                 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
32382                                 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
32383                                 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
32384                                 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
32385                                 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
32386                                 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
32387                                 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
32388                                 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
32389                                 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
32390                                 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
32391                                 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
32392                                 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
32393                                 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
32394                                 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
32395                                 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
32396                                 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
32397                                 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
32398                                 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
32399                                 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
32400                                 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
32401                                 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
32402                                 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
32403                                 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
32404                                 "\x47\xde\x75\x0c\x80\x17\xae\x22"
32405                                 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
32406                                 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
32407                                 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
32408                                 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
32409                                 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
32410                                 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
32411                                 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
32412                                 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
32413                                 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
32414                                 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
32415                                 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
32416                                 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
32417                                 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
32418                                 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
32419                                 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
32420                                 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
32421                                 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
32422                                 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
32423                                 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
32424                                 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
32425                                 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
32426                                 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
32427                                 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
32428                                 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
32429                                 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
32430                                 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
32431                                 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
32432                                 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
32433                                 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
32434                                 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
32435                                 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
32436                                 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
32437                                 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
32438                                 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
32439                                 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
32440                                 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
32441                                 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
32442                                 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
32443                                 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
32444                                 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
32445                                 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
32446                                 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
32447                                 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
32448                                 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
32449                                 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
32450                                 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
32451                                 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
32452                                 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
32453                                 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
32454                                 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
32455                                 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
32456                                 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
32457                                 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
32458                                 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
32459                                 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
32460                                 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
32461                                 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
32462                                 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
32463                                 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
32464                                 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
32465                                 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
32466                                 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
32467                                 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
32468                                 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
32469                                 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
32470                                 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
32471                                 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
32472                                 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
32473                                 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
32474                                 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
32475                                 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
32476                                 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
32477                                 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
32478                                 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
32479                                 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
32480                                 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
32481                                 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
32482                                 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
32483                                 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
32484                                 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
32485                                 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
32486                                 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
32487                                 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
32488                                 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
32489                                 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
32490                                 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
32491                                 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
32492                                 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
32493                                 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
32494                                 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
32495                                 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
32496                                 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
32497                                 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
32498                                 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
32499                                 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
32500                                 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
32501                                 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
32502                                 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
32503                                 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
32504                                 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
32505                                 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
32506                                 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
32507                                 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
32508                                 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
32509                                 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
32510                                 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
32511                                 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
32512                                 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
32513                                 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
32514                                 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
32515                                 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
32516                                 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
32517                                 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
32518                                 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
32519                                 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
32520                                 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
32521                                 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
32522                                 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
32523                                 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
32524                                 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
32525                                 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
32526                                 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
32527                                 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
32528                                 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
32529                                 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
32530                                 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
32531                                 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
32532                                 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
32533                                 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
32534                                 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
32535                                 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
32536                                 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
32537                                 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
32538                                 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
32539                                 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
32540                                 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
32541                                 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
32542                                 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
32543                                 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
32544                                 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
32545                                 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
32546                                 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
32547                                 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
32548                                 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
32549                                 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
32550                                 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
32551                                 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
32552                                 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
32553                                 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
32554                                 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
32555                                 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
32556                                 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
32557                                 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
32558                                 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
32559                                 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
32560                                 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
32561                                 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
32562                                 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
32563                                 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
32564                                 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
32565                                 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
32566                                 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
32567                                 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
32568                                 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
32569                                 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
32570                                 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
32571                                 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
32572                                 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
32573                                 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
32574                                 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
32575                                 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
32576                                 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
32577                                 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
32578                                 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
32579                                 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
32580                                 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
32581                                 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
32582                                 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
32583                                 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
32584                                 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
32585                                 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
32586                                 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
32587                                 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
32588                                 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
32589                                 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
32590                                 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
32591                                 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
32592                                 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
32593                                 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
32594                                 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
32595                                 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
32596                                 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
32597                                 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
32598                                 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
32599                                 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
32600                                 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
32601                                 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
32602                                 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
32603                                 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
32604                                 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
32605                                 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
32606                                 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
32607                                 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
32608                                 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
32609                                 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
32610                                 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
32611                                 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
32612                                 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
32613                                 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
32614                                 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
32615                                 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
32616                                 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
32617                                 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
32618                                 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
32619                                 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
32620                                 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
32621                                 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
32622                                 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
32623                                 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
32624                                 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
32625                                 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
32626                                 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
32627                                 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
32628                                 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
32629                 .psize = 2048,
32630                 .digest = "\xec\x26\x4d\x95",
32631         }
32632 };
32633
32634 static const struct comp_testvec lz4_comp_tv_template[] = {
32635         {
32636                 .inlen  = 255,
32637                 .outlen = 218,
32638                 .input  = "LZ4 is lossless compression algorithm, providing"
32639                          " compression speed at 400 MB/s per core, scalable "
32640                          "with multi-cores CPU. It features an extremely fast "
32641                          "decoder, with speed in multiple GB/s per core, "
32642                          "typically reaching RAM speed limits on multi-core "
32643                          "systems.",
32644                 .output = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
32645                           "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
32646                           "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
32647                           "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
32648                           "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
32649                           "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
32650                           "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
32651                           "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
32652                           "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
32653                           "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
32654                           "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
32655                           "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
32656                           "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
32657                           "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
32658                           "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x83"
32659                           "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x3f\x00\x01\x85\x00"
32660                           "\x90\x20\x73\x79\x73\x74\x65\x6d\x73\x2e",
32661
32662         },
32663 };
32664
32665 static const struct comp_testvec lz4_decomp_tv_template[] = {
32666         {
32667                 .inlen  = 218,
32668                 .outlen = 255,
32669                 .input  = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
32670                           "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
32671                           "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
32672                           "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
32673                           "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
32674                           "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
32675                           "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
32676                           "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
32677                           "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
32678                           "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
32679                           "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
32680                           "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
32681                           "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
32682                           "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
32683                           "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x83"
32684                           "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x3f\x00\x01\x85\x00"
32685                           "\x90\x20\x73\x79\x73\x74\x65\x6d\x73\x2e",
32686                 .output = "LZ4 is lossless compression algorithm, providing"
32687                          " compression speed at 400 MB/s per core, scalable "
32688                          "with multi-cores CPU. It features an extremely fast "
32689                          "decoder, with speed in multiple GB/s per core, "
32690                          "typically reaching RAM speed limits on multi-core "
32691                          "systems.",
32692         },
32693 };
32694
32695 static const struct comp_testvec lz4hc_comp_tv_template[] = {
32696         {
32697                 .inlen  = 255,
32698                 .outlen = 216,
32699                 .input  = "LZ4 is lossless compression algorithm, providing"
32700                          " compression speed at 400 MB/s per core, scalable "
32701                          "with multi-cores CPU. It features an extremely fast "
32702                          "decoder, with speed in multiple GB/s per core, "
32703                          "typically reaching RAM speed limits on multi-core "
32704                          "systems.",
32705                 .output = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
32706                           "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
32707                           "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
32708                           "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
32709                           "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
32710                           "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
32711                           "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
32712                           "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
32713                           "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
32714                           "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
32715                           "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
32716                           "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
32717                           "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
32718                           "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
32719                           "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x97"
32720                           "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x6e\x85\x00\x90\x20"
32721                           "\x73\x79\x73\x74\x65\x6d\x73\x2e",
32722
32723         },
32724 };
32725
32726 static const struct comp_testvec lz4hc_decomp_tv_template[] = {
32727         {
32728                 .inlen  = 216,
32729                 .outlen = 255,
32730                 .input  = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
32731                           "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
32732                           "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
32733                           "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
32734                           "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
32735                           "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
32736                           "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
32737                           "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
32738                           "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
32739                           "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
32740                           "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
32741                           "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
32742                           "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
32743                           "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
32744                           "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x97"
32745                           "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x6e\x85\x00\x90\x20"
32746                           "\x73\x79\x73\x74\x65\x6d\x73\x2e",
32747                 .output = "LZ4 is lossless compression algorithm, providing"
32748                          " compression speed at 400 MB/s per core, scalable "
32749                          "with multi-cores CPU. It features an extremely fast "
32750                          "decoder, with speed in multiple GB/s per core, "
32751                          "typically reaching RAM speed limits on multi-core "
32752                          "systems.",
32753         },
32754 };
32755
32756 static const struct comp_testvec zstd_comp_tv_template[] = {
32757         {
32758                 .inlen  = 68,
32759                 .outlen = 39,
32760                 .input  = "The algorithm is zstd. "
32761                           "The algorithm is zstd. "
32762                           "The algorithm is zstd.",
32763                 .output = "\x28\xb5\x2f\xfd\x00\x50\xf5\x00\x00\xb8\x54\x68\x65"
32764                           "\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d\x20\x69\x73"
32765                           "\x20\x7a\x73\x74\x64\x2e\x20\x01\x00\x55\x73\x36\x01"
32766                           ,
32767         },
32768         {
32769                 .inlen  = 244,
32770                 .outlen = 151,
32771                 .input  = "zstd, short for Zstandard, is a fast lossless "
32772                           "compression algorithm, targeting real-time "
32773                           "compression scenarios at zlib-level and better "
32774                           "compression ratios. The zstd compression library "
32775                           "provides in-memory compression and decompression "
32776                           "functions.",
32777                 .output = "\x28\xb5\x2f\xfd\x00\x50\x75\x04\x00\x42\x4b\x1e\x17"
32778                           "\x90\x81\x31\x00\xf2\x2f\xe4\x36\xc9\xef\x92\x88\x32"
32779                           "\xc9\xf2\x24\x94\xd8\x68\x9a\x0f\x00\x0c\xc4\x31\x6f"
32780                           "\x0d\x0c\x38\xac\x5c\x48\x03\xcd\x63\x67\xc0\xf3\xad"
32781                           "\x4e\x90\xaa\x78\xa0\xa4\xc5\x99\xda\x2f\xb6\x24\x60"
32782                           "\xe2\x79\x4b\xaa\xb6\x6b\x85\x0b\xc9\xc6\x04\x66\x86"
32783                           "\xe2\xcc\xe2\x25\x3f\x4f\x09\xcd\xb8\x9d\xdb\xc1\x90"
32784                           "\xa9\x11\xbc\x35\x44\x69\x2d\x9c\x64\x4f\x13\x31\x64"
32785                           "\xcc\xfb\x4d\x95\x93\x86\x7f\x33\x7f\x1a\xef\xe9\x30"
32786                           "\xf9\x67\xa1\x94\x0a\x69\x0f\x60\xcd\xc3\xab\x99\xdc"
32787                           "\x42\xed\x97\x05\x00\x33\xc3\x15\x95\x3a\x06\xa0\x0e"
32788                           "\x20\xa9\x0e\x82\xb9\x43\x45\x01",
32789         },
32790 };
32791
32792 static const struct comp_testvec zstd_decomp_tv_template[] = {
32793         {
32794                 .inlen  = 43,
32795                 .outlen = 68,
32796                 .input  = "\x28\xb5\x2f\xfd\x04\x50\xf5\x00\x00\xb8\x54\x68\x65"
32797                           "\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d\x20\x69\x73"
32798                           "\x20\x7a\x73\x74\x64\x2e\x20\x01\x00\x55\x73\x36\x01"
32799                           "\x6b\xf4\x13\x35",
32800                 .output = "The algorithm is zstd. "
32801                           "The algorithm is zstd. "
32802                           "The algorithm is zstd.",
32803         },
32804         {
32805                 .inlen  = 155,
32806                 .outlen = 244,
32807                 .input  = "\x28\xb5\x2f\xfd\x04\x50\x75\x04\x00\x42\x4b\x1e\x17"
32808                           "\x90\x81\x31\x00\xf2\x2f\xe4\x36\xc9\xef\x92\x88\x32"
32809                           "\xc9\xf2\x24\x94\xd8\x68\x9a\x0f\x00\x0c\xc4\x31\x6f"
32810                           "\x0d\x0c\x38\xac\x5c\x48\x03\xcd\x63\x67\xc0\xf3\xad"
32811                           "\x4e\x90\xaa\x78\xa0\xa4\xc5\x99\xda\x2f\xb6\x24\x60"
32812                           "\xe2\x79\x4b\xaa\xb6\x6b\x85\x0b\xc9\xc6\x04\x66\x86"
32813                           "\xe2\xcc\xe2\x25\x3f\x4f\x09\xcd\xb8\x9d\xdb\xc1\x90"
32814                           "\xa9\x11\xbc\x35\x44\x69\x2d\x9c\x64\x4f\x13\x31\x64"
32815                           "\xcc\xfb\x4d\x95\x93\x86\x7f\x33\x7f\x1a\xef\xe9\x30"
32816                           "\xf9\x67\xa1\x94\x0a\x69\x0f\x60\xcd\xc3\xab\x99\xdc"
32817                           "\x42\xed\x97\x05\x00\x33\xc3\x15\x95\x3a\x06\xa0\x0e"
32818                           "\x20\xa9\x0e\x82\xb9\x43\x45\x01\xaa\x6d\xda\x0d",
32819                 .output = "zstd, short for Zstandard, is a fast lossless "
32820                           "compression algorithm, targeting real-time "
32821                           "compression scenarios at zlib-level and better "
32822                           "compression ratios. The zstd compression library "
32823                           "provides in-memory compression and decompression "
32824                           "functions.",
32825         },
32826 };
32827 #endif  /* _CRYPTO_TESTMGR_H */