perf symbols: Fix debuginfo search for Ubuntu
[linux/fpc-iii.git] / crypto / testmgr.h
blobebff33765ac31ecd8690b3da81b43eb8d577e30f
1 /*
2 * Algorithm testing framework and tests.
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>
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.
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.
24 #ifndef _CRYPTO_TESTMGR_H
25 #define _CRYPTO_TESTMGR_H
27 #include <linux/netlink.h>
29 #define MAX_DIGEST_SIZE 64
30 #define MAX_TAP 8
32 #define MAX_KEYLEN 160
33 #define MAX_IVLEN 32
35 struct hash_testvec {
36 /* only used with keyed hash algorithms */
37 char *key;
38 char *plaintext;
39 char *digest;
40 unsigned char tap[MAX_TAP];
41 unsigned short psize;
42 unsigned char np;
43 unsigned char ksize;
47 * cipher_testvec: structure to describe a cipher test
48 * @key: A pointer to a key used by the test
49 * @klen: The length of @key
50 * @iv: A pointer to the IV used by the test
51 * @input: A pointer to data used as input
52 * @ilen The length of data in @input
53 * @result: A pointer to what the test need to produce
54 * @rlen: The length of data in @result
55 * @fail: If set to one, the test need to fail
56 * @wk: Does the test need CRYPTO_TFM_REQ_WEAK_KEY
57 * ( e.g. test needs to fail due to a weak key )
58 * @np: numbers of SG to distribute data in (from 1 to MAX_TAP)
59 * @tap: How to distribute data in @np SGs
60 * @also_non_np: if set to 1, the test will be also done without
61 * splitting data in @np SGs
62 * @fips_skip: Skip the test vector in FIPS mode
65 struct cipher_testvec {
66 char *key;
67 char *iv;
68 char *iv_out;
69 char *input;
70 char *result;
71 unsigned short tap[MAX_TAP];
72 int np;
73 unsigned char also_non_np;
74 bool fail;
75 unsigned char wk; /* weak key flag */
76 unsigned char klen;
77 unsigned short ilen;
78 unsigned short rlen;
79 bool fips_skip;
82 struct aead_testvec {
83 char *key;
84 char *iv;
85 char *input;
86 char *assoc;
87 char *result;
88 unsigned char tap[MAX_TAP];
89 unsigned char atap[MAX_TAP];
90 int np;
91 int anp;
92 bool fail;
93 unsigned char novrfy; /* ccm dec verification failure expected */
94 unsigned char wk; /* weak key flag */
95 unsigned char klen;
96 unsigned short ilen;
97 unsigned short alen;
98 unsigned short rlen;
101 struct cprng_testvec {
102 char *key;
103 char *dt;
104 char *v;
105 char *result;
106 unsigned char klen;
107 unsigned short dtlen;
108 unsigned short vlen;
109 unsigned short rlen;
110 unsigned short loops;
113 struct drbg_testvec {
114 unsigned char *entropy;
115 size_t entropylen;
116 unsigned char *entpra;
117 unsigned char *entprb;
118 size_t entprlen;
119 unsigned char *addtla;
120 unsigned char *addtlb;
121 size_t addtllen;
122 unsigned char *pers;
123 size_t perslen;
124 unsigned char *expected;
125 size_t expectedlen;
128 struct akcipher_testvec {
129 unsigned char *key;
130 unsigned char *m;
131 unsigned char *c;
132 unsigned int key_len;
133 unsigned int m_size;
134 unsigned int c_size;
135 bool public_key_vec;
138 struct kpp_testvec {
139 unsigned char *secret;
140 unsigned char *b_public;
141 unsigned char *expected_a_public;
142 unsigned char *expected_ss;
143 unsigned short secret_size;
144 unsigned short b_public_size;
145 unsigned short expected_a_public_size;
146 unsigned short expected_ss_size;
149 static char zeroed_string[48];
152 * RSA test vectors. Borrowed from openSSL.
154 #ifdef CONFIG_CRYPTO_FIPS
155 #define RSA_TEST_VECTORS 2
156 #else
157 #define RSA_TEST_VECTORS 5
158 #endif
159 static struct akcipher_testvec rsa_tv_template[] = {
161 #ifndef CONFIG_CRYPTO_FIPS
162 .key =
163 "\x30\x81\x9A" /* sequence of 154 bytes */
164 "\x02\x01\x01" /* version - integer of 1 byte */
165 "\x02\x41" /* modulus - integer of 65 bytes */
166 "\x00\xAA\x36\xAB\xCE\x88\xAC\xFD\xFF\x55\x52\x3C\x7F\xC4\x52\x3F"
167 "\x90\xEF\xA0\x0D\xF3\x77\x4A\x25\x9F\x2E\x62\xB4\xC5\xD9\x9C\xB5"
168 "\xAD\xB3\x00\xA0\x28\x5E\x53\x01\x93\x0E\x0C\x70\xFB\x68\x76\x93"
169 "\x9C\xE6\x16\xCE\x62\x4A\x11\xE0\x08\x6D\x34\x1E\xBC\xAC\xA0\xA1"
170 "\xF5"
171 "\x02\x01\x11" /* public key - integer of 1 byte */
172 "\x02\x40" /* private key - integer of 64 bytes */
173 "\x0A\x03\x37\x48\x62\x64\x87\x69\x5F\x5F\x30\xBC\x38\xB9\x8B\x44"
174 "\xC2\xCD\x2D\xFF\x43\x40\x98\xCD\x20\xD8\xA1\x38\xD0\x90\xBF\x64"
175 "\x79\x7C\x3F\xA7\xA2\xCD\xCB\x3C\xD1\xE0\xBD\xBA\x26\x54\xB4\xF9"
176 "\xDF\x8E\x8A\xE5\x9D\x73\x3D\x9F\x33\xB3\x01\x62\x4A\xFD\x1D\x51"
177 "\x02\x01\x00" /* prime1 - integer of 1 byte */
178 "\x02\x01\x00" /* prime2 - integer of 1 byte */
179 "\x02\x01\x00" /* exponent1 - integer of 1 byte */
180 "\x02\x01\x00" /* exponent2 - integer of 1 byte */
181 "\x02\x01\x00", /* coefficient - integer of 1 byte */
182 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
183 .c =
184 "\x63\x1c\xcd\x7b\xe1\x7e\xe4\xde\xc9\xa8\x89\xa1\x74\xcb\x3c\x63"
185 "\x7d\x24\xec\x83\xc3\x15\xe4\x7f\x73\x05\x34\xd1\xec\x22\xbb\x8a"
186 "\x5e\x32\x39\x6d\xc1\x1d\x7d\x50\x3b\x9f\x7a\xad\xf0\x2e\x25\x53"
187 "\x9f\x6e\xbd\x4c\x55\x84\x0c\x9b\xcf\x1a\x4b\x51\x1e\x9e\x0c\x06",
188 .key_len = 157,
189 .m_size = 8,
190 .c_size = 64,
191 }, {
192 .key =
193 "\x30\x82\x01\x1D" /* sequence of 285 bytes */
194 "\x02\x01\x01" /* version - integer of 1 byte */
195 "\x02\x81\x81" /* modulus - integer of 129 bytes */
196 "\x00\xBB\xF8\x2F\x09\x06\x82\xCE\x9C\x23\x38\xAC\x2B\x9D\xA8\x71"
197 "\xF7\x36\x8D\x07\xEE\xD4\x10\x43\xA4\x40\xD6\xB6\xF0\x74\x54\xF5"
198 "\x1F\xB8\xDF\xBA\xAF\x03\x5C\x02\xAB\x61\xEA\x48\xCE\xEB\x6F\xCD"
199 "\x48\x76\xED\x52\x0D\x60\xE1\xEC\x46\x19\x71\x9D\x8A\x5B\x8B\x80"
200 "\x7F\xAF\xB8\xE0\xA3\xDF\xC7\x37\x72\x3E\xE6\xB4\xB7\xD9\x3A\x25"
201 "\x84\xEE\x6A\x64\x9D\x06\x09\x53\x74\x88\x34\xB2\x45\x45\x98\x39"
202 "\x4E\xE0\xAA\xB1\x2D\x7B\x61\xA5\x1F\x52\x7A\x9A\x41\xF6\xC1\x68"
203 "\x7F\xE2\x53\x72\x98\xCA\x2A\x8F\x59\x46\xF8\xE5\xFD\x09\x1D\xBD"
204 "\xCB"
205 "\x02\x01\x11" /* public key - integer of 1 byte */
206 "\x02\x81\x81" /* private key - integer of 129 bytes */
207 "\x00\xA5\xDA\xFC\x53\x41\xFA\xF2\x89\xC4\xB9\x88\xDB\x30\xC1\xCD"
208 "\xF8\x3F\x31\x25\x1E\x06\x68\xB4\x27\x84\x81\x38\x01\x57\x96\x41"
209 "\xB2\x94\x10\xB3\xC7\x99\x8D\x6B\xC4\x65\x74\x5E\x5C\x39\x26\x69"
210 "\xD6\x87\x0D\xA2\xC0\x82\xA9\x39\xE3\x7F\xDC\xB8\x2E\xC9\x3E\xDA"
211 "\xC9\x7F\xF3\xAD\x59\x50\xAC\xCF\xBC\x11\x1C\x76\xF1\xA9\x52\x94"
212 "\x44\xE5\x6A\xAF\x68\xC5\x6C\x09\x2C\xD3\x8D\xC3\xBE\xF5\xD2\x0A"
213 "\x93\x99\x26\xED\x4F\x74\xA1\x3E\xDD\xFB\xE1\xA1\xCE\xCC\x48\x94"
214 "\xAF\x94\x28\xC2\xB7\xB8\x88\x3F\xE4\x46\x3A\x4B\xC8\x5B\x1C\xB3"
215 "\xC1"
216 "\x02\x01\x00" /* prime1 - integer of 1 byte */
217 "\x02\x01\x00" /* prime2 - integer of 1 byte */
218 "\x02\x01\x00" /* exponent1 - integer of 1 byte */
219 "\x02\x01\x00" /* exponent2 - integer of 1 byte */
220 "\x02\x01\x00", /* coefficient - integer of 1 byte */
221 .key_len = 289,
222 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
223 .c =
224 "\x74\x1b\x55\xac\x47\xb5\x08\x0a\x6e\x2b\x2d\xf7\x94\xb8\x8a\x95"
225 "\xed\xa3\x6b\xc9\x29\xee\xb2\x2c\x80\xc3\x39\x3b\x8c\x62\x45\x72"
226 "\xc2\x7f\x74\x81\x91\x68\x44\x48\x5a\xdc\xa0\x7e\xa7\x0b\x05\x7f"
227 "\x0e\xa0\x6c\xe5\x8f\x19\x4d\xce\x98\x47\x5f\xbd\x5f\xfe\xe5\x34"
228 "\x59\x89\xaf\xf0\xba\x44\xd7\xf1\x1a\x50\x72\xef\x5e\x4a\xb6\xb7"
229 "\x54\x34\xd1\xc4\x83\x09\xdf\x0f\x91\x5f\x7d\x91\x70\x2f\xd4\x13"
230 "\xcc\x5e\xa4\x6c\xc3\x4d\x28\xef\xda\xaf\xec\x14\x92\xfc\xa3\x75"
231 "\x13\xb4\xc1\xa1\x11\xfc\x40\x2f\x4c\x9d\xdf\x16\x76\x11\x20\x6b",
232 .m_size = 8,
233 .c_size = 128,
234 }, {
235 #endif
236 .key =
237 "\x30\x82\x02\x1F" /* sequence of 543 bytes */
238 "\x02\x01\x01" /* version - integer of 1 byte */
239 "\x02\x82\x01\x00" /* modulus - integer of 256 bytes */
240 "\xDB\x10\x1A\xC2\xA3\xF1\xDC\xFF\x13\x6B\xED\x44\xDF\xF0\x02\x6D"
241 "\x13\xC7\x88\xDA\x70\x6B\x54\xF1\xE8\x27\xDC\xC3\x0F\x99\x6A\xFA"
242 "\xC6\x67\xFF\x1D\x1E\x3C\x1D\xC1\xB5\x5F\x6C\xC0\xB2\x07\x3A\x6D"
243 "\x41\xE4\x25\x99\xAC\xFC\xD2\x0F\x02\xD3\xD1\x54\x06\x1A\x51\x77"
244 "\xBD\xB6\xBF\xEA\xA7\x5C\x06\xA9\x5D\x69\x84\x45\xD7\xF5\x05\xBA"
245 "\x47\xF0\x1B\xD7\x2B\x24\xEC\xCB\x9B\x1B\x10\x8D\x81\xA0\xBE\xB1"
246 "\x8C\x33\xE4\x36\xB8\x43\xEB\x19\x2A\x81\x8D\xDE\x81\x0A\x99\x48"
247 "\xB6\xF6\xBC\xCD\x49\x34\x3A\x8F\x26\x94\xE3\x28\x82\x1A\x7C\x8F"
248 "\x59\x9F\x45\xE8\x5D\x1A\x45\x76\x04\x56\x05\xA1\xD0\x1B\x8C\x77"
249 "\x6D\xAF\x53\xFA\x71\xE2\x67\xE0\x9A\xFE\x03\xA9\x85\xD2\xC9\xAA"
250 "\xBA\x2A\xBC\xF4\xA0\x08\xF5\x13\x98\x13\x5D\xF0\xD9\x33\x34\x2A"
251 "\x61\xC3\x89\x55\xF0\xAE\x1A\x9C\x22\xEE\x19\x05\x8D\x32\xFE\xEC"
252 "\x9C\x84\xBA\xB7\xF9\x6C\x3A\x4F\x07\xFC\x45\xEB\x12\xE5\x7B\xFD"
253 "\x55\xE6\x29\x69\xD1\xC2\xE8\xB9\x78\x59\xF6\x79\x10\xC6\x4E\xEB"
254 "\x6A\x5E\xB9\x9A\xC7\xC4\x5B\x63\xDA\xA3\x3F\x5E\x92\x7A\x81\x5E"
255 "\xD6\xB0\xE2\x62\x8F\x74\x26\xC2\x0C\xD3\x9A\x17\x47\xE6\x8E\xAB"
256 "\x02\x03\x01\x00\x01" /* public key - integer of 3 bytes */
257 "\x02\x82\x01\x00" /* private key - integer of 256 bytes */
258 "\x52\x41\xF4\xDA\x7B\xB7\x59\x55\xCA\xD4\x2F\x0F\x3A\xCB\xA4\x0D"
259 "\x93\x6C\xCC\x9D\xC1\xB2\xFB\xFD\xAE\x40\x31\xAC\x69\x52\x21\x92"
260 "\xB3\x27\xDF\xEA\xEE\x2C\x82\xBB\xF7\x40\x32\xD5\x14\xC4\x94\x12"
261 "\xEC\xB8\x1F\xCA\x59\xE3\xC1\x78\xF3\x85\xD8\x47\xA5\xD7\x02\x1A"
262 "\x65\x79\x97\x0D\x24\xF4\xF0\x67\x6E\x75\x2D\xBF\x10\x3D\xA8\x7D"
263 "\xEF\x7F\x60\xE4\xE6\x05\x82\x89\x5D\xDF\xC6\xD2\x6C\x07\x91\x33"
264 "\x98\x42\xF0\x02\x00\x25\x38\xC5\x85\x69\x8A\x7D\x2F\x95\x6C\x43"
265 "\x9A\xB8\x81\xE2\xD0\x07\x35\xAA\x05\x41\xC9\x1E\xAF\xE4\x04\x3B"
266 "\x19\xB8\x73\xA2\xAC\x4B\x1E\x66\x48\xD8\x72\x1F\xAC\xF6\xCB\xBC"
267 "\x90\x09\xCA\xEC\x0C\xDC\xF9\x2C\xD7\xEB\xAE\xA3\xA4\x47\xD7\x33"
268 "\x2F\x8A\xCA\xBC\x5E\xF0\x77\xE4\x97\x98\x97\xC7\x10\x91\x7D\x2A"
269 "\xA6\xFF\x46\x83\x97\xDE\xE9\xE2\x17\x03\x06\x14\xE2\xD7\xB1\x1D"
270 "\x77\xAF\x51\x27\x5B\x5E\x69\xB8\x81\xE6\x11\xC5\x43\x23\x81\x04"
271 "\x62\xFF\xE9\x46\xB8\xD8\x44\xDB\xA5\xCC\x31\x54\x34\xCE\x3E\x82"
272 "\xD6\xBF\x7A\x0B\x64\x21\x6D\x88\x7E\x5B\x45\x12\x1E\x63\x8D\x49"
273 "\xA7\x1D\xD9\x1E\x06\xCD\xE8\xBA\x2C\x8C\x69\x32\xEA\xBE\x60\x71"
274 "\x02\x01\x00" /* prime1 - integer of 1 byte */
275 "\x02\x01\x00" /* prime2 - integer of 1 byte */
276 "\x02\x01\x00" /* exponent1 - integer of 1 byte */
277 "\x02\x01\x00" /* exponent2 - integer of 1 byte */
278 "\x02\x01\x00", /* coefficient - integer of 1 byte */
279 .key_len = 547,
280 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
281 .c =
282 "\xb2\x97\x76\xb4\xae\x3e\x38\x3c\x7e\x64\x1f\xcc\xa2\x7f\xf6\xbe"
283 "\xcf\x49\xbc\x48\xd3\x6c\x8f\x0a\x0e\xc1\x73\xbd\x7b\x55\x79\x36"
284 "\x0e\xa1\x87\x88\xb9\x2c\x90\xa6\x53\x5e\xe9\xef\xc4\xe2\x4d\xdd"
285 "\xf7\xa6\x69\x82\x3f\x56\xa4\x7b\xfb\x62\xe0\xae\xb8\xd3\x04\xb3"
286 "\xac\x5a\x15\x2a\xe3\x19\x9b\x03\x9a\x0b\x41\xda\x64\xec\x0a\x69"
287 "\xfc\xf2\x10\x92\xf3\xc1\xbf\x84\x7f\xfd\x2c\xae\xc8\xb5\xf6\x41"
288 "\x70\xc5\x47\x03\x8a\xf8\xff\x6f\x3f\xd2\x6f\x09\xb4\x22\xf3\x30"
289 "\xbe\xa9\x85\xcb\x9c\x8d\xf9\x8f\xeb\x32\x91\xa2\x25\x84\x8f\xf5"
290 "\xdc\xc7\x06\x9c\x2d\xe5\x11\x2c\x09\x09\x87\x09\xa9\xf6\x33\x73"
291 "\x90\xf1\x60\xf2\x65\xdd\x30\xa5\x66\xce\x62\x7b\xd0\xf8\x2d\x3d"
292 "\x19\x82\x77\xe3\x0a\x5f\x75\x2f\x8e\xb1\xe5\xe8\x91\x35\x1b\x3b"
293 "\x33\xb7\x66\x92\xd1\xf2\x8e\x6f\xe5\x75\x0c\xad\x36\xfb\x4e\xd0"
294 "\x66\x61\xbd\x49\xfe\xf4\x1a\xa2\x2b\x49\xfe\x03\x4c\x74\x47\x8d"
295 "\x9a\x66\xb2\x49\x46\x4d\x77\xea\x33\x4d\x6b\x3c\xb4\x49\x4a\xc6"
296 "\x7d\x3d\xb5\xb9\x56\x41\x15\x67\x0f\x94\x3c\x93\x65\x27\xe0\x21"
297 "\x5d\x59\xc3\x62\xd5\xa6\xda\x38\x26\x22\x5e\x34\x1c\x94\xaf\x98",
298 .m_size = 8,
299 .c_size = 256,
300 }, {
301 .key =
302 "\x30\x82\x01\x09" /* sequence of 265 bytes */
303 "\x02\x82\x01\x00" /* modulus - integer of 256 bytes */
304 "\xDB\x10\x1A\xC2\xA3\xF1\xDC\xFF\x13\x6B\xED\x44\xDF\xF0\x02\x6D"
305 "\x13\xC7\x88\xDA\x70\x6B\x54\xF1\xE8\x27\xDC\xC3\x0F\x99\x6A\xFA"
306 "\xC6\x67\xFF\x1D\x1E\x3C\x1D\xC1\xB5\x5F\x6C\xC0\xB2\x07\x3A\x6D"
307 "\x41\xE4\x25\x99\xAC\xFC\xD2\x0F\x02\xD3\xD1\x54\x06\x1A\x51\x77"
308 "\xBD\xB6\xBF\xEA\xA7\x5C\x06\xA9\x5D\x69\x84\x45\xD7\xF5\x05\xBA"
309 "\x47\xF0\x1B\xD7\x2B\x24\xEC\xCB\x9B\x1B\x10\x8D\x81\xA0\xBE\xB1"
310 "\x8C\x33\xE4\x36\xB8\x43\xEB\x19\x2A\x81\x8D\xDE\x81\x0A\x99\x48"
311 "\xB6\xF6\xBC\xCD\x49\x34\x3A\x8F\x26\x94\xE3\x28\x82\x1A\x7C\x8F"
312 "\x59\x9F\x45\xE8\x5D\x1A\x45\x76\x04\x56\x05\xA1\xD0\x1B\x8C\x77"
313 "\x6D\xAF\x53\xFA\x71\xE2\x67\xE0\x9A\xFE\x03\xA9\x85\xD2\xC9\xAA"
314 "\xBA\x2A\xBC\xF4\xA0\x08\xF5\x13\x98\x13\x5D\xF0\xD9\x33\x34\x2A"
315 "\x61\xC3\x89\x55\xF0\xAE\x1A\x9C\x22\xEE\x19\x05\x8D\x32\xFE\xEC"
316 "\x9C\x84\xBA\xB7\xF9\x6C\x3A\x4F\x07\xFC\x45\xEB\x12\xE5\x7B\xFD"
317 "\x55\xE6\x29\x69\xD1\xC2\xE8\xB9\x78\x59\xF6\x79\x10\xC6\x4E\xEB"
318 "\x6A\x5E\xB9\x9A\xC7\xC4\x5B\x63\xDA\xA3\x3F\x5E\x92\x7A\x81\x5E"
319 "\xD6\xB0\xE2\x62\x8F\x74\x26\xC2\x0C\xD3\x9A\x17\x47\xE6\x8E\xAB"
320 "\x02\x03\x01\x00\x01", /* public key - integer of 3 bytes */
321 .key_len = 269,
322 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
323 .c =
324 "\xb2\x97\x76\xb4\xae\x3e\x38\x3c\x7e\x64\x1f\xcc\xa2\x7f\xf6\xbe"
325 "\xcf\x49\xbc\x48\xd3\x6c\x8f\x0a\x0e\xc1\x73\xbd\x7b\x55\x79\x36"
326 "\x0e\xa1\x87\x88\xb9\x2c\x90\xa6\x53\x5e\xe9\xef\xc4\xe2\x4d\xdd"
327 "\xf7\xa6\x69\x82\x3f\x56\xa4\x7b\xfb\x62\xe0\xae\xb8\xd3\x04\xb3"
328 "\xac\x5a\x15\x2a\xe3\x19\x9b\x03\x9a\x0b\x41\xda\x64\xec\x0a\x69"
329 "\xfc\xf2\x10\x92\xf3\xc1\xbf\x84\x7f\xfd\x2c\xae\xc8\xb5\xf6\x41"
330 "\x70\xc5\x47\x03\x8a\xf8\xff\x6f\x3f\xd2\x6f\x09\xb4\x22\xf3\x30"
331 "\xbe\xa9\x85\xcb\x9c\x8d\xf9\x8f\xeb\x32\x91\xa2\x25\x84\x8f\xf5"
332 "\xdc\xc7\x06\x9c\x2d\xe5\x11\x2c\x09\x09\x87\x09\xa9\xf6\x33\x73"
333 "\x90\xf1\x60\xf2\x65\xdd\x30\xa5\x66\xce\x62\x7b\xd0\xf8\x2d\x3d"
334 "\x19\x82\x77\xe3\x0a\x5f\x75\x2f\x8e\xb1\xe5\xe8\x91\x35\x1b\x3b"
335 "\x33\xb7\x66\x92\xd1\xf2\x8e\x6f\xe5\x75\x0c\xad\x36\xfb\x4e\xd0"
336 "\x66\x61\xbd\x49\xfe\xf4\x1a\xa2\x2b\x49\xfe\x03\x4c\x74\x47\x8d"
337 "\x9a\x66\xb2\x49\x46\x4d\x77\xea\x33\x4d\x6b\x3c\xb4\x49\x4a\xc6"
338 "\x7d\x3d\xb5\xb9\x56\x41\x15\x67\x0f\x94\x3c\x93\x65\x27\xe0\x21"
339 "\x5d\x59\xc3\x62\xd5\xa6\xda\x38\x26\x22\x5e\x34\x1c\x94\xaf\x98",
340 .m_size = 8,
341 .c_size = 256,
342 .public_key_vec = true,
343 }, {
344 .key =
345 "\x30\x82\x09\x29" /* sequence of 2345 bytes */
346 "\x02\x01\x00" /* version integer of 1 byte */
347 "\x02\x82\x02\x01" /* modulus - integer of 513 bytes */
348 "\x00\xC3\x8B\x55\x7B\x73\x4D\xFF\xE9\x9B\xC6\xDC\x67\x3C\xB4\x8E"
349 "\xA0\x86\xED\xF2\xB9\x50\x5C\x54\x5C\xBA\xE4\xA1\xB2\xA7\xAE\x2F"
350 "\x1B\x7D\xF1\xFB\xAC\x79\xC5\xDF\x1A\x00\xC9\xB2\xC1\x61\x25\x33"
351 "\xE6\x9C\xE9\xCF\xD6\x27\xC4\x4E\x44\x30\x44\x5E\x08\xA1\x87\x52"
352 "\xCC\x6B\x97\x70\x8C\xBC\xA5\x06\x31\x0C\xD4\x2F\xD5\x7D\x26\x24"
353 "\xA2\xE2\xAC\x78\xF4\x53\x14\xCE\xF7\x19\x2E\xD7\xF7\xE6\x0C\xB9"
354 "\x56\x7F\x0B\xF1\xB1\xE2\x43\x70\xBD\x86\x1D\xA1\xCC\x2B\x19\x08"
355 "\x76\xEF\x91\xAC\xBF\x20\x24\x0D\x38\xC0\x89\xB8\x9A\x70\xB3\x64"
356 "\xD9\x8F\x80\x41\x10\x5B\x9F\xB1\xCB\x76\x43\x00\x21\x25\x36\xD4"
357 "\x19\xFC\x55\x95\x10\xE4\x26\x74\x98\x2C\xD9\xBD\x0B\x2B\x04\xC2"
358 "\xAC\x82\x38\xB4\xDD\x4C\x04\x7E\x51\x36\x40\x1E\x0B\xC4\x7C\x25"
359 "\xDD\x4B\xB2\xE7\x20\x0A\x57\xF9\xB4\x94\xC3\x08\x33\x22\x6F\x8B"
360 "\x48\xDB\x03\x68\x5A\x5B\xBA\xAE\xF3\xAD\xCF\xC3\x6D\xBA\xF1\x28"
361 "\x67\x7E\x6C\x79\x07\xDE\xFC\xED\xE7\x96\xE3\x6C\xE0\x2C\x87\xF8"
362 "\x02\x01\x28\x38\x43\x21\x53\x84\x69\x75\x78\x15\x7E\xEE\xD2\x1B"
363 "\xB9\x23\x40\xA8\x86\x1E\x38\x83\xB2\x73\x1D\x53\xFB\x9E\x2A\x8A"
364 "\xB2\x75\x35\x01\xC3\xC3\xC4\x94\xE8\x84\x86\x64\x81\xF4\x42\xAA"
365 "\x3C\x0E\xD6\x4F\xBC\x0A\x09\x2D\xE7\x1B\xD4\x10\xA8\x54\xEA\x89"
366 "\x84\x8A\xCB\xF7\x5A\x3C\xCA\x76\x08\x29\x62\xB4\x6A\x22\xDF\x14"
367 "\x95\x71\xFD\xB6\x86\x39\xB8\x8B\xF8\x91\x7F\x38\xAA\x14\xCD\xE5"
368 "\xF5\x1D\xC2\x6D\x53\x69\x52\x84\x7F\xA3\x1A\x5E\x26\x04\x83\x06"
369 "\x73\x52\x56\xCF\x76\x26\xC9\xDD\x75\xD7\xFC\xF4\x69\xD8\x7B\x55"
370 "\xB7\x68\x13\x53\xB9\xE7\x89\xC3\xE8\xD6\x6E\xA7\x6D\xEA\x81\xFD"
371 "\xC4\xB7\x05\x5A\xB7\x41\x0A\x23\x8E\x03\x8A\x1C\xAE\xD3\x1E\xCE"
372 "\xE3\x5E\xFC\x19\x4A\xEE\x61\x9B\x8E\xE5\xE5\xDD\x85\xF9\x41\xEC"
373 "\x14\x53\x92\xF7\xDD\x06\x85\x02\x91\xE3\xEB\x6C\x43\x03\xB1\x36"
374 "\x7B\x89\x5A\xA8\xEB\xFC\xD5\xA8\x35\xDC\x81\xD9\x5C\xBD\xCA\xDC"
375 "\x9B\x98\x0B\x06\x5D\x0C\x5B\xEE\xF3\xD5\xCC\x57\xC9\x71\x2F\x90"
376 "\x3B\x3C\xF0\x8E\x4E\x35\x48\xAE\x63\x74\xA9\xFC\x72\x75\x8E\x34"
377 "\xA8\xF2\x1F\xEA\xDF\x3A\x37\x2D\xE5\x39\x39\xF8\x57\x58\x3C\x04"
378 "\xFE\x87\x06\x98\xBC\x7B\xD3\x21\x36\x60\x25\x54\xA7\x3D\xFA\x91"
379 "\xCC\xA8\x0B\x92\x8E\xB4\xF7\x06\xFF\x1E\x95\xCB\x07\x76\x97\x3B"
380 "\x9D"
381 "\x02\x03\x01\x00\x01" /* public key integer of 3 bytes */
382 "\x02\x82\x02\x00" /* private key integer of 512 bytes */
383 "\x74\xA9\xE0\x6A\x32\xB4\xCA\x85\xD9\x86\x9F\x60\x88\x7B\x40\xCC"
384 "\xCD\x33\x91\xA8\xB6\x25\x1F\xBF\xE3\x51\x1C\x97\xB6\x2A\xD9\xB8"
385 "\x11\x40\x19\xE3\x21\x13\xC8\xB3\x7E\xDC\xD7\x65\x40\x4C\x2D\xD6"
386 "\xDC\xAF\x32\x6C\x96\x75\x2C\x2C\xCA\x8F\x3F\x7A\xEE\xC4\x09\xC6"
387 "\x24\x3A\xC9\xCF\x6D\x8D\x17\x50\x94\x52\xD3\xE7\x0F\x2F\x7E\x94"
388 "\x1F\xA0\xBE\xD9\x25\xE8\x38\x42\x7C\x27\xD2\x79\xF8\x2A\x87\x38"
389 "\xEF\xBB\x74\x8B\xA8\x6E\x8C\x08\xC6\xC7\x4F\x0C\xBC\x79\xC6\xEF"
390 "\x0E\xA7\x5E\xE4\xF8\x8C\x09\xC7\x5E\x37\xCC\x87\x77\xCD\xCF\xD1"
391 "\x6D\x28\x1B\xA9\x62\xC0\xB8\x16\xA7\x8B\xF9\xBB\xCC\xB4\x15\x7F"
392 "\x1B\x69\x03\xF2\x7B\xEB\xE5\x8C\x14\xD6\x23\x4F\x52\x6F\x18\xA6"
393 "\x4B\x5B\x01\xAD\x35\xF9\x48\x53\xB3\x86\x35\x66\xD7\xE7\x29\xC0"
394 "\x09\xB5\xC6\xE6\xFA\xC4\xDA\x19\xBE\xD7\x4D\x41\x14\xBE\x6F\xDF"
395 "\x1B\xAB\xC0\xCA\x88\x07\xAC\xF1\x7D\x35\x83\x67\x28\x2D\x50\xE9"
396 "\xCE\x27\x71\x5E\x1C\xCF\xD2\x30\x65\x79\x72\x2F\x9C\xE1\xD2\x39"
397 "\x7F\xEF\x3B\x01\xF2\x14\x1D\xDF\xBD\x51\xD3\xA1\x53\x62\xCF\x5F"
398 "\x79\x84\xCE\x06\x96\x69\x29\x49\x82\x1C\x71\x4A\xA1\x66\xC8\x2F"
399 "\xFD\x7B\x96\x7B\xFC\xC4\x26\x58\xC4\xFC\x7C\xAF\xB5\xE8\x95\x83"
400 "\x87\xCB\x46\xDE\x97\xA7\xB3\xA2\x54\x5B\xD7\xAF\xAB\xEB\xC8\xF3"
401 "\x55\x9D\x48\x2B\x30\x9C\xDC\x26\x4B\xC2\x89\x45\x13\xB2\x01\x9A"
402 "\xA4\x65\xC3\xEC\x24\x2D\x26\x97\xEB\x80\x8A\x9D\x03\xBC\x59\x66"
403 "\x9E\xE2\xBB\xBB\x63\x19\x64\x93\x11\x7B\x25\x65\x30\xCD\x5B\x4B"
404 "\x2C\xFF\xDC\x2D\x30\x87\x1F\x3C\x88\x07\xD0\xFC\x48\xCC\x05\x8A"
405 "\xA2\xC8\x39\x3E\xD5\x51\xBC\x0A\xBE\x6D\xA8\xA0\xF6\x88\x06\x79"
406 "\x13\xFF\x1B\x45\xDA\x54\xC9\x24\x25\x8A\x75\x0A\x26\xD1\x69\x81"
407 "\x14\x14\xD1\x79\x7D\x8E\x76\xF2\xE0\xEB\xDD\x0F\xDE\xC2\xEC\x80"
408 "\xD7\xDC\x16\x99\x92\xBE\xCB\x40\x0C\xCE\x7C\x3B\x46\xA2\x5B\x5D"
409 "\x0C\x45\xEB\xE1\x00\xDE\x72\x50\xB1\xA6\x0B\x76\xC5\x8D\xFC\x82"
410 "\x38\x6D\x99\x14\x1D\x1A\x4A\xD3\x7C\x53\xB8\x12\x46\xA2\x30\x38"
411 "\x82\xF4\x96\x6E\x8C\xCE\x47\x0D\xAF\x0A\x3B\x45\xB7\x43\x95\x43"
412 "\x9E\x02\x2C\x44\x07\x6D\x1F\x3C\x66\x89\x09\xB6\x1F\x06\x30\xCC"
413 "\xAD\xCE\x7D\x9A\xDE\x3E\xFB\x6C\xE4\x58\x43\xD2\x4F\xA5\x9E\x5E"
414 "\xA7\x7B\xAE\x3A\xF6\x7E\xD9\xDB\xD3\xF5\xC5\x41\xAF\xE6\x9C\x91"
415 "\x02\x82\x01\x01" /* prime1 - integer of 257 bytes */
416 "\x00\xE0\xA6\x6C\xF0\xA2\xF8\x81\x85\x36\x43\xD0\x13\x0B\x33\x8B"
417 "\x8F\x78\x3D\xAC\xC7\x5E\x46\x6A\x7F\x05\xAE\x3E\x26\x0A\xA6\xD0"
418 "\x51\xF3\xC8\x61\xF5\x77\x22\x48\x10\x87\x4C\xD5\xA4\xD5\xAE\x2D"
419 "\x4E\x7A\xFE\x1C\x31\xE7\x6B\xFF\xA4\x69\x20\xF9\x2A\x0B\x99\xBE"
420 "\x7C\x32\x68\xAD\xB0\xC6\x94\x81\x41\x75\xDC\x06\x78\x0A\xB4\xCF"
421 "\xCD\x1B\x2D\x31\xE4\x7B\xEA\xA8\x35\x99\x75\x57\xC6\x0E\xF6\x78"
422 "\x4F\xA0\x92\x4A\x00\x1B\xE7\x96\xF2\x5B\xFD\x2C\x0A\x0A\x13\x81"
423 "\xAF\xCB\x59\x87\x31\xD9\x83\x65\xF2\x22\x48\xD0\x03\x67\x39\xF6"
424 "\xFF\xA8\x36\x07\x3A\x68\xE3\x7B\xA9\x64\xFD\x9C\xF7\xB1\x3D\xBF"
425 "\x26\x5C\xCC\x7A\xFC\xA2\x8F\x51\xD1\xE1\xE2\x3C\xEC\x06\x75\x7C"
426 "\x34\xF9\xA9\x33\x70\x11\xAD\x5A\xDC\x5F\xCF\x50\xF6\x23\x2F\x39"
427 "\xAC\x92\x48\x53\x4D\x01\x96\x3C\xD8\xDC\x1F\x23\x23\x78\x80\x34"
428 "\x54\x14\x76\x8B\xB6\xBB\xFB\x88\x78\x31\x59\x28\xD2\xB1\x75\x17"
429 "\x88\x04\x4A\x78\x62\x18\x2E\xF5\xFB\x9B\xEF\x15\xD8\x16\x47\xC6"
430 "\x42\xB1\x02\xDA\x9E\xE3\x84\x90\xB4\x2D\xC3\xCE\x13\xC9\x12\x7D"
431 "\x3E\xCD\x39\x39\xC9\xAD\xA1\x1A\xE6\xD5\xAD\x5A\x09\x4D\x1B\x0C"
432 "\xAB"
433 "\x02\x82\x01\x01" /* prime 2 - integer of 257 bytes */
434 "\x00\xDE\xD5\x1B\xF6\xCD\x83\xB1\xC6\x47\x7E\xB9\xC0\x6B\xA9\xB8"
435 "\x02\xF3\xAE\x40\x5D\xFC\xD3\xE5\x4E\xF1\xE3\x39\x04\x52\x84\x89"
436 "\x40\x37\xBB\xC2\xCD\x7F\x71\x77\x17\xDF\x6A\x4C\x31\x24\x7F\xB9"
437 "\x7E\x7F\xC8\x43\x4A\x3C\xEB\x8D\x1B\x7F\x21\x51\x67\x45\x8F\xA0"
438 "\x36\x29\x3A\x18\x45\xA5\x32\xEC\x74\x88\x3C\x98\x5D\x67\x3B\xD7"
439 "\x51\x1F\xE9\xAE\x09\x01\xDE\xDE\x7C\xFB\x60\xD1\xA5\x6C\xE9\x6A"
440 "\x93\x04\x02\x3A\xBB\x67\x02\xB9\xFD\x23\xF0\x02\x2B\x49\x85\xC9"
441 "\x5B\xE7\x4B\xDF\xA3\xF4\xEE\x59\x4C\x45\xEF\x8B\xC1\x6B\xDE\xDE"
442 "\xBC\x1A\xFC\xD2\x76\x3F\x33\x74\xA9\x8E\xA3\x7E\x0C\xC6\xCE\x70"
443 "\xA1\x5B\xA6\x77\xEA\x76\xEB\x18\xCE\xB9\xD7\x78\x8D\xAE\x06\xBB"
444 "\xD3\x1F\x16\x0D\x05\xAB\x4F\xC6\x52\xC8\x6B\x36\x51\x7D\x1D\x27"
445 "\xAF\x88\x9A\x6F\xCC\x25\x2E\x74\x06\x72\xCE\x9E\xDB\xE0\x9D\x30"
446 "\xEF\x55\xA5\x58\x21\xA7\x42\x12\x2C\x2C\x23\x87\xC1\x0F\xE8\x51"
447 "\xDA\x53\xDA\xFC\x05\x36\xDF\x08\x0E\x08\x36\xBE\x5C\x86\x9E\xCA"
448 "\x68\x90\x33\x12\x0B\x14\x82\xAB\x90\x1A\xD4\x49\x32\x9C\xBD\xAA"
449 "\xAB\x4E\x38\xF1\xEE\xED\x3D\x3F\xE8\xBD\x48\x56\xA6\x64\xEE\xC8"
450 "\xD7"
451 "\x02\x82\x01\x01" /* exponent 1 - integer of 257 bytes */
452 "\x00\x96\x5E\x6F\x8F\x06\xD6\xE6\x03\x1F\x96\x76\x81\x38\xBF\x30"
453 "\xCC\x40\x84\xAF\xD0\xE7\x06\xA5\x24\x0E\xCE\x59\xA5\x26\xFE\x0F"
454 "\x74\xBB\x83\xC6\x26\x02\xAF\x3C\xA3\x6B\x9C\xFF\x68\x0C\xEB\x40"
455 "\x42\x46\xCB\x2E\x5E\x2C\xF4\x3A\x32\x77\x77\xED\xAF\xBA\x02\x17"
456 "\xE1\x93\xF0\x43\x4A\x8F\x31\x39\xEF\x72\x0F\x6B\x79\x10\x59\x84"
457 "\xBA\x5A\x55\x7F\x0E\xDB\xEE\xEE\xD6\xA9\xB8\x44\x9F\x3A\xC6\xB9"
458 "\x33\x3B\x5C\x90\x11\xD0\x9B\xCC\x8A\xBF\x0E\x10\x5B\x4B\xF1\x50"
459 "\x9E\x35\xB3\xE0\x6D\x7A\x95\x9C\x38\x5D\xC0\x75\x13\xC2\x15\xA7"
460 "\x81\xEA\xBA\xF7\x4D\x9E\x85\x9D\xF1\x7D\xBA\xD0\x45\x6F\x2A\xD0"
461 "\x76\xC2\x28\xD0\xAD\xA7\xB5\xDC\xE3\x6A\x99\xFF\x83\x50\xB3\x75"
462 "\x07\x14\x91\xAF\xEF\x74\xB5\x9F\x9A\xE0\xBA\xA9\x0B\x87\xF3\x85"
463 "\x5C\x40\xB2\x0E\xA7\xFD\xC6\xED\x45\x8E\xD9\x7C\xB0\xB2\x68\xC6"
464 "\x1D\xFD\x70\x78\x06\x41\x7F\x95\x12\x36\x9D\xE2\x58\x5D\x15\xEE"
465 "\x41\x49\xF5\xFA\xEC\x56\x19\xA0\xE6\xE0\xB2\x40\xE1\xD9\xD0\x03"
466 "\x22\x02\xCF\xD1\x3C\x07\x38\x65\x8F\x65\x0E\xAA\x32\xCE\x25\x05"
467 "\x16\x73\x51\xB9\x9F\x88\x0B\xCD\x30\xF3\x97\xCC\x2B\x6B\xA4\x0E"
468 "\x6F"
469 "\x02\x82\x01\x00" /* exponent 2 - integer of 256 bytes */
470 "\x2A\x5F\x3F\xB8\x08\x90\x58\x47\xA9\xE4\xB1\x11\xA3\xE7\x5B\xF4"
471 "\x43\xBE\x08\xC3\x56\x86\x3C\x7E\x6C\x84\x96\x9C\xF9\xCB\xF6\x05"
472 "\x5E\x13\xB8\x11\x37\x80\xAD\xF2\xBE\x2B\x0A\x5D\xF5\xE0\xCB\xB7"
473 "\x00\x39\x66\x82\x41\x5F\x51\x2F\xBF\x56\xE8\x91\xC8\xAA\x6C\xFE"
474 "\x9F\x8C\x4A\x7D\x43\xD2\x91\x1F\xFF\x9F\xF6\x21\x1C\xB6\x46\x55"
475 "\x48\xCA\x38\xAB\xC1\xCD\x4D\x65\x5A\xAF\xA8\x6D\xDA\x6D\xF0\x34"
476 "\x10\x79\x14\x0D\xFA\xA2\x8C\x17\x54\xB4\x18\xD5\x7E\x5F\x90\x50"
477 "\x87\x84\xE7\xFB\xD7\x61\x53\x5D\xAB\x96\xC7\x6E\x7A\x42\xA0\xFC"
478 "\x07\xED\xB7\x5F\x80\xD9\x19\xFF\xFB\xFD\x9E\xC4\x73\x31\x62\x3D"
479 "\x6C\x9E\x15\x03\x62\xA5\x85\xCC\x19\x8E\x9D\x7F\xE3\x6D\xA8\x5D"
480 "\x96\xF5\xAC\x78\x3D\x81\x27\xE7\x29\xF1\x29\x1D\x09\xBB\x77\x86"
481 "\x6B\x65\x62\x88\xE1\x31\x1A\x22\xF7\xC5\xCE\x73\x65\x1C\xBE\xE7"
482 "\x63\xD3\xD3\x14\x63\x27\xAF\x28\xF3\x23\xB6\x76\xC1\xBD\x9D\x82"
483 "\xF4\x9B\x19\x7D\x2C\x57\xF0\xC2\x2A\x51\xAE\x95\x0D\x8C\x38\x54"
484 "\xF5\xC6\xA0\x51\xB7\x0E\xB9\xEC\xE7\x0D\x22\xF6\x1A\xD3\xFE\x16"
485 "\x21\x03\xB7\x0D\x85\xD3\x35\xC9\xDD\xE4\x59\x85\xBE\x7F\xA1\x75"
486 "\x02\x82\x01\x01" /* coefficient - integer of 257 bytes */
487 "\x00\xB9\x48\xD2\x54\x2F\x19\x54\x64\xAE\x62\x80\x61\x89\x80\xB4"
488 "\x48\x0B\x8D\x7E\x1B\x0F\x50\x08\x82\x3F\xED\x75\x84\xB7\x13\xE4"
489 "\xF8\x8D\xA8\xBB\x54\x21\x4C\x5A\x54\x07\x16\x4B\xB4\xA4\x9E\x30"
490 "\xBF\x7A\x30\x1B\x39\x60\xA3\x21\x53\xFB\xB0\xDC\x0F\x7C\x2C\xFB"
491 "\xAA\x95\x7D\x51\x39\x28\x33\x1F\x25\x31\x53\xF5\xD2\x64\x2B\xF2"
492 "\x1E\xB3\xC0\x6A\x0B\xC9\xA4\x42\x64\x5C\xFB\x15\xA3\xE8\x4C\x3A"
493 "\x9C\x3C\xBE\xA3\x39\x83\x23\xE3\x6D\x18\xCC\xC2\xDC\x63\x8D\xBA"
494 "\x98\xE0\xE0\x31\x4A\x2B\x37\x9C\x4D\x6B\xF3\x9F\x51\xE4\x43\x5C"
495 "\x83\x5F\xBF\x5C\xFE\x92\x45\x01\xAF\xF5\xC2\xF4\xB7\x56\x93\xA5"
496 "\xF4\xAA\x67\x3C\x48\x37\xBD\x9A\x3C\xFE\xA5\x9A\xB0\xD1\x6B\x85"
497 "\xDD\x81\xD4\xFA\xAD\x31\x83\xA8\x22\x9B\xFD\xB4\x61\xDC\x7A\x51"
498 "\x59\x62\x10\x1B\x7E\x44\xA3\xFE\x90\x51\x5A\x3E\x02\x87\xAD\xFA"
499 "\xDD\x0B\x1F\x3D\x35\xAF\xEE\x13\x85\x51\xA7\x42\xC0\xEE\x9E\x20"
500 "\xE9\xD0\x29\xB2\xE4\x21\xE4\x6D\x62\xB9\xF4\x48\x4A\xD8\x46\x8E"
501 "\x61\xA6\x2C\x5D\xDF\x8F\x97\x2B\x3A\x75\x1D\x83\x17\x6F\xC6\xB0"
502 "\xDE\xFC\x14\x25\x06\x5A\x60\xBB\xB8\x21\x89\xD1\xEF\x57\xF1\x71"
503 "\x3D",
504 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
505 .c =
506 "\x5c\xce\x9c\xd7\x9a\x9e\xa1\xfe\x7a\x82\x3c\x68\x27\x98\xe3\x5d"
507 "\xd5\xd7\x07\x29\xf5\xfb\xc3\x1a\x7f\x63\x1e\x62\x31\x3b\x19\x87"
508 "\x79\x4f\xec\x7b\xf3\xcb\xea\x9b\x95\x52\x3a\x40\xe5\x87\x7b\x72"
509 "\xd1\x72\xc9\xfb\x54\x63\xd8\xc9\xd7\x2c\xfc\x7b\xc3\x14\x1e\xbc"
510 "\x18\xb4\x34\xa1\xbf\x14\xb1\x37\x31\x6e\xf0\x1b\x35\x19\x54\x07"
511 "\xf7\x99\xec\x3e\x63\xe2\xcd\x61\x28\x65\xc3\xcd\xb1\x38\x36\xa5"
512 "\xb2\xd7\xb0\xdc\x1f\xf5\xef\x19\xc7\x53\x32\x2d\x1c\x26\xda\xe4"
513 "\x0d\xd6\x90\x7e\x28\xd8\xdc\xe4\x61\x05\xd2\x25\x90\x01\xd3\x96"
514 "\x6d\xa6\xcf\x58\x20\xbb\x03\xf4\x01\xbc\x79\xb9\x18\xd8\xb8\xba"
515 "\xbd\x93\xfc\xf2\x62\x5d\x8c\x66\x1e\x0e\x84\x59\x93\xdd\xe2\x93"
516 "\xa2\x62\x7d\x08\x82\x7a\xdd\xfc\xb8\xbc\xc5\x4f\x9c\x4e\xbf\xb4"
517 "\xfc\xf4\xc5\x01\xe8\x00\x70\x4d\x28\x26\xcc\x2e\xfe\x0e\x58\x41"
518 "\x8b\xec\xaf\x7c\x4b\x54\xd0\xa0\x64\xf9\x32\xf4\x2e\x47\x65\x0a"
519 "\x67\x88\x39\x3a\xdb\xb2\xdb\x7b\xb5\xf6\x17\xa8\xd9\xc6\x5e\x28"
520 "\x13\x82\x8a\x99\xdb\x60\x08\xa5\x23\x37\xfa\x88\x90\x31\xc8\x9d"
521 "\x8f\xec\xfb\x85\x9f\xb1\xce\xa6\x24\x50\x46\x44\x47\xcb\x65\xd1"
522 "\xdf\xc0\xb1\x6c\x90\x1f\x99\x8e\x4d\xd5\x9e\x31\x07\x66\x87\xdf"
523 "\x01\xaa\x56\x3c\x71\xe0\x2b\x6f\x67\x3b\x23\xed\xc2\xbd\x03\x30"
524 "\x79\x76\x02\x10\x10\x98\x85\x8a\xff\xfd\x0b\xda\xa5\xd9\x32\x48"
525 "\x02\xa0\x0b\xb9\x2a\x8a\x18\xca\xc6\x8f\x3f\xbb\x16\xb2\xaa\x98"
526 "\x27\xe3\x60\x43\xed\x15\x70\xd4\x57\x15\xfe\x19\xd4\x9b\x13\x78"
527 "\x8a\xf7\x21\xf1\xa2\xa2\x2d\xb3\x09\xcf\x44\x91\x6e\x08\x3a\x30"
528 "\x81\x3e\x90\x93\x8a\x67\x33\x00\x59\x54\x9a\x25\xd3\x49\x8e\x9f"
529 "\xc1\x4b\xe5\x86\xf3\x50\x4c\xbc\xc5\xd3\xf5\x3a\x54\xe1\x36\x3f"
530 "\xe2\x5a\xb4\x37\xc0\xeb\x70\x35\xec\xf6\xb7\xe8\x44\x3b\x7b\xf3"
531 "\xf1\xf2\x1e\xdb\x60\x7d\xd5\xbe\xf0\x71\x34\x90\x4c\xcb\xd4\x35"
532 "\x51\xc7\xdd\xd8\xc9\x81\xf5\x5d\x57\x46\x2c\xb1\x7b\x9b\xaa\xcb"
533 "\xd1\x22\x25\x49\x44\xa3\xd4\x6b\x29\x7b\xd8\xb2\x07\x93\xbf\x3d"
534 "\x52\x49\x84\x79\xef\xb8\xe5\xc4\xad\xca\xa8\xc6\xf6\xa6\x76\x70"
535 "\x5b\x0b\xe5\x83\xc6\x0e\xef\x55\xf2\xe7\xff\x04\xea\xe6\x13\xbe"
536 "\x40\xe1\x40\x45\x48\x66\x75\x31\xae\x35\x64\x91\x11\x6f\xda\xee"
537 "\x26\x86\x45\x6f\x0b\xd5\x9f\x03\xb1\x65\x5b\xdb\xa4\xe4\xf9\x45",
538 .key_len = 2349,
539 .m_size = 8,
540 .c_size = 512,
544 #define DH_TEST_VECTORS 2
546 struct kpp_testvec dh_tv_template[] = {
548 .secret =
549 #ifdef __LITTLE_ENDIAN
550 "\x01\x00" /* type */
551 "\x11\x02" /* len */
552 "\x00\x01\x00\x00" /* key_size */
553 "\x00\x01\x00\x00" /* p_size */
554 "\x01\x00\x00\x00" /* g_size */
555 #else
556 "\x00\x01" /* type */
557 "\x02\x11" /* len */
558 "\x00\x00\x01\x00" /* key_size */
559 "\x00\x00\x01\x00" /* p_size */
560 "\x00\x00\x00\x01" /* g_size */
561 #endif
562 /* xa */
563 "\x44\xc1\x48\x36\xa7\x2b\x6f\x4e\x43\x03\x68\xad\x31\x00\xda\xf3"
564 "\x2a\x01\xa8\x32\x63\x5f\x89\x32\x1f\xdf\x4c\xa1\x6a\xbc\x10\x15"
565 "\x90\x35\xc9\x26\x41\xdf\x7b\xaa\x56\x56\x3d\x85\x44\xb5\xc0\x8e"
566 "\x37\x83\x06\x50\xb3\x5f\x0e\x28\x2c\xd5\x46\x15\xe3\xda\x7d\x74"
567 "\x87\x13\x91\x4f\xd4\x2d\xf6\xc7\x5e\x14\x2c\x11\xc2\x26\xb4\x3a"
568 "\xe3\xb2\x36\x20\x11\x3b\x22\xf2\x06\x65\x66\xe2\x57\x58\xf8\x22"
569 "\x1a\x94\xbd\x2b\x0e\x8c\x55\xad\x61\x23\x45\x2b\x19\x1e\x63\x3a"
570 "\x13\x61\xe3\xa0\x79\x70\x3e\x6d\x98\x32\xbc\x7f\x82\xc3\x11\xd8"
571 "\xeb\x53\xb5\xfc\xb5\xd5\x3c\x4a\xea\x92\x3e\x01\xce\x15\x65\xd4"
572 "\xaa\x85\xc1\x11\x90\x83\x31\x6e\xfe\xe7\x7f\x7d\xed\xab\xf9\x29"
573 "\xf8\xc7\xf1\x68\xc6\xb7\xe4\x1f\x2f\x28\xa0\xc9\x1a\x50\x64\x29"
574 "\x4b\x01\x6d\x1a\xda\x46\x63\x21\x07\x40\x8c\x8e\x4c\x6f\xb5\xe5"
575 "\x12\xf3\xc2\x1b\x48\x27\x5e\x27\x01\xb1\xaa\xed\x68\x9b\x83\x18"
576 "\x8f\xb1\xeb\x1f\x04\xd1\x3c\x79\xed\x4b\xf7\x0a\x33\xdc\xe0\xc6"
577 "\xd8\x02\x51\x59\x00\x74\x30\x07\x4c\x2d\xac\xe4\x13\xf1\x80\xf0"
578 "\xce\xfa\xff\xa9\xce\x29\x46\xdd\x9d\xad\xd1\xc3\xc6\x58\x1a\x63"
579 /* p */
580 "\xb9\x36\x3a\xf1\x82\x1f\x60\xd3\x22\x47\xb8\xbc\x2d\x22\x6b\x81"
581 "\x7f\xe8\x20\x06\x09\x23\x73\x49\x9a\x59\x8b\x35\x25\xf8\x31\xbc"
582 "\x7d\xa8\x1c\x9d\x56\x0d\x1a\xf7\x4b\x4f\x96\xa4\x35\x77\x6a\x89"
583 "\xab\x42\x00\x49\x21\x71\xed\x28\x16\x1d\x87\x5a\x10\xa7\x9c\x64"
584 "\x94\xd4\x87\x3d\x28\xef\x44\xfe\x4b\xe2\xb4\x15\x8c\x82\xa6\xf3"
585 "\x50\x5f\xa8\xe8\xa2\x60\xe7\x00\x86\x78\x05\xd4\x78\x19\xa1\x98"
586 "\x62\x4e\x4a\x00\x78\x56\x96\xe6\xcf\xd7\x10\x1b\x74\x5d\xd0\x26"
587 "\x61\xdb\x6b\x32\x09\x51\xd8\xa5\xfd\x54\x16\x71\x01\xb3\x39\xe6"
588 "\x4e\x69\xb1\xd7\x06\x8f\xd6\x1e\xdc\x72\x25\x26\x74\xc8\x41\x06"
589 "\x5c\xd1\x26\x5c\xb0\x2f\xf9\x59\x13\xc1\x2a\x0f\x78\xea\x7b\xf7"
590 "\xbd\x59\xa0\x90\x1d\xfc\x33\x5b\x4c\xbf\x05\x9c\x3a\x3f\x69\xa2"
591 "\x45\x61\x4e\x10\x6a\xb3\x17\xc5\x68\x30\xfb\x07\x5f\x34\xc6\xfb"
592 "\x73\x07\x3c\x70\xf6\xae\xe7\x72\x84\xc3\x18\x81\x8f\xe8\x11\x1f"
593 "\x3d\x83\x83\x01\x2a\x14\x73\xbf\x32\x32\x2e\xc9\x4d\xdb\x2a\xca"
594 "\xee\x71\xf9\xda\xad\xe8\x82\x0b\x4d\x0c\x1f\xb6\x1d\xef\x00\x67"
595 "\x74\x3d\x95\xe0\xb7\xc4\x30\x8a\x24\x87\x12\x47\x27\x70\x0d\x73"
596 /* g */
597 "\x02",
598 .b_public =
599 "\x2a\x67\x5c\xfd\x63\x5d\xc0\x97\x0a\x8b\xa2\x1f\xf8\x8a\xcb\x54"
600 "\xca\x2f\xd3\x49\x3f\x01\x8e\x87\xfe\xcc\x94\xa0\x3e\xd4\x26\x79"
601 "\x9a\x94\x3c\x11\x81\x58\x5c\x60\x3d\xf5\x98\x90\x89\x64\x62\x1f"
602 "\xbd\x05\x6d\x2b\xcd\x84\x40\x9b\x4a\x1f\xe0\x19\xf1\xca\x20\xb3"
603 "\x4e\xa0\x4f\x15\xcc\xa5\xfe\xa5\xb4\xf5\x0b\x18\x7a\x5a\x37\xaa"
604 "\x58\x00\x19\x7f\xe2\xa3\xd9\x1c\x44\x57\xcc\xde\x2e\xc1\x38\xea"
605 "\xeb\xe3\x90\x40\xc4\x6c\xf7\xcd\xe9\x22\x50\x71\xf5\x7c\xdb\x37"
606 "\x0e\x80\xc3\xed\x7e\xb1\x2b\x2f\xbe\x71\xa6\x11\xa5\x9d\xf5\x39"
607 "\xf1\xa2\xe5\x85\xbc\x25\x91\x4e\x84\x8d\x26\x9f\x4f\xe6\x0f\xa6"
608 "\x2b\x6b\xf9\x0d\xaf\x6f\xbb\xfa\x2d\x79\x15\x31\x57\xae\x19\x60"
609 "\x22\x0a\xf5\xfd\x98\x0e\xbf\x5d\x49\x75\x58\x37\xbc\x7f\xf5\x21"
610 "\x56\x1e\xd5\xb3\x50\x0b\xca\x96\xf3\xd1\x3f\xb3\x70\xa8\x6d\x63"
611 "\x48\xfb\x3d\xd7\x29\x91\x45\xb5\x48\xcd\xb6\x78\x30\xf2\x3f\x1e"
612 "\xd6\x22\xd6\x35\x9b\xf9\x1f\x85\xae\xab\x4b\xd7\xe0\xc7\x86\x67"
613 "\x3f\x05\x7f\xa6\x0d\x2f\x0d\xbf\x53\x5f\x4d\x2c\x6d\x5e\x57\x40"
614 "\x30\x3a\x23\x98\xf9\xb4\x32\xf5\x32\x83\xdd\x0b\xae\x33\x97\x2f",
615 .expected_a_public =
616 "\x5c\x24\xdf\xeb\x5b\x4b\xf8\xc5\xef\x39\x48\x82\xe0\x1e\x62\xee"
617 "\x8a\xae\xdf\x93\x6c\x2b\x16\x95\x92\x16\x3f\x16\x7b\x75\x03\x85"
618 "\xd9\xf1\x69\xc2\x14\x87\x45\xfc\xa4\x19\xf6\xf0\xa4\xf3\xec\xd4"
619 "\x6c\x5c\x03\x3b\x94\xc2\x2f\x92\xe4\xce\xb3\xe4\x72\xe8\x17\xe6"
620 "\x23\x7e\x00\x01\x09\x59\x13\xbf\xc1\x2f\x99\xa9\x07\xaa\x02\x23"
621 "\x4a\xca\x39\x4f\xbc\xec\x0f\x27\x4f\x19\x93\x6c\xb9\x30\x52\xfd"
622 "\x2b\x9d\x86\xf1\x06\x1e\xb6\x56\x27\x4a\xc9\x8a\xa7\x8a\x48\x5e"
623 "\xb5\x60\xcb\xdf\xff\x03\x26\x10\xbf\x90\x8f\x46\x60\xeb\x9b\x9a"
624 "\xd6\x6f\x44\x91\x03\x92\x18\x2c\x96\x5e\x40\x19\xfb\xf4\x4f\x3a"
625 "\x02\x7b\xaf\xcc\x22\x20\x79\xb9\xf8\x9f\x8f\x85\x6b\xec\x44\xbb"
626 "\xe6\xa8\x8e\xb1\xe8\x2c\xee\x64\xee\xf8\xbd\x00\xf3\xe2\x2b\x93"
627 "\xcd\xe7\xc4\xdf\xc9\x19\x46\xfe\xb6\x07\x73\xc1\x8a\x64\x79\x26"
628 "\xe7\x30\xad\x2a\xdf\xe6\x8f\x59\xf5\x81\xbf\x4a\x29\x91\xe7\xb7"
629 "\xcf\x48\x13\x27\x75\x79\x40\xd9\xd6\x32\x52\x4e\x6a\x86\xae\x6f"
630 "\xc2\xbf\xec\x1f\xc2\x69\xb2\xb6\x59\xe5\xa5\x17\xa4\x77\xb7\x62"
631 "\x46\xde\xe8\xd2\x89\x78\x9a\xef\xa3\xb5\x8f\x26\xec\x80\xda\x39",
632 .expected_ss =
633 "\x8f\xf3\xac\xa2\xea\x22\x11\x5c\x45\x65\x1a\x77\x75\x2e\xcf\x46"
634 "\x23\x14\x1e\x67\x53\x4d\x35\xb0\x38\x1d\x4e\xb9\x41\x9a\x21\x24"
635 "\x6e\x9f\x40\xfe\x90\x51\xb1\x06\xa4\x7b\x87\x17\x2f\xe7\x5e\x22"
636 "\xf0\x7b\x54\x84\x0a\xac\x0a\x90\xd2\xd7\xe8\x7f\xe7\xe3\x30\x75"
637 "\x01\x1f\x24\x75\x56\xbe\xcc\x8d\x1e\x68\x0c\x41\x72\xd3\xfa\xbb"
638 "\xe5\x9c\x60\xc7\x28\x77\x0c\xbe\x89\xab\x08\xd6\x21\xe7\x2e\x1a"
639 "\x58\x7a\xca\x4f\x22\xf3\x2b\x30\xfd\xf4\x98\xc1\xa3\xf8\xf6\xcc"
640 "\xa9\xe4\xdb\x5b\xee\xd5\x5c\x6f\x62\x4c\xd1\x1a\x02\x2a\x23\xe4"
641 "\xb5\x57\xf3\xf9\xec\x04\x83\x54\xfe\x08\x5e\x35\xac\xfb\xa8\x09"
642 "\x82\x32\x60\x11\xb2\x16\x62\x6b\xdf\xda\xde\x9c\xcb\x63\x44\x6c"
643 "\x59\x26\x6a\x8f\xb0\x24\xcb\xa6\x72\x48\x1e\xeb\xe0\xe1\x09\x44"
644 "\xdd\xee\x66\x6d\x84\xcf\xa5\xc1\xb8\x36\x74\xd3\x15\x96\xc3\xe4"
645 "\xc6\x5a\x4d\x23\x97\x0c\x5c\xcb\xa9\xf5\x29\xc2\x0e\xff\x93\x82"
646 "\xd3\x34\x49\xad\x64\xa6\xb1\xc0\x59\x28\x75\x60\xa7\x8a\xb0\x11"
647 "\x56\x89\x42\x74\x11\xf5\xf6\x5e\x6f\x16\x54\x6a\xb1\x76\x4d\x50"
648 "\x8a\x68\xc1\x5b\x82\xb9\x0d\x00\x32\x50\xed\x88\x87\x48\x92\x17",
649 .secret_size = 529,
650 .b_public_size = 256,
651 .expected_a_public_size = 256,
652 .expected_ss_size = 256,
655 .secret =
656 #ifdef __LITTLE_ENDIAN
657 "\x01\x00" /* type */
658 "\x11\x02" /* len */
659 "\x00\x01\x00\x00" /* key_size */
660 "\x00\x01\x00\x00" /* p_size */
661 "\x01\x00\x00\x00" /* g_size */
662 #else
663 "\x00\x01" /* type */
664 "\x02\x11" /* len */
665 "\x00\x00\x01\x00" /* key_size */
666 "\x00\x00\x01\x00" /* p_size */
667 "\x00\x00\x00\x01" /* g_size */
668 #endif
669 /* xa */
670 "\x4d\x75\xa8\x6e\xba\x23\x3a\x0c\x63\x56\xc8\xc9\x5a\xa7\xd6\x0e"
671 "\xed\xae\x40\x78\x87\x47\x5f\xe0\xa7\x7b\xba\x84\x88\x67\x4e\xe5"
672 "\x3c\xcc\x5c\x6a\xe7\x4a\x20\xec\xbe\xcb\xf5\x52\x62\x9f\x37\x80"
673 "\x0c\x72\x7b\x83\x66\xa4\xf6\x7f\x95\x97\x1c\x6a\x5c\x7e\xf1\x67"
674 "\x37\xb3\x93\x39\x3d\x0b\x55\x35\xd9\xe5\x22\x04\x9f\xf8\xc1\x04"
675 "\xce\x13\xa5\xac\xe1\x75\x05\xd1\x2b\x53\xa2\x84\xef\xb1\x18\xf4"
676 "\x66\xdd\xea\xe6\x24\x69\x5a\x49\xe0\x7a\xd8\xdf\x1b\xb7\xf1\x6d"
677 "\x9b\x50\x2c\xc8\x1c\x1c\xa3\xb4\x37\xfb\x66\x3f\x67\x71\x73\xa9"
678 "\xff\x5f\xd9\xa2\x25\x6e\x25\x1b\x26\x54\xbf\x0c\xc6\xdb\xea\x0a"
679 "\x52\x6c\x16\x7c\x27\x68\x15\x71\x58\x73\x9d\xe6\xc2\x80\xaa\x97"
680 "\x31\x66\xfb\xa6\xfb\xfd\xd0\x9c\x1d\xbe\x81\x48\xf5\x9a\x32\xf1"
681 "\x69\x62\x18\x78\xae\x72\x36\xe6\x94\x27\xd1\xff\x18\x4f\x28\x6a"
682 "\x16\xbd\x6a\x60\xee\xe5\xf9\x6d\x16\xe4\xb8\xa6\x41\x9b\x23\x7e"
683 "\xf7\x9d\xd1\x1d\x03\x15\x66\x3a\xcf\xb6\x2c\x13\x96\x2c\x52\x21"
684 "\xe4\x2d\x48\x7a\x8a\x5d\xb2\x88\xed\x98\x61\x79\x8b\x6a\x1e\x5f"
685 "\xd0\x8a\x2d\x99\x5a\x2b\x0f\xbc\xef\x53\x8f\x32\xc1\xa2\x99\x26"
686 /* p */
687 "\xb9\x36\x3a\xf1\x82\x1f\x60\xd3\x22\x47\xb8\xbc\x2d\x22\x6b\x81"
688 "\x7f\xe8\x20\x06\x09\x23\x73\x49\x9a\x59\x8b\x35\x25\xf8\x31\xbc"
689 "\x7d\xa8\x1c\x9d\x56\x0d\x1a\xf7\x4b\x4f\x96\xa4\x35\x77\x6a\x89"
690 "\xab\x42\x00\x49\x21\x71\xed\x28\x16\x1d\x87\x5a\x10\xa7\x9c\x64"
691 "\x94\xd4\x87\x3d\x28\xef\x44\xfe\x4b\xe2\xb4\x15\x8c\x82\xa6\xf3"
692 "\x50\x5f\xa8\xe8\xa2\x60\xe7\x00\x86\x78\x05\xd4\x78\x19\xa1\x98"
693 "\x62\x4e\x4a\x00\x78\x56\x96\xe6\xcf\xd7\x10\x1b\x74\x5d\xd0\x26"
694 "\x61\xdb\x6b\x32\x09\x51\xd8\xa5\xfd\x54\x16\x71\x01\xb3\x39\xe6"
695 "\x4e\x69\xb1\xd7\x06\x8f\xd6\x1e\xdc\x72\x25\x26\x74\xc8\x41\x06"
696 "\x5c\xd1\x26\x5c\xb0\x2f\xf9\x59\x13\xc1\x2a\x0f\x78\xea\x7b\xf7"
697 "\xbd\x59\xa0\x90\x1d\xfc\x33\x5b\x4c\xbf\x05\x9c\x3a\x3f\x69\xa2"
698 "\x45\x61\x4e\x10\x6a\xb3\x17\xc5\x68\x30\xfb\x07\x5f\x34\xc6\xfb"
699 "\x73\x07\x3c\x70\xf6\xae\xe7\x72\x84\xc3\x18\x81\x8f\xe8\x11\x1f"
700 "\x3d\x83\x83\x01\x2a\x14\x73\xbf\x32\x32\x2e\xc9\x4d\xdb\x2a\xca"
701 "\xee\x71\xf9\xda\xad\xe8\x82\x0b\x4d\x0c\x1f\xb6\x1d\xef\x00\x67"
702 "\x74\x3d\x95\xe0\xb7\xc4\x30\x8a\x24\x87\x12\x47\x27\x70\x0d\x73"
703 /* g */
704 "\x02",
705 .b_public =
706 "\x99\x4d\xd9\x01\x84\x8e\x4a\x5b\xb8\xa5\x64\x8c\x6c\x00\x5c\x0e"
707 "\x1e\x1b\xee\x5d\x9f\x53\xe3\x16\x70\x01\xed\xbf\x4f\x14\x36\x6e"
708 "\xe4\x43\x45\x43\x49\xcc\xb1\xb0\x2a\xc0\x6f\x22\x55\x42\x17\x94"
709 "\x18\x83\xd7\x2a\x5c\x51\x54\xf8\x4e\x7c\x10\xda\x76\x68\x57\x77"
710 "\x1e\x62\x03\x30\x04\x7b\x4c\x39\x9c\x54\x01\x54\xec\xef\xb3\x55"
711 "\xa4\xc0\x24\x6d\x3d\xbd\xcc\x46\x5b\x00\x96\xc7\xea\x93\xd1\x3f"
712 "\xf2\x6a\x72\xe3\xf2\xc1\x92\x24\x5b\xda\x48\x70\x2c\xa9\x59\x97"
713 "\x19\xb1\xd6\x54\xb3\x9c\x2e\xb0\x63\x07\x9b\x5e\xac\xb5\xf2\xb1"
714 "\x5b\xf8\xf3\xd7\x2d\x37\x9b\x68\x6c\xf8\x90\x07\xbc\x37\x9a\xa5"
715 "\xe2\x91\x12\x25\x47\x77\xe3\x3d\xb2\x95\x69\x44\x0b\x91\x1e\xaf"
716 "\x7c\x8c\x7c\x34\x41\x6a\xab\x60\x6e\xc6\x52\xec\x7e\x94\x0a\x37"
717 "\xec\x98\x90\xdf\x3f\x02\xbd\x23\x52\xdd\xd9\xe5\x31\x80\x74\x25"
718 "\xb6\xd2\xd3\xcc\xd5\xcc\x6d\xf9\x7e\x4d\x78\xab\x77\x51\xfa\x77"
719 "\x19\x94\x49\x8c\x05\xd4\x75\xed\xd2\xb3\x64\x57\xe0\x52\x99\xc0"
720 "\x83\xe3\xbb\x5e\x2b\xf1\xd2\xc0\xb1\x37\x36\x0b\x7c\xb5\x63\x96"
721 "\x8e\xde\x04\x23\x11\x95\x62\x11\x9a\xce\x6f\x63\xc8\xd5\xd1\x8f",
722 .expected_a_public =
723 "\x90\x89\xe4\x82\xd6\x0a\xcf\x1a\xae\xce\x1b\x66\xa7\x19\x71\x18"
724 "\x8f\x95\x4b\x5b\x80\x45\x4a\x5a\x43\x99\x4d\x37\xcf\xa3\xa7\x28"
725 "\x9c\xc7\x73\xf1\xb2\x17\xf6\x99\xe3\x6b\x56\xcb\x3e\x35\x60\x7d"
726 "\x65\xc7\x84\x6b\x3e\x60\xee\xcd\xd2\x70\xe7\xc9\x32\x1c\xf0\xb4"
727 "\xf9\x52\xd9\x88\x75\xfd\x40\x2c\xa7\xbe\x19\x1c\x0a\xae\x93\xe1"
728 "\x71\xc7\xcd\x4f\x33\x5c\x10\x7d\x39\x56\xfc\x73\x84\xb2\x67\xc3"
729 "\x77\x26\x20\x97\x2b\xf8\x13\x43\x93\x9c\x9a\xa4\x08\xc7\x34\x83"
730 "\xe6\x98\x61\xe7\x16\x30\x2c\xb1\xdb\x2a\xb2\xcc\xc3\x02\xa5\x3c"
731 "\x71\x50\x14\x83\xc7\xbb\xa4\xbe\x98\x1b\xfe\xcb\x43\xe9\x97\x62"
732 "\xd6\xf0\x8c\xcb\x1c\xba\x1e\xa8\xa6\xa6\x50\xfc\x85\x7d\x47\xbf"
733 "\xf4\x3e\x23\xd3\x5f\xb2\x71\x3e\x40\x94\xaa\x87\x83\x2c\x6c\x8e"
734 "\x60\xfd\xdd\xf7\xf4\x76\x03\xd3\x1d\xec\x18\x51\xa3\xf2\x44\x1a"
735 "\x3f\xb4\x7c\x18\x0d\x68\x65\x92\x54\x0d\x2d\x81\x16\xf1\x84\x66"
736 "\x89\x92\xd0\x1a\x5e\x1f\x42\x46\x5b\xe5\x83\x86\x80\xd9\xcd\x3a"
737 "\x5a\x2f\xb9\x59\x9b\xe4\x43\x84\x64\xf3\x09\x1a\x0a\xa2\x64\x0f"
738 "\x77\x4e\x8d\x8b\xe6\x88\xd1\xfc\xaf\x8f\xdf\x1d\xbc\x31\xb3\xbd",
739 .expected_ss =
740 "\x34\xc3\x35\x14\x88\x46\x26\x23\x97\xbb\xdd\x28\x5c\x94\xf6\x47"
741 "\xca\xb3\x19\xaf\xca\x44\x9b\xc2\x7d\x89\xfd\x96\x14\xfd\x6d\x58"
742 "\xd8\xc4\x6b\x61\x2a\x0d\xf2\x36\x45\xc8\xe4\xa4\xed\x81\x53\x81"
743 "\x66\x1e\xe0\x5a\xb1\x78\x2d\x0b\x5c\xb4\xd1\xfc\x90\xc6\x9c\xdb"
744 "\x5a\x30\x0b\x14\x7d\xbe\xb3\x7d\xb1\xb2\x76\x3c\x6c\xef\x74\x6b"
745 "\xe7\x1f\x64\x0c\xab\x65\xe1\x76\x5c\x3d\x83\xb5\x8a\xfb\xaf\x0f"
746 "\xf2\x06\x14\x8f\xa0\xf6\xc1\x89\x78\xf2\xba\x72\x73\x3c\xf7\x76"
747 "\x21\x67\xbc\x24\x31\xb8\x09\x65\x0f\x0c\x02\x32\x4a\x98\x14\xfc"
748 "\x72\x2c\x25\x60\x68\x5f\x2f\x30\x1e\x5b\xf0\x3b\xd1\xa2\x87\xa0"
749 "\x54\xdf\xdb\xc0\xee\x0a\x0f\x47\xc9\x90\x20\x2c\xf9\xe3\x52\xad"
750 "\x27\x65\x8d\x54\x8d\xa8\xa1\xf3\xed\x15\xd4\x94\x28\x90\x31\x93"
751 "\x1b\xc0\x51\xbb\x43\x5d\x76\x3b\x1d\x2a\x71\x50\xea\x5d\x48\x94"
752 "\x7f\x6f\xf1\x48\xdb\x30\xe5\xae\x64\x79\xd9\x7a\xdb\xc6\xff\xd8"
753 "\x5e\x5a\x64\xbd\xf6\x85\x04\xe8\x28\x6a\xac\xef\xce\x19\x8e\x9a"
754 "\xfe\x75\xc0\x27\x69\xe3\xb3\x7b\x21\xa7\xb1\x16\xa4\x85\x23\xee"
755 "\xb0\x1b\x04\x6e\xbd\xab\x16\xde\xfd\x86\x6b\xa9\x95\xd7\x0b\xfd",
756 .secret_size = 529,
757 .b_public_size = 256,
758 .expected_a_public_size = 256,
759 .expected_ss_size = 256,
763 #ifdef CONFIG_CRYPTO_FIPS
764 #define ECDH_TEST_VECTORS 1
765 #else
766 #define ECDH_TEST_VECTORS 2
767 #endif
768 struct kpp_testvec ecdh_tv_template[] = {
770 #ifndef CONFIG_CRYPTO_FIPS
771 .secret =
772 #ifdef __LITTLE_ENDIAN
773 "\x02\x00" /* type */
774 "\x20\x00" /* len */
775 "\x01\x00" /* curve_id */
776 "\x18\x00" /* key_size */
777 #else
778 "\x00\x02" /* type */
779 "\x00\x20" /* len */
780 "\x00\x01" /* curve_id */
781 "\x00\x18" /* key_size */
782 #endif
783 "\xb5\x05\xb1\x71\x1e\xbf\x8c\xda"
784 "\x4e\x19\x1e\x62\x1f\x23\x23\x31"
785 "\x36\x1e\xd3\x84\x2f\xcc\x21\x72",
786 .b_public =
787 "\xc3\xba\x67\x4b\x71\xec\xd0\x76"
788 "\x7a\x99\x75\x64\x36\x13\x9a\x94"
789 "\x5d\x8b\xdc\x60\x90\x91\xfd\x3f"
790 "\xb0\x1f\x8a\x0a\x68\xc6\x88\x6e"
791 "\x83\x87\xdd\x67\x09\xf8\x8d\x96"
792 "\x07\xd6\xbd\x1c\xe6\x8d\x9d\x67",
793 .expected_a_public =
794 "\x1a\x04\xdb\xa5\xe1\xdd\x4e\x79"
795 "\xa3\xe6\xef\x0e\x5c\x80\x49\x85"
796 "\xfa\x78\xb4\xef\x49\xbd\x4c\x7c"
797 "\x22\x90\x21\x02\xf9\x1b\x81\x5d"
798 "\x0c\x8a\xa8\x98\xd6\x27\x69\x88"
799 "\x5e\xbc\x94\xd8\x15\x9e\x21\xce",
800 .expected_ss =
801 "\xf4\x57\xcc\x4f\x1f\x4e\x31\xcc"
802 "\xe3\x40\x60\xc8\x06\x93\xc6\x2e"
803 "\x99\x80\x81\x28\xaf\xc5\x51\x74",
804 .secret_size = 32,
805 .b_public_size = 48,
806 .expected_a_public_size = 48,
807 .expected_ss_size = 24
808 }, {
809 #endif
810 .secret =
811 #ifdef __LITTLE_ENDIAN
812 "\x02\x00" /* type */
813 "\x28\x00" /* len */
814 "\x02\x00" /* curve_id */
815 "\x20\x00" /* key_size */
816 #else
817 "\x00\x02" /* type */
818 "\x00\x28" /* len */
819 "\x00\x02" /* curve_id */
820 "\x00\x20" /* key_size */
821 #endif
822 "\x24\xd1\x21\xeb\xe5\xcf\x2d\x83"
823 "\xf6\x62\x1b\x6e\x43\x84\x3a\xa3"
824 "\x8b\xe0\x86\xc3\x20\x19\xda\x92"
825 "\x50\x53\x03\xe1\xc0\xea\xb8\x82",
826 .expected_a_public =
827 "\x1a\x7f\xeb\x52\x00\xbd\x3c\x31"
828 "\x7d\xb6\x70\xc1\x86\xa6\xc7\xc4"
829 "\x3b\xc5\x5f\x6c\x6f\x58\x3c\xf5"
830 "\xb6\x63\x82\x77\x33\x24\xa1\x5f"
831 "\x6a\xca\x43\x6f\xf7\x7e\xff\x02"
832 "\x37\x08\xcc\x40\x5e\x7a\xfd\x6a"
833 "\x6a\x02\x6e\x41\x87\x68\x38\x77"
834 "\xfa\xa9\x44\x43\x2d\xef\x09\xdf",
835 .expected_ss =
836 "\xea\x17\x6f\x7e\x6e\x57\x26\x38"
837 "\x8b\xfb\x41\xeb\xba\xc8\x6d\xa5"
838 "\xa8\x72\xd1\xff\xc9\x47\x3d\xaa"
839 "\x58\x43\x9f\x34\x0f\x8c\xf3\xc9",
840 .b_public =
841 "\xcc\xb4\xda\x74\xb1\x47\x3f\xea"
842 "\x6c\x70\x9e\x38\x2d\xc7\xaa\xb7"
843 "\x29\xb2\x47\x03\x19\xab\xdd\x34"
844 "\xbd\xa8\x2c\x93\xe1\xa4\x74\xd9"
845 "\x64\x63\xf7\x70\x20\x2f\xa4\xe6"
846 "\x9f\x4a\x38\xcc\xc0\x2c\x49\x2f"
847 "\xb1\x32\xbb\xaf\x22\x61\xda\xcb"
848 "\x6f\xdb\xa9\xaa\xfc\x77\x81\xf3",
849 .secret_size = 40,
850 .b_public_size = 64,
851 .expected_a_public_size = 64,
852 .expected_ss_size = 32
857 * MD4 test vectors from RFC1320
859 #define MD4_TEST_VECTORS 7
861 static struct hash_testvec md4_tv_template [] = {
863 .plaintext = "",
864 .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31"
865 "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0",
866 }, {
867 .plaintext = "a",
868 .psize = 1,
869 .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46"
870 "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24",
871 }, {
872 .plaintext = "abc",
873 .psize = 3,
874 .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52"
875 "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d",
876 }, {
877 .plaintext = "message digest",
878 .psize = 14,
879 .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8"
880 "\x18\x87\x48\x06\xe1\xc7\x01\x4b",
881 }, {
882 .plaintext = "abcdefghijklmnopqrstuvwxyz",
883 .psize = 26,
884 .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd"
885 "\xee\xa8\xed\x63\xdf\x41\x2d\xa9",
886 .np = 2,
887 .tap = { 13, 13 },
888 }, {
889 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
890 .psize = 62,
891 .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35"
892 "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4",
893 }, {
894 .plaintext = "123456789012345678901234567890123456789012345678901234567890123"
895 "45678901234567890",
896 .psize = 80,
897 .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19"
898 "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36",
902 #define SHA3_224_TEST_VECTORS 3
903 static struct hash_testvec sha3_224_tv_template[] = {
905 .plaintext = "",
906 .digest = "\x6b\x4e\x03\x42\x36\x67\xdb\xb7"
907 "\x3b\x6e\x15\x45\x4f\x0e\xb1\xab"
908 "\xd4\x59\x7f\x9a\x1b\x07\x8e\x3f"
909 "\x5b\x5a\x6b\xc7",
910 }, {
911 .plaintext = "a",
912 .psize = 1,
913 .digest = "\x9e\x86\xff\x69\x55\x7c\xa9\x5f"
914 "\x40\x5f\x08\x12\x69\x68\x5b\x38"
915 "\xe3\xa8\x19\xb3\x09\xee\x94\x2f"
916 "\x48\x2b\x6a\x8b",
917 }, {
918 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
919 "jklmklmnlmnomnopnopq",
920 .psize = 56,
921 .digest = "\x8a\x24\x10\x8b\x15\x4a\xda\x21"
922 "\xc9\xfd\x55\x74\x49\x44\x79\xba"
923 "\x5c\x7e\x7a\xb7\x6e\xf2\x64\xea"
924 "\xd0\xfc\xce\x33",
928 #define SHA3_256_TEST_VECTORS 3
929 static struct hash_testvec sha3_256_tv_template[] = {
931 .plaintext = "",
932 .digest = "\xa7\xff\xc6\xf8\xbf\x1e\xd7\x66"
933 "\x51\xc1\x47\x56\xa0\x61\xd6\x62"
934 "\xf5\x80\xff\x4d\xe4\x3b\x49\xfa"
935 "\x82\xd8\x0a\x4b\x80\xf8\x43\x4a",
936 }, {
937 .plaintext = "a",
938 .psize = 1,
939 .digest = "\x80\x08\x4b\xf2\xfb\xa0\x24\x75"
940 "\x72\x6f\xeb\x2c\xab\x2d\x82\x15"
941 "\xea\xb1\x4b\xc6\xbd\xd8\xbf\xb2"
942 "\xc8\x15\x12\x57\x03\x2e\xcd\x8b",
943 }, {
944 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
945 "jklmklmnlmnomnopnopq",
946 .psize = 56,
947 .digest = "\x41\xc0\xdb\xa2\xa9\xd6\x24\x08"
948 "\x49\x10\x03\x76\xa8\x23\x5e\x2c"
949 "\x82\xe1\xb9\x99\x8a\x99\x9e\x21"
950 "\xdb\x32\xdd\x97\x49\x6d\x33\x76",
955 #define SHA3_384_TEST_VECTORS 3
956 static struct hash_testvec sha3_384_tv_template[] = {
958 .plaintext = "",
959 .digest = "\x0c\x63\xa7\x5b\x84\x5e\x4f\x7d"
960 "\x01\x10\x7d\x85\x2e\x4c\x24\x85"
961 "\xc5\x1a\x50\xaa\xaa\x94\xfc\x61"
962 "\x99\x5e\x71\xbb\xee\x98\x3a\x2a"
963 "\xc3\x71\x38\x31\x26\x4a\xdb\x47"
964 "\xfb\x6b\xd1\xe0\x58\xd5\xf0\x04",
965 }, {
966 .plaintext = "a",
967 .psize = 1,
968 .digest = "\x18\x15\xf7\x74\xf3\x20\x49\x1b"
969 "\x48\x56\x9e\xfe\xc7\x94\xd2\x49"
970 "\xee\xb5\x9a\xae\x46\xd2\x2b\xf7"
971 "\x7d\xaf\xe2\x5c\x5e\xdc\x28\xd7"
972 "\xea\x44\xf9\x3e\xe1\x23\x4a\xa8"
973 "\x8f\x61\xc9\x19\x12\xa4\xcc\xd9",
974 }, {
975 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
976 "jklmklmnlmnomnopnopq",
977 .psize = 56,
978 .digest = "\x99\x1c\x66\x57\x55\xeb\x3a\x4b"
979 "\x6b\xbd\xfb\x75\xc7\x8a\x49\x2e"
980 "\x8c\x56\xa2\x2c\x5c\x4d\x7e\x42"
981 "\x9b\xfd\xbc\x32\xb9\xd4\xad\x5a"
982 "\xa0\x4a\x1f\x07\x6e\x62\xfe\xa1"
983 "\x9e\xef\x51\xac\xd0\x65\x7c\x22",
988 #define SHA3_512_TEST_VECTORS 3
989 static struct hash_testvec sha3_512_tv_template[] = {
991 .plaintext = "",
992 .digest = "\xa6\x9f\x73\xcc\xa2\x3a\x9a\xc5"
993 "\xc8\xb5\x67\xdc\x18\x5a\x75\x6e"
994 "\x97\xc9\x82\x16\x4f\xe2\x58\x59"
995 "\xe0\xd1\xdc\xc1\x47\x5c\x80\xa6"
996 "\x15\xb2\x12\x3a\xf1\xf5\xf9\x4c"
997 "\x11\xe3\xe9\x40\x2c\x3a\xc5\x58"
998 "\xf5\x00\x19\x9d\x95\xb6\xd3\xe3"
999 "\x01\x75\x85\x86\x28\x1d\xcd\x26",
1000 }, {
1001 .plaintext = "a",
1002 .psize = 1,
1003 .digest = "\x69\x7f\x2d\x85\x61\x72\xcb\x83"
1004 "\x09\xd6\xb8\xb9\x7d\xac\x4d\xe3"
1005 "\x44\xb5\x49\xd4\xde\xe6\x1e\xdf"
1006 "\xb4\x96\x2d\x86\x98\xb7\xfa\x80"
1007 "\x3f\x4f\x93\xff\x24\x39\x35\x86"
1008 "\xe2\x8b\x5b\x95\x7a\xc3\xd1\xd3"
1009 "\x69\x42\x0c\xe5\x33\x32\x71\x2f"
1010 "\x99\x7b\xd3\x36\xd0\x9a\xb0\x2a",
1011 }, {
1012 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1013 "jklmklmnlmnomnopnopq",
1014 .psize = 56,
1015 .digest = "\x04\xa3\x71\xe8\x4e\xcf\xb5\xb8"
1016 "\xb7\x7c\xb4\x86\x10\xfc\xa8\x18"
1017 "\x2d\xd4\x57\xce\x6f\x32\x6a\x0f"
1018 "\xd3\xd7\xec\x2f\x1e\x91\x63\x6d"
1019 "\xee\x69\x1f\xbe\x0c\x98\x53\x02"
1020 "\xba\x1b\x0d\x8d\xc7\x8c\x08\x63"
1021 "\x46\xb5\x33\xb4\x9c\x03\x0d\x99"
1022 "\xa2\x7d\xaf\x11\x39\xd6\xe7\x5e",
1028 * MD5 test vectors from RFC1321
1030 #define MD5_TEST_VECTORS 7
1032 static struct hash_testvec md5_tv_template[] = {
1034 .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04"
1035 "\xe9\x80\x09\x98\xec\xf8\x42\x7e",
1036 }, {
1037 .plaintext = "a",
1038 .psize = 1,
1039 .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8"
1040 "\x31\xc3\x99\xe2\x69\x77\x26\x61",
1041 }, {
1042 .plaintext = "abc",
1043 .psize = 3,
1044 .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0"
1045 "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72",
1046 }, {
1047 .plaintext = "message digest",
1048 .psize = 14,
1049 .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d"
1050 "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0",
1051 }, {
1052 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1053 .psize = 26,
1054 .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00"
1055 "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b",
1056 .np = 2,
1057 .tap = {13, 13}
1058 }, {
1059 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
1060 .psize = 62,
1061 .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5"
1062 "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f",
1063 }, {
1064 .plaintext = "12345678901234567890123456789012345678901234567890123456789012"
1065 "345678901234567890",
1066 .psize = 80,
1067 .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55"
1068 "\xac\x49\xda\x2e\x21\x07\xb6\x7a",
1074 * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E)
1076 #define RMD128_TEST_VECTORS 10
1078 static struct hash_testvec rmd128_tv_template[] = {
1080 .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e"
1081 "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46",
1082 }, {
1083 .plaintext = "a",
1084 .psize = 1,
1085 .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7"
1086 "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33",
1087 }, {
1088 .plaintext = "abc",
1089 .psize = 3,
1090 .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba"
1091 "\x84\x63\x6b\x0f\x69\x14\x4c\x77",
1092 }, {
1093 .plaintext = "message digest",
1094 .psize = 14,
1095 .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62"
1096 "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8",
1097 }, {
1098 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1099 .psize = 26,
1100 .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5"
1101 "\x10\x71\x49\x22\xb3\x71\x83\x4e",
1102 }, {
1103 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1104 "fghijklmnopqrstuvwxyz0123456789",
1105 .psize = 62,
1106 .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f"
1107 "\xae\xa4\x62\x4c\x60\xc5\xc7\x02",
1108 }, {
1109 .plaintext = "1234567890123456789012345678901234567890"
1110 "1234567890123456789012345678901234567890",
1111 .psize = 80,
1112 .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb"
1113 "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3",
1114 }, {
1115 .plaintext = "abcdbcdecdefdefgefghfghighij"
1116 "hijkijkljklmklmnlmnomnopnopq",
1117 .psize = 56,
1118 .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d"
1119 "\xdc\x22\xe8\x8b\x49\x13\x3a\x06",
1120 .np = 2,
1121 .tap = { 28, 28 },
1122 }, {
1123 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
1124 "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
1125 "lmnopqrsmnopqrstnopqrstu",
1126 .psize = 112,
1127 .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b"
1128 "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46",
1129 }, {
1130 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1131 .psize = 32,
1132 .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d"
1133 "\xe1\x93\xff\x46\xdb\xac\xcf\xd4",
1138 * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E)
1140 #define RMD160_TEST_VECTORS 10
1142 static struct hash_testvec rmd160_tv_template[] = {
1144 .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28"
1145 "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31",
1146 }, {
1147 .plaintext = "a",
1148 .psize = 1,
1149 .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae"
1150 "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe",
1151 }, {
1152 .plaintext = "abc",
1153 .psize = 3,
1154 .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04"
1155 "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc",
1156 }, {
1157 .plaintext = "message digest",
1158 .psize = 14,
1159 .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8"
1160 "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36",
1161 }, {
1162 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1163 .psize = 26,
1164 .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb"
1165 "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc",
1166 }, {
1167 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1168 "fghijklmnopqrstuvwxyz0123456789",
1169 .psize = 62,
1170 .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed"
1171 "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89",
1172 }, {
1173 .plaintext = "1234567890123456789012345678901234567890"
1174 "1234567890123456789012345678901234567890",
1175 .psize = 80,
1176 .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb"
1177 "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb",
1178 }, {
1179 .plaintext = "abcdbcdecdefdefgefghfghighij"
1180 "hijkijkljklmklmnlmnomnopnopq",
1181 .psize = 56,
1182 .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05"
1183 "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b",
1184 .np = 2,
1185 .tap = { 28, 28 },
1186 }, {
1187 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
1188 "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
1189 "lmnopqrsmnopqrstnopqrstu",
1190 .psize = 112,
1191 .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91"
1192 "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45",
1193 }, {
1194 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1195 .psize = 32,
1196 .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d"
1197 "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f",
1202 * RIPEMD-256 test vectors
1204 #define RMD256_TEST_VECTORS 8
1206 static struct hash_testvec rmd256_tv_template[] = {
1208 .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18"
1209 "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a"
1210 "\x2d\x97\x74\xfb\x1e\x5d\x02\x63"
1211 "\x80\xae\x01\x68\xe3\xc5\x52\x2d",
1212 }, {
1213 .plaintext = "a",
1214 .psize = 1,
1215 .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9"
1216 "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c"
1217 "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf"
1218 "\xcd\x88\x3a\x91\x34\x69\x29\x25",
1219 }, {
1220 .plaintext = "abc",
1221 .psize = 3,
1222 .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb"
1223 "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1"
1224 "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e"
1225 "\x1e\x42\xd2\xe9\x75\x45\x9b\x65",
1226 }, {
1227 .plaintext = "message digest",
1228 .psize = 14,
1229 .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a"
1230 "\x51\x4d\x5c\x91\x4c\x39\x2c\x90"
1231 "\x18\xc7\xc4\x6b\xc1\x44\x65\x55"
1232 "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e",
1233 }, {
1234 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1235 .psize = 26,
1236 .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16"
1237 "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc"
1238 "\x78\x96\x11\x8a\x51\x97\x96\x87"
1239 "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33",
1240 }, {
1241 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1242 "fghijklmnopqrstuvwxyz0123456789",
1243 .psize = 62,
1244 .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20"
1245 "\xb8\x44\x24\xae\x93\x1c\xbb\x1f"
1246 "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1"
1247 "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8",
1248 }, {
1249 .plaintext = "1234567890123456789012345678901234567890"
1250 "1234567890123456789012345678901234567890",
1251 .psize = 80,
1252 .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa"
1253 "\xf9\x13\x68\xc0\x6a\x62\x75\xb5"
1254 "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed"
1255 "\xfd\x67\x78\xdf\x89\xa8\x90\xdd",
1256 }, {
1257 .plaintext = "abcdbcdecdefdefgefghfghighij"
1258 "hijkijkljklmklmnlmnomnopnopq",
1259 .psize = 56,
1260 .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8"
1261 "\xc8\xd9\x12\x85\x73\xe7\xa9\x80"
1262 "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e"
1263 "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f",
1264 .np = 2,
1265 .tap = { 28, 28 },
1270 * RIPEMD-320 test vectors
1272 #define RMD320_TEST_VECTORS 8
1274 static struct hash_testvec rmd320_tv_template[] = {
1276 .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1"
1277 "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25"
1278 "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e"
1279 "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8",
1280 }, {
1281 .plaintext = "a",
1282 .psize = 1,
1283 .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5"
1284 "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57"
1285 "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54"
1286 "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d",
1287 }, {
1288 .plaintext = "abc",
1289 .psize = 3,
1290 .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d"
1291 "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08"
1292 "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74"
1293 "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d",
1294 }, {
1295 .plaintext = "message digest",
1296 .psize = 14,
1297 .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68"
1298 "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa"
1299 "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d"
1300 "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97",
1301 }, {
1302 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1303 .psize = 26,
1304 .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93"
1305 "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4"
1306 "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed"
1307 "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09",
1308 }, {
1309 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1310 "fghijklmnopqrstuvwxyz0123456789",
1311 .psize = 62,
1312 .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2"
1313 "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c"
1314 "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9"
1315 "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4",
1316 }, {
1317 .plaintext = "1234567890123456789012345678901234567890"
1318 "1234567890123456789012345678901234567890",
1319 .psize = 80,
1320 .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6"
1321 "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41"
1322 "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f"
1323 "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42",
1324 }, {
1325 .plaintext = "abcdbcdecdefdefgefghfghighij"
1326 "hijkijkljklmklmnlmnomnopnopq",
1327 .psize = 56,
1328 .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4"
1329 "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59"
1330 "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b"
1331 "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac",
1332 .np = 2,
1333 .tap = { 28, 28 },
1337 #define CRCT10DIF_TEST_VECTORS 3
1338 static struct hash_testvec crct10dif_tv_template[] = {
1340 .plaintext = "abc",
1341 .psize = 3,
1342 #ifdef __LITTLE_ENDIAN
1343 .digest = "\x3b\x44",
1344 #else
1345 .digest = "\x44\x3b",
1346 #endif
1347 }, {
1348 .plaintext = "1234567890123456789012345678901234567890"
1349 "123456789012345678901234567890123456789",
1350 .psize = 79,
1351 #ifdef __LITTLE_ENDIAN
1352 .digest = "\x70\x4b",
1353 #else
1354 .digest = "\x4b\x70",
1355 #endif
1356 }, {
1357 .plaintext =
1358 "abcddddddddddddddddddddddddddddddddddddddddddddddddddddd",
1359 .psize = 56,
1360 #ifdef __LITTLE_ENDIAN
1361 .digest = "\xe3\x9c",
1362 #else
1363 .digest = "\x9c\xe3",
1364 #endif
1365 .np = 2,
1366 .tap = { 28, 28 }
1371 * SHA1 test vectors from from FIPS PUB 180-1
1372 * Long vector from CAVS 5.0
1374 #define SHA1_TEST_VECTORS 6
1376 static struct hash_testvec sha1_tv_template[] = {
1378 .plaintext = "",
1379 .psize = 0,
1380 .digest = "\xda\x39\xa3\xee\x5e\x6b\x4b\x0d\x32\x55"
1381 "\xbf\xef\x95\x60\x18\x90\xaf\xd8\x07\x09",
1382 }, {
1383 .plaintext = "abc",
1384 .psize = 3,
1385 .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e"
1386 "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d",
1387 }, {
1388 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1389 .psize = 56,
1390 .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae"
1391 "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1",
1392 .np = 2,
1393 .tap = { 28, 28 }
1394 }, {
1395 .plaintext = "\xec\x29\x56\x12\x44\xed\xe7\x06"
1396 "\xb6\xeb\x30\xa1\xc3\x71\xd7\x44"
1397 "\x50\xa1\x05\xc3\xf9\x73\x5f\x7f"
1398 "\xa9\xfe\x38\xcf\x67\xf3\x04\xa5"
1399 "\x73\x6a\x10\x6e\x92\xe1\x71\x39"
1400 "\xa6\x81\x3b\x1c\x81\xa4\xf3\xd3"
1401 "\xfb\x95\x46\xab\x42\x96\xfa\x9f"
1402 "\x72\x28\x26\xc0\x66\x86\x9e\xda"
1403 "\xcd\x73\xb2\x54\x80\x35\x18\x58"
1404 "\x13\xe2\x26\x34\xa9\xda\x44\x00"
1405 "\x0d\x95\xa2\x81\xff\x9f\x26\x4e"
1406 "\xcc\xe0\xa9\x31\x22\x21\x62\xd0"
1407 "\x21\xcc\xa2\x8d\xb5\xf3\xc2\xaa"
1408 "\x24\x94\x5a\xb1\xe3\x1c\xb4\x13"
1409 "\xae\x29\x81\x0f\xd7\x94\xca\xd5"
1410 "\xdf\xaf\x29\xec\x43\xcb\x38\xd1"
1411 "\x98\xfe\x4a\xe1\xda\x23\x59\x78"
1412 "\x02\x21\x40\x5b\xd6\x71\x2a\x53"
1413 "\x05\xda\x4b\x1b\x73\x7f\xce\x7c"
1414 "\xd2\x1c\x0e\xb7\x72\x8d\x08\x23"
1415 "\x5a\x90\x11",
1416 .psize = 163,
1417 .digest = "\x97\x01\x11\xc4\xe7\x7b\xcc\x88\xcc\x20"
1418 "\x45\x9c\x02\xb6\x9b\x4a\xa8\xf5\x82\x17",
1419 .np = 4,
1420 .tap = { 63, 64, 31, 5 }
1421 }, {
1422 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
1423 .psize = 64,
1424 .digest = "\xc8\x71\xf6\x9a\x63\xcc\xa9\x84\x84\x82"
1425 "\x64\xe7\x79\x95\x5d\xd7\x19\x41\x7c\x91",
1426 }, {
1427 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1428 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1429 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1430 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1431 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1432 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1433 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1434 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1435 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1436 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1437 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1438 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1439 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1440 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1441 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1442 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1443 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1444 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1445 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1446 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1447 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1448 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1449 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1450 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1451 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1452 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1453 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1454 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1455 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1456 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1457 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1458 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1459 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1460 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1461 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1462 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1463 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1464 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1465 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1466 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1467 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1468 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1469 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1470 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1471 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1472 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1473 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1474 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1475 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1476 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1477 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1478 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1479 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1480 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1481 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1482 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1483 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1484 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1485 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1486 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1487 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1488 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1489 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1490 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1491 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1492 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1493 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1494 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1495 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1496 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1497 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1498 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1499 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1500 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1501 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1502 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1503 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1504 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1505 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1506 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1507 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1508 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1509 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1510 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1511 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1512 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1513 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1514 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1515 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1516 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1517 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1518 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1519 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1520 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1521 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1522 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1523 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1524 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1525 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1526 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1527 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1528 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1529 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1530 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1531 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1532 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1533 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1534 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1535 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1536 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1537 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1538 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1539 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1540 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1541 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1542 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1543 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1544 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1545 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1546 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1547 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1548 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1549 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1550 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1551 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1552 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1553 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1554 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1555 .psize = 1023,
1556 .digest = "\xb8\xe3\x54\xed\xc5\xfc\xef\xa4"
1557 "\x55\x73\x4a\x81\x99\xe4\x47\x2a"
1558 "\x30\xd6\xc9\x85",
1564 * SHA224 test vectors from from FIPS PUB 180-2
1566 #define SHA224_TEST_VECTORS 5
1568 static struct hash_testvec sha224_tv_template[] = {
1570 .plaintext = "",
1571 .psize = 0,
1572 .digest = "\xd1\x4a\x02\x8c\x2a\x3a\x2b\xc9"
1573 "\x47\x61\x02\xbb\x28\x82\x34\xc4"
1574 "\x15\xa2\xb0\x1f\x82\x8e\xa6\x2a"
1575 "\xc5\xb3\xe4\x2f",
1576 }, {
1577 .plaintext = "abc",
1578 .psize = 3,
1579 .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22"
1580 "\x86\x42\xA4\x77\xBD\xA2\x55\xB3"
1581 "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7"
1582 "\xE3\x6C\x9D\xA7",
1583 }, {
1584 .plaintext =
1585 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1586 .psize = 56,
1587 .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC"
1588 "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50"
1589 "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19"
1590 "\x52\x52\x25\x25",
1591 .np = 2,
1592 .tap = { 28, 28 }
1593 }, {
1594 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
1595 .psize = 64,
1596 .digest = "\xc4\xdb\x2b\x3a\x58\xc3\x99\x01"
1597 "\x42\xfd\x10\x92\xaa\x4e\x04\x08"
1598 "\x58\xbb\xbb\xe8\xf8\x14\xa7\x0c"
1599 "\xef\x3b\xcb\x0e",
1600 }, {
1601 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1602 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1603 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1604 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1605 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1606 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1607 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1608 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1609 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1610 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1611 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1612 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1613 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1614 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1615 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1616 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1617 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1618 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1619 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1620 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1621 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1622 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1623 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1624 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1625 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1626 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1627 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1628 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1629 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1630 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1631 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1632 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1633 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1634 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1635 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1636 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1637 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1638 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1639 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1640 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1641 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1642 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1643 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1644 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1645 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1646 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1647 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1648 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1649 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1650 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1651 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1652 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1653 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1654 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1655 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1656 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1657 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1658 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1659 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1660 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1661 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1662 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1663 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1664 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1665 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1666 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1667 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1668 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1669 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1670 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1671 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1672 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1673 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1674 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1675 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1676 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1677 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1678 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1679 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1680 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1681 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1682 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1683 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1684 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1685 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1686 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1687 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1688 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1689 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1690 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1691 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1692 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1693 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1694 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1695 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1696 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1697 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1698 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1699 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1700 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1701 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1702 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1703 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1704 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1705 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1706 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1707 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1708 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1709 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1710 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1711 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1712 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1713 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1714 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1715 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1716 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1717 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1718 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1719 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1720 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1721 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1722 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1723 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1724 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1725 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1726 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1727 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1728 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1729 .psize = 1023,
1730 .digest = "\x98\x43\x07\x63\x75\xe0\xa7\x1c"
1731 "\x78\xb1\x8b\xfd\x04\xf5\x2d\x91"
1732 "\x20\x48\xa4\x28\xff\x55\xb1\xd3"
1733 "\xe6\xf9\x4f\xcc",
1738 * SHA256 test vectors from from NIST
1740 #define SHA256_TEST_VECTORS 5
1742 static struct hash_testvec sha256_tv_template[] = {
1744 .plaintext = "",
1745 .psize = 0,
1746 .digest = "\xe3\xb0\xc4\x42\x98\xfc\x1c\x14"
1747 "\x9a\xfb\xf4\xc8\x99\x6f\xb9\x24"
1748 "\x27\xae\x41\xe4\x64\x9b\x93\x4c"
1749 "\xa4\x95\x99\x1b\x78\x52\xb8\x55",
1750 }, {
1751 .plaintext = "abc",
1752 .psize = 3,
1753 .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea"
1754 "\x41\x41\x40\xde\x5d\xae\x22\x23"
1755 "\xb0\x03\x61\xa3\x96\x17\x7a\x9c"
1756 "\xb4\x10\xff\x61\xf2\x00\x15\xad",
1757 }, {
1758 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1759 .psize = 56,
1760 .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8"
1761 "\xe5\xc0\x26\x93\x0c\x3e\x60\x39"
1762 "\xa3\x3c\xe4\x59\x64\xff\x21\x67"
1763 "\xf6\xec\xed\xd4\x19\xdb\x06\xc1",
1764 .np = 2,
1765 .tap = { 28, 28 }
1766 }, {
1767 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
1768 .psize = 64,
1769 .digest = "\xb5\xfe\xad\x56\x7d\xff\xcb\xa4"
1770 "\x2c\x32\x29\x32\x19\xbb\xfb\xfa"
1771 "\xd6\xff\x94\xa3\x72\x91\x85\x66"
1772 "\x3b\xa7\x87\x77\x58\xa3\x40\x3a",
1773 }, {
1774 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1775 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1776 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1777 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1778 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1779 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1780 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1781 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1782 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1783 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1784 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1785 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1786 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1787 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1788 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1789 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1790 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1791 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1792 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1793 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1794 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1795 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1796 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1797 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1798 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1799 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1800 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1801 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1802 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1803 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1804 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1805 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1806 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1807 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1808 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1809 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1810 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1811 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1812 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1813 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1814 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1815 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1816 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1817 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1818 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1819 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1820 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1821 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1822 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1823 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1824 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1825 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1826 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1827 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1828 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1829 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1830 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1831 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1832 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1833 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1834 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1835 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1836 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1837 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1838 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1839 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1840 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1841 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1842 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1843 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1844 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1845 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1846 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1847 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1848 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1849 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1850 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1851 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1852 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1853 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1854 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1855 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1856 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1857 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1858 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1859 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1860 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1861 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1862 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1863 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1864 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1865 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1866 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1867 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1868 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1869 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1870 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1871 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1872 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1873 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1874 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1875 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1876 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1877 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1878 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1879 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1880 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1881 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1882 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1883 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1884 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1885 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1886 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1887 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1888 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1889 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1890 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1891 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1892 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1893 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1894 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1895 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1896 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1897 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1898 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1899 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1900 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1901 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1902 .psize = 1023,
1903 .digest = "\xc5\xce\x0c\xca\x01\x4f\x53\x3a"
1904 "\x32\x32\x17\xcc\xd4\x6a\x71\xa9"
1905 "\xf3\xed\x50\x10\x64\x8e\x06\xbe"
1906 "\x9b\x4a\xa6\xbb\x05\x89\x59\x51",
1911 * SHA384 test vectors from from NIST and kerneli
1913 #define SHA384_TEST_VECTORS 6
1915 static struct hash_testvec sha384_tv_template[] = {
1917 .plaintext = "",
1918 .psize = 0,
1919 .digest = "\x38\xb0\x60\xa7\x51\xac\x96\x38"
1920 "\x4c\xd9\x32\x7e\xb1\xb1\xe3\x6a"
1921 "\x21\xfd\xb7\x11\x14\xbe\x07\x43"
1922 "\x4c\x0c\xc7\xbf\x63\xf6\xe1\xda"
1923 "\x27\x4e\xde\xbf\xe7\x6f\x65\xfb"
1924 "\xd5\x1a\xd2\xf1\x48\x98\xb9\x5b",
1925 }, {
1926 .plaintext= "abc",
1927 .psize = 3,
1928 .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b"
1929 "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07"
1930 "\x27\x2c\x32\xab\x0e\xde\xd1\x63"
1931 "\x1a\x8b\x60\x5a\x43\xff\x5b\xed"
1932 "\x80\x86\x07\x2b\xa1\xe7\xcc\x23"
1933 "\x58\xba\xec\xa1\x34\xc8\x25\xa7",
1934 }, {
1935 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1936 .psize = 56,
1937 .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39"
1938 "\x37\x07\xa6\x5b\x1b\x47\x09\x39"
1939 "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab"
1940 "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6"
1941 "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f"
1942 "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b",
1943 }, {
1944 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
1945 "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
1946 .psize = 112,
1947 .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8"
1948 "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47"
1949 "\x53\x11\x1b\x17\x3b\x3b\x05\xd2"
1950 "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12"
1951 "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9"
1952 "\x66\xc3\xe9\xfa\x91\x74\x60\x39",
1953 }, {
1954 .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
1955 "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
1956 .psize = 104,
1957 .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb"
1958 "\xbd\x7e\x2c\x28\x62\xba\x29\x0a"
1959 "\xd3\x01\x0e\x49\x78\xc1\x98\xdc"
1960 "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a"
1961 "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a"
1962 "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4",
1963 .np = 4,
1964 .tap = { 26, 26, 26, 26 }
1965 }, {
1966 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1967 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1968 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1969 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1970 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1971 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1972 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1973 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1974 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1975 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1976 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1977 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1978 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1979 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1980 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1981 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1982 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1983 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1984 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1985 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1986 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1987 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1988 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1989 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1990 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1991 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1992 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1993 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1994 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1995 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1996 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1997 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1998 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1999 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
2000 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
2001 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2002 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
2003 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
2004 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
2005 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
2006 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
2007 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
2008 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
2009 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
2010 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
2011 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
2012 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
2013 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
2014 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
2015 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
2016 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
2017 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
2018 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
2019 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
2020 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
2021 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
2022 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
2023 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
2024 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
2025 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
2026 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
2027 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
2028 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
2029 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
2030 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
2031 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
2032 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
2033 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
2034 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
2035 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
2036 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
2037 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
2038 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
2039 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
2040 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
2041 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
2042 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
2043 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
2044 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
2045 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
2046 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
2047 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
2048 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
2049 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
2050 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
2051 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
2052 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
2053 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
2054 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
2055 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
2056 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
2057 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
2058 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
2059 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
2060 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
2061 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
2062 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
2063 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
2064 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
2065 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
2066 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
2067 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
2068 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
2069 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
2070 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
2071 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
2072 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
2073 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
2074 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
2075 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
2076 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
2077 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
2078 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
2079 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
2080 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
2081 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
2082 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
2083 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
2084 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
2085 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
2086 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
2087 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
2088 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
2089 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
2090 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
2091 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
2092 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
2093 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
2094 .psize = 1023,
2095 .digest = "\x4d\x97\x23\xc8\xea\x7a\x7c\x15"
2096 "\xb8\xff\x97\x9c\xf5\x13\x4f\x31"
2097 "\xde\x67\xf7\x24\x73\xcd\x70\x1c"
2098 "\x03\x4a\xba\x8a\x87\x49\xfe\xdc"
2099 "\x75\x29\x62\x83\xae\x3f\x17\xab"
2100 "\xfd\x10\x4d\x8e\x17\x1c\x1f\xca",
2105 * SHA512 test vectors from from NIST and kerneli
2107 #define SHA512_TEST_VECTORS 6
2109 static struct hash_testvec sha512_tv_template[] = {
2111 .plaintext = "",
2112 .psize = 0,
2113 .digest = "\xcf\x83\xe1\x35\x7e\xef\xb8\xbd"
2114 "\xf1\x54\x28\x50\xd6\x6d\x80\x07"
2115 "\xd6\x20\xe4\x05\x0b\x57\x15\xdc"
2116 "\x83\xf4\xa9\x21\xd3\x6c\xe9\xce"
2117 "\x47\xd0\xd1\x3c\x5d\x85\xf2\xb0"
2118 "\xff\x83\x18\xd2\x87\x7e\xec\x2f"
2119 "\x63\xb9\x31\xbd\x47\x41\x7a\x81"
2120 "\xa5\x38\x32\x7a\xf9\x27\xda\x3e",
2121 }, {
2122 .plaintext = "abc",
2123 .psize = 3,
2124 .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba"
2125 "\xcc\x41\x73\x49\xae\x20\x41\x31"
2126 "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2"
2127 "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a"
2128 "\x21\x92\x99\x2a\x27\x4f\xc1\xa8"
2129 "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd"
2130 "\x45\x4d\x44\x23\x64\x3c\xe8\x0e"
2131 "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f",
2132 }, {
2133 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2134 .psize = 56,
2135 .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a"
2136 "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16"
2137 "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8"
2138 "\x27\x9b\xe3\x31\xa7\x03\xc3\x35"
2139 "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9"
2140 "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0"
2141 "\x31\xad\x85\xc7\xa7\x1d\xd7\x03"
2142 "\x54\xec\x63\x12\x38\xca\x34\x45",
2143 }, {
2144 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
2145 "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
2146 .psize = 112,
2147 .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda"
2148 "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f"
2149 "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1"
2150 "\x72\x99\xae\xad\xb6\x88\x90\x18"
2151 "\x50\x1d\x28\x9e\x49\x00\xf7\xe4"
2152 "\x33\x1b\x99\xde\xc4\xb5\x43\x3a"
2153 "\xc7\xd3\x29\xee\xb6\xdd\x26\x54"
2154 "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09",
2155 }, {
2156 .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
2157 "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
2158 .psize = 104,
2159 .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11"
2160 "\x33\xb6\x89\x81\x21\xf1\xcf\x3d"
2161 "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c"
2162 "\x52\x57\xcf\x06\x99\x11\xf7\x5d"
2163 "\x8f\x58\x31\xb5\x6e\xbf\xda\x67"
2164 "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe"
2165 "\x2b\x28\x70\xf7\x42\xa5\x80\xd8"
2166 "\xed\xb4\x19\x87\x23\x28\x50\xc9",
2167 .np = 4,
2168 .tap = { 26, 26, 26, 26 }
2169 }, {
2170 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
2171 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
2172 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
2173 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
2174 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
2175 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
2176 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
2177 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
2178 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
2179 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
2180 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
2181 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
2182 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
2183 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
2184 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
2185 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
2186 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
2187 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
2188 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
2189 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
2190 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
2191 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
2192 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
2193 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
2194 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
2195 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
2196 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
2197 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
2198 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
2199 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
2200 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
2201 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
2202 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
2203 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
2204 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
2205 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2206 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
2207 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
2208 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
2209 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
2210 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
2211 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
2212 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
2213 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
2214 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
2215 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
2216 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
2217 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
2218 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
2219 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
2220 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
2221 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
2222 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
2223 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
2224 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
2225 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
2226 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
2227 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
2228 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
2229 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
2230 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
2231 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
2232 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
2233 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
2234 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
2235 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
2236 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
2237 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
2238 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
2239 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
2240 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
2241 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
2242 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
2243 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
2244 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
2245 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
2246 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
2247 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
2248 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
2249 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
2250 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
2251 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
2252 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
2253 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
2254 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
2255 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
2256 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
2257 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
2258 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
2259 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
2260 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
2261 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
2262 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
2263 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
2264 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
2265 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
2266 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
2267 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
2268 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
2269 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
2270 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
2271 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
2272 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
2273 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
2274 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
2275 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
2276 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
2277 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
2278 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
2279 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
2280 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
2281 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
2282 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
2283 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
2284 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
2285 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
2286 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
2287 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
2288 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
2289 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
2290 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
2291 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
2292 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
2293 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
2294 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
2295 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
2296 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
2297 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
2298 .psize = 1023,
2299 .digest = "\x76\xc9\xd4\x91\x7a\x5f\x0f\xaa"
2300 "\x13\x39\xf3\x01\x7a\xfa\xe5\x41"
2301 "\x5f\x0b\xf8\xeb\x32\xfc\xbf\xb0"
2302 "\xfa\x8c\xcd\x17\x83\xe2\xfa\xeb"
2303 "\x1c\x19\xde\xe2\x75\xdc\x34\x64"
2304 "\x5f\x35\x9c\x61\x2f\x10\xf9\xec"
2305 "\x59\xca\x9d\xcc\x25\x0c\x43\xba"
2306 "\x85\xa8\xf8\xfe\xb5\x24\xb2\xee",
2312 * WHIRLPOOL test vectors from Whirlpool package
2313 * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE
2314 * submission
2316 #define WP512_TEST_VECTORS 8
2318 static struct hash_testvec wp512_tv_template[] = {
2320 .plaintext = "",
2321 .psize = 0,
2322 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
2323 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
2324 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
2325 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
2326 "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
2327 "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57"
2328 "\xEA\x89\x64\xE5\x9B\x63\xD9\x37"
2329 "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3",
2332 }, {
2333 .plaintext = "a",
2334 .psize = 1,
2335 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
2336 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
2337 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
2338 "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
2339 "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
2340 "\x3A\x42\x39\x1A\x39\x14\x5A\x59"
2341 "\x1A\x92\x20\x0D\x56\x01\x95\xE5"
2342 "\x3B\x47\x85\x84\xFD\xAE\x23\x1A",
2343 }, {
2344 .plaintext = "abc",
2345 .psize = 3,
2346 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
2347 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
2348 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
2349 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
2350 "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
2351 "\x7D\x0E\x34\x95\x71\x14\xCB\xD6"
2352 "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82"
2353 "\xD2\x25\x29\x20\x76\xD4\xEE\xF5",
2354 }, {
2355 .plaintext = "message digest",
2356 .psize = 14,
2357 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
2358 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
2359 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
2360 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
2361 "\x84\x21\x55\x76\x59\xEF\x55\xC1"
2362 "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6"
2363 "\x92\xED\x92\x00\x52\x83\x8F\x33"
2364 "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E",
2365 }, {
2366 .plaintext = "abcdefghijklmnopqrstuvwxyz",
2367 .psize = 26,
2368 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
2369 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
2370 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
2371 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
2372 "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
2373 "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6"
2374 "\xF6\x8F\x67\x3E\x72\x07\x86\x5D"
2375 "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B",
2376 }, {
2377 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
2378 "abcdefghijklmnopqrstuvwxyz0123456789",
2379 .psize = 62,
2380 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
2381 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
2382 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
2383 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
2384 "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
2385 "\xB7\xCB\x57\x21\x1B\x92\x81\xA6"
2386 "\x55\x17\xCC\x87\x9D\x7B\x96\x21"
2387 "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67",
2388 }, {
2389 .plaintext = "1234567890123456789012345678901234567890"
2390 "1234567890123456789012345678901234567890",
2391 .psize = 80,
2392 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
2393 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
2394 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
2395 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
2396 "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
2397 "\x38\xCD\x04\x7B\x26\x81\xA5\x1A"
2398 "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B"
2399 "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B",
2400 }, {
2401 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
2402 .psize = 32,
2403 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
2404 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
2405 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
2406 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
2407 "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
2408 "\x7B\x94\x76\x39\xFE\x05\x0B\x56"
2409 "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6"
2410 "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD",
2414 #define WP384_TEST_VECTORS 8
2416 static struct hash_testvec wp384_tv_template[] = {
2418 .plaintext = "",
2419 .psize = 0,
2420 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
2421 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
2422 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
2423 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
2424 "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
2425 "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57",
2428 }, {
2429 .plaintext = "a",
2430 .psize = 1,
2431 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
2432 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
2433 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
2434 "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
2435 "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
2436 "\x3A\x42\x39\x1A\x39\x14\x5A\x59",
2437 }, {
2438 .plaintext = "abc",
2439 .psize = 3,
2440 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
2441 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
2442 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
2443 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
2444 "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
2445 "\x7D\x0E\x34\x95\x71\x14\xCB\xD6",
2446 }, {
2447 .plaintext = "message digest",
2448 .psize = 14,
2449 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
2450 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
2451 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
2452 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
2453 "\x84\x21\x55\x76\x59\xEF\x55\xC1"
2454 "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6",
2455 }, {
2456 .plaintext = "abcdefghijklmnopqrstuvwxyz",
2457 .psize = 26,
2458 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
2459 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
2460 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
2461 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
2462 "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
2463 "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6",
2464 }, {
2465 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
2466 "abcdefghijklmnopqrstuvwxyz0123456789",
2467 .psize = 62,
2468 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
2469 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
2470 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
2471 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
2472 "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
2473 "\xB7\xCB\x57\x21\x1B\x92\x81\xA6",
2474 }, {
2475 .plaintext = "1234567890123456789012345678901234567890"
2476 "1234567890123456789012345678901234567890",
2477 .psize = 80,
2478 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
2479 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
2480 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
2481 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
2482 "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
2483 "\x38\xCD\x04\x7B\x26\x81\xA5\x1A",
2484 }, {
2485 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
2486 .psize = 32,
2487 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
2488 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
2489 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
2490 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
2491 "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
2492 "\x7B\x94\x76\x39\xFE\x05\x0B\x56",
2496 #define WP256_TEST_VECTORS 8
2498 static struct hash_testvec wp256_tv_template[] = {
2500 .plaintext = "",
2501 .psize = 0,
2502 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
2503 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
2504 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
2505 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7",
2508 }, {
2509 .plaintext = "a",
2510 .psize = 1,
2511 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
2512 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
2513 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
2514 "\x73\xC4\x50\x01\xD0\x08\x7B\x42",
2515 }, {
2516 .plaintext = "abc",
2517 .psize = 3,
2518 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
2519 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
2520 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
2521 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C",
2522 }, {
2523 .plaintext = "message digest",
2524 .psize = 14,
2525 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
2526 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
2527 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
2528 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B",
2529 }, {
2530 .plaintext = "abcdefghijklmnopqrstuvwxyz",
2531 .psize = 26,
2532 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
2533 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
2534 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
2535 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B",
2536 }, {
2537 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
2538 "abcdefghijklmnopqrstuvwxyz0123456789",
2539 .psize = 62,
2540 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
2541 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
2542 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
2543 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E",
2544 }, {
2545 .plaintext = "1234567890123456789012345678901234567890"
2546 "1234567890123456789012345678901234567890",
2547 .psize = 80,
2548 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
2549 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
2550 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
2551 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29",
2552 }, {
2553 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
2554 .psize = 32,
2555 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
2556 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
2557 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
2558 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69",
2563 * TIGER test vectors from Tiger website
2565 #define TGR192_TEST_VECTORS 6
2567 static struct hash_testvec tgr192_tv_template[] = {
2569 .plaintext = "",
2570 .psize = 0,
2571 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
2572 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
2573 "\xf3\x73\xde\x2d\x49\x58\x4e\x7a",
2574 }, {
2575 .plaintext = "abc",
2576 .psize = 3,
2577 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
2578 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
2579 "\x93\x5f\x7b\x95\x1c\x13\x29\x51",
2580 }, {
2581 .plaintext = "Tiger",
2582 .psize = 5,
2583 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
2584 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
2585 "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf",
2586 }, {
2587 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2588 .psize = 64,
2589 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
2590 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
2591 "\xb5\x86\x44\x50\x34\xa5\xa3\x86",
2592 }, {
2593 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
2594 .psize = 64,
2595 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
2596 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
2597 "\x57\x89\x65\x65\x97\x5f\x91\x97",
2598 }, {
2599 .plaintext = "Tiger - A Fast New Hash Function, "
2600 "by Ross Anderson and Eli Biham, "
2601 "proceedings of Fast Software Encryption 3, "
2602 "Cambridge, 1996.",
2603 .psize = 125,
2604 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
2605 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
2606 "\xdd\x68\x15\x1d\x50\x39\x74\xfc",
2610 #define TGR160_TEST_VECTORS 6
2612 static struct hash_testvec tgr160_tv_template[] = {
2614 .plaintext = "",
2615 .psize = 0,
2616 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
2617 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
2618 "\xf3\x73\xde\x2d",
2619 }, {
2620 .plaintext = "abc",
2621 .psize = 3,
2622 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
2623 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
2624 "\x93\x5f\x7b\x95",
2625 }, {
2626 .plaintext = "Tiger",
2627 .psize = 5,
2628 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
2629 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
2630 "\x37\x79\x0c\x11",
2631 }, {
2632 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2633 .psize = 64,
2634 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
2635 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
2636 "\xb5\x86\x44\x50",
2637 }, {
2638 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
2639 .psize = 64,
2640 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
2641 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
2642 "\x57\x89\x65\x65",
2643 }, {
2644 .plaintext = "Tiger - A Fast New Hash Function, "
2645 "by Ross Anderson and Eli Biham, "
2646 "proceedings of Fast Software Encryption 3, "
2647 "Cambridge, 1996.",
2648 .psize = 125,
2649 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
2650 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
2651 "\xdd\x68\x15\x1d",
2655 #define TGR128_TEST_VECTORS 6
2657 static struct hash_testvec tgr128_tv_template[] = {
2659 .plaintext = "",
2660 .psize = 0,
2661 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
2662 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f",
2663 }, {
2664 .plaintext = "abc",
2665 .psize = 3,
2666 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
2667 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf",
2668 }, {
2669 .plaintext = "Tiger",
2670 .psize = 5,
2671 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
2672 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec",
2673 }, {
2674 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2675 .psize = 64,
2676 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
2677 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e",
2678 }, {
2679 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
2680 .psize = 64,
2681 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
2682 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9",
2683 }, {
2684 .plaintext = "Tiger - A Fast New Hash Function, "
2685 "by Ross Anderson and Eli Biham, "
2686 "proceedings of Fast Software Encryption 3, "
2687 "Cambridge, 1996.",
2688 .psize = 125,
2689 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
2690 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24",
2694 #define GHASH_TEST_VECTORS 6
2696 static struct hash_testvec ghash_tv_template[] =
2699 .key = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03"
2700 "\xff\xca\xff\x95\xf8\x30\xf0\x61",
2701 .ksize = 16,
2702 .plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0"
2703 "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
2704 .psize = 16,
2705 .digest = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
2706 "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
2707 }, {
2708 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2709 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
2710 .ksize = 16,
2711 .plaintext = "what do ya want for nothing?",
2712 .psize = 28,
2713 .digest = "\x3e\x1f\x5c\x4d\x65\xf0\xef\xce"
2714 "\x0d\x61\x06\x27\x66\x51\xd5\xe2",
2715 .np = 2,
2716 .tap = {14, 14}
2717 }, {
2718 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2719 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
2720 .ksize = 16,
2721 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2722 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2723 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2724 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
2725 .psize = 50,
2726 .digest = "\xfb\x49\x8a\x36\xe1\x96\xe1\x96"
2727 "\xe1\x96\xe1\x96\xe1\x96\xe1\x96",
2728 }, {
2729 .key = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
2730 "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
2731 .ksize = 16,
2732 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2733 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2734 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2735 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
2736 .psize = 50,
2737 .digest = "\x2b\x5c\x0c\x7f\x52\xd1\x60\xc2"
2738 "\x49\xed\x6e\x32\x7a\xa9\xbe\x08",
2739 }, {
2740 .key = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0"
2741 "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
2742 .ksize = 16,
2743 .plaintext = "Test With Truncation",
2744 .psize = 20,
2745 .digest = "\xf8\x94\x87\x2a\x4b\x63\x99\x28"
2746 "\x23\xf7\x93\xf7\x19\xf5\x96\xd9",
2747 }, {
2748 .key = "\x0a\x1b\x2c\x3d\x4e\x5f\x64\x71"
2749 "\x82\x93\xa4\xb5\xc6\xd7\xe8\xf9",
2750 .ksize = 16,
2751 .plaintext = "\x56\x6f\x72\x20\x6c\x61\x75\x74"
2752 "\x65\x72\x20\x4c\x61\x75\x73\x63"
2753 "\x68\x65\x6e\x20\x75\x6e\x64\x20"
2754 "\x53\x74\x61\x75\x6e\x65\x6e\x20"
2755 "\x73\x65\x69\x20\x73\x74\x69\x6c"
2756 "\x6c\x2c\x0a\x64\x75\x20\x6d\x65"
2757 "\x69\x6e\x20\x74\x69\x65\x66\x74"
2758 "\x69\x65\x66\x65\x73\x20\x4c\x65"
2759 "\x62\x65\x6e\x3b\x0a\x64\x61\x73"
2760 "\x73\x20\x64\x75\x20\x77\x65\x69"
2761 "\xc3\x9f\x74\x20\x77\x61\x73\x20"
2762 "\x64\x65\x72\x20\x57\x69\x6e\x64"
2763 "\x20\x64\x69\x72\x20\x77\x69\x6c"
2764 "\x6c\x2c\x0a\x65\x68\x20\x6e\x6f"
2765 "\x63\x68\x20\x64\x69\x65\x20\x42"
2766 "\x69\x72\x6b\x65\x6e\x20\x62\x65"
2767 "\x62\x65\x6e\x2e\x0a\x0a\x55\x6e"
2768 "\x64\x20\x77\x65\x6e\x6e\x20\x64"
2769 "\x69\x72\x20\x65\x69\x6e\x6d\x61"
2770 "\x6c\x20\x64\x61\x73\x20\x53\x63"
2771 "\x68\x77\x65\x69\x67\x65\x6e\x20"
2772 "\x73\x70\x72\x61\x63\x68\x2c\x0a"
2773 "\x6c\x61\x73\x73\x20\x64\x65\x69"
2774 "\x6e\x65\x20\x53\x69\x6e\x6e\x65"
2775 "\x20\x62\x65\x73\x69\x65\x67\x65"
2776 "\x6e\x2e\x0a\x4a\x65\x64\x65\x6d"
2777 "\x20\x48\x61\x75\x63\x68\x65\x20"
2778 "\x67\x69\x62\x74\x20\x64\x69\x63"
2779 "\x68\x2c\x20\x67\x69\x62\x20\x6e"
2780 "\x61\x63\x68\x2c\x0a\x65\x72\x20"
2781 "\x77\x69\x72\x64\x20\x64\x69\x63"
2782 "\x68\x20\x6c\x69\x65\x62\x65\x6e"
2783 "\x20\x75\x6e\x64\x20\x77\x69\x65"
2784 "\x67\x65\x6e\x2e\x0a\x0a\x55\x6e"
2785 "\x64\x20\x64\x61\x6e\x6e\x20\x6d"
2786 "\x65\x69\x6e\x65\x20\x53\x65\x65"
2787 "\x6c\x65\x20\x73\x65\x69\x74\x20"
2788 "\x77\x65\x69\x74\x2c\x20\x73\x65"
2789 "\x69\x20\x77\x65\x69\x74\x2c\x0a"
2790 "\x64\x61\x73\x73\x20\x64\x69\x72"
2791 "\x20\x64\x61\x73\x20\x4c\x65\x62"
2792 "\x65\x6e\x20\x67\x65\x6c\x69\x6e"
2793 "\x67\x65\x2c\x0a\x62\x72\x65\x69"
2794 "\x74\x65\x20\x64\x69\x63\x68\x20"
2795 "\x77\x69\x65\x20\x65\x69\x6e\x20"
2796 "\x46\x65\x69\x65\x72\x6b\x6c\x65"
2797 "\x69\x64\x0a\xc3\xbc\x62\x65\x72"
2798 "\x20\x64\x69\x65\x20\x73\x69\x6e"
2799 "\x6e\x65\x6e\x64\x65\x6e\x20\x44"
2800 "\x69\x6e\x67\x65\x2e\x2e\x2e\x0a",
2801 .psize = 400,
2802 .digest = "\xad\xb1\xc1\xe9\x56\x70\x31\x1d"
2803 "\xbb\x5b\xdf\x5e\x70\x72\x1a\x57",
2808 * HMAC-MD5 test vectors from RFC2202
2809 * (These need to be fixed to not use strlen).
2811 #define HMAC_MD5_TEST_VECTORS 7
2813 static struct hash_testvec hmac_md5_tv_template[] =
2816 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
2817 .ksize = 16,
2818 .plaintext = "Hi There",
2819 .psize = 8,
2820 .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c"
2821 "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d",
2822 }, {
2823 .key = "Jefe",
2824 .ksize = 4,
2825 .plaintext = "what do ya want for nothing?",
2826 .psize = 28,
2827 .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03"
2828 "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38",
2829 .np = 2,
2830 .tap = {14, 14}
2831 }, {
2832 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
2833 .ksize = 16,
2834 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2835 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2836 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2837 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
2838 .psize = 50,
2839 .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88"
2840 "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6",
2841 }, {
2842 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
2843 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
2844 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
2845 .ksize = 25,
2846 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2847 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2848 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2849 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
2850 .psize = 50,
2851 .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea"
2852 "\x3a\x75\x16\x47\x46\xff\xaa\x79",
2853 }, {
2854 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
2855 .ksize = 16,
2856 .plaintext = "Test With Truncation",
2857 .psize = 20,
2858 .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00"
2859 "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c",
2860 }, {
2861 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2862 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2863 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2864 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2865 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2866 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2867 "\xaa\xaa",
2868 .ksize = 80,
2869 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
2870 .psize = 54,
2871 .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f"
2872 "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd",
2873 }, {
2874 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2875 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2876 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2877 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2878 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2879 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2880 "\xaa\xaa",
2881 .ksize = 80,
2882 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
2883 "Block-Size Data",
2884 .psize = 73,
2885 .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee"
2886 "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e",
2891 * HMAC-RIPEMD128 test vectors from RFC2286
2893 #define HMAC_RMD128_TEST_VECTORS 7
2895 static struct hash_testvec hmac_rmd128_tv_template[] = {
2897 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
2898 .ksize = 16,
2899 .plaintext = "Hi There",
2900 .psize = 8,
2901 .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf"
2902 "\x81\xc1\x72\xe8\x4e\x07\x34\xdb",
2903 }, {
2904 .key = "Jefe",
2905 .ksize = 4,
2906 .plaintext = "what do ya want for nothing?",
2907 .psize = 28,
2908 .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34"
2909 "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b",
2910 .np = 2,
2911 .tap = { 14, 14 },
2912 }, {
2913 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
2914 .ksize = 16,
2915 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2916 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2917 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2918 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
2919 .psize = 50,
2920 .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d"
2921 "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d",
2922 }, {
2923 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
2924 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
2925 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
2926 .ksize = 25,
2927 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2928 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2929 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2930 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
2931 .psize = 50,
2932 .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a"
2933 "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94",
2934 }, {
2935 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
2936 .ksize = 16,
2937 .plaintext = "Test With Truncation",
2938 .psize = 20,
2939 .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03"
2940 "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a",
2941 }, {
2942 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2943 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2944 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2945 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2946 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2947 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2948 "\xaa\xaa",
2949 .ksize = 80,
2950 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
2951 .psize = 54,
2952 .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a"
2953 "\x1f\x59\xd3\x73\xc1\x50\xac\xbb",
2954 }, {
2955 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2956 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2957 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2958 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2959 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2960 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2961 "\xaa\xaa",
2962 .ksize = 80,
2963 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
2964 "Block-Size Data",
2965 .psize = 73,
2966 .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4"
2967 "\x06\x90\xc2\x37\x63\x5f\x30\xc5",
2972 * HMAC-RIPEMD160 test vectors from RFC2286
2974 #define HMAC_RMD160_TEST_VECTORS 7
2976 static struct hash_testvec hmac_rmd160_tv_template[] = {
2978 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
2979 .ksize = 20,
2980 .plaintext = "Hi There",
2981 .psize = 8,
2982 .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e"
2983 "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68",
2984 }, {
2985 .key = "Jefe",
2986 .ksize = 4,
2987 .plaintext = "what do ya want for nothing?",
2988 .psize = 28,
2989 .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4"
2990 "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69",
2991 .np = 2,
2992 .tap = { 14, 14 },
2993 }, {
2994 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
2995 .ksize = 20,
2996 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2997 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2998 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2999 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3000 .psize = 50,
3001 .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4"
3002 "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1",
3003 }, {
3004 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
3005 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3006 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
3007 .ksize = 25,
3008 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3009 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3010 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3011 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3012 .psize = 50,
3013 .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1"
3014 "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4",
3015 }, {
3016 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
3017 .ksize = 20,
3018 .plaintext = "Test With Truncation",
3019 .psize = 20,
3020 .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a"
3021 "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39",
3022 }, {
3023 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3024 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3025 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3026 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3027 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3028 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3029 "\xaa\xaa",
3030 .ksize = 80,
3031 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
3032 .psize = 54,
3033 .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd"
3034 "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b",
3035 }, {
3036 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3037 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3038 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3039 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3040 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3041 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3042 "\xaa\xaa",
3043 .ksize = 80,
3044 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
3045 "Block-Size Data",
3046 .psize = 73,
3047 .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f"
3048 "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a",
3053 * HMAC-SHA1 test vectors from RFC2202
3055 #define HMAC_SHA1_TEST_VECTORS 7
3057 static struct hash_testvec hmac_sha1_tv_template[] = {
3059 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
3060 .ksize = 20,
3061 .plaintext = "Hi There",
3062 .psize = 8,
3063 .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64"
3064 "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1"
3065 "\x46\xbe",
3066 }, {
3067 .key = "Jefe",
3068 .ksize = 4,
3069 .plaintext = "what do ya want for nothing?",
3070 .psize = 28,
3071 .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74"
3072 "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79",
3073 .np = 2,
3074 .tap = { 14, 14 }
3075 }, {
3076 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3077 .ksize = 20,
3078 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3079 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3080 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3081 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3082 .psize = 50,
3083 .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3"
3084 "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3",
3085 }, {
3086 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
3087 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3088 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
3089 .ksize = 25,
3090 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3091 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3092 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3093 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3094 .psize = 50,
3095 .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84"
3096 "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda",
3097 }, {
3098 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
3099 .ksize = 20,
3100 .plaintext = "Test With Truncation",
3101 .psize = 20,
3102 .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2"
3103 "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04",
3104 }, {
3105 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3106 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3107 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3108 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3109 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3110 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3111 "\xaa\xaa",
3112 .ksize = 80,
3113 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
3114 .psize = 54,
3115 .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70"
3116 "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12",
3117 }, {
3118 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3119 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3120 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3121 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3122 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3123 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3124 "\xaa\xaa",
3125 .ksize = 80,
3126 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
3127 "Block-Size Data",
3128 .psize = 73,
3129 .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b"
3130 "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91",
3136 * SHA224 HMAC test vectors from RFC4231
3138 #define HMAC_SHA224_TEST_VECTORS 4
3140 static struct hash_testvec hmac_sha224_tv_template[] = {
3142 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3143 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3144 "\x0b\x0b\x0b\x0b",
3145 .ksize = 20,
3146 /* ("Hi There") */
3147 .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65",
3148 .psize = 8,
3149 .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19"
3150 "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f"
3151 "\x47\xb4\xb1\x16\x99\x12\xba\x4f"
3152 "\x53\x68\x4b\x22",
3153 }, {
3154 .key = "Jefe",
3155 .ksize = 4,
3156 /* ("what do ya want for nothing?") */
3157 .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20"
3158 "\x79\x61\x20\x77\x61\x6e\x74\x20"
3159 "\x66\x6f\x72\x20\x6e\x6f\x74\x68"
3160 "\x69\x6e\x67\x3f",
3161 .psize = 28,
3162 .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf"
3163 "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f"
3164 "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00"
3165 "\x8f\xd0\x5e\x44",
3166 .np = 4,
3167 .tap = { 7, 7, 7, 7 }
3168 }, {
3169 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3170 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3171 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3172 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3173 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3174 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3175 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3176 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3177 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3178 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3179 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3180 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3181 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3182 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3183 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3184 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3185 "\xaa\xaa\xaa",
3186 .ksize = 131,
3187 /* ("Test Using Larger Than Block-Size Key - Hash Key First") */
3188 .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69"
3189 "\x6e\x67\x20\x4c\x61\x72\x67\x65"
3190 "\x72\x20\x54\x68\x61\x6e\x20\x42"
3191 "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a"
3192 "\x65\x20\x4b\x65\x79\x20\x2d\x20"
3193 "\x48\x61\x73\x68\x20\x4b\x65\x79"
3194 "\x20\x46\x69\x72\x73\x74",
3195 .psize = 54,
3196 .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad"
3197 "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2"
3198 "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27"
3199 "\x3f\xa6\x87\x0e",
3200 }, {
3201 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3202 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3203 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3204 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3205 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3206 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3207 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3208 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3209 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3210 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3211 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3212 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3213 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3214 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3215 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3216 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3217 "\xaa\xaa\xaa",
3218 .ksize = 131,
3219 /* ("This is a test using a larger than block-size key and a")
3220 (" larger than block-size data. The key needs to be")
3221 (" hashed before being used by the HMAC algorithm.") */
3222 .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20"
3223 "\x61\x20\x74\x65\x73\x74\x20\x75"
3224 "\x73\x69\x6e\x67\x20\x61\x20\x6c"
3225 "\x61\x72\x67\x65\x72\x20\x74\x68"
3226 "\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
3227 "\x2d\x73\x69\x7a\x65\x20\x6b\x65"
3228 "\x79\x20\x61\x6e\x64\x20\x61\x20"
3229 "\x6c\x61\x72\x67\x65\x72\x20\x74"
3230 "\x68\x61\x6e\x20\x62\x6c\x6f\x63"
3231 "\x6b\x2d\x73\x69\x7a\x65\x20\x64"
3232 "\x61\x74\x61\x2e\x20\x54\x68\x65"
3233 "\x20\x6b\x65\x79\x20\x6e\x65\x65"
3234 "\x64\x73\x20\x74\x6f\x20\x62\x65"
3235 "\x20\x68\x61\x73\x68\x65\x64\x20"
3236 "\x62\x65\x66\x6f\x72\x65\x20\x62"
3237 "\x65\x69\x6e\x67\x20\x75\x73\x65"
3238 "\x64\x20\x62\x79\x20\x74\x68\x65"
3239 "\x20\x48\x4d\x41\x43\x20\x61\x6c"
3240 "\x67\x6f\x72\x69\x74\x68\x6d\x2e",
3241 .psize = 152,
3242 .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02"
3243 "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd"
3244 "\x94\x67\x70\xdb\x9c\x2b\x95\xc9"
3245 "\xf6\xf5\x65\xd1",
3250 * HMAC-SHA256 test vectors from
3251 * draft-ietf-ipsec-ciph-sha-256-01.txt
3253 #define HMAC_SHA256_TEST_VECTORS 10
3255 static struct hash_testvec hmac_sha256_tv_template[] = {
3257 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
3258 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3259 "\x11\x12\x13\x14\x15\x16\x17\x18"
3260 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
3261 .ksize = 32,
3262 .plaintext = "abc",
3263 .psize = 3,
3264 .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a"
3265 "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a"
3266 "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66"
3267 "\x92\x75\x90\x21\xcf\xab\x81\x81",
3268 }, {
3269 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
3270 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3271 "\x11\x12\x13\x14\x15\x16\x17\x18"
3272 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
3273 .ksize = 32,
3274 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
3275 .psize = 56,
3276 .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08"
3277 "\x18\x4b\xa7\x31\x31\xc5\x3c\xae"
3278 "\xe6\x98\xe3\x61\x19\x42\x11\x49"
3279 "\xea\x8c\x71\x24\x56\x69\x7d\x30",
3280 }, {
3281 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
3282 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3283 "\x11\x12\x13\x14\x15\x16\x17\x18"
3284 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
3285 .ksize = 32,
3286 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
3287 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
3288 .psize = 112,
3289 .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34"
3290 "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab"
3291 "\x73\xac\xf0\xfd\x06\x04\x47\xa5"
3292 "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3",
3293 }, {
3294 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3295 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3296 "\x0b\x0b\x0b\x0b\x0b\x0b",
3297 .ksize = 32,
3298 .plaintext = "Hi There",
3299 .psize = 8,
3300 .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6"
3301 "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5"
3302 "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c"
3303 "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7",
3304 }, {
3305 .key = "Jefe",
3306 .ksize = 4,
3307 .plaintext = "what do ya want for nothing?",
3308 .psize = 28,
3309 .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e"
3310 "\x6a\x04\x24\x26\x08\x95\x75\xc7"
3311 "\x5a\x00\x3f\x08\x9d\x27\x39\x83"
3312 "\x9d\xec\x58\xb9\x64\xec\x38\x43",
3313 .np = 2,
3314 .tap = { 14, 14 }
3315 }, {
3316 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3317 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3318 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3319 .ksize = 32,
3320 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3321 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3322 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3323 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3324 .psize = 50,
3325 .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea"
3326 "\x91\xe5\x3a\xba\x30\x92\xf9\x62"
3327 "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc"
3328 "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0",
3329 }, {
3330 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
3331 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3332 "\x11\x12\x13\x14\x15\x16\x17\x18"
3333 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
3334 "\x21\x22\x23\x24\x25",
3335 .ksize = 37,
3336 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3337 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3338 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3339 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3340 .psize = 50,
3341 .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74"
3342 "\x4c\x66\xde\xe0\xf8\xf0\x74\x55"
3343 "\x6e\xc4\xaf\x55\xef\x07\x99\x85"
3344 "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17",
3345 }, {
3346 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
3347 "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
3348 "\x0c\x0c\x0c\x0c\x0c\x0c",
3349 .ksize = 32,
3350 .plaintext = "Test With Truncation",
3351 .psize = 20,
3352 .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b"
3353 "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17"
3354 "\xd4\xf5\x89\x66\x8a\x58\x7b\x27"
3355 "\x00\xa9\xc9\x7c\x11\x93\xcf\x42",
3356 }, {
3357 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3358 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3359 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3360 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3361 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3362 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3363 "\xaa\xaa",
3364 .ksize = 80,
3365 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
3366 .psize = 54,
3367 .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09"
3368 "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb"
3369 "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e"
3370 "\x7d\xdd\x39\x09\x1b\x32\x35\x2f",
3371 }, {
3372 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3373 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3374 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3375 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3376 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3377 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3378 "\xaa\xaa",
3379 .ksize = 80,
3380 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than "
3381 "One Block-Size Data",
3382 .psize = 73,
3383 .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3"
3384 "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8"
3385 "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc"
3386 "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6",
3390 #define CMAC_AES_TEST_VECTORS 6
3392 static struct hash_testvec aes_cmac128_tv_template[] = {
3393 { /* From NIST Special Publication 800-38B, AES-128 */
3394 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
3395 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
3396 .plaintext = zeroed_string,
3397 .digest = "\xbb\x1d\x69\x29\xe9\x59\x37\x28"
3398 "\x7f\xa3\x7d\x12\x9b\x75\x67\x46",
3399 .psize = 0,
3400 .ksize = 16,
3401 }, {
3402 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
3403 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
3404 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3405 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a",
3406 .digest = "\x07\x0a\x16\xb4\x6b\x4d\x41\x44"
3407 "\xf7\x9b\xdd\x9d\xd0\x4a\x28\x7c",
3408 .psize = 16,
3409 .ksize = 16,
3410 }, {
3411 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
3412 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
3413 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3414 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3415 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
3416 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
3417 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11",
3418 .digest = "\xdf\xa6\x67\x47\xde\x9a\xe6\x30"
3419 "\x30\xca\x32\x61\x14\x97\xc8\x27",
3420 .psize = 40,
3421 .ksize = 16,
3422 }, {
3423 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
3424 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
3425 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3426 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3427 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
3428 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
3429 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
3430 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
3431 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
3432 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
3433 .digest = "\x51\xf0\xbe\xbf\x7e\x3b\x9d\x92"
3434 "\xfc\x49\x74\x17\x79\x36\x3c\xfe",
3435 .psize = 64,
3436 .ksize = 16,
3437 }, { /* From NIST Special Publication 800-38B, AES-256 */
3438 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
3439 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
3440 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
3441 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
3442 .plaintext = zeroed_string,
3443 .digest = "\x02\x89\x62\xf6\x1b\x7b\xf8\x9e"
3444 "\xfc\x6b\x55\x1f\x46\x67\xd9\x83",
3445 .psize = 0,
3446 .ksize = 32,
3447 }, {
3448 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
3449 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
3450 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
3451 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
3452 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3453 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3454 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
3455 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
3456 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
3457 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
3458 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
3459 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
3460 .digest = "\xe1\x99\x21\x90\x54\x9f\x6e\xd5"
3461 "\x69\x6a\x2c\x05\x6c\x31\x54\x10",
3462 .psize = 64,
3463 .ksize = 32,
3467 #define CMAC_DES3_EDE_TEST_VECTORS 4
3469 static struct hash_testvec des3_ede_cmac64_tv_template[] = {
3471 * From NIST Special Publication 800-38B, Three Key TDEA
3472 * Corrected test vectors from:
3473 * http://csrc.nist.gov/publications/nistpubs/800-38B/Updated_CMAC_Examples.pdf
3476 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
3477 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
3478 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
3479 .plaintext = zeroed_string,
3480 .digest = "\xb7\xa6\x88\xe1\x22\xff\xaf\x95",
3481 .psize = 0,
3482 .ksize = 24,
3483 }, {
3484 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
3485 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
3486 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
3487 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96",
3488 .digest = "\x8e\x8f\x29\x31\x36\x28\x37\x97",
3489 .psize = 8,
3490 .ksize = 24,
3491 }, {
3492 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
3493 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
3494 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
3495 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3496 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3497 "\xae\x2d\x8a\x57",
3498 .digest = "\x74\x3d\xdb\xe0\xce\x2d\xc2\xed",
3499 .psize = 20,
3500 .ksize = 24,
3501 }, {
3502 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
3503 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
3504 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
3505 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3506 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3507 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
3508 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51",
3509 .digest = "\x33\xe6\xb1\x09\x24\x00\xea\xe5",
3510 .psize = 32,
3511 .ksize = 24,
3515 #define XCBC_AES_TEST_VECTORS 6
3517 static struct hash_testvec aes_xcbc128_tv_template[] = {
3519 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3520 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3521 .plaintext = zeroed_string,
3522 .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c"
3523 "\x45\x73\xdf\xd5\x84\xd7\x9f\x29",
3524 .psize = 0,
3525 .ksize = 16,
3526 }, {
3527 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3528 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3529 .plaintext = "\x00\x01\x02",
3530 .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf"
3531 "\xe7\x21\x9c\xee\xf1\x72\x75\x6f",
3532 .psize = 3,
3533 .ksize = 16,
3534 } , {
3535 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3536 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3537 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
3538 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3539 .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7"
3540 "\x99\x98\xa4\x39\x4f\xf7\xa2\x63",
3541 .psize = 16,
3542 .ksize = 16,
3543 }, {
3544 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3545 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3546 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
3547 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
3548 "\x10\x11\x12\x13",
3549 .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15"
3550 "\xb8\x98\x5c\x63\x05\x5e\xd3\x08",
3551 .tap = { 10, 10 },
3552 .psize = 20,
3553 .np = 2,
3554 .ksize = 16,
3555 }, {
3556 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3557 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3558 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
3559 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
3560 "\x10\x11\x12\x13\x14\x15\x16\x17"
3561 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
3562 .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3"
3563 "\x68\x07\x73\x4b\xd5\x28\x3f\xd4",
3564 .psize = 32,
3565 .ksize = 16,
3566 }, {
3567 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3568 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3569 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
3570 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
3571 "\x10\x11\x12\x13\x14\x15\x16\x17"
3572 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
3573 "\x20\x21",
3574 .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3"
3575 "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8",
3576 .tap = { 17, 17 },
3577 .psize = 34,
3578 .np = 2,
3579 .ksize = 16,
3583 #define VMAC_AES_TEST_VECTORS 11
3584 static char vmac_string1[128] = {'\x01', '\x01', '\x01', '\x01',
3585 '\x02', '\x03', '\x02', '\x02',
3586 '\x02', '\x04', '\x01', '\x07',
3587 '\x04', '\x01', '\x04', '\x03',};
3588 static char vmac_string2[128] = {'a', 'b', 'c',};
3589 static char vmac_string3[128] = {'a', 'b', 'c', 'a', 'b', 'c',
3590 'a', 'b', 'c', 'a', 'b', 'c',
3591 'a', 'b', 'c', 'a', 'b', 'c',
3592 'a', 'b', 'c', 'a', 'b', 'c',
3593 'a', 'b', 'c', 'a', 'b', 'c',
3594 'a', 'b', 'c', 'a', 'b', 'c',
3595 'a', 'b', 'c', 'a', 'b', 'c',
3596 'a', 'b', 'c', 'a', 'b', 'c',
3599 static char vmac_string4[17] = {'b', 'c', 'e', 'f',
3600 'i', 'j', 'l', 'm',
3601 'o', 'p', 'r', 's',
3602 't', 'u', 'w', 'x', 'z'};
3604 static char vmac_string5[127] = {'r', 'm', 'b', 't', 'c',
3605 'o', 'l', 'k', ']', '%',
3606 '9', '2', '7', '!', 'A'};
3608 static char vmac_string6[129] = {'p', 't', '*', '7', 'l',
3609 'i', '!', '#', 'w', '0',
3610 'z', '/', '4', 'A', 'n'};
3612 static struct hash_testvec aes_vmac128_tv_template[] = {
3614 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3615 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3616 .plaintext = NULL,
3617 .digest = "\x07\x58\x80\x35\x77\xa4\x7b\x54",
3618 .psize = 0,
3619 .ksize = 16,
3620 }, {
3621 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3622 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3623 .plaintext = vmac_string1,
3624 .digest = "\xce\xf5\x3c\xd3\xae\x68\x8c\xa1",
3625 .psize = 128,
3626 .ksize = 16,
3627 }, {
3628 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3629 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3630 .plaintext = vmac_string2,
3631 .digest = "\xc9\x27\xb0\x73\x81\xbd\x14\x2d",
3632 .psize = 128,
3633 .ksize = 16,
3634 }, {
3635 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3636 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3637 .plaintext = vmac_string3,
3638 .digest = "\x8d\x1a\x95\x8c\x98\x47\x0b\x19",
3639 .psize = 128,
3640 .ksize = 16,
3641 }, {
3642 .key = "abcdefghijklmnop",
3643 .plaintext = NULL,
3644 .digest = "\x3b\x89\xa1\x26\x9e\x55\x8f\x84",
3645 .psize = 0,
3646 .ksize = 16,
3647 }, {
3648 .key = "abcdefghijklmnop",
3649 .plaintext = vmac_string1,
3650 .digest = "\xab\x5e\xab\xb0\xf6\x8d\x74\xc2",
3651 .psize = 128,
3652 .ksize = 16,
3653 }, {
3654 .key = "abcdefghijklmnop",
3655 .plaintext = vmac_string2,
3656 .digest = "\x11\x15\x68\x42\x3d\x7b\x09\xdf",
3657 .psize = 128,
3658 .ksize = 16,
3659 }, {
3660 .key = "abcdefghijklmnop",
3661 .plaintext = vmac_string3,
3662 .digest = "\x8b\x32\x8f\xe1\xed\x8f\xfa\xd4",
3663 .psize = 128,
3664 .ksize = 16,
3665 }, {
3666 .key = "a09b5cd!f#07K\x00\x00\x00",
3667 .plaintext = vmac_string4,
3668 .digest = "\xab\xa5\x0f\xea\x42\x4e\xa1\x5f",
3669 .psize = sizeof(vmac_string4),
3670 .ksize = 16,
3671 }, {
3672 .key = "a09b5cd!f#07K\x00\x00\x00",
3673 .plaintext = vmac_string5,
3674 .digest = "\x25\x31\x98\xbc\x1d\xe8\x67\x60",
3675 .psize = sizeof(vmac_string5),
3676 .ksize = 16,
3677 }, {
3678 .key = "a09b5cd!f#07K\x00\x00\x00",
3679 .plaintext = vmac_string6,
3680 .digest = "\xc4\xae\x9b\x47\x95\x65\xeb\x41",
3681 .psize = sizeof(vmac_string6),
3682 .ksize = 16,
3687 * SHA384 HMAC test vectors from RFC4231
3690 #define HMAC_SHA384_TEST_VECTORS 4
3692 static struct hash_testvec hmac_sha384_tv_template[] = {
3694 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3695 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3696 "\x0b\x0b\x0b\x0b",
3697 .ksize = 20,
3698 .plaintext = "Hi There",
3699 .psize = 8,
3700 .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62"
3701 "\x6b\x08\x25\xf4\xab\x46\x90\x7f"
3702 "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6"
3703 "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c"
3704 "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f"
3705 "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6",
3706 }, {
3707 .key = "Jefe",
3708 .ksize = 4,
3709 .plaintext = "what do ya want for nothing?",
3710 .psize = 28,
3711 .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31"
3712 "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b"
3713 "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47"
3714 "\xe4\x2e\xc3\x73\x63\x22\x44\x5e"
3715 "\x8e\x22\x40\xca\x5e\x69\xe2\xc7"
3716 "\x8b\x32\x39\xec\xfa\xb2\x16\x49",
3717 .np = 4,
3718 .tap = { 7, 7, 7, 7 }
3719 }, {
3720 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3721 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3722 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3723 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3724 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3725 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3726 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3727 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3728 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3729 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3730 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3731 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3732 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3733 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3734 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3735 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3736 "\xaa\xaa\xaa",
3737 .ksize = 131,
3738 .plaintext = "Test Using Larger Than Block-Siz"
3739 "e Key - Hash Key First",
3740 .psize = 54,
3741 .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90"
3742 "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4"
3743 "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f"
3744 "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6"
3745 "\x0c\x2e\xf6\xab\x40\x30\xfe\x82"
3746 "\x96\x24\x8d\xf1\x63\xf4\x49\x52",
3747 }, {
3748 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3749 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3750 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3751 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3752 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3753 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3754 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3755 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3756 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3757 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3758 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3759 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3760 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3761 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3762 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3763 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3764 "\xaa\xaa\xaa",
3765 .ksize = 131,
3766 .plaintext = "This is a test u"
3767 "sing a larger th"
3768 "an block-size ke"
3769 "y and a larger t"
3770 "han block-size d"
3771 "ata. The key nee"
3772 "ds to be hashed "
3773 "before being use"
3774 "d by the HMAC al"
3775 "gorithm.",
3776 .psize = 152,
3777 .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d"
3778 "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c"
3779 "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a"
3780 "\xdc\xce\xbb\x82\x46\x1e\x99\xc5"
3781 "\xa6\x78\xcc\x31\xe7\x99\x17\x6d"
3782 "\x38\x60\xe6\x11\x0c\x46\x52\x3e",
3787 * SHA512 HMAC test vectors from RFC4231
3790 #define HMAC_SHA512_TEST_VECTORS 4
3792 static struct hash_testvec hmac_sha512_tv_template[] = {
3794 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3795 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3796 "\x0b\x0b\x0b\x0b",
3797 .ksize = 20,
3798 .plaintext = "Hi There",
3799 .psize = 8,
3800 .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d"
3801 "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0"
3802 "\x23\x79\xf4\xe2\xce\x4e\xc2\x78"
3803 "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde"
3804 "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02"
3805 "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4"
3806 "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70"
3807 "\x2e\x69\x6c\x20\x3a\x12\x68\x54",
3808 }, {
3809 .key = "Jefe",
3810 .ksize = 4,
3811 .plaintext = "what do ya want for nothing?",
3812 .psize = 28,
3813 .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2"
3814 "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3"
3815 "\x87\xbd\x64\x22\x2e\x83\x1f\xd6"
3816 "\x10\x27\x0c\xd7\xea\x25\x05\x54"
3817 "\x97\x58\xbf\x75\xc0\x5a\x99\x4a"
3818 "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd"
3819 "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b"
3820 "\x63\x6e\x07\x0a\x38\xbc\xe7\x37",
3821 .np = 4,
3822 .tap = { 7, 7, 7, 7 }
3823 }, {
3824 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3825 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3826 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3827 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3828 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3829 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3830 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3831 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3832 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3833 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3834 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3835 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3836 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3837 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3838 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3839 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3840 "\xaa\xaa\xaa",
3841 .ksize = 131,
3842 .plaintext = "Test Using Large"
3843 "r Than Block-Siz"
3844 "e Key - Hash Key"
3845 " First",
3846 .psize = 54,
3847 .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb"
3848 "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4"
3849 "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1"
3850 "\x12\x1b\x01\x37\x83\xf8\xf3\x52"
3851 "\x6b\x56\xd0\x37\xe0\x5f\x25\x98"
3852 "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52"
3853 "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec"
3854 "\x8b\x91\x5a\x98\x5d\x78\x65\x98",
3855 }, {
3856 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3857 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3858 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3859 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3860 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3861 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3862 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3863 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3864 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3865 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3866 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3867 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3868 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3869 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3870 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3871 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3872 "\xaa\xaa\xaa",
3873 .ksize = 131,
3874 .plaintext =
3875 "This is a test u"
3876 "sing a larger th"
3877 "an block-size ke"
3878 "y and a larger t"
3879 "han block-size d"
3880 "ata. The key nee"
3881 "ds to be hashed "
3882 "before being use"
3883 "d by the HMAC al"
3884 "gorithm.",
3885 .psize = 152,
3886 .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba"
3887 "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd"
3888 "\xde\xbd\x71\xf8\x86\x72\x89\x86"
3889 "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44"
3890 "\xb6\x02\x2c\xac\x3c\x49\x82\xb1"
3891 "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15"
3892 "\x13\x46\x76\xfb\x6d\xe0\x44\x60"
3893 "\x65\xc9\x74\x40\xfa\x8c\x6a\x58",
3897 #define HMAC_SHA3_224_TEST_VECTORS 4
3899 static struct hash_testvec hmac_sha3_224_tv_template[] = {
3901 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3902 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3903 "\x0b\x0b\x0b\x0b",
3904 .ksize = 20,
3905 .plaintext = "Hi There",
3906 .psize = 8,
3907 .digest = "\x3b\x16\x54\x6b\xbc\x7b\xe2\x70"
3908 "\x6a\x03\x1d\xca\xfd\x56\x37\x3d"
3909 "\x98\x84\x36\x76\x41\xd8\xc5\x9a"
3910 "\xf3\xc8\x60\xf7",
3911 }, {
3912 .key = "Jefe",
3913 .ksize = 4,
3914 .plaintext = "what do ya want for nothing?",
3915 .psize = 28,
3916 .digest = "\x7f\xdb\x8d\xd8\x8b\xd2\xf6\x0d"
3917 "\x1b\x79\x86\x34\xad\x38\x68\x11"
3918 "\xc2\xcf\xc8\x5b\xfa\xf5\xd5\x2b"
3919 "\xba\xce\x5e\x66",
3920 .np = 4,
3921 .tap = { 7, 7, 7, 7 }
3922 }, {
3923 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3924 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3925 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3926 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3927 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3928 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3929 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3930 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3931 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3932 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3933 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3934 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3935 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3936 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3937 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3938 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3939 "\xaa\xaa\xaa",
3940 .ksize = 131,
3941 .plaintext = "Test Using Large"
3942 "r Than Block-Siz"
3943 "e Key - Hash Key"
3944 " First",
3945 .psize = 54,
3946 .digest = "\xb4\xa1\xf0\x4c\x00\x28\x7a\x9b"
3947 "\x7f\x60\x75\xb3\x13\xd2\x79\xb8"
3948 "\x33\xbc\x8f\x75\x12\x43\x52\xd0"
3949 "\x5f\xb9\x99\x5f",
3950 }, {
3951 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3952 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3953 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3954 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3955 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3956 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3957 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3958 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3959 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3960 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3961 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3962 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3963 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3964 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3965 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3966 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3967 "\xaa\xaa\xaa",
3968 .ksize = 131,
3969 .plaintext =
3970 "This is a test u"
3971 "sing a larger th"
3972 "an block-size ke"
3973 "y and a larger t"
3974 "han block-size d"
3975 "ata. The key nee"
3976 "ds to be hashed "
3977 "before being use"
3978 "d by the HMAC al"
3979 "gorithm.",
3980 .psize = 152,
3981 .digest = "\x05\xd8\xcd\x6d\x00\xfa\xea\x8d"
3982 "\x1e\xb6\x8a\xde\x28\x73\x0b\xbd"
3983 "\x3c\xba\xb6\x92\x9f\x0a\x08\x6b"
3984 "\x29\xcd\x62\xa0",
3988 #define HMAC_SHA3_256_TEST_VECTORS 4
3990 static struct hash_testvec hmac_sha3_256_tv_template[] = {
3992 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3993 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3994 "\x0b\x0b\x0b\x0b",
3995 .ksize = 20,
3996 .plaintext = "Hi There",
3997 .psize = 8,
3998 .digest = "\xba\x85\x19\x23\x10\xdf\xfa\x96"
3999 "\xe2\xa3\xa4\x0e\x69\x77\x43\x51"
4000 "\x14\x0b\xb7\x18\x5e\x12\x02\xcd"
4001 "\xcc\x91\x75\x89\xf9\x5e\x16\xbb",
4002 }, {
4003 .key = "Jefe",
4004 .ksize = 4,
4005 .plaintext = "what do ya want for nothing?",
4006 .psize = 28,
4007 .digest = "\xc7\xd4\x07\x2e\x78\x88\x77\xae"
4008 "\x35\x96\xbb\xb0\xda\x73\xb8\x87"
4009 "\xc9\x17\x1f\x93\x09\x5b\x29\x4a"
4010 "\xe8\x57\xfb\xe2\x64\x5e\x1b\xa5",
4011 .np = 4,
4012 .tap = { 7, 7, 7, 7 }
4013 }, {
4014 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4015 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4016 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4017 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4018 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4019 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4020 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4021 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4022 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4023 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4024 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4025 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4026 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4027 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4028 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4029 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4030 "\xaa\xaa\xaa",
4031 .ksize = 131,
4032 .plaintext = "Test Using Large"
4033 "r Than Block-Siz"
4034 "e Key - Hash Key"
4035 " First",
4036 .psize = 54,
4037 .digest = "\xed\x73\xa3\x74\xb9\x6c\x00\x52"
4038 "\x35\xf9\x48\x03\x2f\x09\x67\x4a"
4039 "\x58\xc0\xce\x55\x5c\xfc\x1f\x22"
4040 "\x3b\x02\x35\x65\x60\x31\x2c\x3b",
4041 }, {
4042 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4043 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4044 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4045 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4046 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4047 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4048 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4049 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4050 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4051 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4052 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4053 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4054 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4055 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4056 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4057 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4058 "\xaa\xaa\xaa",
4059 .ksize = 131,
4060 .plaintext =
4061 "This is a test u"
4062 "sing a larger th"
4063 "an block-size ke"
4064 "y and a larger t"
4065 "han block-size d"
4066 "ata. The key nee"
4067 "ds to be hashed "
4068 "before being use"
4069 "d by the HMAC al"
4070 "gorithm.",
4071 .psize = 152,
4072 .digest = "\x65\xc5\xb0\x6d\x4c\x3d\xe3\x2a"
4073 "\x7a\xef\x87\x63\x26\x1e\x49\xad"
4074 "\xb6\xe2\x29\x3e\xc8\xe7\xc6\x1e"
4075 "\x8d\xe6\x17\x01\xfc\x63\xe1\x23",
4079 #define HMAC_SHA3_384_TEST_VECTORS 4
4081 static struct hash_testvec hmac_sha3_384_tv_template[] = {
4083 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4084 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4085 "\x0b\x0b\x0b\x0b",
4086 .ksize = 20,
4087 .plaintext = "Hi There",
4088 .psize = 8,
4089 .digest = "\x68\xd2\xdc\xf7\xfd\x4d\xdd\x0a"
4090 "\x22\x40\xc8\xa4\x37\x30\x5f\x61"
4091 "\xfb\x73\x34\xcf\xb5\xd0\x22\x6e"
4092 "\x1b\xc2\x7d\xc1\x0a\x2e\x72\x3a"
4093 "\x20\xd3\x70\xb4\x77\x43\x13\x0e"
4094 "\x26\xac\x7e\x3d\x53\x28\x86\xbd",
4095 }, {
4096 .key = "Jefe",
4097 .ksize = 4,
4098 .plaintext = "what do ya want for nothing?",
4099 .psize = 28,
4100 .digest = "\xf1\x10\x1f\x8c\xbf\x97\x66\xfd"
4101 "\x67\x64\xd2\xed\x61\x90\x3f\x21"
4102 "\xca\x9b\x18\xf5\x7c\xf3\xe1\xa2"
4103 "\x3c\xa1\x35\x08\xa9\x32\x43\xce"
4104 "\x48\xc0\x45\xdc\x00\x7f\x26\xa2"
4105 "\x1b\x3f\x5e\x0e\x9d\xf4\xc2\x0a",
4106 .np = 4,
4107 .tap = { 7, 7, 7, 7 }
4108 }, {
4109 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4110 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4111 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4112 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4113 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4114 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4115 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4116 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4117 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4118 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4119 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4120 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4121 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4122 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4123 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4124 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4125 "\xaa\xaa\xaa",
4126 .ksize = 131,
4127 .plaintext = "Test Using Large"
4128 "r Than Block-Siz"
4129 "e Key - Hash Key"
4130 " First",
4131 .psize = 54,
4132 .digest = "\x0f\xc1\x95\x13\xbf\x6b\xd8\x78"
4133 "\x03\x70\x16\x70\x6a\x0e\x57\xbc"
4134 "\x52\x81\x39\x83\x6b\x9a\x42\xc3"
4135 "\xd4\x19\xe4\x98\xe0\xe1\xfb\x96"
4136 "\x16\xfd\x66\x91\x38\xd3\x3a\x11"
4137 "\x05\xe0\x7c\x72\xb6\x95\x3b\xcc",
4138 }, {
4139 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4140 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4141 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4142 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4143 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4144 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4145 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4146 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4147 "\xaa\xaa\xaa\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",
4156 .ksize = 131,
4157 .plaintext =
4158 "This is a test u"
4159 "sing a larger th"
4160 "an block-size ke"
4161 "y and a larger t"
4162 "han block-size d"
4163 "ata. The key nee"
4164 "ds to be hashed "
4165 "before being use"
4166 "d by the HMAC al"
4167 "gorithm.",
4168 .psize = 152,
4169 .digest = "\x02\x6f\xdf\x6b\x50\x74\x1e\x37"
4170 "\x38\x99\xc9\xf7\xd5\x40\x6d\x4e"
4171 "\xb0\x9f\xc6\x66\x56\x36\xfc\x1a"
4172 "\x53\x00\x29\xdd\xf5\xcf\x3c\xa5"
4173 "\xa9\x00\xed\xce\x01\xf5\xf6\x1e"
4174 "\x2f\x40\x8c\xdf\x2f\xd3\xe7\xe8",
4178 #define HMAC_SHA3_512_TEST_VECTORS 4
4180 static struct hash_testvec hmac_sha3_512_tv_template[] = {
4182 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4183 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4184 "\x0b\x0b\x0b\x0b",
4185 .ksize = 20,
4186 .plaintext = "Hi There",
4187 .psize = 8,
4188 .digest = "\xeb\x3f\xbd\x4b\x2e\xaa\xb8\xf5"
4189 "\xc5\x04\xbd\x3a\x41\x46\x5a\xac"
4190 "\xec\x15\x77\x0a\x7c\xab\xac\x53"
4191 "\x1e\x48\x2f\x86\x0b\x5e\xc7\xba"
4192 "\x47\xcc\xb2\xc6\xf2\xaf\xce\x8f"
4193 "\x88\xd2\x2b\x6d\xc6\x13\x80\xf2"
4194 "\x3a\x66\x8f\xd3\x88\x8b\xb8\x05"
4195 "\x37\xc0\xa0\xb8\x64\x07\x68\x9e",
4196 }, {
4197 .key = "Jefe",
4198 .ksize = 4,
4199 .plaintext = "what do ya want for nothing?",
4200 .psize = 28,
4201 .digest = "\x5a\x4b\xfe\xab\x61\x66\x42\x7c"
4202 "\x7a\x36\x47\xb7\x47\x29\x2b\x83"
4203 "\x84\x53\x7c\xdb\x89\xaf\xb3\xbf"
4204 "\x56\x65\xe4\xc5\xe7\x09\x35\x0b"
4205 "\x28\x7b\xae\xc9\x21\xfd\x7c\xa0"
4206 "\xee\x7a\x0c\x31\xd0\x22\xa9\x5e"
4207 "\x1f\xc9\x2b\xa9\xd7\x7d\xf8\x83"
4208 "\x96\x02\x75\xbe\xb4\xe6\x20\x24",
4209 .np = 4,
4210 .tap = { 7, 7, 7, 7 }
4211 }, {
4212 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4213 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4214 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4215 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4216 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4217 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4218 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4219 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4220 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4221 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4222 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4223 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4224 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4225 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4226 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4227 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4228 "\xaa\xaa\xaa",
4229 .ksize = 131,
4230 .plaintext = "Test Using Large"
4231 "r Than Block-Siz"
4232 "e Key - Hash Key"
4233 " First",
4234 .psize = 54,
4235 .digest = "\x00\xf7\x51\xa9\xe5\x06\x95\xb0"
4236 "\x90\xed\x69\x11\xa4\xb6\x55\x24"
4237 "\x95\x1c\xdc\x15\xa7\x3a\x5d\x58"
4238 "\xbb\x55\x21\x5e\xa2\xcd\x83\x9a"
4239 "\xc7\x9d\x2b\x44\xa3\x9b\xaf\xab"
4240 "\x27\xe8\x3f\xde\x9e\x11\xf6\x34"
4241 "\x0b\x11\xd9\x91\xb1\xb9\x1b\xf2"
4242 "\xee\xe7\xfc\x87\x24\x26\xc3\xa4",
4243 }, {
4244 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4245 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4246 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4247 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4248 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4249 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4250 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4251 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4252 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4253 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4254 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4255 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4256 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4257 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4258 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4259 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4260 "\xaa\xaa\xaa",
4261 .ksize = 131,
4262 .plaintext =
4263 "This is a test u"
4264 "sing a larger th"
4265 "an block-size ke"
4266 "y and a larger t"
4267 "han block-size d"
4268 "ata. The key nee"
4269 "ds to be hashed "
4270 "before being use"
4271 "d by the HMAC al"
4272 "gorithm.",
4273 .psize = 152,
4274 .digest = "\x38\xa4\x56\xa0\x04\xbd\x10\xd3"
4275 "\x2c\x9a\xb8\x33\x66\x84\x11\x28"
4276 "\x62\xc3\xdb\x61\xad\xcc\xa3\x18"
4277 "\x29\x35\x5e\xaf\x46\xfd\x5c\x73"
4278 "\xd0\x6a\x1f\x0d\x13\xfe\xc9\xa6"
4279 "\x52\xfb\x38\x11\xb5\x77\xb1\xb1"
4280 "\xd1\xb9\x78\x9f\x97\xae\x5b\x83"
4281 "\xc6\xf4\x4d\xfc\xf1\xd6\x7e\xba",
4286 * Poly1305 test vectors from RFC7539 A.3.
4289 #define POLY1305_TEST_VECTORS 11
4291 static struct hash_testvec poly1305_tv_template[] = {
4292 { /* Test Vector #1 */
4293 .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00"
4294 "\x00\x00\x00\x00\x00\x00\x00\x00"
4295 "\x00\x00\x00\x00\x00\x00\x00\x00"
4296 "\x00\x00\x00\x00\x00\x00\x00\x00"
4297 "\x00\x00\x00\x00\x00\x00\x00\x00"
4298 "\x00\x00\x00\x00\x00\x00\x00\x00"
4299 "\x00\x00\x00\x00\x00\x00\x00\x00"
4300 "\x00\x00\x00\x00\x00\x00\x00\x00"
4301 "\x00\x00\x00\x00\x00\x00\x00\x00"
4302 "\x00\x00\x00\x00\x00\x00\x00\x00"
4303 "\x00\x00\x00\x00\x00\x00\x00\x00"
4304 "\x00\x00\x00\x00\x00\x00\x00\x00",
4305 .psize = 96,
4306 .digest = "\x00\x00\x00\x00\x00\x00\x00\x00"
4307 "\x00\x00\x00\x00\x00\x00\x00\x00",
4308 }, { /* Test Vector #2 */
4309 .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00"
4310 "\x00\x00\x00\x00\x00\x00\x00\x00"
4311 "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
4312 "\xf0\xef\xca\x96\x22\x7a\x86\x3e"
4313 "\x41\x6e\x79\x20\x73\x75\x62\x6d"
4314 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
4315 "\x6f\x20\x74\x68\x65\x20\x49\x45"
4316 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
4317 "\x64\x65\x64\x20\x62\x79\x20\x74"
4318 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
4319 "\x69\x62\x75\x74\x6f\x72\x20\x66"
4320 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
4321 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
4322 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
4323 "\x20\x70\x61\x72\x74\x20\x6f\x66"
4324 "\x20\x61\x6e\x20\x49\x45\x54\x46"
4325 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
4326 "\x74\x2d\x44\x72\x61\x66\x74\x20"
4327 "\x6f\x72\x20\x52\x46\x43\x20\x61"
4328 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
4329 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
4330 "\x20\x6d\x61\x64\x65\x20\x77\x69"
4331 "\x74\x68\x69\x6e\x20\x74\x68\x65"
4332 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
4333 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
4334 "\x45\x54\x46\x20\x61\x63\x74\x69"
4335 "\x76\x69\x74\x79\x20\x69\x73\x20"
4336 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
4337 "\x65\x64\x20\x61\x6e\x20\x22\x49"
4338 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
4339 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
4340 "\x22\x2e\x20\x53\x75\x63\x68\x20"
4341 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
4342 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
4343 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
4344 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
4345 "\x74\x73\x20\x69\x6e\x20\x49\x45"
4346 "\x54\x46\x20\x73\x65\x73\x73\x69"
4347 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
4348 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
4349 "\x77\x72\x69\x74\x74\x65\x6e\x20"
4350 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
4351 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
4352 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
4353 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
4354 "\x64\x65\x20\x61\x74\x20\x61\x6e"
4355 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
4356 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
4357 "\x20\x77\x68\x69\x63\x68\x20\x61"
4358 "\x72\x65\x20\x61\x64\x64\x72\x65"
4359 "\x73\x73\x65\x64\x20\x74\x6f",
4360 .psize = 407,
4361 .digest = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
4362 "\xf0\xef\xca\x96\x22\x7a\x86\x3e",
4363 }, { /* Test Vector #3 */
4364 .plaintext = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
4365 "\xf0\xef\xca\x96\x22\x7a\x86\x3e"
4366 "\x00\x00\x00\x00\x00\x00\x00\x00"
4367 "\x00\x00\x00\x00\x00\x00\x00\x00"
4368 "\x41\x6e\x79\x20\x73\x75\x62\x6d"
4369 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
4370 "\x6f\x20\x74\x68\x65\x20\x49\x45"
4371 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
4372 "\x64\x65\x64\x20\x62\x79\x20\x74"
4373 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
4374 "\x69\x62\x75\x74\x6f\x72\x20\x66"
4375 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
4376 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
4377 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
4378 "\x20\x70\x61\x72\x74\x20\x6f\x66"
4379 "\x20\x61\x6e\x20\x49\x45\x54\x46"
4380 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
4381 "\x74\x2d\x44\x72\x61\x66\x74\x20"
4382 "\x6f\x72\x20\x52\x46\x43\x20\x61"
4383 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
4384 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
4385 "\x20\x6d\x61\x64\x65\x20\x77\x69"
4386 "\x74\x68\x69\x6e\x20\x74\x68\x65"
4387 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
4388 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
4389 "\x45\x54\x46\x20\x61\x63\x74\x69"
4390 "\x76\x69\x74\x79\x20\x69\x73\x20"
4391 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
4392 "\x65\x64\x20\x61\x6e\x20\x22\x49"
4393 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
4394 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
4395 "\x22\x2e\x20\x53\x75\x63\x68\x20"
4396 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
4397 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
4398 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
4399 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
4400 "\x74\x73\x20\x69\x6e\x20\x49\x45"
4401 "\x54\x46\x20\x73\x65\x73\x73\x69"
4402 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
4403 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
4404 "\x77\x72\x69\x74\x74\x65\x6e\x20"
4405 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
4406 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
4407 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
4408 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
4409 "\x64\x65\x20\x61\x74\x20\x61\x6e"
4410 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
4411 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
4412 "\x20\x77\x68\x69\x63\x68\x20\x61"
4413 "\x72\x65\x20\x61\x64\x64\x72\x65"
4414 "\x73\x73\x65\x64\x20\x74\x6f",
4415 .psize = 407,
4416 .digest = "\xf3\x47\x7e\x7c\xd9\x54\x17\xaf"
4417 "\x89\xa6\xb8\x79\x4c\x31\x0c\xf0",
4418 }, { /* Test Vector #4 */
4419 .plaintext = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
4420 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
4421 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
4422 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
4423 "\x27\x54\x77\x61\x73\x20\x62\x72"
4424 "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
4425 "\x6e\x64\x20\x74\x68\x65\x20\x73"
4426 "\x6c\x69\x74\x68\x79\x20\x74\x6f"
4427 "\x76\x65\x73\x0a\x44\x69\x64\x20"
4428 "\x67\x79\x72\x65\x20\x61\x6e\x64"
4429 "\x20\x67\x69\x6d\x62\x6c\x65\x20"
4430 "\x69\x6e\x20\x74\x68\x65\x20\x77"
4431 "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
4432 "\x20\x6d\x69\x6d\x73\x79\x20\x77"
4433 "\x65\x72\x65\x20\x74\x68\x65\x20"
4434 "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
4435 "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
4436 "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
4437 "\x72\x61\x74\x68\x73\x20\x6f\x75"
4438 "\x74\x67\x72\x61\x62\x65\x2e",
4439 .psize = 159,
4440 .digest = "\x45\x41\x66\x9a\x7e\xaa\xee\x61"
4441 "\xe7\x08\xdc\x7c\xbc\xc5\xeb\x62",
4442 }, { /* Test Vector #5 */
4443 .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00"
4444 "\x00\x00\x00\x00\x00\x00\x00\x00"
4445 "\x00\x00\x00\x00\x00\x00\x00\x00"
4446 "\x00\x00\x00\x00\x00\x00\x00\x00"
4447 "\xff\xff\xff\xff\xff\xff\xff\xff"
4448 "\xff\xff\xff\xff\xff\xff\xff\xff",
4449 .psize = 48,
4450 .digest = "\x03\x00\x00\x00\x00\x00\x00\x00"
4451 "\x00\x00\x00\x00\x00\x00\x00\x00",
4452 }, { /* Test Vector #6 */
4453 .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00"
4454 "\x00\x00\x00\x00\x00\x00\x00\x00"
4455 "\xff\xff\xff\xff\xff\xff\xff\xff"
4456 "\xff\xff\xff\xff\xff\xff\xff\xff"
4457 "\x02\x00\x00\x00\x00\x00\x00\x00"
4458 "\x00\x00\x00\x00\x00\x00\x00\x00",
4459 .psize = 48,
4460 .digest = "\x03\x00\x00\x00\x00\x00\x00\x00"
4461 "\x00\x00\x00\x00\x00\x00\x00\x00",
4462 }, { /* Test Vector #7 */
4463 .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
4464 "\x00\x00\x00\x00\x00\x00\x00\x00"
4465 "\x00\x00\x00\x00\x00\x00\x00\x00"
4466 "\x00\x00\x00\x00\x00\x00\x00\x00"
4467 "\xff\xff\xff\xff\xff\xff\xff\xff"
4468 "\xff\xff\xff\xff\xff\xff\xff\xff"
4469 "\xf0\xff\xff\xff\xff\xff\xff\xff"
4470 "\xff\xff\xff\xff\xff\xff\xff\xff"
4471 "\x11\x00\x00\x00\x00\x00\x00\x00"
4472 "\x00\x00\x00\x00\x00\x00\x00\x00",
4473 .psize = 80,
4474 .digest = "\x05\x00\x00\x00\x00\x00\x00\x00"
4475 "\x00\x00\x00\x00\x00\x00\x00\x00",
4476 }, { /* Test Vector #8 */
4477 .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
4478 "\x00\x00\x00\x00\x00\x00\x00\x00"
4479 "\x00\x00\x00\x00\x00\x00\x00\x00"
4480 "\x00\x00\x00\x00\x00\x00\x00\x00"
4481 "\xff\xff\xff\xff\xff\xff\xff\xff"
4482 "\xff\xff\xff\xff\xff\xff\xff\xff"
4483 "\xfb\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
4484 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
4485 "\x01\x01\x01\x01\x01\x01\x01\x01"
4486 "\x01\x01\x01\x01\x01\x01\x01\x01",
4487 .psize = 80,
4488 .digest = "\x00\x00\x00\x00\x00\x00\x00\x00"
4489 "\x00\x00\x00\x00\x00\x00\x00\x00",
4490 }, { /* Test Vector #9 */
4491 .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00"
4492 "\x00\x00\x00\x00\x00\x00\x00\x00"
4493 "\x00\x00\x00\x00\x00\x00\x00\x00"
4494 "\x00\x00\x00\x00\x00\x00\x00\x00"
4495 "\xfd\xff\xff\xff\xff\xff\xff\xff"
4496 "\xff\xff\xff\xff\xff\xff\xff\xff",
4497 .psize = 48,
4498 .digest = "\xfa\xff\xff\xff\xff\xff\xff\xff"
4499 "\xff\xff\xff\xff\xff\xff\xff\xff",
4500 }, { /* Test Vector #10 */
4501 .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
4502 "\x04\x00\x00\x00\x00\x00\x00\x00"
4503 "\x00\x00\x00\x00\x00\x00\x00\x00"
4504 "\x00\x00\x00\x00\x00\x00\x00\x00"
4505 "\xe3\x35\x94\xd7\x50\x5e\x43\xb9"
4506 "\x00\x00\x00\x00\x00\x00\x00\x00"
4507 "\x33\x94\xd7\x50\x5e\x43\x79\xcd"
4508 "\x01\x00\x00\x00\x00\x00\x00\x00"
4509 "\x00\x00\x00\x00\x00\x00\x00\x00"
4510 "\x00\x00\x00\x00\x00\x00\x00\x00"
4511 "\x01\x00\x00\x00\x00\x00\x00\x00"
4512 "\x00\x00\x00\x00\x00\x00\x00\x00",
4513 .psize = 96,
4514 .digest = "\x14\x00\x00\x00\x00\x00\x00\x00"
4515 "\x55\x00\x00\x00\x00\x00\x00\x00",
4516 }, { /* Test Vector #11 */
4517 .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
4518 "\x04\x00\x00\x00\x00\x00\x00\x00"
4519 "\x00\x00\x00\x00\x00\x00\x00\x00"
4520 "\x00\x00\x00\x00\x00\x00\x00\x00"
4521 "\xe3\x35\x94\xd7\x50\x5e\x43\xb9"
4522 "\x00\x00\x00\x00\x00\x00\x00\x00"
4523 "\x33\x94\xd7\x50\x5e\x43\x79\xcd"
4524 "\x01\x00\x00\x00\x00\x00\x00\x00"
4525 "\x00\x00\x00\x00\x00\x00\x00\x00"
4526 "\x00\x00\x00\x00\x00\x00\x00\x00",
4527 .psize = 80,
4528 .digest = "\x13\x00\x00\x00\x00\x00\x00\x00"
4529 "\x00\x00\x00\x00\x00\x00\x00\x00",
4530 }, { /* Regression test for overflow in AVX2 implementation */
4531 .plaintext = "\xff\xff\xff\xff\xff\xff\xff\xff"
4532 "\xff\xff\xff\xff\xff\xff\xff\xff"
4533 "\xff\xff\xff\xff\xff\xff\xff\xff"
4534 "\xff\xff\xff\xff\xff\xff\xff\xff"
4535 "\xff\xff\xff\xff\xff\xff\xff\xff"
4536 "\xff\xff\xff\xff\xff\xff\xff\xff"
4537 "\xff\xff\xff\xff\xff\xff\xff\xff"
4538 "\xff\xff\xff\xff\xff\xff\xff\xff"
4539 "\xff\xff\xff\xff\xff\xff\xff\xff"
4540 "\xff\xff\xff\xff\xff\xff\xff\xff"
4541 "\xff\xff\xff\xff\xff\xff\xff\xff"
4542 "\xff\xff\xff\xff\xff\xff\xff\xff"
4543 "\xff\xff\xff\xff\xff\xff\xff\xff"
4544 "\xff\xff\xff\xff\xff\xff\xff\xff"
4545 "\xff\xff\xff\xff\xff\xff\xff\xff"
4546 "\xff\xff\xff\xff\xff\xff\xff\xff"
4547 "\xff\xff\xff\xff\xff\xff\xff\xff"
4548 "\xff\xff\xff\xff\xff\xff\xff\xff"
4549 "\xff\xff\xff\xff\xff\xff\xff\xff"
4550 "\xff\xff\xff\xff\xff\xff\xff\xff"
4551 "\xff\xff\xff\xff\xff\xff\xff\xff"
4552 "\xff\xff\xff\xff\xff\xff\xff\xff"
4553 "\xff\xff\xff\xff\xff\xff\xff\xff"
4554 "\xff\xff\xff\xff\xff\xff\xff\xff"
4555 "\xff\xff\xff\xff\xff\xff\xff\xff"
4556 "\xff\xff\xff\xff\xff\xff\xff\xff"
4557 "\xff\xff\xff\xff\xff\xff\xff\xff"
4558 "\xff\xff\xff\xff\xff\xff\xff\xff"
4559 "\xff\xff\xff\xff\xff\xff\xff\xff"
4560 "\xff\xff\xff\xff\xff\xff\xff\xff"
4561 "\xff\xff\xff\xff\xff\xff\xff\xff"
4562 "\xff\xff\xff\xff\xff\xff\xff\xff"
4563 "\xff\xff\xff\xff\xff\xff\xff\xff"
4564 "\xff\xff\xff\xff\xff\xff\xff\xff"
4565 "\xff\xff\xff\xff\xff\xff\xff\xff"
4566 "\xff\xff\xff\xff\xff\xff\xff\xff"
4567 "\xff\xff\xff\xff\xff\xff\xff\xff"
4568 "\xff\xff\xff\xff",
4569 .psize = 300,
4570 .digest = "\xfb\x5e\x96\xd8\x61\xd5\xc7\xc8"
4571 "\x78\xe5\x87\xcc\x2d\x5a\x22\xe1",
4576 * DES test vectors.
4578 #define DES_ENC_TEST_VECTORS 11
4579 #define DES_DEC_TEST_VECTORS 5
4580 #define DES_CBC_ENC_TEST_VECTORS 6
4581 #define DES_CBC_DEC_TEST_VECTORS 5
4582 #define DES_CTR_ENC_TEST_VECTORS 2
4583 #define DES_CTR_DEC_TEST_VECTORS 2
4584 #define DES3_EDE_ENC_TEST_VECTORS 4
4585 #define DES3_EDE_DEC_TEST_VECTORS 4
4586 #define DES3_EDE_CBC_ENC_TEST_VECTORS 2
4587 #define DES3_EDE_CBC_DEC_TEST_VECTORS 2
4588 #define DES3_EDE_CTR_ENC_TEST_VECTORS 2
4589 #define DES3_EDE_CTR_DEC_TEST_VECTORS 2
4591 static struct cipher_testvec des_enc_tv_template[] = {
4592 { /* From Applied Cryptography */
4593 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4594 .klen = 8,
4595 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
4596 .ilen = 8,
4597 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
4598 .rlen = 8,
4599 }, { /* Same key, different plaintext block */
4600 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4601 .klen = 8,
4602 .input = "\x22\x33\x44\x55\x66\x77\x88\x99",
4603 .ilen = 8,
4604 .result = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
4605 .rlen = 8,
4606 }, { /* Sbox test from NBS */
4607 .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
4608 .klen = 8,
4609 .input = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
4610 .ilen = 8,
4611 .result = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
4612 .rlen = 8,
4613 }, { /* Three blocks */
4614 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4615 .klen = 8,
4616 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4617 "\x22\x33\x44\x55\x66\x77\x88\x99"
4618 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
4619 .ilen = 24,
4620 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4621 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
4622 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
4623 .rlen = 24,
4624 }, { /* Weak key */
4625 .fail = true,
4626 .wk = 1,
4627 .key = "\x01\x01\x01\x01\x01\x01\x01\x01",
4628 .klen = 8,
4629 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
4630 .ilen = 8,
4631 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
4632 .rlen = 8,
4633 }, { /* Two blocks -- for testing encryption across pages */
4634 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4635 .klen = 8,
4636 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4637 "\x22\x33\x44\x55\x66\x77\x88\x99",
4638 .ilen = 16,
4639 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4640 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
4641 .rlen = 16,
4642 .np = 2,
4643 .tap = { 8, 8 }
4644 }, { /* Four blocks -- for testing encryption with chunking */
4645 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4646 .klen = 8,
4647 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4648 "\x22\x33\x44\x55\x66\x77\x88\x99"
4649 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
4650 "\x22\x33\x44\x55\x66\x77\x88\x99",
4651 .ilen = 32,
4652 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4653 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
4654 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
4655 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
4656 .rlen = 32,
4657 .np = 3,
4658 .tap = { 14, 10, 8 }
4659 }, {
4660 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4661 .klen = 8,
4662 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4663 "\x22\x33\x44\x55\x66\x77\x88\x99"
4664 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
4665 .ilen = 24,
4666 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4667 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
4668 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
4669 .rlen = 24,
4670 .np = 4,
4671 .tap = { 2, 1, 3, 18 }
4672 }, {
4673 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4674 .klen = 8,
4675 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4676 "\x22\x33\x44\x55\x66\x77\x88\x99",
4677 .ilen = 16,
4678 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4679 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
4680 .rlen = 16,
4681 .np = 5,
4682 .tap = { 2, 2, 2, 2, 8 }
4683 }, {
4684 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4685 .klen = 8,
4686 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
4687 .ilen = 8,
4688 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
4689 .rlen = 8,
4690 .np = 8,
4691 .tap = { 1, 1, 1, 1, 1, 1, 1, 1 }
4692 }, { /* Generated with Crypto++ */
4693 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
4694 .klen = 8,
4695 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
4696 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
4697 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
4698 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
4699 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
4700 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
4701 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
4702 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
4703 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
4704 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
4705 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
4706 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
4707 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
4708 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
4709 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
4710 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
4711 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
4712 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
4713 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
4714 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
4715 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
4716 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
4717 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
4718 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
4719 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
4720 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
4721 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
4722 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
4723 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
4724 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
4725 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
4726 .ilen = 248,
4727 .result = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
4728 "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
4729 "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
4730 "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
4731 "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
4732 "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
4733 "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
4734 "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
4735 "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
4736 "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
4737 "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
4738 "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
4739 "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
4740 "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
4741 "\x2E\x51\x16\xCA\x09\x89\x54\x62"
4742 "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
4743 "\x62\xF0\x02\x58\x83\xAF\x30\x87"
4744 "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
4745 "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
4746 "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
4747 "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
4748 "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
4749 "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
4750 "\xE9\x95\x61\x74\x12\xED\x07\xD7"
4751 "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
4752 "\x51\x96\x16\xF7\x94\x61\xB8\x87"
4753 "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
4754 "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
4755 "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
4756 "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
4757 "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
4758 .rlen = 248,
4759 .also_non_np = 1,
4760 .np = 3,
4761 .tap = { 248 - 10, 2, 8 },
4765 static struct cipher_testvec des_dec_tv_template[] = {
4766 { /* From Applied Cryptography */
4767 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4768 .klen = 8,
4769 .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
4770 .ilen = 8,
4771 .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
4772 .rlen = 8,
4773 }, { /* Sbox test from NBS */
4774 .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
4775 .klen = 8,
4776 .input = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
4777 .ilen = 8,
4778 .result = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
4779 .rlen = 8,
4780 }, { /* Two blocks, for chunking test */
4781 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4782 .klen = 8,
4783 .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4784 "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
4785 .ilen = 16,
4786 .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4787 "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
4788 .rlen = 16,
4789 .np = 2,
4790 .tap = { 8, 8 }
4791 }, {
4792 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4793 .klen = 8,
4794 .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4795 "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
4796 .ilen = 16,
4797 .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4798 "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
4799 .rlen = 16,
4800 .np = 3,
4801 .tap = { 3, 12, 1 }
4802 }, { /* Generated with Crypto++ */
4803 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
4804 .klen = 8,
4805 .input = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
4806 "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
4807 "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
4808 "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
4809 "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
4810 "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
4811 "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
4812 "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
4813 "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
4814 "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
4815 "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
4816 "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
4817 "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
4818 "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
4819 "\x2E\x51\x16\xCA\x09\x89\x54\x62"
4820 "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
4821 "\x62\xF0\x02\x58\x83\xAF\x30\x87"
4822 "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
4823 "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
4824 "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
4825 "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
4826 "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
4827 "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
4828 "\xE9\x95\x61\x74\x12\xED\x07\xD7"
4829 "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
4830 "\x51\x96\x16\xF7\x94\x61\xB8\x87"
4831 "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
4832 "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
4833 "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
4834 "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
4835 "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
4836 .ilen = 248,
4837 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
4838 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
4839 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
4840 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
4841 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
4842 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
4843 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
4844 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
4845 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
4846 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
4847 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
4848 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
4849 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
4850 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
4851 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
4852 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
4853 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
4854 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
4855 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
4856 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
4857 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
4858 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
4859 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
4860 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
4861 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
4862 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
4863 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
4864 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
4865 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
4866 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
4867 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
4868 .rlen = 248,
4869 .also_non_np = 1,
4870 .np = 3,
4871 .tap = { 248 - 10, 2, 8 },
4875 static struct cipher_testvec des_cbc_enc_tv_template[] = {
4876 { /* From OpenSSL */
4877 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4878 .klen = 8,
4879 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
4880 .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
4881 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
4882 "\x68\x65\x20\x74\x69\x6d\x65\x20",
4883 .ilen = 24,
4884 .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
4885 "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
4886 "\x46\x8e\x91\x15\x78\x88\xba\x68",
4887 .rlen = 24,
4888 }, { /* FIPS Pub 81 */
4889 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4890 .klen = 8,
4891 .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
4892 .input = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
4893 .ilen = 8,
4894 .result = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
4895 .rlen = 8,
4896 }, {
4897 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4898 .klen = 8,
4899 .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
4900 .input = "\x68\x65\x20\x74\x69\x6d\x65\x20",
4901 .ilen = 8,
4902 .result = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
4903 .rlen = 8,
4904 }, {
4905 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4906 .klen = 8,
4907 .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
4908 .input = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
4909 .ilen = 8,
4910 .result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
4911 .rlen = 8,
4912 }, { /* Copy of openssl vector for chunk testing */
4913 /* From OpenSSL */
4914 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4915 .klen = 8,
4916 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
4917 .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
4918 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
4919 "\x68\x65\x20\x74\x69\x6d\x65\x20",
4920 .ilen = 24,
4921 .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
4922 "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
4923 "\x46\x8e\x91\x15\x78\x88\xba\x68",
4924 .rlen = 24,
4925 .np = 2,
4926 .tap = { 13, 11 }
4927 }, { /* Generated with Crypto++ */
4928 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
4929 .klen = 8,
4930 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
4931 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
4932 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
4933 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
4934 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
4935 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
4936 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
4937 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
4938 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
4939 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
4940 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
4941 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
4942 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
4943 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
4944 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
4945 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
4946 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
4947 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
4948 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
4949 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
4950 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
4951 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
4952 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
4953 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
4954 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
4955 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
4956 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
4957 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
4958 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
4959 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
4960 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
4961 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
4962 .ilen = 248,
4963 .result = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
4964 "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
4965 "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
4966 "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
4967 "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
4968 "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
4969 "\x81\x72\x74\xDE\x30\x19\x69\x49"
4970 "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
4971 "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
4972 "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
4973 "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
4974 "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
4975 "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
4976 "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
4977 "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
4978 "\x49\x90\x88\x6A\x09\x8F\x76\x59"
4979 "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
4980 "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
4981 "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
4982 "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
4983 "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
4984 "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
4985 "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
4986 "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
4987 "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
4988 "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
4989 "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
4990 "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
4991 "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
4992 "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
4993 "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
4994 .rlen = 248,
4995 .also_non_np = 1,
4996 .np = 3,
4997 .tap = { 248 - 10, 2, 8 },
5001 static struct cipher_testvec des_cbc_dec_tv_template[] = {
5002 { /* FIPS Pub 81 */
5003 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5004 .klen = 8,
5005 .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
5006 .input = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
5007 .ilen = 8,
5008 .result = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
5009 .rlen = 8,
5010 }, {
5011 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5012 .klen = 8,
5013 .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
5014 .input = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
5015 .ilen = 8,
5016 .result = "\x68\x65\x20\x74\x69\x6d\x65\x20",
5017 .rlen = 8,
5018 }, {
5019 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5020 .klen = 8,
5021 .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
5022 .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
5023 .ilen = 8,
5024 .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
5025 .rlen = 8,
5026 }, { /* Copy of above, for chunk testing */
5027 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5028 .klen = 8,
5029 .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
5030 .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
5031 .ilen = 8,
5032 .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
5033 .rlen = 8,
5034 .np = 2,
5035 .tap = { 4, 4 }
5036 }, { /* Generated with Crypto++ */
5037 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5038 .klen = 8,
5039 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
5040 .input = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
5041 "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
5042 "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
5043 "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
5044 "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
5045 "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
5046 "\x81\x72\x74\xDE\x30\x19\x69\x49"
5047 "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
5048 "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
5049 "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
5050 "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
5051 "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
5052 "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
5053 "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
5054 "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
5055 "\x49\x90\x88\x6A\x09\x8F\x76\x59"
5056 "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
5057 "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
5058 "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
5059 "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
5060 "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
5061 "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
5062 "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
5063 "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
5064 "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
5065 "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
5066 "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
5067 "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
5068 "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
5069 "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
5070 "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
5071 .ilen = 248,
5072 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5073 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5074 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5075 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5076 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5077 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5078 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5079 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5080 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5081 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5082 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5083 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5084 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5085 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5086 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5087 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5088 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5089 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5090 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5091 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5092 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5093 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5094 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5095 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5096 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5097 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5098 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5099 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5100 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5101 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5102 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5103 .rlen = 248,
5104 .also_non_np = 1,
5105 .np = 3,
5106 .tap = { 248 - 10, 2, 8 },
5110 static struct cipher_testvec des_ctr_enc_tv_template[] = {
5111 { /* Generated with Crypto++ */
5112 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5113 .klen = 8,
5114 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
5115 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5116 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5117 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5118 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5119 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5120 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5121 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5122 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5123 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5124 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5125 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5126 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5127 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5128 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5129 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5130 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5131 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5132 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5133 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5134 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5135 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5136 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5137 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5138 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5139 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5140 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5141 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5142 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5143 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5144 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5145 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5146 .ilen = 248,
5147 .result = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
5148 "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
5149 "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
5150 "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
5151 "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
5152 "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
5153 "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
5154 "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
5155 "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
5156 "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
5157 "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
5158 "\xBE\x4C\x91\x43\x22\x65\x72\x48"
5159 "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
5160 "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
5161 "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
5162 "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
5163 "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
5164 "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
5165 "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
5166 "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
5167 "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
5168 "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
5169 "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
5170 "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
5171 "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
5172 "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
5173 "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
5174 "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
5175 "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
5176 "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
5177 "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
5178 .rlen = 248,
5179 .also_non_np = 1,
5180 .np = 3,
5181 .tap = { 248 - 10, 2, 8 },
5182 }, { /* Generated with Crypto++ */
5183 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5184 .klen = 8,
5185 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
5186 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5187 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5188 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5189 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5190 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5191 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5192 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5193 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5194 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5195 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5196 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5197 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5198 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5199 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5200 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5201 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5202 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5203 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5204 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5205 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5206 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5207 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5208 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5209 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5210 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5211 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5212 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5213 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5214 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5215 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5216 "\xC6\x2F\xBB\x24\x8D\x19\x82",
5217 .ilen = 247,
5218 .result = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
5219 "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
5220 "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
5221 "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
5222 "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
5223 "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
5224 "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
5225 "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
5226 "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
5227 "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
5228 "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
5229 "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
5230 "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
5231 "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
5232 "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
5233 "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
5234 "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
5235 "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
5236 "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
5237 "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
5238 "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
5239 "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
5240 "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
5241 "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
5242 "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
5243 "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
5244 "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
5245 "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
5246 "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
5247 "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
5248 "\x91\x45\x05\x3E\x58\xBF\x32",
5249 .rlen = 247,
5250 .also_non_np = 1,
5251 .np = 2,
5252 .tap = { 247 - 8, 8 },
5256 static struct cipher_testvec des_ctr_dec_tv_template[] = {
5257 { /* Generated with Crypto++ */
5258 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5259 .klen = 8,
5260 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
5261 .input = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
5262 "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
5263 "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
5264 "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
5265 "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
5266 "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
5267 "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
5268 "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
5269 "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
5270 "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
5271 "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
5272 "\xBE\x4C\x91\x43\x22\x65\x72\x48"
5273 "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
5274 "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
5275 "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
5276 "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
5277 "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
5278 "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
5279 "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
5280 "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
5281 "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
5282 "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
5283 "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
5284 "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
5285 "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
5286 "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
5287 "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
5288 "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
5289 "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
5290 "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
5291 "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
5292 .ilen = 248,
5293 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5294 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5295 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5296 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5297 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5298 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5299 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5300 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5301 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5302 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5303 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5304 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5305 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5306 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5307 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5308 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5309 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5310 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5311 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5312 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5313 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5314 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5315 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5316 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5317 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5318 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5319 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5320 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5321 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5322 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5323 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5324 .rlen = 248,
5325 .also_non_np = 1,
5326 .np = 3,
5327 .tap = { 248 - 10, 2, 8 },
5328 }, { /* Generated with Crypto++ */
5329 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5330 .klen = 8,
5331 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
5332 .input = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
5333 "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
5334 "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
5335 "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
5336 "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
5337 "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
5338 "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
5339 "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
5340 "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
5341 "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
5342 "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
5343 "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
5344 "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
5345 "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
5346 "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
5347 "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
5348 "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
5349 "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
5350 "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
5351 "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
5352 "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
5353 "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
5354 "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
5355 "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
5356 "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
5357 "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
5358 "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
5359 "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
5360 "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
5361 "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
5362 "\x91\x45\x05\x3E\x58\xBF\x32",
5363 .ilen = 247,
5364 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5365 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5366 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5367 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5368 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5369 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5370 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5371 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5372 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5373 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5374 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5375 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5376 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5377 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5378 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5379 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5380 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5381 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5382 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5383 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5384 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5385 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5386 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5387 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5388 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5389 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5390 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5391 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5392 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5393 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5394 "\xC6\x2F\xBB\x24\x8D\x19\x82",
5395 .rlen = 247,
5396 .also_non_np = 1,
5397 .np = 2,
5398 .tap = { 247 - 8, 8 },
5402 static struct cipher_testvec des3_ede_enc_tv_template[] = {
5403 { /* These are from openssl */
5404 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
5405 "\x55\x55\x55\x55\x55\x55\x55\x55"
5406 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5407 .klen = 24,
5408 .input = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
5409 .ilen = 8,
5410 .result = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
5411 .rlen = 8,
5412 }, {
5413 .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
5414 "\x86\x02\x87\x66\x59\x08\x21\x98"
5415 "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
5416 .klen = 24,
5417 .input = "\x73\x71\x75\x69\x67\x67\x6c\x65",
5418 .ilen = 8,
5419 .result = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
5420 .rlen = 8,
5421 }, {
5422 .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
5423 "\x91\x07\xd0\x15\x89\x19\x01\x01"
5424 "\x19\x07\x92\x10\x98\x1a\x01\x01",
5425 .klen = 24,
5426 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
5427 .ilen = 8,
5428 .result = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
5429 .rlen = 8,
5430 }, { /* Generated with Crypto++ */
5431 .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
5432 "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
5433 "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
5434 .klen = 24,
5435 .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
5436 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
5437 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
5438 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
5439 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
5440 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
5441 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
5442 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
5443 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
5444 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
5445 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
5446 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
5447 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
5448 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
5449 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
5450 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
5451 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
5452 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
5453 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
5454 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
5455 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
5456 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
5457 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
5458 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
5459 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
5460 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
5461 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
5462 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
5463 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
5464 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
5465 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
5466 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
5467 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
5468 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
5469 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
5470 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
5471 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
5472 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
5473 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
5474 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
5475 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
5476 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
5477 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
5478 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
5479 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
5480 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
5481 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
5482 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
5483 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
5484 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
5485 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
5486 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
5487 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
5488 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
5489 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
5490 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
5491 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
5492 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
5493 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
5494 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
5495 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
5496 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
5497 .ilen = 496,
5498 .result = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
5499 "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
5500 "\x81\x01\x04\x00\x76\xFA\xED\xD3"
5501 "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
5502 "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
5503 "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
5504 "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
5505 "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
5506 "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
5507 "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
5508 "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
5509 "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
5510 "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
5511 "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
5512 "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
5513 "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
5514 "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
5515 "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
5516 "\x45\x86\x50\x01\x70\x35\x99\x92"
5517 "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
5518 "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
5519 "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
5520 "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
5521 "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
5522 "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
5523 "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
5524 "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
5525 "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
5526 "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
5527 "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
5528 "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
5529 "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
5530 "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
5531 "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
5532 "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
5533 "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
5534 "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
5535 "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
5536 "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
5537 "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
5538 "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
5539 "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
5540 "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
5541 "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
5542 "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
5543 "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
5544 "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
5545 "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
5546 "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
5547 "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
5548 "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
5549 "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
5550 "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
5551 "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
5552 "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
5553 "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
5554 "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
5555 "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
5556 "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
5557 "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
5558 "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
5559 "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
5560 .rlen = 496,
5561 .also_non_np = 1,
5562 .np = 3,
5563 .tap = { 496 - 20, 4, 16 },
5567 static struct cipher_testvec des3_ede_dec_tv_template[] = {
5568 { /* These are from openssl */
5569 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
5570 "\x55\x55\x55\x55\x55\x55\x55\x55"
5571 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5572 .klen = 24,
5573 .input = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
5574 .ilen = 8,
5575 .result = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
5576 .rlen = 8,
5577 }, {
5578 .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
5579 "\x86\x02\x87\x66\x59\x08\x21\x98"
5580 "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
5581 .klen = 24,
5582 .input = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
5583 .ilen = 8,
5584 .result = "\x73\x71\x75\x69\x67\x67\x6c\x65",
5585 .rlen = 8,
5586 }, {
5587 .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
5588 "\x91\x07\xd0\x15\x89\x19\x01\x01"
5589 "\x19\x07\x92\x10\x98\x1a\x01\x01",
5590 .klen = 24,
5591 .input = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
5592 .ilen = 8,
5593 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
5594 .rlen = 8,
5595 }, { /* Generated with Crypto++ */
5596 .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
5597 "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
5598 "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
5599 .klen = 24,
5600 .input = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
5601 "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
5602 "\x81\x01\x04\x00\x76\xFA\xED\xD3"
5603 "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
5604 "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
5605 "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
5606 "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
5607 "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
5608 "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
5609 "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
5610 "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
5611 "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
5612 "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
5613 "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
5614 "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
5615 "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
5616 "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
5617 "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
5618 "\x45\x86\x50\x01\x70\x35\x99\x92"
5619 "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
5620 "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
5621 "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
5622 "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
5623 "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
5624 "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
5625 "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
5626 "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
5627 "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
5628 "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
5629 "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
5630 "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
5631 "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
5632 "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
5633 "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
5634 "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
5635 "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
5636 "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
5637 "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
5638 "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
5639 "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
5640 "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
5641 "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
5642 "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
5643 "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
5644 "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
5645 "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
5646 "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
5647 "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
5648 "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
5649 "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
5650 "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
5651 "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
5652 "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
5653 "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
5654 "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
5655 "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
5656 "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
5657 "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
5658 "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
5659 "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
5660 "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
5661 "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
5662 .ilen = 496,
5663 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
5664 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
5665 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
5666 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
5667 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
5668 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
5669 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
5670 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
5671 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
5672 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
5673 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
5674 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
5675 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
5676 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
5677 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
5678 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
5679 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
5680 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
5681 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
5682 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
5683 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
5684 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
5685 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
5686 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
5687 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
5688 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
5689 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
5690 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
5691 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
5692 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
5693 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
5694 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
5695 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
5696 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
5697 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
5698 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
5699 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
5700 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
5701 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
5702 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
5703 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
5704 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
5705 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
5706 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
5707 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
5708 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
5709 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
5710 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
5711 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
5712 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
5713 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
5714 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
5715 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
5716 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
5717 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
5718 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
5719 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
5720 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
5721 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
5722 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
5723 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
5724 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
5725 .rlen = 496,
5726 .also_non_np = 1,
5727 .np = 3,
5728 .tap = { 496 - 20, 4, 16 },
5732 static struct cipher_testvec des3_ede_cbc_enc_tv_template[] = {
5733 { /* Generated from openssl */
5734 .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
5735 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
5736 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
5737 .klen = 24,
5738 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
5739 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
5740 "\x53\x20\x63\x65\x65\x72\x73\x74"
5741 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
5742 "\x20\x79\x65\x53\x72\x63\x74\x65"
5743 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
5744 "\x79\x6e\x53\x20\x63\x65\x65\x72"
5745 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
5746 "\x6e\x61\x20\x79\x65\x53\x72\x63"
5747 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
5748 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
5749 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
5750 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
5751 "\x72\x63\x74\x65\x20\x73\x6f\x54"
5752 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
5753 "\x63\x65\x65\x72\x73\x74\x54\x20"
5754 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
5755 .ilen = 128,
5756 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
5757 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
5758 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
5759 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
5760 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
5761 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
5762 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
5763 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
5764 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
5765 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
5766 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
5767 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
5768 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
5769 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
5770 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
5771 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
5772 .rlen = 128,
5773 }, { /* Generated with Crypto++ */
5774 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
5775 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
5776 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
5777 .klen = 24,
5778 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
5779 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
5780 .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
5781 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
5782 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
5783 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
5784 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
5785 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
5786 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
5787 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
5788 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
5789 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
5790 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
5791 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
5792 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
5793 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
5794 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
5795 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
5796 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
5797 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
5798 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
5799 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
5800 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
5801 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
5802 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
5803 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
5804 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
5805 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
5806 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
5807 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
5808 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
5809 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
5810 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
5811 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
5812 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
5813 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
5814 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
5815 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
5816 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
5817 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
5818 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
5819 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
5820 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
5821 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
5822 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
5823 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
5824 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
5825 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
5826 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
5827 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
5828 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
5829 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
5830 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
5831 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
5832 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
5833 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
5834 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
5835 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
5836 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
5837 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
5838 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
5839 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
5840 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
5841 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
5842 .ilen = 496,
5843 .result = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
5844 "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
5845 "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
5846 "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
5847 "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
5848 "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
5849 "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
5850 "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
5851 "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
5852 "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
5853 "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
5854 "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
5855 "\x11\x35\x61\x94\x88\x7B\x1C\x48"
5856 "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
5857 "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
5858 "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
5859 "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
5860 "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
5861 "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
5862 "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
5863 "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
5864 "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
5865 "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
5866 "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
5867 "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
5868 "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
5869 "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
5870 "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
5871 "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
5872 "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
5873 "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
5874 "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
5875 "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
5876 "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
5877 "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
5878 "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
5879 "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
5880 "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
5881 "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
5882 "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
5883 "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
5884 "\x73\x50\x08\x56\x20\x9B\x94\x23"
5885 "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
5886 "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
5887 "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
5888 "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
5889 "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
5890 "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
5891 "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
5892 "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
5893 "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
5894 "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
5895 "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
5896 "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
5897 "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
5898 "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
5899 "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
5900 "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
5901 "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
5902 "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
5903 "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
5904 "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
5905 .rlen = 496,
5906 .also_non_np = 1,
5907 .np = 3,
5908 .tap = { 496 - 20, 4, 16 },
5912 static struct cipher_testvec des3_ede_cbc_dec_tv_template[] = {
5913 { /* Generated from openssl */
5914 .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
5915 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
5916 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
5917 .klen = 24,
5918 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
5919 .input = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
5920 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
5921 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
5922 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
5923 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
5924 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
5925 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
5926 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
5927 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
5928 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
5929 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
5930 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
5931 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
5932 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
5933 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
5934 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
5935 .ilen = 128,
5936 .result = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
5937 "\x53\x20\x63\x65\x65\x72\x73\x74"
5938 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
5939 "\x20\x79\x65\x53\x72\x63\x74\x65"
5940 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
5941 "\x79\x6e\x53\x20\x63\x65\x65\x72"
5942 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
5943 "\x6e\x61\x20\x79\x65\x53\x72\x63"
5944 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
5945 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
5946 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
5947 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
5948 "\x72\x63\x74\x65\x20\x73\x6f\x54"
5949 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
5950 "\x63\x65\x65\x72\x73\x74\x54\x20"
5951 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
5952 .rlen = 128,
5953 }, { /* Generated with Crypto++ */
5954 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
5955 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
5956 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
5957 .klen = 24,
5958 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
5959 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
5960 .input = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
5961 "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
5962 "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
5963 "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
5964 "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
5965 "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
5966 "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
5967 "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
5968 "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
5969 "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
5970 "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
5971 "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
5972 "\x11\x35\x61\x94\x88\x7B\x1C\x48"
5973 "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
5974 "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
5975 "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
5976 "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
5977 "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
5978 "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
5979 "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
5980 "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
5981 "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
5982 "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
5983 "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
5984 "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
5985 "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
5986 "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
5987 "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
5988 "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
5989 "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
5990 "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
5991 "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
5992 "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
5993 "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
5994 "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
5995 "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
5996 "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
5997 "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
5998 "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
5999 "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
6000 "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
6001 "\x73\x50\x08\x56\x20\x9B\x94\x23"
6002 "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
6003 "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
6004 "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
6005 "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
6006 "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
6007 "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
6008 "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
6009 "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
6010 "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
6011 "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
6012 "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
6013 "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
6014 "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
6015 "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
6016 "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
6017 "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
6018 "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
6019 "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
6020 "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
6021 "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
6022 .ilen = 496,
6023 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6024 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6025 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6026 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6027 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6028 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6029 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6030 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6031 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6032 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6033 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6034 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6035 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6036 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6037 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6038 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6039 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6040 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6041 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6042 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6043 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6044 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6045 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6046 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6047 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6048 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6049 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6050 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6051 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6052 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6053 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6054 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6055 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6056 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6057 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6058 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6059 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6060 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6061 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6062 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6063 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6064 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6065 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6066 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6067 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6068 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6069 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6070 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6071 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6072 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6073 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6074 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6075 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6076 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6077 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6078 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6079 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6080 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6081 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6082 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6083 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6084 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6085 .rlen = 496,
6086 .also_non_np = 1,
6087 .np = 3,
6088 .tap = { 496 - 20, 4, 16 },
6092 static struct cipher_testvec des3_ede_ctr_enc_tv_template[] = {
6093 { /* Generated with Crypto++ */
6094 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6095 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6096 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6097 .klen = 24,
6098 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
6099 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
6100 .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6101 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6102 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6103 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6104 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6105 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6106 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6107 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6108 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6109 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6110 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6111 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6112 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6113 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6114 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6115 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6116 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6117 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6118 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6119 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6120 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6121 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6122 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6123 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6124 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6125 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6126 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6127 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6128 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6129 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6130 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6131 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6132 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6133 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6134 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6135 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6136 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6137 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6138 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6139 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6140 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6141 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6142 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6143 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6144 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6145 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6146 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6147 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6148 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6149 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6150 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6151 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6152 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6153 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6154 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6155 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6156 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6157 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6158 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6159 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6160 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6161 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6162 .ilen = 496,
6163 .result = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
6164 "\x19\xCD\x6F\x32\x53\x05\x22\x15"
6165 "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
6166 "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
6167 "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
6168 "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
6169 "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
6170 "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
6171 "\x13\x78\xDC\x89\x12\x12\x43\xFA"
6172 "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
6173 "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
6174 "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
6175 "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
6176 "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
6177 "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
6178 "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
6179 "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
6180 "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
6181 "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
6182 "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
6183 "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
6184 "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
6185 "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
6186 "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
6187 "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
6188 "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
6189 "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
6190 "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
6191 "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
6192 "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
6193 "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
6194 "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
6195 "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
6196 "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
6197 "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
6198 "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
6199 "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
6200 "\x83\x37\x4F\x1F\x48\x30\xED\x04"
6201 "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
6202 "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
6203 "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
6204 "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
6205 "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
6206 "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
6207 "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
6208 "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
6209 "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
6210 "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
6211 "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
6212 "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
6213 "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
6214 "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
6215 "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
6216 "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
6217 "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
6218 "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
6219 "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
6220 "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
6221 "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
6222 "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
6223 "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
6224 "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
6225 .rlen = 496,
6226 .also_non_np = 1,
6227 .np = 3,
6228 .tap = { 496 - 20, 4, 16 },
6229 }, { /* Generated with Crypto++ */
6230 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6231 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6232 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6233 .klen = 24,
6234 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
6235 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
6236 .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6237 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6238 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6239 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6240 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6241 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6242 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6243 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6244 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6245 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6246 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6247 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6248 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6249 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6250 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6251 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6252 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6253 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6254 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6255 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6256 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6257 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6258 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6259 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6260 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6261 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6262 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6263 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6264 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6265 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6266 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6267 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6268 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6269 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6270 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6271 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6272 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6273 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6274 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6275 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6276 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6277 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6278 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6279 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6280 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6281 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6282 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6283 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6284 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6285 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6286 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6287 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6288 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6289 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6290 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6291 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6292 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6293 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6294 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6295 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6296 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6297 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
6298 "\x2E\xB1\x18",
6299 .ilen = 499,
6300 .result = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
6301 "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
6302 "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
6303 "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
6304 "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
6305 "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
6306 "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
6307 "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
6308 "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
6309 "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
6310 "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
6311 "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
6312 "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
6313 "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
6314 "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
6315 "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
6316 "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
6317 "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
6318 "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
6319 "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
6320 "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
6321 "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
6322 "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
6323 "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
6324 "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
6325 "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
6326 "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
6327 "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
6328 "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
6329 "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
6330 "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
6331 "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
6332 "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
6333 "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
6334 "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
6335 "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
6336 "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
6337 "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
6338 "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
6339 "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
6340 "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
6341 "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
6342 "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
6343 "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
6344 "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
6345 "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
6346 "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
6347 "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
6348 "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
6349 "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
6350 "\x8A\x19\x08\xE1\x08\x48\x59\x51"
6351 "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
6352 "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
6353 "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
6354 "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
6355 "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
6356 "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
6357 "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
6358 "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
6359 "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
6360 "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
6361 "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
6362 "\xF2\x79\xD9",
6363 .rlen = 499,
6364 .also_non_np = 1,
6365 .np = 2,
6366 .tap = { 499 - 16, 16 },
6370 static struct cipher_testvec des3_ede_ctr_dec_tv_template[] = {
6371 { /* Generated with Crypto++ */
6372 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6373 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6374 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6375 .klen = 24,
6376 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
6377 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
6378 .input = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
6379 "\x19\xCD\x6F\x32\x53\x05\x22\x15"
6380 "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
6381 "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
6382 "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
6383 "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
6384 "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
6385 "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
6386 "\x13\x78\xDC\x89\x12\x12\x43\xFA"
6387 "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
6388 "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
6389 "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
6390 "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
6391 "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
6392 "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
6393 "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
6394 "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
6395 "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
6396 "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
6397 "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
6398 "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
6399 "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
6400 "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
6401 "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
6402 "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
6403 "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
6404 "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
6405 "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
6406 "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
6407 "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
6408 "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
6409 "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
6410 "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
6411 "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
6412 "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
6413 "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
6414 "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
6415 "\x83\x37\x4F\x1F\x48\x30\xED\x04"
6416 "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
6417 "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
6418 "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
6419 "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
6420 "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
6421 "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
6422 "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
6423 "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
6424 "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
6425 "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
6426 "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
6427 "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
6428 "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
6429 "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
6430 "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
6431 "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
6432 "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
6433 "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
6434 "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
6435 "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
6436 "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
6437 "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
6438 "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
6439 "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
6440 .ilen = 496,
6441 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6442 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6443 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6444 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6445 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6446 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6447 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6448 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6449 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6450 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6451 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6452 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6453 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6454 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6455 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6456 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6457 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6458 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6459 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6460 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6461 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6462 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6463 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6464 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6465 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6466 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6467 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6468 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6469 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6470 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6471 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6472 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6473 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6474 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6475 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6476 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6477 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6478 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6479 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6480 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6481 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6482 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6483 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6484 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6485 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6486 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6487 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6488 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6489 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6490 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6491 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6492 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6493 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6494 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6495 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6496 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6497 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6498 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6499 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6500 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6501 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6502 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6503 .rlen = 496,
6504 .also_non_np = 1,
6505 .np = 3,
6506 .tap = { 496 - 20, 4, 16 },
6507 }, { /* Generated with Crypto++ */
6508 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6509 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6510 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6511 .klen = 24,
6512 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
6513 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
6514 .input = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
6515 "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
6516 "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
6517 "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
6518 "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
6519 "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
6520 "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
6521 "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
6522 "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
6523 "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
6524 "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
6525 "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
6526 "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
6527 "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
6528 "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
6529 "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
6530 "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
6531 "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
6532 "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
6533 "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
6534 "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
6535 "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
6536 "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
6537 "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
6538 "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
6539 "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
6540 "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
6541 "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
6542 "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
6543 "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
6544 "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
6545 "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
6546 "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
6547 "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
6548 "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
6549 "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
6550 "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
6551 "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
6552 "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
6553 "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
6554 "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
6555 "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
6556 "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
6557 "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
6558 "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
6559 "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
6560 "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
6561 "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
6562 "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
6563 "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
6564 "\x8A\x19\x08\xE1\x08\x48\x59\x51"
6565 "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
6566 "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
6567 "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
6568 "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
6569 "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
6570 "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
6571 "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
6572 "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
6573 "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
6574 "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
6575 "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
6576 "\xF2\x79\xD9",
6577 .ilen = 499,
6578 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6579 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6580 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6581 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6582 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6583 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6584 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6585 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6586 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6587 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6588 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6589 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6590 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6591 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6592 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6593 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6594 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6595 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6596 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6597 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6598 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6599 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6600 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6601 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6602 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6603 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6604 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6605 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6606 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6607 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6608 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6609 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6610 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6611 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6612 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6613 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6614 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6615 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6616 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6617 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6618 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6619 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6620 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6621 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6622 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6623 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6624 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6625 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6626 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6627 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6628 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6629 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6630 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6631 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6632 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6633 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6634 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6635 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6636 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6637 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6638 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6639 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
6640 "\x2E\xB1\x18",
6641 .rlen = 499,
6642 .also_non_np = 1,
6643 .np = 2,
6644 .tap = { 499 - 16, 16 },
6649 * Blowfish test vectors.
6651 #define BF_ENC_TEST_VECTORS 7
6652 #define BF_DEC_TEST_VECTORS 7
6653 #define BF_CBC_ENC_TEST_VECTORS 2
6654 #define BF_CBC_DEC_TEST_VECTORS 2
6655 #define BF_CTR_ENC_TEST_VECTORS 2
6656 #define BF_CTR_DEC_TEST_VECTORS 2
6658 static struct cipher_testvec bf_enc_tv_template[] = {
6659 { /* DES test vectors from OpenSSL */
6660 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
6661 .klen = 8,
6662 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
6663 .ilen = 8,
6664 .result = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
6665 .rlen = 8,
6666 }, {
6667 .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
6668 .klen = 8,
6669 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
6670 .ilen = 8,
6671 .result = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
6672 .rlen = 8,
6673 }, {
6674 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
6675 .klen = 8,
6676 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6677 .ilen = 8,
6678 .result = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
6679 .rlen = 8,
6680 }, { /* Vary the keylength... */
6681 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6682 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
6683 .klen = 16,
6684 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6685 .ilen = 8,
6686 .result = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
6687 .rlen = 8,
6688 }, {
6689 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6690 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6691 "\x00\x11\x22\x33\x44",
6692 .klen = 21,
6693 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6694 .ilen = 8,
6695 .result = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
6696 .rlen = 8,
6697 }, { /* Generated with bf488 */
6698 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6699 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6700 "\x00\x11\x22\x33\x44\x55\x66\x77"
6701 "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
6702 "\x58\x40\x23\x64\x1a\xba\x61\x76"
6703 "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
6704 "\xff\xff\xff\xff\xff\xff\xff\xff",
6705 .klen = 56,
6706 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6707 .ilen = 8,
6708 .result = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
6709 .rlen = 8,
6710 }, { /* Generated with Crypto++ */
6711 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6712 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6713 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6714 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6715 .klen = 32,
6716 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6717 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6718 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6719 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6720 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6721 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6722 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6723 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6724 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6725 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6726 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6727 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6728 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6729 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6730 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6731 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6732 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6733 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6734 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6735 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6736 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6737 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6738 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6739 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6740 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6741 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6742 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6743 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6744 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6745 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6746 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6747 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6748 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6749 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6750 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6751 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6752 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6753 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6754 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6755 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6756 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6757 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6758 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6759 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6760 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6761 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6762 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6763 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6764 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6765 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6766 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6767 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6768 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6769 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6770 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6771 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6772 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6773 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6774 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6775 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6776 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6777 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6778 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
6779 .ilen = 504,
6780 .result = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
6781 "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
6782 "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
6783 "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
6784 "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
6785 "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
6786 "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
6787 "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
6788 "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
6789 "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
6790 "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
6791 "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
6792 "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
6793 "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
6794 "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
6795 "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
6796 "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
6797 "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
6798 "\x47\x82\x98\x23\x33\x36\xBC\x1B"
6799 "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
6800 "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
6801 "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
6802 "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
6803 "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
6804 "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
6805 "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
6806 "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
6807 "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
6808 "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
6809 "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
6810 "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
6811 "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
6812 "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
6813 "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
6814 "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
6815 "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
6816 "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
6817 "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
6818 "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
6819 "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
6820 "\x3E\x42\x14\x49\x88\x51\xBF\x68"
6821 "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
6822 "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
6823 "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
6824 "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
6825 "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
6826 "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
6827 "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
6828 "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
6829 "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
6830 "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
6831 "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
6832 "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
6833 "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
6834 "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
6835 "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
6836 "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
6837 "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
6838 "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
6839 "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
6840 "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
6841 "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
6842 "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
6843 .rlen = 504,
6844 .also_non_np = 1,
6845 .np = 3,
6846 .tap = { 504 - 10, 2, 8 },
6850 static struct cipher_testvec bf_dec_tv_template[] = {
6851 { /* DES test vectors from OpenSSL */
6852 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
6853 .klen = 8,
6854 .input = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
6855 .ilen = 8,
6856 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
6857 .rlen = 8,
6858 }, {
6859 .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
6860 .klen = 8,
6861 .input = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
6862 .ilen = 8,
6863 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
6864 .rlen = 8,
6865 }, {
6866 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
6867 .klen = 8,
6868 .input = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
6869 .ilen = 8,
6870 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6871 .rlen = 8,
6872 }, { /* Vary the keylength... */
6873 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6874 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
6875 .klen = 16,
6876 .input = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
6877 .ilen = 8,
6878 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6879 .rlen = 8,
6880 }, {
6881 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6882 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6883 "\x00\x11\x22\x33\x44",
6884 .klen = 21,
6885 .input = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
6886 .ilen = 8,
6887 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6888 .rlen = 8,
6889 }, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */
6890 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6891 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6892 "\x00\x11\x22\x33\x44\x55\x66\x77"
6893 "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
6894 "\x58\x40\x23\x64\x1a\xba\x61\x76"
6895 "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
6896 "\xff\xff\xff\xff\xff\xff\xff\xff",
6897 .klen = 56,
6898 .input = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
6899 .ilen = 8,
6900 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6901 .rlen = 8,
6902 }, { /* Generated with Crypto++ */
6903 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6904 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6905 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6906 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6907 .klen = 32,
6908 .input = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
6909 "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
6910 "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
6911 "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
6912 "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
6913 "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
6914 "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
6915 "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
6916 "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
6917 "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
6918 "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
6919 "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
6920 "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
6921 "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
6922 "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
6923 "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
6924 "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
6925 "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
6926 "\x47\x82\x98\x23\x33\x36\xBC\x1B"
6927 "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
6928 "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
6929 "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
6930 "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
6931 "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
6932 "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
6933 "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
6934 "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
6935 "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
6936 "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
6937 "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
6938 "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
6939 "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
6940 "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
6941 "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
6942 "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
6943 "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
6944 "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
6945 "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
6946 "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
6947 "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
6948 "\x3E\x42\x14\x49\x88\x51\xBF\x68"
6949 "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
6950 "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
6951 "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
6952 "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
6953 "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
6954 "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
6955 "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
6956 "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
6957 "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
6958 "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
6959 "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
6960 "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
6961 "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
6962 "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
6963 "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
6964 "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
6965 "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
6966 "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
6967 "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
6968 "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
6969 "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
6970 "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
6971 .ilen = 504,
6972 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6973 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6974 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6975 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6976 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6977 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6978 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6979 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6980 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6981 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6982 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6983 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6984 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6985 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6986 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6987 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6988 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6989 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6990 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6991 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6992 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6993 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6994 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6995 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6996 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6997 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6998 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6999 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7000 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7001 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7002 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7003 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7004 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7005 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7006 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7007 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7008 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7009 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7010 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7011 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7012 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7013 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7014 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7015 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7016 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7017 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7018 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7019 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7020 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7021 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7022 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7023 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7024 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7025 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7026 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7027 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7028 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7029 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7030 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7031 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7032 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7033 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7034 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7035 .rlen = 504,
7036 .also_non_np = 1,
7037 .np = 3,
7038 .tap = { 504 - 10, 2, 8 },
7042 static struct cipher_testvec bf_cbc_enc_tv_template[] = {
7043 { /* From OpenSSL */
7044 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
7045 "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
7046 .klen = 16,
7047 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
7048 .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
7049 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
7050 "\x68\x65\x20\x74\x69\x6d\x65\x20"
7051 "\x66\x6f\x72\x20\x00\x00\x00\x00",
7052 .ilen = 32,
7053 .result = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
7054 "\x05\xb1\x56\xe2\x74\x03\x97\x93"
7055 "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
7056 "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
7057 .rlen = 32,
7058 }, { /* Generated with Crypto++ */
7059 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7060 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7061 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7062 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7063 .klen = 32,
7064 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7065 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7066 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7067 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7068 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7069 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7070 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7071 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7072 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7073 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7074 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7075 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7076 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7077 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7078 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7079 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7080 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7081 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7082 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7083 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7084 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7085 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7086 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7087 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7088 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7089 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7090 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7091 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7092 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7093 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7094 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7095 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7096 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7097 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7098 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7099 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7100 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7101 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7102 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7103 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7104 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7105 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7106 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7107 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7108 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7109 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7110 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7111 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7112 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7113 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7114 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7115 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7116 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7117 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7118 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7119 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7120 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7121 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7122 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7123 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7124 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7125 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7126 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7127 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7128 .ilen = 504,
7129 .result = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
7130 "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
7131 "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
7132 "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
7133 "\x01\x9C\x93\x63\x51\x60\x82\xD2"
7134 "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
7135 "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
7136 "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
7137 "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
7138 "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
7139 "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
7140 "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
7141 "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
7142 "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
7143 "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
7144 "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
7145 "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
7146 "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
7147 "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
7148 "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
7149 "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
7150 "\x65\xFE\x15\x40\xD0\x62\x41\x02"
7151 "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
7152 "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
7153 "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
7154 "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
7155 "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
7156 "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
7157 "\x04\xF0\x86\x08\x78\x18\x42\xE0"
7158 "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
7159 "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
7160 "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
7161 "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
7162 "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
7163 "\x97\x18\x92\xFF\x15\x11\xCE\xED"
7164 "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
7165 "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
7166 "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
7167 "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
7168 "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
7169 "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
7170 "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
7171 "\x43\x12\x73\x77\xDB\x91\x83\x5B"
7172 "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
7173 "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
7174 "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
7175 "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
7176 "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
7177 "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
7178 "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
7179 "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
7180 "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
7181 "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
7182 "\xC5\xF8\x69\x83\x28\x84\x87\x56"
7183 "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
7184 "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
7185 "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
7186 "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
7187 "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
7188 "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
7189 "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
7190 "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
7191 "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
7192 .rlen = 504,
7193 .also_non_np = 1,
7194 .np = 3,
7195 .tap = { 504 - 10, 2, 8 },
7199 static struct cipher_testvec bf_cbc_dec_tv_template[] = {
7200 { /* From OpenSSL */
7201 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
7202 "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
7203 .klen = 16,
7204 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
7205 .input = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
7206 "\x05\xb1\x56\xe2\x74\x03\x97\x93"
7207 "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
7208 "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
7209 .ilen = 32,
7210 .result = "\x37\x36\x35\x34\x33\x32\x31\x20"
7211 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
7212 "\x68\x65\x20\x74\x69\x6d\x65\x20"
7213 "\x66\x6f\x72\x20\x00\x00\x00\x00",
7214 .rlen = 32,
7215 }, { /* Generated with Crypto++ */
7216 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7217 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7218 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7219 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7220 .klen = 32,
7221 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7222 .input = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
7223 "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
7224 "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
7225 "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
7226 "\x01\x9C\x93\x63\x51\x60\x82\xD2"
7227 "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
7228 "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
7229 "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
7230 "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
7231 "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
7232 "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
7233 "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
7234 "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
7235 "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
7236 "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
7237 "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
7238 "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
7239 "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
7240 "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
7241 "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
7242 "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
7243 "\x65\xFE\x15\x40\xD0\x62\x41\x02"
7244 "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
7245 "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
7246 "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
7247 "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
7248 "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
7249 "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
7250 "\x04\xF0\x86\x08\x78\x18\x42\xE0"
7251 "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
7252 "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
7253 "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
7254 "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
7255 "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
7256 "\x97\x18\x92\xFF\x15\x11\xCE\xED"
7257 "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
7258 "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
7259 "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
7260 "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
7261 "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
7262 "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
7263 "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
7264 "\x43\x12\x73\x77\xDB\x91\x83\x5B"
7265 "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
7266 "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
7267 "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
7268 "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
7269 "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
7270 "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
7271 "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
7272 "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
7273 "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
7274 "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
7275 "\xC5\xF8\x69\x83\x28\x84\x87\x56"
7276 "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
7277 "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
7278 "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
7279 "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
7280 "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
7281 "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
7282 "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
7283 "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
7284 "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
7285 .ilen = 504,
7286 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7287 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7288 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7289 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7290 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7291 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7292 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7293 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7294 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7295 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7296 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7297 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7298 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7299 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7300 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7301 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7302 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7303 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7304 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7305 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7306 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7307 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7308 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7309 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7310 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7311 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7312 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7313 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7314 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7315 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7316 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7317 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7318 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7319 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7320 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7321 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7322 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7323 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7324 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7325 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7326 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7327 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7328 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7329 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7330 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7331 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7332 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7333 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7334 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7335 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7336 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7337 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7338 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7339 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7340 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7341 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7342 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7343 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7344 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7345 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7346 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7347 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7348 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7349 .rlen = 504,
7350 .also_non_np = 1,
7351 .np = 3,
7352 .tap = { 504 - 10, 2, 8 },
7356 static struct cipher_testvec bf_ctr_enc_tv_template[] = {
7357 { /* Generated with Crypto++ */
7358 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7359 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7360 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7361 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7362 .klen = 32,
7363 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7364 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7365 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7366 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7367 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7368 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7369 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7370 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7371 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7372 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7373 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7374 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7375 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7376 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7377 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7378 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7379 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7380 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7381 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7382 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7383 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7384 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7385 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7386 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7387 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7388 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7389 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7390 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7391 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7392 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7393 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7394 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7395 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7396 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7397 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7398 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7399 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7400 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7401 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7402 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7403 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7404 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7405 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7406 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7407 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7408 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7409 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7410 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7411 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7412 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7413 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7414 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7415 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7416 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7417 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7418 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7419 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7420 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7421 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7422 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7423 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7424 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7425 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7426 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7427 .ilen = 504,
7428 .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7429 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7430 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7431 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
7432 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
7433 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7434 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7435 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7436 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7437 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7438 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7439 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7440 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7441 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7442 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7443 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7444 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7445 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7446 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7447 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7448 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7449 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7450 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7451 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7452 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7453 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7454 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7455 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7456 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7457 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7458 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7459 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7460 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7461 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7462 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7463 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7464 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7465 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7466 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7467 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7468 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7469 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7470 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7471 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7472 "\x82\x63\x11\xB3\x54\x49\x00\x08"
7473 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7474 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7475 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7476 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7477 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7478 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7479 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7480 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7481 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7482 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7483 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7484 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7485 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7486 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7487 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7488 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7489 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7490 "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
7491 .rlen = 504,
7492 }, { /* Generated with Crypto++ */
7493 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7494 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7495 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7496 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7497 .klen = 32,
7498 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7499 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7500 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7501 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7502 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7503 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7504 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7505 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7506 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7507 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7508 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7509 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7510 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7511 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7512 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7513 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7514 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7515 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7516 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7517 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7518 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7519 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7520 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7521 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7522 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7523 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7524 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7525 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7526 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7527 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7528 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7529 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7530 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7531 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7532 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7533 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7534 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7535 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7536 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7537 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7538 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7539 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7540 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7541 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7542 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7543 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7544 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7545 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7546 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7547 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7548 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7549 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7550 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7551 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7552 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7553 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7554 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7555 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7556 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7557 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7558 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7559 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7560 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7561 "\x2B\xC2\x59\xF0\x64\xFB\x92",
7562 .ilen = 503,
7563 .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7564 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7565 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7566 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
7567 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
7568 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7569 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7570 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7571 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7572 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7573 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7574 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7575 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7576 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7577 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7578 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7579 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7580 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7581 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7582 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7583 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7584 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7585 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7586 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7587 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7588 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7589 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7590 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7591 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7592 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7593 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7594 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7595 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7596 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7597 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7598 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7599 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7600 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7601 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7602 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7603 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7604 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7605 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7606 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7607 "\x82\x63\x11\xB3\x54\x49\x00\x08"
7608 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7609 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7610 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7611 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7612 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7613 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7614 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7615 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7616 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7617 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7618 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7619 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7620 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7621 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7622 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7623 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7624 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7625 "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
7626 .rlen = 503,
7627 .also_non_np = 1,
7628 .np = 2,
7629 .tap = { 503 - 8, 8 },
7630 }, { /* Generated with Crypto++ */
7631 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7632 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7633 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7634 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7635 .klen = 32,
7636 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
7637 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7638 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7639 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7640 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7641 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7642 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7643 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7644 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7645 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7646 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7647 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7648 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7649 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7650 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7651 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7652 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7653 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7654 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7655 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7656 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7657 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7658 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7659 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7660 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7661 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7662 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7663 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7664 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7665 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7666 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7667 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7668 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7669 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7670 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7671 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7672 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7673 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7674 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7675 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7676 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7677 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7678 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7679 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7680 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7681 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7682 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7683 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7684 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7685 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7686 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7687 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7688 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7689 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7690 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7691 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7692 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7693 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7694 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7695 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7696 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7697 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7698 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7699 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7700 .ilen = 504,
7701 .result = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
7702 "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
7703 "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
7704 "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
7705 "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
7706 "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
7707 "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
7708 "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
7709 "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
7710 "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
7711 "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
7712 "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
7713 "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
7714 "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
7715 "\x0B\x82\x59\x14\x26\x67\x08\x09"
7716 "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
7717 "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
7718 "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
7719 "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
7720 "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
7721 "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
7722 "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
7723 "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
7724 "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
7725 "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
7726 "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
7727 "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
7728 "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
7729 "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
7730 "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
7731 "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
7732 "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
7733 "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
7734 "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
7735 "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
7736 "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
7737 "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
7738 "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
7739 "\xB4\x19\xD8\x19\x45\x66\x27\x02"
7740 "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
7741 "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
7742 "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
7743 "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
7744 "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
7745 "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
7746 "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
7747 "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
7748 "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
7749 "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
7750 "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
7751 "\x91\x51\x4E\x71\xF2\x98\x85\x16"
7752 "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
7753 "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
7754 "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
7755 "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
7756 "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
7757 "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
7758 "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
7759 "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
7760 "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
7761 "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
7762 "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
7763 "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
7764 .rlen = 504,
7768 static struct cipher_testvec bf_ctr_dec_tv_template[] = {
7769 { /* Generated with Crypto++ */
7770 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7771 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7772 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7773 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7774 .klen = 32,
7775 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7776 .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7777 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7778 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7779 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
7780 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
7781 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7782 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7783 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7784 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7785 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7786 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7787 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7788 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7789 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7790 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7791 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7792 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7793 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7794 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7795 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7796 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7797 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7798 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7799 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7800 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7801 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7802 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7803 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7804 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7805 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7806 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7807 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7808 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7809 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7810 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7811 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7812 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7813 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7814 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7815 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7816 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7817 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7818 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7819 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7820 "\x82\x63\x11\xB3\x54\x49\x00\x08"
7821 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7822 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7823 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7824 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7825 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7826 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7827 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7828 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7829 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7830 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7831 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7832 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7833 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7834 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7835 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7836 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7837 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7838 "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
7839 .ilen = 504,
7840 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7841 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7842 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7843 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7844 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7845 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7846 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7847 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7848 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7849 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7850 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7851 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7852 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7853 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7854 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7855 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7856 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7857 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7858 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7859 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7860 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7861 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7862 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7863 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7864 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7865 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7866 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7867 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7868 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7869 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7870 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7871 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7872 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7873 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7874 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7875 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7876 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7877 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7878 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7879 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7880 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7881 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7882 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7883 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7884 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7885 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7886 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7887 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7888 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7889 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7890 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7891 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7892 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7893 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7894 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7895 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7896 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7897 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7898 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7899 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7900 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7901 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7902 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7903 .rlen = 504,
7904 }, { /* Generated with Crypto++ */
7905 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7906 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7907 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7908 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7909 .klen = 32,
7910 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7911 .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7912 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7913 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7914 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
7915 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
7916 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7917 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7918 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7919 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7920 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7921 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7922 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7923 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7924 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7925 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7926 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7927 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7928 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7929 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7930 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7931 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7932 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7933 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7934 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7935 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7936 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7937 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7938 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7939 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7940 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7941 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7942 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7943 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7944 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7945 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7946 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7947 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7948 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7949 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7950 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7951 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7952 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7953 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7954 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7955 "\x82\x63\x11\xB3\x54\x49\x00\x08"
7956 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7957 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7958 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7959 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7960 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7961 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7962 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7963 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7964 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7965 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7966 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7967 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7968 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7969 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7970 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7971 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7972 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7973 "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
7974 .ilen = 503,
7975 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7976 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7977 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7978 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7979 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7980 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7981 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7982 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7983 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7984 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7985 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7986 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7987 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7988 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7989 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7990 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7991 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7992 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7993 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7994 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7995 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7996 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7997 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7998 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7999 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8000 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8001 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8002 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8003 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8004 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8005 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8006 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8007 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8008 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8009 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8010 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8011 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8012 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8013 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8014 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8015 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8016 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8017 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8018 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8019 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8020 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8021 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8022 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8023 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8024 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8025 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8026 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8027 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8028 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8029 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8030 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8031 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8032 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8033 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8034 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8035 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8036 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8037 "\x2B\xC2\x59\xF0\x64\xFB\x92",
8038 .rlen = 503,
8039 .also_non_np = 1,
8040 .np = 2,
8041 .tap = { 503 - 8, 8 },
8042 }, { /* Generated with Crypto++ */
8043 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8044 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8045 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8046 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8047 .klen = 32,
8048 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
8049 .input = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
8050 "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
8051 "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
8052 "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
8053 "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
8054 "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
8055 "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
8056 "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
8057 "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
8058 "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
8059 "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
8060 "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
8061 "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
8062 "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
8063 "\x0B\x82\x59\x14\x26\x67\x08\x09"
8064 "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
8065 "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
8066 "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
8067 "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
8068 "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
8069 "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
8070 "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
8071 "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
8072 "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
8073 "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
8074 "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
8075 "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
8076 "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
8077 "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
8078 "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
8079 "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
8080 "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
8081 "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
8082 "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
8083 "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
8084 "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
8085 "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
8086 "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
8087 "\xB4\x19\xD8\x19\x45\x66\x27\x02"
8088 "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
8089 "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
8090 "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
8091 "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
8092 "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
8093 "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
8094 "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
8095 "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
8096 "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
8097 "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
8098 "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
8099 "\x91\x51\x4E\x71\xF2\x98\x85\x16"
8100 "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
8101 "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
8102 "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
8103 "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
8104 "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
8105 "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
8106 "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
8107 "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
8108 "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
8109 "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
8110 "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
8111 "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
8112 .ilen = 504,
8113 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8114 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8115 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8116 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8117 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8118 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8119 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8120 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8121 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8122 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8123 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8124 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8125 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8126 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8127 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8128 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8129 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8130 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8131 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8132 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8133 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8134 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8135 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8136 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8137 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8138 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8139 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8140 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8141 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8142 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8143 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8144 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8145 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8146 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8147 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8148 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8149 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8150 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8151 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8152 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8153 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8154 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8155 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8156 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8157 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8158 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8159 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8160 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8161 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8162 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8163 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8164 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8165 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8166 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8167 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8168 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8169 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8170 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8171 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8172 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8173 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8174 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8175 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
8176 .rlen = 504,
8181 * Twofish test vectors.
8183 #define TF_ENC_TEST_VECTORS 4
8184 #define TF_DEC_TEST_VECTORS 4
8185 #define TF_CBC_ENC_TEST_VECTORS 5
8186 #define TF_CBC_DEC_TEST_VECTORS 5
8187 #define TF_CTR_ENC_TEST_VECTORS 2
8188 #define TF_CTR_DEC_TEST_VECTORS 2
8189 #define TF_LRW_ENC_TEST_VECTORS 8
8190 #define TF_LRW_DEC_TEST_VECTORS 8
8191 #define TF_XTS_ENC_TEST_VECTORS 5
8192 #define TF_XTS_DEC_TEST_VECTORS 5
8194 static struct cipher_testvec tf_enc_tv_template[] = {
8196 .key = zeroed_string,
8197 .klen = 16,
8198 .input = zeroed_string,
8199 .ilen = 16,
8200 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8201 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8202 .rlen = 16,
8203 }, {
8204 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
8205 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
8206 "\x00\x11\x22\x33\x44\x55\x66\x77",
8207 .klen = 24,
8208 .input = zeroed_string,
8209 .ilen = 16,
8210 .result = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
8211 "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
8212 .rlen = 16,
8213 }, {
8214 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
8215 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
8216 "\x00\x11\x22\x33\x44\x55\x66\x77"
8217 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
8218 .klen = 32,
8219 .input = zeroed_string,
8220 .ilen = 16,
8221 .result = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
8222 "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
8223 .rlen = 16,
8224 }, { /* Generated with Crypto++ */
8225 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
8226 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
8227 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
8228 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
8229 .klen = 32,
8230 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8231 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8232 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8233 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8234 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8235 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8236 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8237 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8238 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8239 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8240 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8241 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8242 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8243 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8244 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8245 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8246 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8247 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8248 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8249 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8250 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8251 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8252 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8253 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8254 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8255 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8256 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8257 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8258 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8259 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8260 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8261 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8262 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8263 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8264 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8265 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8266 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8267 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8268 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8269 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8270 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8271 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8272 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8273 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8274 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8275 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8276 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8277 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8278 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8279 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8280 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8281 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8282 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8283 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8284 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8285 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8286 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8287 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8288 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8289 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8290 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8291 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8292 .ilen = 496,
8293 .result = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
8294 "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
8295 "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
8296 "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
8297 "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
8298 "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
8299 "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
8300 "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
8301 "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
8302 "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
8303 "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
8304 "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
8305 "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
8306 "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
8307 "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
8308 "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
8309 "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
8310 "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
8311 "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
8312 "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
8313 "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
8314 "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
8315 "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
8316 "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
8317 "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
8318 "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
8319 "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
8320 "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
8321 "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
8322 "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
8323 "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
8324 "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
8325 "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
8326 "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
8327 "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
8328 "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
8329 "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
8330 "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
8331 "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
8332 "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
8333 "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
8334 "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
8335 "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
8336 "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
8337 "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
8338 "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
8339 "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
8340 "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
8341 "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
8342 "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
8343 "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
8344 "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
8345 "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
8346 "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
8347 "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
8348 "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
8349 "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
8350 "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
8351 "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
8352 "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
8353 "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
8354 "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
8355 .rlen = 496,
8356 .also_non_np = 1,
8357 .np = 3,
8358 .tap = { 496 - 20, 4, 16 },
8362 static struct cipher_testvec tf_dec_tv_template[] = {
8364 .key = zeroed_string,
8365 .klen = 16,
8366 .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8367 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8368 .ilen = 16,
8369 .result = zeroed_string,
8370 .rlen = 16,
8371 }, {
8372 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
8373 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
8374 "\x00\x11\x22\x33\x44\x55\x66\x77",
8375 .klen = 24,
8376 .input = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
8377 "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
8378 .ilen = 16,
8379 .result = zeroed_string,
8380 .rlen = 16,
8381 }, {
8382 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
8383 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
8384 "\x00\x11\x22\x33\x44\x55\x66\x77"
8385 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
8386 .klen = 32,
8387 .input = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
8388 "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
8389 .ilen = 16,
8390 .result = zeroed_string,
8391 .rlen = 16,
8392 }, { /* Generated with Crypto++ */
8393 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
8394 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
8395 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
8396 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
8397 .klen = 32,
8398 .input = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
8399 "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
8400 "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
8401 "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
8402 "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
8403 "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
8404 "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
8405 "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
8406 "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
8407 "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
8408 "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
8409 "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
8410 "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
8411 "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
8412 "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
8413 "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
8414 "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
8415 "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
8416 "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
8417 "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
8418 "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
8419 "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
8420 "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
8421 "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
8422 "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
8423 "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
8424 "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
8425 "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
8426 "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
8427 "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
8428 "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
8429 "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
8430 "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
8431 "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
8432 "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
8433 "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
8434 "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
8435 "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
8436 "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
8437 "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
8438 "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
8439 "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
8440 "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
8441 "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
8442 "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
8443 "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
8444 "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
8445 "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
8446 "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
8447 "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
8448 "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
8449 "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
8450 "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
8451 "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
8452 "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
8453 "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
8454 "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
8455 "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
8456 "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
8457 "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
8458 "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
8459 "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
8460 .ilen = 496,
8461 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8462 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8463 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8464 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8465 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8466 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8467 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8468 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8469 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8470 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8471 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8472 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8473 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8474 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8475 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8476 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8477 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8478 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8479 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8480 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8481 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8482 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8483 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8484 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8485 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8486 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8487 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8488 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8489 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8490 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8491 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8492 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8493 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8494 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8495 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8496 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8497 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8498 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8499 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8500 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8501 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8502 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8503 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8504 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8505 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8506 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8507 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8508 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8509 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8510 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8511 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8512 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8513 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8514 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8515 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8516 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8517 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8518 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8519 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8520 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8521 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8522 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8523 .rlen = 496,
8524 .also_non_np = 1,
8525 .np = 3,
8526 .tap = { 496 - 20, 4, 16 },
8530 static struct cipher_testvec tf_cbc_enc_tv_template[] = {
8531 { /* Generated with Nettle */
8532 .key = zeroed_string,
8533 .klen = 16,
8534 .iv = zeroed_string,
8535 .input = zeroed_string,
8536 .ilen = 16,
8537 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8538 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8539 .rlen = 16,
8540 }, {
8541 .key = zeroed_string,
8542 .klen = 16,
8543 .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8544 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8545 .input = zeroed_string,
8546 .ilen = 16,
8547 .result = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8548 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
8549 .rlen = 16,
8550 }, {
8551 .key = zeroed_string,
8552 .klen = 16,
8553 .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8554 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
8555 .input = zeroed_string,
8556 .ilen = 16,
8557 .result = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
8558 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
8559 .rlen = 16,
8560 }, {
8561 .key = zeroed_string,
8562 .klen = 16,
8563 .iv = zeroed_string,
8564 .input = zeroed_string,
8565 .ilen = 48,
8566 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8567 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
8568 "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8569 "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
8570 "\x05\xef\x8c\x61\xa8\x11\x58\x26"
8571 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
8572 .rlen = 48,
8573 }, { /* Generated with Crypto++ */
8574 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8575 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8576 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8577 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8578 .klen = 32,
8579 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
8580 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
8581 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8582 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8583 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8584 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8585 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8586 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8587 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8588 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8589 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8590 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8591 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8592 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8593 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8594 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8595 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8596 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8597 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8598 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8599 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8600 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8601 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8602 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8603 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8604 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8605 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8606 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8607 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8608 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8609 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8610 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8611 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8612 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8613 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8614 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8615 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8616 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8617 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8618 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8619 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8620 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8621 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8622 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8623 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8624 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8625 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8626 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8627 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8628 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8629 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8630 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8631 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8632 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8633 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8634 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8635 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8636 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8637 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8638 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8639 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8640 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8641 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8642 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8643 .ilen = 496,
8644 .result = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
8645 "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
8646 "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
8647 "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
8648 "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
8649 "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
8650 "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
8651 "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
8652 "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
8653 "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
8654 "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
8655 "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
8656 "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
8657 "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
8658 "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
8659 "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
8660 "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
8661 "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
8662 "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
8663 "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
8664 "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
8665 "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
8666 "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
8667 "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
8668 "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
8669 "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
8670 "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
8671 "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
8672 "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
8673 "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
8674 "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
8675 "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
8676 "\x75\x42\x62\x04\x31\x1F\x95\x7C"
8677 "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
8678 "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
8679 "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
8680 "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
8681 "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
8682 "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
8683 "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
8684 "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
8685 "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
8686 "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
8687 "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
8688 "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
8689 "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
8690 "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
8691 "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
8692 "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
8693 "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
8694 "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
8695 "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
8696 "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
8697 "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
8698 "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
8699 "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
8700 "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
8701 "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
8702 "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
8703 "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
8704 "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
8705 "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
8706 .rlen = 496,
8707 .also_non_np = 1,
8708 .np = 3,
8709 .tap = { 496 - 20, 4, 16 },
8713 static struct cipher_testvec tf_cbc_dec_tv_template[] = {
8714 { /* Reverse of the first four above */
8715 .key = zeroed_string,
8716 .klen = 16,
8717 .iv = zeroed_string,
8718 .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8719 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8720 .ilen = 16,
8721 .result = zeroed_string,
8722 .rlen = 16,
8723 }, {
8724 .key = zeroed_string,
8725 .klen = 16,
8726 .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8727 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8728 .input = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8729 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
8730 .ilen = 16,
8731 .result = zeroed_string,
8732 .rlen = 16,
8733 }, {
8734 .key = zeroed_string,
8735 .klen = 16,
8736 .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8737 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
8738 .input = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
8739 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
8740 .ilen = 16,
8741 .result = zeroed_string,
8742 .rlen = 16,
8743 }, {
8744 .key = zeroed_string,
8745 .klen = 16,
8746 .iv = zeroed_string,
8747 .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8748 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
8749 "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8750 "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
8751 "\x05\xef\x8c\x61\xa8\x11\x58\x26"
8752 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
8753 .ilen = 48,
8754 .result = zeroed_string,
8755 .rlen = 48,
8756 }, { /* Generated with Crypto++ */
8757 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8758 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8759 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8760 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8761 .klen = 32,
8762 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
8763 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
8764 .input = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
8765 "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
8766 "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
8767 "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
8768 "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
8769 "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
8770 "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
8771 "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
8772 "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
8773 "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
8774 "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
8775 "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
8776 "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
8777 "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
8778 "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
8779 "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
8780 "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
8781 "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
8782 "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
8783 "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
8784 "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
8785 "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
8786 "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
8787 "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
8788 "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
8789 "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
8790 "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
8791 "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
8792 "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
8793 "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
8794 "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
8795 "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
8796 "\x75\x42\x62\x04\x31\x1F\x95\x7C"
8797 "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
8798 "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
8799 "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
8800 "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
8801 "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
8802 "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
8803 "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
8804 "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
8805 "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
8806 "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
8807 "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
8808 "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
8809 "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
8810 "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
8811 "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
8812 "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
8813 "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
8814 "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
8815 "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
8816 "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
8817 "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
8818 "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
8819 "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
8820 "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
8821 "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
8822 "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
8823 "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
8824 "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
8825 "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
8826 .ilen = 496,
8827 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8828 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8829 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8830 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8831 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8832 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8833 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8834 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8835 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8836 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8837 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8838 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8839 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8840 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8841 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8842 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8843 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8844 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8845 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8846 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8847 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8848 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8849 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8850 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8851 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8852 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8853 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8854 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8855 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8856 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8857 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8858 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8859 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8860 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8861 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8862 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8863 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8864 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8865 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8866 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8867 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8868 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8869 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8870 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8871 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8872 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8873 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8874 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8875 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8876 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8877 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8878 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8879 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8880 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8881 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8882 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8883 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8884 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8885 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8886 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8887 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8888 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8889 .rlen = 496,
8890 .also_non_np = 1,
8891 .np = 3,
8892 .tap = { 496 - 20, 4, 16 },
8896 static struct cipher_testvec tf_ctr_enc_tv_template[] = {
8897 { /* Generated with Crypto++ */
8898 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8899 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8900 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8901 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8902 .klen = 32,
8903 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
8904 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
8905 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8906 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8907 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8908 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8909 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8910 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8911 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8912 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8913 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8914 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8915 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8916 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8917 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8918 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8919 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8920 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8921 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8922 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8923 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8924 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8925 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8926 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8927 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8928 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8929 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8930 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8931 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8932 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8933 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8934 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8935 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8936 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8937 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8938 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8939 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8940 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8941 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8942 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8943 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8944 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8945 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8946 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8947 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8948 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8949 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8950 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8951 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8952 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8953 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8954 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8955 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8956 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8957 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8958 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8959 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8960 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8961 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8962 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8963 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8964 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8965 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8966 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8967 .ilen = 496,
8968 .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
8969 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
8970 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
8971 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
8972 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
8973 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
8974 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
8975 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
8976 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
8977 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
8978 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
8979 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
8980 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
8981 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
8982 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
8983 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
8984 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
8985 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
8986 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
8987 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
8988 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
8989 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
8990 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
8991 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
8992 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
8993 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
8994 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
8995 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
8996 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
8997 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
8998 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
8999 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
9000 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
9001 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
9002 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
9003 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
9004 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
9005 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
9006 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
9007 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
9008 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
9009 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
9010 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
9011 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
9012 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
9013 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
9014 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
9015 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
9016 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
9017 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
9018 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
9019 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
9020 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
9021 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
9022 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
9023 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
9024 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
9025 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
9026 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
9027 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
9028 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
9029 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
9030 .rlen = 496,
9031 }, { /* Generated with Crypto++ */
9032 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9033 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9034 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9035 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9036 .klen = 32,
9037 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
9038 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
9039 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9040 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9041 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9042 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9043 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9044 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9045 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9046 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9047 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9048 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9049 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9050 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9051 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9052 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9053 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9054 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9055 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9056 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9057 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9058 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9059 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9060 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9061 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9062 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9063 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9064 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9065 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9066 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9067 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9068 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9069 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9070 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9071 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9072 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9073 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9074 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9075 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9076 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9077 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9078 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9079 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9080 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9081 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9082 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9083 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9084 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9085 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9086 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9087 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9088 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9089 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9090 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9091 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9092 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9093 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9094 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9095 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9096 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9097 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9098 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9099 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9100 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9101 .ilen = 496,
9102 .result = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
9103 "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
9104 "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
9105 "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
9106 "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
9107 "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
9108 "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
9109 "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
9110 "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
9111 "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
9112 "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
9113 "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
9114 "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
9115 "\x39\x18\x09\xA4\x82\x59\x78\xE7"
9116 "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
9117 "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
9118 "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
9119 "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
9120 "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
9121 "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
9122 "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
9123 "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
9124 "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
9125 "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
9126 "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
9127 "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
9128 "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
9129 "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
9130 "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
9131 "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
9132 "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
9133 "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
9134 "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
9135 "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
9136 "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
9137 "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
9138 "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
9139 "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
9140 "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
9141 "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
9142 "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
9143 "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
9144 "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
9145 "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
9146 "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
9147 "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
9148 "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
9149 "\xDE\x55\x1B\x50\x14\x53\x44\x17"
9150 "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
9151 "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
9152 "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
9153 "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
9154 "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
9155 "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
9156 "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
9157 "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
9158 "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
9159 "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
9160 "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
9161 "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
9162 "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
9163 "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
9164 .rlen = 496,
9165 }, { /* Generated with Crypto++ */
9166 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9167 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9168 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9169 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9170 .klen = 32,
9171 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9172 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9173 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9174 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9175 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9176 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9177 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9178 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9179 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9180 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9181 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9182 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9183 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9184 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9185 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9186 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9187 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9188 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9189 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9190 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9191 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9192 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9193 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9194 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9195 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9196 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9197 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9198 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9199 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9200 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9201 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9202 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9203 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9204 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9205 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9206 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9207 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9208 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9209 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9210 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9211 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9212 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9213 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9214 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9215 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9216 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9217 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9218 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9219 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9220 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9221 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9222 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9223 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9224 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9225 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9226 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9227 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9228 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9229 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9230 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9231 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9232 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9233 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9234 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
9235 "\x2B\xC2\x59",
9236 .ilen = 499,
9237 .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
9238 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
9239 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
9240 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
9241 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
9242 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
9243 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
9244 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
9245 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
9246 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
9247 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
9248 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
9249 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
9250 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
9251 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
9252 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
9253 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
9254 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
9255 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
9256 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
9257 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
9258 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
9259 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
9260 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
9261 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
9262 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
9263 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
9264 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
9265 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
9266 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
9267 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
9268 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
9269 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
9270 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
9271 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
9272 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
9273 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
9274 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
9275 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
9276 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
9277 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
9278 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
9279 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
9280 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
9281 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
9282 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
9283 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
9284 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
9285 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
9286 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
9287 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
9288 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
9289 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
9290 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
9291 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
9292 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
9293 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
9294 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
9295 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
9296 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
9297 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
9298 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
9299 "\x6C\x82\x9D",
9300 .rlen = 499,
9301 .also_non_np = 1,
9302 .np = 2,
9303 .tap = { 499 - 16, 16 },
9307 static struct cipher_testvec tf_ctr_dec_tv_template[] = {
9308 { /* Generated with Crypto++ */
9309 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9310 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9311 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9312 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9313 .klen = 32,
9314 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9315 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9316 .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
9317 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
9318 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
9319 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
9320 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
9321 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
9322 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
9323 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
9324 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
9325 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
9326 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
9327 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
9328 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
9329 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
9330 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
9331 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
9332 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
9333 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
9334 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
9335 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
9336 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
9337 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
9338 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
9339 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
9340 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
9341 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
9342 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
9343 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
9344 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
9345 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
9346 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
9347 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
9348 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
9349 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
9350 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
9351 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
9352 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
9353 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
9354 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
9355 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
9356 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
9357 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
9358 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
9359 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
9360 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
9361 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
9362 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
9363 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
9364 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
9365 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
9366 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
9367 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
9368 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
9369 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
9370 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
9371 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
9372 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
9373 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
9374 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
9375 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
9376 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
9377 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
9378 .ilen = 496,
9379 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9380 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9381 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9382 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9383 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9384 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9385 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9386 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9387 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9388 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9389 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9390 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9391 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9392 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9393 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9394 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9395 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9396 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9397 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9398 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9399 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9400 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9401 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9402 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9403 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9404 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9405 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9406 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9407 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9408 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9409 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9410 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9411 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9412 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9413 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9414 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9415 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9416 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9417 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9418 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9419 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9420 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9421 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9422 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9423 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9424 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9425 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9426 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9427 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9428 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9429 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9430 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9431 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9432 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9433 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9434 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9435 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9436 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9437 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9438 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9439 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9440 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9441 .rlen = 496,
9442 }, { /* Generated with Crypto++ */
9443 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9444 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9445 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9446 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9447 .klen = 32,
9448 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
9449 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
9450 .input = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
9451 "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
9452 "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
9453 "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
9454 "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
9455 "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
9456 "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
9457 "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
9458 "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
9459 "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
9460 "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
9461 "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
9462 "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
9463 "\x39\x18\x09\xA4\x82\x59\x78\xE7"
9464 "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
9465 "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
9466 "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
9467 "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
9468 "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
9469 "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
9470 "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
9471 "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
9472 "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
9473 "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
9474 "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
9475 "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
9476 "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
9477 "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
9478 "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
9479 "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
9480 "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
9481 "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
9482 "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
9483 "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
9484 "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
9485 "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
9486 "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
9487 "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
9488 "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
9489 "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
9490 "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
9491 "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
9492 "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
9493 "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
9494 "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
9495 "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
9496 "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
9497 "\xDE\x55\x1B\x50\x14\x53\x44\x17"
9498 "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
9499 "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
9500 "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
9501 "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
9502 "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
9503 "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
9504 "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
9505 "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
9506 "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
9507 "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
9508 "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
9509 "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
9510 "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
9511 "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
9512 .ilen = 496,
9513 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9514 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9515 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9516 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9517 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9518 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9519 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9520 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9521 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9522 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9523 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9524 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9525 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9526 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9527 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9528 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9529 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9530 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9531 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9532 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9533 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9534 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9535 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9536 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9537 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9538 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9539 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9540 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9541 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9542 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9543 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9544 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9545 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9546 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9547 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9548 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9549 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9550 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9551 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9552 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9553 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9554 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9555 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9556 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9557 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9558 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9559 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9560 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9561 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9562 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9563 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9564 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9565 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9566 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9567 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9568 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9569 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9570 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9571 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9572 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9573 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9574 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9575 .rlen = 496,
9576 }, { /* Generated with Crypto++ */
9577 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9578 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9579 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9580 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9581 .klen = 32,
9582 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9583 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9584 .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
9585 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
9586 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
9587 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
9588 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
9589 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
9590 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
9591 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
9592 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
9593 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
9594 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
9595 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
9596 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
9597 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
9598 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
9599 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
9600 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
9601 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
9602 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
9603 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
9604 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
9605 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
9606 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
9607 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
9608 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
9609 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
9610 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
9611 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
9612 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
9613 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
9614 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
9615 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
9616 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
9617 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
9618 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
9619 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
9620 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
9621 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
9622 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
9623 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
9624 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
9625 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
9626 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
9627 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
9628 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
9629 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
9630 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
9631 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
9632 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
9633 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
9634 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
9635 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
9636 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
9637 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
9638 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
9639 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
9640 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
9641 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
9642 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
9643 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
9644 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
9645 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
9646 "\x6C\x82\x9D",
9647 .ilen = 499,
9648 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9649 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9650 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9651 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9652 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9653 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9654 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9655 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9656 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9657 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9658 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9659 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9660 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9661 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9662 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9663 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9664 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9665 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9666 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9667 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9668 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9669 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9670 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9671 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9672 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9673 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9674 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9675 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9676 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9677 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9678 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9679 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9680 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9681 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9682 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9683 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9684 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9685 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9686 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9687 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9688 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9689 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9690 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9691 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9692 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9693 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9694 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9695 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9696 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9697 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9698 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9699 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9700 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9701 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9702 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9703 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9704 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9705 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9706 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9707 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9708 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9709 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
9710 "\x2B\xC2\x59",
9711 .rlen = 499,
9712 .also_non_np = 1,
9713 .np = 2,
9714 .tap = { 499 - 16, 16 },
9718 static struct cipher_testvec tf_lrw_enc_tv_template[] = {
9719 /* Generated from AES-LRW test vectors */
9721 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
9722 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
9723 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
9724 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
9725 .klen = 32,
9726 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9727 "\x00\x00\x00\x00\x00\x00\x00\x01",
9728 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9729 "\x38\x39\x41\x42\x43\x44\x45\x46",
9730 .ilen = 16,
9731 .result = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
9732 "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
9733 .rlen = 16,
9734 }, {
9735 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
9736 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
9737 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
9738 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
9739 .klen = 32,
9740 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9741 "\x00\x00\x00\x00\x00\x00\x00\x02",
9742 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9743 "\x38\x39\x41\x42\x43\x44\x45\x46",
9744 .ilen = 16,
9745 .result = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
9746 "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
9747 .rlen = 16,
9748 }, {
9749 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
9750 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
9751 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
9752 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
9753 .klen = 32,
9754 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9755 "\x00\x00\x00\x02\x00\x00\x00\x00",
9756 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9757 "\x38\x39\x41\x42\x43\x44\x45\x46",
9758 .ilen = 16,
9759 .result = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
9760 "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
9761 .rlen = 16,
9762 }, {
9763 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
9764 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
9765 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
9766 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
9767 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
9768 .klen = 40,
9769 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9770 "\x00\x00\x00\x00\x00\x00\x00\x01",
9771 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9772 "\x38\x39\x41\x42\x43\x44\x45\x46",
9773 .ilen = 16,
9774 .result = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
9775 "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
9776 .rlen = 16,
9777 }, {
9778 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
9779 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
9780 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
9781 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
9782 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
9783 .klen = 40,
9784 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9785 "\x00\x00\x00\x02\x00\x00\x00\x00",
9786 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9787 "\x38\x39\x41\x42\x43\x44\x45\x46",
9788 .ilen = 16,
9789 .result = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
9790 "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
9791 .rlen = 16,
9792 }, {
9793 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
9794 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
9795 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
9796 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
9797 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
9798 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
9799 .klen = 48,
9800 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9801 "\x00\x00\x00\x00\x00\x00\x00\x01",
9802 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9803 "\x38\x39\x41\x42\x43\x44\x45\x46",
9804 .ilen = 16,
9805 .result = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
9806 "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
9807 .rlen = 16,
9808 }, {
9809 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
9810 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
9811 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
9812 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
9813 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
9814 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
9815 .klen = 48,
9816 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9817 "\x00\x00\x00\x02\x00\x00\x00\x00",
9818 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9819 "\x38\x39\x41\x42\x43\x44\x45\x46",
9820 .ilen = 16,
9821 .result = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
9822 "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
9823 .rlen = 16,
9824 }, {
9825 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
9826 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
9827 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
9828 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
9829 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
9830 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
9831 .klen = 48,
9832 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9833 "\x00\x00\x00\x00\x00\x00\x00\x01",
9834 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
9835 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
9836 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
9837 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
9838 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
9839 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
9840 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
9841 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
9842 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
9843 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
9844 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
9845 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
9846 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
9847 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
9848 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
9849 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
9850 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
9851 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
9852 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
9853 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
9854 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
9855 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
9856 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
9857 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
9858 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
9859 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
9860 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
9861 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
9862 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
9863 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
9864 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
9865 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
9866 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
9867 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
9868 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
9869 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
9870 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
9871 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
9872 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
9873 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
9874 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
9875 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
9876 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
9877 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
9878 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
9879 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
9880 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
9881 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
9882 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
9883 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
9884 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
9885 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
9886 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
9887 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
9888 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
9889 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
9890 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
9891 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
9892 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
9893 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
9894 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
9895 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
9896 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
9897 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
9898 .ilen = 512,
9899 .result = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
9900 "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
9901 "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
9902 "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
9903 "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
9904 "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
9905 "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
9906 "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
9907 "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
9908 "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
9909 "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
9910 "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
9911 "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
9912 "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
9913 "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
9914 "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
9915 "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
9916 "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
9917 "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
9918 "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
9919 "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
9920 "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
9921 "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
9922 "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
9923 "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
9924 "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
9925 "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
9926 "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
9927 "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
9928 "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
9929 "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
9930 "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
9931 "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
9932 "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
9933 "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
9934 "\x3e\xae\x71\x90\x07\x70\x1c\x38"
9935 "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
9936 "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
9937 "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
9938 "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
9939 "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
9940 "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
9941 "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
9942 "\x93\x51\x1d\x3d\x62\x59\x83\x82"
9943 "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
9944 "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
9945 "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
9946 "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
9947 "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
9948 "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
9949 "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
9950 "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
9951 "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
9952 "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
9953 "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
9954 "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
9955 "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
9956 "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
9957 "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
9958 "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
9959 "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
9960 "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
9961 "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
9962 "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
9963 .rlen = 512,
9964 .also_non_np = 1,
9965 .np = 3,
9966 .tap = { 512 - 20, 4, 16 },
9970 static struct cipher_testvec tf_lrw_dec_tv_template[] = {
9971 /* Generated from AES-LRW test vectors */
9972 /* same as enc vectors with input and result reversed */
9974 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
9975 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
9976 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
9977 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
9978 .klen = 32,
9979 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9980 "\x00\x00\x00\x00\x00\x00\x00\x01",
9981 .input = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
9982 "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
9983 .ilen = 16,
9984 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
9985 "\x38\x39\x41\x42\x43\x44\x45\x46",
9986 .rlen = 16,
9987 }, {
9988 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
9989 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
9990 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
9991 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
9992 .klen = 32,
9993 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9994 "\x00\x00\x00\x00\x00\x00\x00\x02",
9995 .input = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
9996 "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
9997 .ilen = 16,
9998 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
9999 "\x38\x39\x41\x42\x43\x44\x45\x46",
10000 .rlen = 16,
10001 }, {
10002 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
10003 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
10004 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
10005 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
10006 .klen = 32,
10007 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10008 "\x00\x00\x00\x02\x00\x00\x00\x00",
10009 .input = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
10010 "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
10011 .ilen = 16,
10012 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
10013 "\x38\x39\x41\x42\x43\x44\x45\x46",
10014 .rlen = 16,
10015 }, {
10016 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
10017 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
10018 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
10019 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
10020 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
10021 .klen = 40,
10022 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10023 "\x00\x00\x00\x00\x00\x00\x00\x01",
10024 .input = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
10025 "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
10026 .ilen = 16,
10027 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
10028 "\x38\x39\x41\x42\x43\x44\x45\x46",
10029 .rlen = 16,
10030 }, {
10031 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
10032 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
10033 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
10034 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
10035 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
10036 .klen = 40,
10037 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10038 "\x00\x00\x00\x02\x00\x00\x00\x00",
10039 .input = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
10040 "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
10041 .ilen = 16,
10042 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
10043 "\x38\x39\x41\x42\x43\x44\x45\x46",
10044 .rlen = 16,
10045 }, {
10046 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
10047 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
10048 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
10049 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
10050 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
10051 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
10052 .klen = 48,
10053 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10054 "\x00\x00\x00\x00\x00\x00\x00\x01",
10055 .input = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
10056 "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
10057 .ilen = 16,
10058 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
10059 "\x38\x39\x41\x42\x43\x44\x45\x46",
10060 .rlen = 16,
10061 }, {
10062 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
10063 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
10064 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
10065 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
10066 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
10067 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
10068 .klen = 48,
10069 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10070 "\x00\x00\x00\x02\x00\x00\x00\x00",
10071 .input = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
10072 "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
10073 .ilen = 16,
10074 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
10075 "\x38\x39\x41\x42\x43\x44\x45\x46",
10076 .rlen = 16,
10077 }, {
10078 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
10079 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
10080 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
10081 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
10082 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
10083 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
10084 .klen = 48,
10085 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10086 "\x00\x00\x00\x00\x00\x00\x00\x01",
10087 .input = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
10088 "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
10089 "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
10090 "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
10091 "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
10092 "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
10093 "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
10094 "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
10095 "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
10096 "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
10097 "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
10098 "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
10099 "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
10100 "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
10101 "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
10102 "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
10103 "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
10104 "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
10105 "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
10106 "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
10107 "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
10108 "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
10109 "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
10110 "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
10111 "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
10112 "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
10113 "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
10114 "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
10115 "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
10116 "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
10117 "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
10118 "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
10119 "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
10120 "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
10121 "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
10122 "\x3e\xae\x71\x90\x07\x70\x1c\x38"
10123 "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
10124 "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
10125 "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
10126 "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
10127 "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
10128 "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
10129 "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
10130 "\x93\x51\x1d\x3d\x62\x59\x83\x82"
10131 "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
10132 "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
10133 "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
10134 "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
10135 "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
10136 "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
10137 "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
10138 "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
10139 "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
10140 "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
10141 "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
10142 "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
10143 "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
10144 "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
10145 "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
10146 "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
10147 "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
10148 "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
10149 "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
10150 "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
10151 .ilen = 512,
10152 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
10153 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
10154 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
10155 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
10156 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
10157 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
10158 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
10159 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
10160 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
10161 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
10162 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
10163 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
10164 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
10165 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
10166 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
10167 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
10168 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
10169 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
10170 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
10171 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
10172 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
10173 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
10174 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
10175 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
10176 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
10177 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
10178 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
10179 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
10180 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
10181 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
10182 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
10183 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
10184 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
10185 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
10186 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
10187 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
10188 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
10189 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
10190 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
10191 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
10192 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
10193 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
10194 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
10195 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
10196 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
10197 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
10198 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
10199 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
10200 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
10201 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
10202 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
10203 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
10204 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
10205 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
10206 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
10207 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
10208 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
10209 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
10210 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
10211 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
10212 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
10213 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
10214 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
10215 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
10216 .rlen = 512,
10217 .also_non_np = 1,
10218 .np = 3,
10219 .tap = { 512 - 20, 4, 16 },
10223 static struct cipher_testvec tf_xts_enc_tv_template[] = {
10224 /* Generated from AES-XTS test vectors */
10226 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
10227 "\x00\x00\x00\x00\x00\x00\x00\x00"
10228 "\x00\x00\x00\x00\x00\x00\x00\x00"
10229 "\x00\x00\x00\x00\x00\x00\x00\x00",
10230 .klen = 32,
10231 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10232 "\x00\x00\x00\x00\x00\x00\x00\x00",
10233 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
10234 "\x00\x00\x00\x00\x00\x00\x00\x00"
10235 "\x00\x00\x00\x00\x00\x00\x00\x00"
10236 "\x00\x00\x00\x00\x00\x00\x00\x00",
10237 .ilen = 32,
10238 .result = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
10239 "\x30\x74\xe4\x44\x52\x77\x97\x43"
10240 "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
10241 "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
10242 .rlen = 32,
10243 }, {
10244 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
10245 "\x11\x11\x11\x11\x11\x11\x11\x11"
10246 "\x22\x22\x22\x22\x22\x22\x22\x22"
10247 "\x22\x22\x22\x22\x22\x22\x22\x22",
10248 .klen = 32,
10249 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
10250 "\x00\x00\x00\x00\x00\x00\x00\x00",
10251 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
10252 "\x44\x44\x44\x44\x44\x44\x44\x44"
10253 "\x44\x44\x44\x44\x44\x44\x44\x44"
10254 "\x44\x44\x44\x44\x44\x44\x44\x44",
10255 .ilen = 32,
10256 .result = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
10257 "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
10258 "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
10259 "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
10260 .rlen = 32,
10261 }, {
10262 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
10263 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
10264 "\x22\x22\x22\x22\x22\x22\x22\x22"
10265 "\x22\x22\x22\x22\x22\x22\x22\x22",
10266 .klen = 32,
10267 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
10268 "\x00\x00\x00\x00\x00\x00\x00\x00",
10269 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
10270 "\x44\x44\x44\x44\x44\x44\x44\x44"
10271 "\x44\x44\x44\x44\x44\x44\x44\x44"
10272 "\x44\x44\x44\x44\x44\x44\x44\x44",
10273 .ilen = 32,
10274 .result = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
10275 "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
10276 "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
10277 "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
10278 .rlen = 32,
10279 }, {
10280 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
10281 "\x23\x53\x60\x28\x74\x71\x35\x26"
10282 "\x31\x41\x59\x26\x53\x58\x97\x93"
10283 "\x23\x84\x62\x64\x33\x83\x27\x95",
10284 .klen = 32,
10285 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10286 "\x00\x00\x00\x00\x00\x00\x00\x00",
10287 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
10288 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10289 "\x10\x11\x12\x13\x14\x15\x16\x17"
10290 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10291 "\x20\x21\x22\x23\x24\x25\x26\x27"
10292 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10293 "\x30\x31\x32\x33\x34\x35\x36\x37"
10294 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10295 "\x40\x41\x42\x43\x44\x45\x46\x47"
10296 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10297 "\x50\x51\x52\x53\x54\x55\x56\x57"
10298 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10299 "\x60\x61\x62\x63\x64\x65\x66\x67"
10300 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10301 "\x70\x71\x72\x73\x74\x75\x76\x77"
10302 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10303 "\x80\x81\x82\x83\x84\x85\x86\x87"
10304 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10305 "\x90\x91\x92\x93\x94\x95\x96\x97"
10306 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10307 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10308 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10309 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10310 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10311 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10312 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10313 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10314 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10315 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10316 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10317 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10318 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10319 "\x00\x01\x02\x03\x04\x05\x06\x07"
10320 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10321 "\x10\x11\x12\x13\x14\x15\x16\x17"
10322 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10323 "\x20\x21\x22\x23\x24\x25\x26\x27"
10324 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10325 "\x30\x31\x32\x33\x34\x35\x36\x37"
10326 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10327 "\x40\x41\x42\x43\x44\x45\x46\x47"
10328 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10329 "\x50\x51\x52\x53\x54\x55\x56\x57"
10330 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10331 "\x60\x61\x62\x63\x64\x65\x66\x67"
10332 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10333 "\x70\x71\x72\x73\x74\x75\x76\x77"
10334 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10335 "\x80\x81\x82\x83\x84\x85\x86\x87"
10336 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10337 "\x90\x91\x92\x93\x94\x95\x96\x97"
10338 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10339 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10340 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10341 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10342 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10343 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10344 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10345 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10346 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10347 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10348 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10349 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10350 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10351 .ilen = 512,
10352 .result = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
10353 "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
10354 "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
10355 "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
10356 "\xea\x35\x35\x8c\xb2\x46\x61\x06"
10357 "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
10358 "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
10359 "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
10360 "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
10361 "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
10362 "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
10363 "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
10364 "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
10365 "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
10366 "\x01\x73\x68\x32\x25\x19\xfa\xfb"
10367 "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
10368 "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
10369 "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
10370 "\x39\x80\x39\x09\x97\x65\xf2\x83"
10371 "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
10372 "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
10373 "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
10374 "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
10375 "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
10376 "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
10377 "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
10378 "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
10379 "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
10380 "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
10381 "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
10382 "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
10383 "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
10384 "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
10385 "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
10386 "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
10387 "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
10388 "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
10389 "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
10390 "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
10391 "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
10392 "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
10393 "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
10394 "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
10395 "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
10396 "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
10397 "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
10398 "\x04\x39\x73\x32\xb2\x86\x79\xe7"
10399 "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
10400 "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
10401 "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
10402 "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
10403 "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
10404 "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
10405 "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
10406 "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
10407 "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
10408 "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
10409 "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
10410 "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
10411 "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
10412 "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
10413 "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
10414 "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
10415 "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
10416 .rlen = 512,
10417 }, {
10418 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
10419 "\x23\x53\x60\x28\x74\x71\x35\x26"
10420 "\x62\x49\x77\x57\x24\x70\x93\x69"
10421 "\x99\x59\x57\x49\x66\x96\x76\x27"
10422 "\x31\x41\x59\x26\x53\x58\x97\x93"
10423 "\x23\x84\x62\x64\x33\x83\x27\x95"
10424 "\x02\x88\x41\x97\x16\x93\x99\x37"
10425 "\x51\x05\x82\x09\x74\x94\x45\x92",
10426 .klen = 64,
10427 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
10428 "\x00\x00\x00\x00\x00\x00\x00\x00",
10429 .input = "\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 "\x00\x01\x02\x03\x04\x05\x06\x07"
10462 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10463 "\x10\x11\x12\x13\x14\x15\x16\x17"
10464 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10465 "\x20\x21\x22\x23\x24\x25\x26\x27"
10466 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10467 "\x30\x31\x32\x33\x34\x35\x36\x37"
10468 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10469 "\x40\x41\x42\x43\x44\x45\x46\x47"
10470 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10471 "\x50\x51\x52\x53\x54\x55\x56\x57"
10472 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10473 "\x60\x61\x62\x63\x64\x65\x66\x67"
10474 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10475 "\x70\x71\x72\x73\x74\x75\x76\x77"
10476 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10477 "\x80\x81\x82\x83\x84\x85\x86\x87"
10478 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10479 "\x90\x91\x92\x93\x94\x95\x96\x97"
10480 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10481 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10482 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10483 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10484 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10485 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10486 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10487 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10488 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10489 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10490 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10491 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10492 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10493 .ilen = 512,
10494 .result = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
10495 "\x35\x39\x71\x88\x76\x1e\xc9\xea"
10496 "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
10497 "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
10498 "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
10499 "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
10500 "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
10501 "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
10502 "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
10503 "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
10504 "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
10505 "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
10506 "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
10507 "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
10508 "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
10509 "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
10510 "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
10511 "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
10512 "\x69\x35\x61\x86\xf8\x86\xb9\x89"
10513 "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
10514 "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
10515 "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
10516 "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
10517 "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
10518 "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
10519 "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
10520 "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
10521 "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
10522 "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
10523 "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
10524 "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
10525 "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
10526 "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
10527 "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
10528 "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
10529 "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
10530 "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
10531 "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
10532 "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
10533 "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
10534 "\xad\x12\x32\x31\x03\xf7\x21\xbe"
10535 "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
10536 "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
10537 "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
10538 "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
10539 "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
10540 "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
10541 "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
10542 "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
10543 "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
10544 "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
10545 "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
10546 "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
10547 "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
10548 "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
10549 "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
10550 "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
10551 "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
10552 "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
10553 "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
10554 "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
10555 "\xf3\xea\x67\x52\x78\xc2\xce\x70"
10556 "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
10557 "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
10558 .rlen = 512,
10559 .also_non_np = 1,
10560 .np = 3,
10561 .tap = { 512 - 20, 4, 16 },
10565 static struct cipher_testvec tf_xts_dec_tv_template[] = {
10566 /* Generated from AES-XTS test vectors */
10567 /* same as enc vectors with input and result reversed */
10569 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
10570 "\x00\x00\x00\x00\x00\x00\x00\x00"
10571 "\x00\x00\x00\x00\x00\x00\x00\x00"
10572 "\x00\x00\x00\x00\x00\x00\x00\x00",
10573 .klen = 32,
10574 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10575 "\x00\x00\x00\x00\x00\x00\x00\x00",
10576 .input = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
10577 "\x30\x74\xe4\x44\x52\x77\x97\x43"
10578 "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
10579 "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
10580 .ilen = 32,
10581 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
10582 "\x00\x00\x00\x00\x00\x00\x00\x00"
10583 "\x00\x00\x00\x00\x00\x00\x00\x00"
10584 "\x00\x00\x00\x00\x00\x00\x00\x00",
10585 .rlen = 32,
10586 }, {
10587 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
10588 "\x11\x11\x11\x11\x11\x11\x11\x11"
10589 "\x22\x22\x22\x22\x22\x22\x22\x22"
10590 "\x22\x22\x22\x22\x22\x22\x22\x22",
10591 .klen = 32,
10592 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
10593 "\x00\x00\x00\x00\x00\x00\x00\x00",
10594 .input = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
10595 "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
10596 "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
10597 "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
10598 .ilen = 32,
10599 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
10600 "\x44\x44\x44\x44\x44\x44\x44\x44"
10601 "\x44\x44\x44\x44\x44\x44\x44\x44"
10602 "\x44\x44\x44\x44\x44\x44\x44\x44",
10603 .rlen = 32,
10604 }, {
10605 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
10606 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
10607 "\x22\x22\x22\x22\x22\x22\x22\x22"
10608 "\x22\x22\x22\x22\x22\x22\x22\x22",
10609 .klen = 32,
10610 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
10611 "\x00\x00\x00\x00\x00\x00\x00\x00",
10612 .input = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
10613 "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
10614 "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
10615 "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
10616 .ilen = 32,
10617 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
10618 "\x44\x44\x44\x44\x44\x44\x44\x44"
10619 "\x44\x44\x44\x44\x44\x44\x44\x44"
10620 "\x44\x44\x44\x44\x44\x44\x44\x44",
10621 .rlen = 32,
10622 }, {
10623 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
10624 "\x23\x53\x60\x28\x74\x71\x35\x26"
10625 "\x31\x41\x59\x26\x53\x58\x97\x93"
10626 "\x23\x84\x62\x64\x33\x83\x27\x95",
10627 .klen = 32,
10628 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10629 "\x00\x00\x00\x00\x00\x00\x00\x00",
10630 .input = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
10631 "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
10632 "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
10633 "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
10634 "\xea\x35\x35\x8c\xb2\x46\x61\x06"
10635 "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
10636 "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
10637 "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
10638 "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
10639 "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
10640 "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
10641 "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
10642 "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
10643 "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
10644 "\x01\x73\x68\x32\x25\x19\xfa\xfb"
10645 "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
10646 "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
10647 "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
10648 "\x39\x80\x39\x09\x97\x65\xf2\x83"
10649 "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
10650 "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
10651 "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
10652 "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
10653 "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
10654 "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
10655 "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
10656 "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
10657 "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
10658 "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
10659 "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
10660 "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
10661 "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
10662 "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
10663 "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
10664 "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
10665 "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
10666 "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
10667 "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
10668 "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
10669 "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
10670 "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
10671 "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
10672 "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
10673 "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
10674 "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
10675 "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
10676 "\x04\x39\x73\x32\xb2\x86\x79\xe7"
10677 "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
10678 "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
10679 "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
10680 "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
10681 "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
10682 "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
10683 "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
10684 "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
10685 "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
10686 "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
10687 "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
10688 "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
10689 "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
10690 "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
10691 "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
10692 "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
10693 "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
10694 .ilen = 512,
10695 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
10696 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10697 "\x10\x11\x12\x13\x14\x15\x16\x17"
10698 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10699 "\x20\x21\x22\x23\x24\x25\x26\x27"
10700 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10701 "\x30\x31\x32\x33\x34\x35\x36\x37"
10702 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10703 "\x40\x41\x42\x43\x44\x45\x46\x47"
10704 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10705 "\x50\x51\x52\x53\x54\x55\x56\x57"
10706 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10707 "\x60\x61\x62\x63\x64\x65\x66\x67"
10708 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10709 "\x70\x71\x72\x73\x74\x75\x76\x77"
10710 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10711 "\x80\x81\x82\x83\x84\x85\x86\x87"
10712 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10713 "\x90\x91\x92\x93\x94\x95\x96\x97"
10714 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10715 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10716 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10717 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10718 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10719 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10720 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10721 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10722 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10723 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10724 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10725 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10726 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10727 "\x00\x01\x02\x03\x04\x05\x06\x07"
10728 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10729 "\x10\x11\x12\x13\x14\x15\x16\x17"
10730 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10731 "\x20\x21\x22\x23\x24\x25\x26\x27"
10732 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10733 "\x30\x31\x32\x33\x34\x35\x36\x37"
10734 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10735 "\x40\x41\x42\x43\x44\x45\x46\x47"
10736 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10737 "\x50\x51\x52\x53\x54\x55\x56\x57"
10738 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10739 "\x60\x61\x62\x63\x64\x65\x66\x67"
10740 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10741 "\x70\x71\x72\x73\x74\x75\x76\x77"
10742 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10743 "\x80\x81\x82\x83\x84\x85\x86\x87"
10744 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10745 "\x90\x91\x92\x93\x94\x95\x96\x97"
10746 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10747 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10748 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10749 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10750 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10751 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10752 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10753 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10754 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10755 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10756 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10757 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10758 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10759 .rlen = 512,
10760 }, {
10761 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
10762 "\x23\x53\x60\x28\x74\x71\x35\x26"
10763 "\x62\x49\x77\x57\x24\x70\x93\x69"
10764 "\x99\x59\x57\x49\x66\x96\x76\x27"
10765 "\x31\x41\x59\x26\x53\x58\x97\x93"
10766 "\x23\x84\x62\x64\x33\x83\x27\x95"
10767 "\x02\x88\x41\x97\x16\x93\x99\x37"
10768 "\x51\x05\x82\x09\x74\x94\x45\x92",
10769 .klen = 64,
10770 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
10771 "\x00\x00\x00\x00\x00\x00\x00\x00",
10772 .input = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
10773 "\x35\x39\x71\x88\x76\x1e\xc9\xea"
10774 "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
10775 "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
10776 "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
10777 "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
10778 "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
10779 "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
10780 "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
10781 "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
10782 "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
10783 "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
10784 "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
10785 "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
10786 "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
10787 "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
10788 "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
10789 "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
10790 "\x69\x35\x61\x86\xf8\x86\xb9\x89"
10791 "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
10792 "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
10793 "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
10794 "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
10795 "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
10796 "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
10797 "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
10798 "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
10799 "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
10800 "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
10801 "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
10802 "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
10803 "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
10804 "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
10805 "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
10806 "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
10807 "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
10808 "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
10809 "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
10810 "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
10811 "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
10812 "\xad\x12\x32\x31\x03\xf7\x21\xbe"
10813 "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
10814 "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
10815 "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
10816 "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
10817 "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
10818 "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
10819 "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
10820 "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
10821 "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
10822 "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
10823 "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
10824 "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
10825 "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
10826 "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
10827 "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
10828 "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
10829 "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
10830 "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
10831 "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
10832 "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
10833 "\xf3\xea\x67\x52\x78\xc2\xce\x70"
10834 "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
10835 "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
10836 .ilen = 512,
10837 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
10838 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10839 "\x10\x11\x12\x13\x14\x15\x16\x17"
10840 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10841 "\x20\x21\x22\x23\x24\x25\x26\x27"
10842 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10843 "\x30\x31\x32\x33\x34\x35\x36\x37"
10844 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10845 "\x40\x41\x42\x43\x44\x45\x46\x47"
10846 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10847 "\x50\x51\x52\x53\x54\x55\x56\x57"
10848 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10849 "\x60\x61\x62\x63\x64\x65\x66\x67"
10850 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10851 "\x70\x71\x72\x73\x74\x75\x76\x77"
10852 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10853 "\x80\x81\x82\x83\x84\x85\x86\x87"
10854 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10855 "\x90\x91\x92\x93\x94\x95\x96\x97"
10856 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10857 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10858 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10859 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10860 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10861 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10862 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10863 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10864 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10865 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10866 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10867 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10868 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10869 "\x00\x01\x02\x03\x04\x05\x06\x07"
10870 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10871 "\x10\x11\x12\x13\x14\x15\x16\x17"
10872 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10873 "\x20\x21\x22\x23\x24\x25\x26\x27"
10874 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10875 "\x30\x31\x32\x33\x34\x35\x36\x37"
10876 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10877 "\x40\x41\x42\x43\x44\x45\x46\x47"
10878 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10879 "\x50\x51\x52\x53\x54\x55\x56\x57"
10880 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10881 "\x60\x61\x62\x63\x64\x65\x66\x67"
10882 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10883 "\x70\x71\x72\x73\x74\x75\x76\x77"
10884 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10885 "\x80\x81\x82\x83\x84\x85\x86\x87"
10886 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10887 "\x90\x91\x92\x93\x94\x95\x96\x97"
10888 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10889 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10890 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10891 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10892 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10893 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10894 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10895 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10896 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10897 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10898 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10899 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10900 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10901 .rlen = 512,
10902 .also_non_np = 1,
10903 .np = 3,
10904 .tap = { 512 - 20, 4, 16 },
10909 * Serpent test vectors. These are backwards because Serpent writes
10910 * octet sequences in right-to-left mode.
10912 #define SERPENT_ENC_TEST_VECTORS 5
10913 #define SERPENT_DEC_TEST_VECTORS 5
10915 #define TNEPRES_ENC_TEST_VECTORS 4
10916 #define TNEPRES_DEC_TEST_VECTORS 4
10918 #define SERPENT_CBC_ENC_TEST_VECTORS 1
10919 #define SERPENT_CBC_DEC_TEST_VECTORS 1
10921 #define SERPENT_CTR_ENC_TEST_VECTORS 2
10922 #define SERPENT_CTR_DEC_TEST_VECTORS 2
10924 #define SERPENT_LRW_ENC_TEST_VECTORS 8
10925 #define SERPENT_LRW_DEC_TEST_VECTORS 8
10927 #define SERPENT_XTS_ENC_TEST_VECTORS 5
10928 #define SERPENT_XTS_DEC_TEST_VECTORS 5
10930 static struct cipher_testvec serpent_enc_tv_template[] = {
10932 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
10933 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
10934 .ilen = 16,
10935 .result = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
10936 "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
10937 .rlen = 16,
10938 }, {
10939 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
10940 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
10941 .klen = 16,
10942 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
10943 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
10944 .ilen = 16,
10945 .result = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
10946 "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
10947 .rlen = 16,
10948 }, {
10949 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
10950 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10951 "\x10\x11\x12\x13\x14\x15\x16\x17"
10952 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
10953 .klen = 32,
10954 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
10955 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
10956 .ilen = 16,
10957 .result = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
10958 "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
10959 .rlen = 16,
10960 }, {
10961 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
10962 .klen = 16,
10963 .input = zeroed_string,
10964 .ilen = 16,
10965 .result = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
10966 "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
10967 .rlen = 16,
10968 }, { /* Generated with Crypto++ */
10969 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10970 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10971 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10972 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10973 .klen = 32,
10974 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10975 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10976 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10977 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10978 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10979 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10980 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10981 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10982 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10983 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10984 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10985 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10986 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10987 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10988 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10989 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10990 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10991 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10992 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10993 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10994 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10995 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10996 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10997 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10998 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10999 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11000 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11001 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11002 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11003 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11004 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11005 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11006 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11007 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11008 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11009 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11010 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11011 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11012 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11013 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11014 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11015 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11016 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11017 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11018 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11019 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11020 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11021 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11022 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11023 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11024 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11025 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11026 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11027 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11028 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11029 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11030 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11031 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11032 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11033 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11034 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11035 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11036 .ilen = 496,
11037 .result = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
11038 "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
11039 "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
11040 "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
11041 "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
11042 "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
11043 "\x99\x34\x89\x5B\x54\xE9\x12\x13"
11044 "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
11045 "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
11046 "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
11047 "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
11048 "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
11049 "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
11050 "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
11051 "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
11052 "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
11053 "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
11054 "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
11055 "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
11056 "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
11057 "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
11058 "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
11059 "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
11060 "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
11061 "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
11062 "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
11063 "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
11064 "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
11065 "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
11066 "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
11067 "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
11068 "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
11069 "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
11070 "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
11071 "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
11072 "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
11073 "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
11074 "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
11075 "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
11076 "\x87\x70\x14\xD0\x01\x57\xCB\x42"
11077 "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
11078 "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
11079 "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
11080 "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
11081 "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
11082 "\x71\x80\x05\x35\x3F\x40\x0B\x21"
11083 "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
11084 "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
11085 "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
11086 "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
11087 "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
11088 "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
11089 "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
11090 "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
11091 "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
11092 "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
11093 "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
11094 "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
11095 "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
11096 "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
11097 "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
11098 "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
11099 .rlen = 496,
11100 .also_non_np = 1,
11101 .np = 3,
11102 .tap = { 496 - 20, 4, 16 },
11106 static struct cipher_testvec tnepres_enc_tv_template[] = {
11107 { /* KeySize=128, PT=0, I=1 */
11108 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
11109 "\x00\x00\x00\x00\x00\x00\x00\x00",
11110 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
11111 "\x00\x00\x00\x00\x00\x00\x00\x00",
11112 .klen = 16,
11113 .ilen = 16,
11114 .result = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
11115 "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
11116 .rlen = 16,
11117 }, { /* KeySize=192, PT=0, I=1 */
11118 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
11119 "\x00\x00\x00\x00\x00\x00\x00\x00"
11120 "\x00\x00\x00\x00\x00\x00\x00\x00",
11121 .klen = 24,
11122 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
11123 "\x00\x00\x00\x00\x00\x00\x00\x00",
11124 .ilen = 16,
11125 .result = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
11126 "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
11127 .rlen = 16,
11128 }, { /* KeySize=256, PT=0, I=1 */
11129 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
11130 "\x00\x00\x00\x00\x00\x00\x00\x00"
11131 "\x00\x00\x00\x00\x00\x00\x00\x00"
11132 "\x00\x00\x00\x00\x00\x00\x00\x00",
11133 .klen = 32,
11134 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
11135 "\x00\x00\x00\x00\x00\x00\x00\x00",
11136 .ilen = 16,
11137 .result = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
11138 "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
11139 .rlen = 16,
11140 }, { /* KeySize=256, I=257 */
11141 .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
11142 "\x17\x16\x15\x14\x13\x12\x11\x10"
11143 "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
11144 "\x07\x06\x05\x04\x03\x02\x01\x00",
11145 .klen = 32,
11146 .input = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
11147 "\x07\x06\x05\x04\x03\x02\x01\x00",
11148 .ilen = 16,
11149 .result = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
11150 "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
11151 .rlen = 16,
11156 static struct cipher_testvec serpent_dec_tv_template[] = {
11158 .input = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
11159 "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
11160 .ilen = 16,
11161 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11162 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11163 .rlen = 16,
11164 }, {
11165 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
11166 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11167 .klen = 16,
11168 .input = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
11169 "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
11170 .ilen = 16,
11171 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11172 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11173 .rlen = 16,
11174 }, {
11175 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
11176 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11177 "\x10\x11\x12\x13\x14\x15\x16\x17"
11178 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
11179 .klen = 32,
11180 .input = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
11181 "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
11182 .ilen = 16,
11183 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11184 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11185 .rlen = 16,
11186 }, {
11187 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
11188 .klen = 16,
11189 .input = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
11190 "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
11191 .ilen = 16,
11192 .result = zeroed_string,
11193 .rlen = 16,
11194 }, { /* Generated with Crypto++ */
11195 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11196 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11197 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11198 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11199 .klen = 32,
11200 .input = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
11201 "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
11202 "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
11203 "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
11204 "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
11205 "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
11206 "\x99\x34\x89\x5B\x54\xE9\x12\x13"
11207 "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
11208 "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
11209 "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
11210 "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
11211 "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
11212 "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
11213 "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
11214 "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
11215 "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
11216 "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
11217 "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
11218 "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
11219 "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
11220 "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
11221 "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
11222 "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
11223 "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
11224 "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
11225 "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
11226 "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
11227 "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
11228 "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
11229 "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
11230 "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
11231 "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
11232 "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
11233 "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
11234 "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
11235 "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
11236 "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
11237 "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
11238 "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
11239 "\x87\x70\x14\xD0\x01\x57\xCB\x42"
11240 "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
11241 "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
11242 "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
11243 "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
11244 "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
11245 "\x71\x80\x05\x35\x3F\x40\x0B\x21"
11246 "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
11247 "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
11248 "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
11249 "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
11250 "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
11251 "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
11252 "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
11253 "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
11254 "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
11255 "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
11256 "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
11257 "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
11258 "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
11259 "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
11260 "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
11261 "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
11262 .ilen = 496,
11263 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11264 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11265 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11266 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11267 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11268 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11269 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11270 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11271 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11272 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11273 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11274 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11275 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11276 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11277 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11278 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11279 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11280 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11281 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11282 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11283 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11284 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11285 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11286 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11287 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11288 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11289 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11290 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11291 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11292 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11293 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11294 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11295 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11296 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11297 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11298 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11299 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11300 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11301 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11302 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11303 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11304 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11305 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11306 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11307 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11308 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11309 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11310 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11311 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11312 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11313 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11314 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11315 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11316 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11317 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11318 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11319 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11320 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11321 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11322 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11323 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11324 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11325 .rlen = 496,
11326 .also_non_np = 1,
11327 .np = 3,
11328 .tap = { 496 - 20, 4, 16 },
11332 static struct cipher_testvec tnepres_dec_tv_template[] = {
11334 .input = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
11335 "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
11336 .ilen = 16,
11337 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11338 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11339 .rlen = 16,
11340 }, {
11341 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
11342 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11343 .klen = 16,
11344 .input = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
11345 "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
11346 .ilen = 16,
11347 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11348 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11349 .rlen = 16,
11350 }, {
11351 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
11352 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11353 "\x10\x11\x12\x13\x14\x15\x16\x17"
11354 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
11355 .klen = 32,
11356 .input = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
11357 "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
11358 .ilen = 16,
11359 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11360 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11361 .rlen = 16,
11362 }, { /* KeySize=128, I=121 */
11363 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
11364 .klen = 16,
11365 .input = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
11366 "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
11367 .ilen = 16,
11368 .result = zeroed_string,
11369 .rlen = 16,
11373 static struct cipher_testvec serpent_cbc_enc_tv_template[] = {
11374 { /* Generated with Crypto++ */
11375 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11376 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11377 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11378 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11379 .klen = 32,
11380 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11381 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11382 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11383 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11384 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11385 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11386 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11387 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11388 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11389 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11390 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11391 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11392 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11393 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11394 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11395 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11396 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11397 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11398 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11399 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11400 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11401 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11402 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11403 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11404 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11405 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11406 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11407 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11408 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11409 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11410 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11411 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11412 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11413 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11414 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11415 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11416 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11417 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11418 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11419 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11420 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11421 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11422 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11423 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11424 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11425 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11426 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11427 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11428 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11429 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11430 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11431 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11432 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11433 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11434 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11435 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11436 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11437 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11438 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11439 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11440 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11441 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11442 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11443 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11444 .ilen = 496,
11445 .result = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
11446 "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
11447 "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
11448 "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
11449 "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
11450 "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
11451 "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
11452 "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
11453 "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
11454 "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
11455 "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
11456 "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
11457 "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
11458 "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
11459 "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
11460 "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
11461 "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
11462 "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
11463 "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
11464 "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
11465 "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
11466 "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
11467 "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
11468 "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
11469 "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
11470 "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
11471 "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
11472 "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
11473 "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
11474 "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
11475 "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
11476 "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
11477 "\x81\x92\x66\x67\x15\x1E\x39\x98"
11478 "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
11479 "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
11480 "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
11481 "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
11482 "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
11483 "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
11484 "\x04\x05\x46\xD3\x90\x0F\x64\x64"
11485 "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
11486 "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
11487 "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
11488 "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
11489 "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
11490 "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
11491 "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
11492 "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
11493 "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
11494 "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
11495 "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
11496 "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
11497 "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
11498 "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
11499 "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
11500 "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
11501 "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
11502 "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
11503 "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
11504 "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
11505 "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
11506 "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
11507 .rlen = 496,
11508 .also_non_np = 1,
11509 .np = 3,
11510 .tap = { 496 - 20, 4, 16 },
11514 static struct cipher_testvec serpent_cbc_dec_tv_template[] = {
11515 { /* Generated with Crypto++ */
11516 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11517 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11518 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11519 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11520 .klen = 32,
11521 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11522 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11523 .input = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
11524 "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
11525 "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
11526 "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
11527 "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
11528 "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
11529 "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
11530 "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
11531 "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
11532 "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
11533 "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
11534 "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
11535 "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
11536 "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
11537 "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
11538 "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
11539 "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
11540 "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
11541 "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
11542 "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
11543 "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
11544 "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
11545 "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
11546 "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
11547 "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
11548 "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
11549 "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
11550 "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
11551 "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
11552 "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
11553 "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
11554 "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
11555 "\x81\x92\x66\x67\x15\x1E\x39\x98"
11556 "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
11557 "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
11558 "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
11559 "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
11560 "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
11561 "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
11562 "\x04\x05\x46\xD3\x90\x0F\x64\x64"
11563 "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
11564 "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
11565 "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
11566 "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
11567 "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
11568 "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
11569 "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
11570 "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
11571 "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
11572 "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
11573 "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
11574 "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
11575 "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
11576 "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
11577 "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
11578 "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
11579 "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
11580 "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
11581 "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
11582 "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
11583 "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
11584 "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
11585 .ilen = 496,
11586 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11587 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11588 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11589 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11590 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11591 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11592 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11593 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11594 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11595 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11596 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11597 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11598 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11599 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11600 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11601 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11602 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11603 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11604 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11605 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11606 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11607 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11608 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11609 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11610 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11611 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11612 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11613 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11614 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11615 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11616 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11617 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11618 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11619 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11620 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11621 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11622 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11623 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11624 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11625 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11626 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11627 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11628 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11629 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11630 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11631 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11632 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11633 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11634 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11635 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11636 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11637 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11638 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11639 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11640 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11641 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11642 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11643 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11644 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11645 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11646 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11647 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11648 .rlen = 496,
11649 .also_non_np = 1,
11650 .np = 3,
11651 .tap = { 496 - 20, 4, 16 },
11655 static struct cipher_testvec serpent_ctr_enc_tv_template[] = {
11656 { /* Generated with Crypto++ */
11657 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11658 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11659 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11660 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11661 .klen = 32,
11662 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11663 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11664 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11665 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11666 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11667 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11668 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11669 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11670 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11671 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11672 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11673 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11674 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11675 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11676 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11677 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11678 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11679 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11680 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11681 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11682 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11683 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11684 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11685 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11686 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11687 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11688 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11689 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11690 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11691 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11692 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11693 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11694 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11695 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11696 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11697 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11698 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11699 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11700 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11701 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11702 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11703 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11704 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11705 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11706 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11707 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11708 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11709 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11710 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11711 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11712 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11713 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11714 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11715 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11716 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11717 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11718 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11719 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11720 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11721 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11722 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11723 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11724 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11725 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11726 .ilen = 496,
11727 .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
11728 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
11729 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
11730 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
11731 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
11732 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
11733 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
11734 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
11735 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
11736 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
11737 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
11738 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
11739 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
11740 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
11741 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
11742 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
11743 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
11744 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
11745 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
11746 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
11747 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
11748 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
11749 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
11750 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
11751 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
11752 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
11753 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
11754 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
11755 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
11756 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
11757 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
11758 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
11759 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
11760 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
11761 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
11762 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
11763 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
11764 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
11765 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
11766 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
11767 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
11768 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
11769 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
11770 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
11771 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
11772 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
11773 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
11774 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
11775 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
11776 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
11777 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
11778 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
11779 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
11780 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
11781 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
11782 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
11783 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
11784 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
11785 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
11786 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
11787 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
11788 "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
11789 .rlen = 496,
11790 }, { /* Generated with Crypto++ */
11791 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11792 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11793 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11794 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11795 .klen = 32,
11796 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11797 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11798 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11799 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11800 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11801 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11802 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11803 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11804 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11805 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11806 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11807 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11808 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11809 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11810 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11811 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11812 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11813 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11814 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11815 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11816 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11817 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11818 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11819 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11820 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11821 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11822 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11823 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11824 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11825 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11826 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11827 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11828 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11829 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11830 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11831 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11832 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11833 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11834 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11835 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11836 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11837 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11838 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11839 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11840 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11841 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11842 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11843 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11844 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11845 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11846 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11847 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11848 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11849 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11850 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11851 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11852 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11853 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11854 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11855 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11856 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11857 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11858 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11859 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
11860 "\x2B\xC2\x59",
11861 .ilen = 499,
11862 .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
11863 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
11864 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
11865 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
11866 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
11867 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
11868 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
11869 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
11870 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
11871 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
11872 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
11873 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
11874 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
11875 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
11876 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
11877 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
11878 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
11879 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
11880 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
11881 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
11882 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
11883 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
11884 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
11885 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
11886 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
11887 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
11888 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
11889 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
11890 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
11891 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
11892 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
11893 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
11894 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
11895 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
11896 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
11897 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
11898 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
11899 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
11900 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
11901 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
11902 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
11903 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
11904 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
11905 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
11906 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
11907 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
11908 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
11909 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
11910 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
11911 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
11912 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
11913 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
11914 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
11915 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
11916 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
11917 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
11918 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
11919 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
11920 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
11921 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
11922 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
11923 "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
11924 "\x38\xE2\xE5",
11925 .rlen = 499,
11926 .also_non_np = 1,
11927 .np = 2,
11928 .tap = { 499 - 16, 16 },
11929 }, { /* Generated with Crypto++ */
11930 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11931 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11932 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11933 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11934 .klen = 32,
11935 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
11936 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
11937 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11938 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11939 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11940 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11941 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11942 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11943 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11944 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11945 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11946 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11947 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11948 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11949 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11950 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11951 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11952 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11953 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11954 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11955 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11956 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11957 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11958 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11959 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11960 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11961 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11962 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11963 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11964 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11965 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11966 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11967 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11968 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11969 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11970 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11971 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11972 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11973 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11974 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11975 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11976 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11977 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11978 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11979 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11980 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11981 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11982 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11983 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11984 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11985 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11986 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11987 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11988 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11989 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11990 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11991 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11992 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11993 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11994 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11995 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11996 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11997 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11998 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11999 .ilen = 496,
12000 .result = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
12001 "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
12002 "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
12003 "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
12004 "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
12005 "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
12006 "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
12007 "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
12008 "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
12009 "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
12010 "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
12011 "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
12012 "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
12013 "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
12014 "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
12015 "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
12016 "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
12017 "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
12018 "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
12019 "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
12020 "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
12021 "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
12022 "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
12023 "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
12024 "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
12025 "\x29\x5E\x01\x47\x13\x32\x78\xBE"
12026 "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
12027 "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
12028 "\x38\x35\x11\x26\x4A\xB4\x06\x32"
12029 "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
12030 "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
12031 "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
12032 "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
12033 "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
12034 "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
12035 "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
12036 "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
12037 "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
12038 "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
12039 "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
12040 "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
12041 "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
12042 "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
12043 "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
12044 "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
12045 "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
12046 "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
12047 "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
12048 "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
12049 "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
12050 "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
12051 "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
12052 "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
12053 "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
12054 "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
12055 "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
12056 "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
12057 "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
12058 "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
12059 "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
12060 "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
12061 "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
12062 .rlen = 496,
12066 static struct cipher_testvec serpent_ctr_dec_tv_template[] = {
12067 { /* Generated with Crypto++ */
12068 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12069 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12070 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12071 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12072 .klen = 32,
12073 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12074 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12075 .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
12076 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
12077 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
12078 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
12079 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
12080 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
12081 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
12082 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
12083 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
12084 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
12085 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
12086 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
12087 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
12088 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
12089 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
12090 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
12091 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
12092 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
12093 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
12094 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
12095 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
12096 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
12097 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
12098 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
12099 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
12100 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
12101 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
12102 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
12103 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
12104 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
12105 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
12106 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
12107 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
12108 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
12109 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
12110 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
12111 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
12112 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
12113 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
12114 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
12115 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
12116 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
12117 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
12118 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
12119 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
12120 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
12121 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
12122 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
12123 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
12124 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
12125 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
12126 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
12127 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
12128 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
12129 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
12130 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
12131 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
12132 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
12133 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
12134 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
12135 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
12136 "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
12137 .ilen = 496,
12138 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12139 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12140 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12141 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12142 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12143 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12144 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12145 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12146 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12147 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12148 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12149 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12150 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12151 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12152 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12153 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12154 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12155 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12156 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12157 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12158 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12159 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12160 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12161 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12162 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12163 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12164 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12165 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12166 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12167 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12168 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12169 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12170 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12171 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12172 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12173 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12174 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12175 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12176 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12177 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12178 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12179 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12180 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12181 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12182 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12183 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12184 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12185 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12186 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12187 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12188 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12189 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12190 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12191 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12192 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12193 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12194 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12195 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12196 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12197 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12198 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12199 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12200 .rlen = 496,
12201 }, { /* Generated with Crypto++ */
12202 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12203 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12204 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12205 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12206 .klen = 32,
12207 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12208 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12209 .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
12210 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
12211 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
12212 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
12213 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
12214 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
12215 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
12216 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
12217 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
12218 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
12219 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
12220 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
12221 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
12222 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
12223 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
12224 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
12225 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
12226 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
12227 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
12228 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
12229 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
12230 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
12231 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
12232 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
12233 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
12234 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
12235 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
12236 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
12237 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
12238 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
12239 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
12240 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
12241 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
12242 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
12243 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
12244 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
12245 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
12246 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
12247 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
12248 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
12249 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
12250 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
12251 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
12252 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
12253 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
12254 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
12255 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
12256 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
12257 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
12258 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
12259 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
12260 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
12261 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
12262 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
12263 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
12264 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
12265 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
12266 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
12267 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
12268 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
12269 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
12270 "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
12271 "\x38\xE2\xE5",
12272 .ilen = 499,
12273 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12274 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12275 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12276 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12277 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12278 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12279 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12280 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12281 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12282 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12283 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12284 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12285 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12286 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12287 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12288 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12289 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12290 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12291 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12292 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12293 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12294 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12295 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12296 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12297 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12298 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12299 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12300 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12301 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12302 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12303 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12304 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12305 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12306 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12307 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12308 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12309 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12310 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12311 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12312 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12313 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12314 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12315 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12316 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12317 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12318 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12319 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12320 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12321 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12322 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12323 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12324 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12325 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12326 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12327 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12328 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12329 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12330 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12331 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12332 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12333 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12334 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
12335 "\x2B\xC2\x59",
12336 .rlen = 499,
12337 .also_non_np = 1,
12338 .np = 2,
12339 .tap = { 499 - 16, 16 },
12340 }, { /* Generated with Crypto++ */
12341 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12342 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12343 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12344 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12345 .klen = 32,
12346 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
12347 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
12348 .input = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
12349 "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
12350 "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
12351 "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
12352 "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
12353 "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
12354 "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
12355 "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
12356 "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
12357 "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
12358 "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
12359 "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
12360 "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
12361 "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
12362 "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
12363 "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
12364 "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
12365 "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
12366 "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
12367 "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
12368 "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
12369 "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
12370 "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
12371 "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
12372 "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
12373 "\x29\x5E\x01\x47\x13\x32\x78\xBE"
12374 "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
12375 "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
12376 "\x38\x35\x11\x26\x4A\xB4\x06\x32"
12377 "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
12378 "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
12379 "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
12380 "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
12381 "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
12382 "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
12383 "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
12384 "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
12385 "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
12386 "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
12387 "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
12388 "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
12389 "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
12390 "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
12391 "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
12392 "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
12393 "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
12394 "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
12395 "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
12396 "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
12397 "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
12398 "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
12399 "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
12400 "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
12401 "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
12402 "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
12403 "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
12404 "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
12405 "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
12406 "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
12407 "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
12408 "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
12409 "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
12410 .ilen = 496,
12411 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12412 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12413 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12414 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12415 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12416 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12417 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12418 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12419 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12420 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12421 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12422 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12423 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12424 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12425 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12426 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12427 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12428 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12429 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12430 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12431 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12432 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12433 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12434 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12435 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12436 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12437 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12438 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12439 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12440 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12441 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12442 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12443 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12444 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12445 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12446 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12447 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12448 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12449 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12450 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12451 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12452 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12453 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12454 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12455 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12456 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12457 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12458 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12459 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12460 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12461 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12462 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12463 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12464 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12465 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12466 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12467 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12468 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12469 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12470 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12471 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12472 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12473 .rlen = 496,
12477 static struct cipher_testvec serpent_lrw_enc_tv_template[] = {
12478 /* Generated from AES-LRW test vectors */
12480 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
12481 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
12482 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
12483 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
12484 .klen = 32,
12485 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12486 "\x00\x00\x00\x00\x00\x00\x00\x01",
12487 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12488 "\x38\x39\x41\x42\x43\x44\x45\x46",
12489 .ilen = 16,
12490 .result = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
12491 "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
12492 .rlen = 16,
12493 }, {
12494 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
12495 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
12496 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
12497 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
12498 .klen = 32,
12499 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12500 "\x00\x00\x00\x00\x00\x00\x00\x02",
12501 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12502 "\x38\x39\x41\x42\x43\x44\x45\x46",
12503 .ilen = 16,
12504 .result = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
12505 "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
12506 .rlen = 16,
12507 }, {
12508 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
12509 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
12510 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
12511 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
12512 .klen = 32,
12513 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12514 "\x00\x00\x00\x02\x00\x00\x00\x00",
12515 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12516 "\x38\x39\x41\x42\x43\x44\x45\x46",
12517 .ilen = 16,
12518 .result = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
12519 "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
12520 .rlen = 16,
12521 }, {
12522 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
12523 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
12524 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
12525 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
12526 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
12527 .klen = 40,
12528 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12529 "\x00\x00\x00\x00\x00\x00\x00\x01",
12530 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12531 "\x38\x39\x41\x42\x43\x44\x45\x46",
12532 .ilen = 16,
12533 .result = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
12534 "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
12535 .rlen = 16,
12536 }, {
12537 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
12538 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
12539 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
12540 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
12541 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
12542 .klen = 40,
12543 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12544 "\x00\x00\x00\x02\x00\x00\x00\x00",
12545 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12546 "\x38\x39\x41\x42\x43\x44\x45\x46",
12547 .ilen = 16,
12548 .result = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
12549 "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
12550 .rlen = 16,
12551 }, {
12552 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12553 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12554 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12555 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12556 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12557 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12558 .klen = 48,
12559 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12560 "\x00\x00\x00\x00\x00\x00\x00\x01",
12561 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12562 "\x38\x39\x41\x42\x43\x44\x45\x46",
12563 .ilen = 16,
12564 .result = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
12565 "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
12566 .rlen = 16,
12567 }, {
12568 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
12569 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
12570 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
12571 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
12572 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
12573 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
12574 .klen = 48,
12575 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12576 "\x00\x00\x00\x02\x00\x00\x00\x00",
12577 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12578 "\x38\x39\x41\x42\x43\x44\x45\x46",
12579 .ilen = 16,
12580 .result = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
12581 "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
12582 .rlen = 16,
12583 }, {
12584 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12585 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12586 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12587 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12588 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12589 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12590 .klen = 48,
12591 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12592 "\x00\x00\x00\x00\x00\x00\x00\x01",
12593 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
12594 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
12595 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
12596 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
12597 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
12598 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
12599 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
12600 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
12601 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
12602 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
12603 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
12604 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
12605 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
12606 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
12607 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
12608 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
12609 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
12610 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
12611 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
12612 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
12613 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
12614 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
12615 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
12616 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
12617 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
12618 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
12619 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
12620 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
12621 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
12622 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
12623 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
12624 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
12625 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
12626 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
12627 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
12628 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
12629 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
12630 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
12631 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
12632 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
12633 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
12634 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
12635 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
12636 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
12637 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
12638 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
12639 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
12640 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
12641 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
12642 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
12643 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
12644 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
12645 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
12646 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
12647 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
12648 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
12649 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
12650 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
12651 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
12652 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
12653 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
12654 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
12655 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
12656 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
12657 .ilen = 512,
12658 .result = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
12659 "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
12660 "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
12661 "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
12662 "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
12663 "\xce\xab\xda\x33\x30\x20\x12\xfa"
12664 "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
12665 "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
12666 "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
12667 "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
12668 "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
12669 "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
12670 "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
12671 "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
12672 "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
12673 "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
12674 "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
12675 "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
12676 "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
12677 "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
12678 "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
12679 "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
12680 "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
12681 "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
12682 "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
12683 "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
12684 "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
12685 "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
12686 "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
12687 "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
12688 "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
12689 "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
12690 "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
12691 "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
12692 "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
12693 "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
12694 "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
12695 "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
12696 "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
12697 "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
12698 "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
12699 "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
12700 "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
12701 "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
12702 "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
12703 "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
12704 "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
12705 "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
12706 "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
12707 "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
12708 "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
12709 "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
12710 "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
12711 "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
12712 "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
12713 "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
12714 "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
12715 "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
12716 "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
12717 "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
12718 "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
12719 "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
12720 "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
12721 "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
12722 .rlen = 512,
12723 .also_non_np = 1,
12724 .np = 3,
12725 .tap = { 512 - 20, 4, 16 },
12729 static struct cipher_testvec serpent_lrw_dec_tv_template[] = {
12730 /* Generated from AES-LRW test vectors */
12731 /* same as enc vectors with input and result reversed */
12733 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
12734 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
12735 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
12736 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
12737 .klen = 32,
12738 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12739 "\x00\x00\x00\x00\x00\x00\x00\x01",
12740 .input = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
12741 "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
12742 .ilen = 16,
12743 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12744 "\x38\x39\x41\x42\x43\x44\x45\x46",
12745 .rlen = 16,
12746 }, {
12747 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
12748 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
12749 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
12750 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
12751 .klen = 32,
12752 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12753 "\x00\x00\x00\x00\x00\x00\x00\x02",
12754 .input = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
12755 "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
12756 .ilen = 16,
12757 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12758 "\x38\x39\x41\x42\x43\x44\x45\x46",
12759 .rlen = 16,
12760 }, {
12761 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
12762 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
12763 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
12764 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
12765 .klen = 32,
12766 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12767 "\x00\x00\x00\x02\x00\x00\x00\x00",
12768 .input = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
12769 "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
12770 .ilen = 16,
12771 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12772 "\x38\x39\x41\x42\x43\x44\x45\x46",
12773 .rlen = 16,
12774 }, {
12775 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
12776 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
12777 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
12778 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
12779 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
12780 .klen = 40,
12781 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12782 "\x00\x00\x00\x00\x00\x00\x00\x01",
12783 .input = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
12784 "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
12785 .ilen = 16,
12786 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12787 "\x38\x39\x41\x42\x43\x44\x45\x46",
12788 .rlen = 16,
12789 }, {
12790 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
12791 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
12792 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
12793 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
12794 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
12795 .klen = 40,
12796 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12797 "\x00\x00\x00\x02\x00\x00\x00\x00",
12798 .input = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
12799 "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
12800 .ilen = 16,
12801 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12802 "\x38\x39\x41\x42\x43\x44\x45\x46",
12803 .rlen = 16,
12804 }, {
12805 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12806 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12807 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12808 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12809 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12810 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12811 .klen = 48,
12812 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12813 "\x00\x00\x00\x00\x00\x00\x00\x01",
12814 .input = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
12815 "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
12816 .ilen = 16,
12817 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12818 "\x38\x39\x41\x42\x43\x44\x45\x46",
12819 .rlen = 16,
12820 }, {
12821 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
12822 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
12823 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
12824 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
12825 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
12826 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
12827 .klen = 48,
12828 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12829 "\x00\x00\x00\x02\x00\x00\x00\x00",
12830 .input = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
12831 "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
12832 .ilen = 16,
12833 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12834 "\x38\x39\x41\x42\x43\x44\x45\x46",
12835 .rlen = 16,
12836 }, {
12837 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12838 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12839 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12840 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12841 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12842 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12843 .klen = 48,
12844 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12845 "\x00\x00\x00\x00\x00\x00\x00\x01",
12846 .input = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
12847 "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
12848 "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
12849 "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
12850 "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
12851 "\xce\xab\xda\x33\x30\x20\x12\xfa"
12852 "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
12853 "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
12854 "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
12855 "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
12856 "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
12857 "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
12858 "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
12859 "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
12860 "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
12861 "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
12862 "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
12863 "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
12864 "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
12865 "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
12866 "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
12867 "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
12868 "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
12869 "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
12870 "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
12871 "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
12872 "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
12873 "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
12874 "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
12875 "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
12876 "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
12877 "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
12878 "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
12879 "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
12880 "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
12881 "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
12882 "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
12883 "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
12884 "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
12885 "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
12886 "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
12887 "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
12888 "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
12889 "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
12890 "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
12891 "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
12892 "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
12893 "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
12894 "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
12895 "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
12896 "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
12897 "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
12898 "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
12899 "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
12900 "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
12901 "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
12902 "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
12903 "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
12904 "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
12905 "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
12906 "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
12907 "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
12908 "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
12909 "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
12910 .ilen = 512,
12911 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
12912 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
12913 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
12914 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
12915 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
12916 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
12917 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
12918 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
12919 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
12920 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
12921 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
12922 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
12923 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
12924 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
12925 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
12926 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
12927 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
12928 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
12929 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
12930 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
12931 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
12932 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
12933 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
12934 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
12935 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
12936 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
12937 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
12938 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
12939 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
12940 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
12941 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
12942 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
12943 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
12944 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
12945 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
12946 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
12947 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
12948 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
12949 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
12950 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
12951 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
12952 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
12953 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
12954 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
12955 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
12956 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
12957 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
12958 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
12959 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
12960 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
12961 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
12962 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
12963 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
12964 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
12965 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
12966 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
12967 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
12968 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
12969 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
12970 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
12971 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
12972 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
12973 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
12974 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
12975 .rlen = 512,
12976 .also_non_np = 1,
12977 .np = 3,
12978 .tap = { 512 - 20, 4, 16 },
12982 static struct cipher_testvec serpent_xts_enc_tv_template[] = {
12983 /* Generated from AES-XTS test vectors */
12985 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
12986 "\x00\x00\x00\x00\x00\x00\x00\x00"
12987 "\x00\x00\x00\x00\x00\x00\x00\x00"
12988 "\x00\x00\x00\x00\x00\x00\x00\x00",
12989 .klen = 32,
12990 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12991 "\x00\x00\x00\x00\x00\x00\x00\x00",
12992 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
12993 "\x00\x00\x00\x00\x00\x00\x00\x00"
12994 "\x00\x00\x00\x00\x00\x00\x00\x00"
12995 "\x00\x00\x00\x00\x00\x00\x00\x00",
12996 .ilen = 32,
12997 .result = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
12998 "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
12999 "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
13000 "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
13001 .rlen = 32,
13002 }, {
13003 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
13004 "\x11\x11\x11\x11\x11\x11\x11\x11"
13005 "\x22\x22\x22\x22\x22\x22\x22\x22"
13006 "\x22\x22\x22\x22\x22\x22\x22\x22",
13007 .klen = 32,
13008 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
13009 "\x00\x00\x00\x00\x00\x00\x00\x00",
13010 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
13011 "\x44\x44\x44\x44\x44\x44\x44\x44"
13012 "\x44\x44\x44\x44\x44\x44\x44\x44"
13013 "\x44\x44\x44\x44\x44\x44\x44\x44",
13014 .ilen = 32,
13015 .result = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
13016 "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
13017 "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
13018 "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
13019 .rlen = 32,
13020 }, {
13021 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
13022 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
13023 "\x22\x22\x22\x22\x22\x22\x22\x22"
13024 "\x22\x22\x22\x22\x22\x22\x22\x22",
13025 .klen = 32,
13026 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
13027 "\x00\x00\x00\x00\x00\x00\x00\x00",
13028 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
13029 "\x44\x44\x44\x44\x44\x44\x44\x44"
13030 "\x44\x44\x44\x44\x44\x44\x44\x44"
13031 "\x44\x44\x44\x44\x44\x44\x44\x44",
13032 .ilen = 32,
13033 .result = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
13034 "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
13035 "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
13036 "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
13037 .rlen = 32,
13038 }, {
13039 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
13040 "\x23\x53\x60\x28\x74\x71\x35\x26"
13041 "\x31\x41\x59\x26\x53\x58\x97\x93"
13042 "\x23\x84\x62\x64\x33\x83\x27\x95",
13043 .klen = 32,
13044 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13045 "\x00\x00\x00\x00\x00\x00\x00\x00",
13046 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
13047 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13048 "\x10\x11\x12\x13\x14\x15\x16\x17"
13049 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13050 "\x20\x21\x22\x23\x24\x25\x26\x27"
13051 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13052 "\x30\x31\x32\x33\x34\x35\x36\x37"
13053 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13054 "\x40\x41\x42\x43\x44\x45\x46\x47"
13055 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13056 "\x50\x51\x52\x53\x54\x55\x56\x57"
13057 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13058 "\x60\x61\x62\x63\x64\x65\x66\x67"
13059 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13060 "\x70\x71\x72\x73\x74\x75\x76\x77"
13061 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13062 "\x80\x81\x82\x83\x84\x85\x86\x87"
13063 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13064 "\x90\x91\x92\x93\x94\x95\x96\x97"
13065 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13066 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13067 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13068 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13069 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13070 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13071 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13072 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13073 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13074 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13075 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13076 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13077 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13078 "\x00\x01\x02\x03\x04\x05\x06\x07"
13079 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13080 "\x10\x11\x12\x13\x14\x15\x16\x17"
13081 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13082 "\x20\x21\x22\x23\x24\x25\x26\x27"
13083 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13084 "\x30\x31\x32\x33\x34\x35\x36\x37"
13085 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13086 "\x40\x41\x42\x43\x44\x45\x46\x47"
13087 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13088 "\x50\x51\x52\x53\x54\x55\x56\x57"
13089 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13090 "\x60\x61\x62\x63\x64\x65\x66\x67"
13091 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13092 "\x70\x71\x72\x73\x74\x75\x76\x77"
13093 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13094 "\x80\x81\x82\x83\x84\x85\x86\x87"
13095 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13096 "\x90\x91\x92\x93\x94\x95\x96\x97"
13097 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13098 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13099 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13100 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13101 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13102 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13103 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13104 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13105 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13106 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13107 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13108 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13109 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13110 .ilen = 512,
13111 .result = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
13112 "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
13113 "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
13114 "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
13115 "\x00\x5c\x75\x14\x06\xd6\x25\x82"
13116 "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
13117 "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
13118 "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
13119 "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
13120 "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
13121 "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
13122 "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
13123 "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
13124 "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
13125 "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
13126 "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
13127 "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
13128 "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
13129 "\x58\xfa\x43\x91\x16\x85\x40\xbb"
13130 "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
13131 "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
13132 "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
13133 "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
13134 "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
13135 "\x6e\x29\x60\xbd\x10\x14\x84\x82"
13136 "\x83\x82\x0c\x63\x73\x92\x02\x7c"
13137 "\x55\x37\x20\x80\x17\x51\xc8\xbc"
13138 "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
13139 "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
13140 "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
13141 "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
13142 "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
13143 "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
13144 "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
13145 "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
13146 "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
13147 "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
13148 "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
13149 "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
13150 "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
13151 "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
13152 "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
13153 "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
13154 "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
13155 "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
13156 "\x43\x42\x35\xd0\xcf\xec\x77\x67"
13157 "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
13158 "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
13159 "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
13160 "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
13161 "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
13162 "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
13163 "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
13164 "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
13165 "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
13166 "\x03\x57\xe6\x98\x52\x2f\x61\x62"
13167 "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
13168 "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
13169 "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
13170 "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
13171 "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
13172 "\xef\x91\x64\x1d\x18\x07\x4e\x31"
13173 "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
13174 "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
13175 .rlen = 512,
13176 }, {
13177 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
13178 "\x23\x53\x60\x28\x74\x71\x35\x26"
13179 "\x62\x49\x77\x57\x24\x70\x93\x69"
13180 "\x99\x59\x57\x49\x66\x96\x76\x27"
13181 "\x31\x41\x59\x26\x53\x58\x97\x93"
13182 "\x23\x84\x62\x64\x33\x83\x27\x95"
13183 "\x02\x88\x41\x97\x16\x93\x99\x37"
13184 "\x51\x05\x82\x09\x74\x94\x45\x92",
13185 .klen = 64,
13186 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
13187 "\x00\x00\x00\x00\x00\x00\x00\x00",
13188 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
13189 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13190 "\x10\x11\x12\x13\x14\x15\x16\x17"
13191 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13192 "\x20\x21\x22\x23\x24\x25\x26\x27"
13193 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13194 "\x30\x31\x32\x33\x34\x35\x36\x37"
13195 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13196 "\x40\x41\x42\x43\x44\x45\x46\x47"
13197 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13198 "\x50\x51\x52\x53\x54\x55\x56\x57"
13199 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13200 "\x60\x61\x62\x63\x64\x65\x66\x67"
13201 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13202 "\x70\x71\x72\x73\x74\x75\x76\x77"
13203 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13204 "\x80\x81\x82\x83\x84\x85\x86\x87"
13205 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13206 "\x90\x91\x92\x93\x94\x95\x96\x97"
13207 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13208 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13209 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13210 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13211 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13212 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13213 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13214 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13215 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13216 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13217 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13218 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13219 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13220 "\x00\x01\x02\x03\x04\x05\x06\x07"
13221 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13222 "\x10\x11\x12\x13\x14\x15\x16\x17"
13223 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13224 "\x20\x21\x22\x23\x24\x25\x26\x27"
13225 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13226 "\x30\x31\x32\x33\x34\x35\x36\x37"
13227 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13228 "\x40\x41\x42\x43\x44\x45\x46\x47"
13229 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13230 "\x50\x51\x52\x53\x54\x55\x56\x57"
13231 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13232 "\x60\x61\x62\x63\x64\x65\x66\x67"
13233 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13234 "\x70\x71\x72\x73\x74\x75\x76\x77"
13235 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13236 "\x80\x81\x82\x83\x84\x85\x86\x87"
13237 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13238 "\x90\x91\x92\x93\x94\x95\x96\x97"
13239 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13240 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13241 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13242 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13243 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13244 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13245 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13246 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13247 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13248 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13249 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13250 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13251 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13252 .ilen = 512,
13253 .result = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
13254 "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
13255 "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
13256 "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
13257 "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
13258 "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
13259 "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
13260 "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
13261 "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
13262 "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
13263 "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
13264 "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
13265 "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
13266 "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
13267 "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
13268 "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
13269 "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
13270 "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
13271 "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
13272 "\xec\x9a\xda\x64\x96\xb5\x61\xff"
13273 "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
13274 "\x81\x85\x14\xa8\x59\xac\x8c\x94"
13275 "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
13276 "\x82\xc6\x4d\xca\x86\xea\x53\x28"
13277 "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
13278 "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
13279 "\x05\xca\x81\x7b\xda\xa2\xde\x63"
13280 "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
13281 "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
13282 "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
13283 "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
13284 "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
13285 "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
13286 "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
13287 "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
13288 "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
13289 "\xfd\x43\x7d\xda\x42\x51\x87\x43"
13290 "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
13291 "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
13292 "\x27\x5f\x11\xac\x71\xc7\x48\x46"
13293 "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
13294 "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
13295 "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
13296 "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
13297 "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
13298 "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
13299 "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
13300 "\x50\x88\x97\x40\x69\xb1\x37\xf5"
13301 "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
13302 "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
13303 "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
13304 "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
13305 "\xc1\x16\x73\x50\x77\xba\xa6\x65"
13306 "\x20\x2d\xb0\x02\x27\x89\xda\x99"
13307 "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
13308 "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
13309 "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
13310 "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
13311 "\xa3\x0e\x33\x74\x40\x18\x39\x72"
13312 "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
13313 "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
13314 "\x30\x05\xc8\x92\x98\x80\xff\x7a"
13315 "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
13316 "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
13317 .rlen = 512,
13318 .also_non_np = 1,
13319 .np = 3,
13320 .tap = { 512 - 20, 4, 16 },
13324 static struct cipher_testvec serpent_xts_dec_tv_template[] = {
13325 /* Generated from AES-XTS test vectors */
13326 /* same as enc vectors with input and result reversed */
13328 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
13329 "\x00\x00\x00\x00\x00\x00\x00\x00"
13330 "\x00\x00\x00\x00\x00\x00\x00\x00"
13331 "\x00\x00\x00\x00\x00\x00\x00\x00",
13332 .klen = 32,
13333 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13334 "\x00\x00\x00\x00\x00\x00\x00\x00",
13335 .input = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
13336 "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
13337 "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
13338 "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
13339 .ilen = 32,
13340 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
13341 "\x00\x00\x00\x00\x00\x00\x00\x00"
13342 "\x00\x00\x00\x00\x00\x00\x00\x00"
13343 "\x00\x00\x00\x00\x00\x00\x00\x00",
13344 .rlen = 32,
13345 }, {
13346 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
13347 "\x11\x11\x11\x11\x11\x11\x11\x11"
13348 "\x22\x22\x22\x22\x22\x22\x22\x22"
13349 "\x22\x22\x22\x22\x22\x22\x22\x22",
13350 .klen = 32,
13351 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
13352 "\x00\x00\x00\x00\x00\x00\x00\x00",
13353 .input = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
13354 "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
13355 "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
13356 "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
13357 .ilen = 32,
13358 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
13359 "\x44\x44\x44\x44\x44\x44\x44\x44"
13360 "\x44\x44\x44\x44\x44\x44\x44\x44"
13361 "\x44\x44\x44\x44\x44\x44\x44\x44",
13362 .rlen = 32,
13363 }, {
13364 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
13365 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
13366 "\x22\x22\x22\x22\x22\x22\x22\x22"
13367 "\x22\x22\x22\x22\x22\x22\x22\x22",
13368 .klen = 32,
13369 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
13370 "\x00\x00\x00\x00\x00\x00\x00\x00",
13371 .input = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
13372 "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
13373 "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
13374 "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
13375 .ilen = 32,
13376 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
13377 "\x44\x44\x44\x44\x44\x44\x44\x44"
13378 "\x44\x44\x44\x44\x44\x44\x44\x44"
13379 "\x44\x44\x44\x44\x44\x44\x44\x44",
13380 .rlen = 32,
13381 }, {
13382 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
13383 "\x23\x53\x60\x28\x74\x71\x35\x26"
13384 "\x31\x41\x59\x26\x53\x58\x97\x93"
13385 "\x23\x84\x62\x64\x33\x83\x27\x95",
13386 .klen = 32,
13387 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13388 "\x00\x00\x00\x00\x00\x00\x00\x00",
13389 .input = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
13390 "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
13391 "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
13392 "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
13393 "\x00\x5c\x75\x14\x06\xd6\x25\x82"
13394 "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
13395 "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
13396 "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
13397 "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
13398 "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
13399 "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
13400 "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
13401 "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
13402 "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
13403 "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
13404 "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
13405 "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
13406 "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
13407 "\x58\xfa\x43\x91\x16\x85\x40\xbb"
13408 "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
13409 "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
13410 "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
13411 "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
13412 "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
13413 "\x6e\x29\x60\xbd\x10\x14\x84\x82"
13414 "\x83\x82\x0c\x63\x73\x92\x02\x7c"
13415 "\x55\x37\x20\x80\x17\x51\xc8\xbc"
13416 "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
13417 "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
13418 "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
13419 "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
13420 "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
13421 "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
13422 "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
13423 "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
13424 "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
13425 "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
13426 "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
13427 "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
13428 "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
13429 "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
13430 "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
13431 "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
13432 "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
13433 "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
13434 "\x43\x42\x35\xd0\xcf\xec\x77\x67"
13435 "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
13436 "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
13437 "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
13438 "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
13439 "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
13440 "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
13441 "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
13442 "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
13443 "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
13444 "\x03\x57\xe6\x98\x52\x2f\x61\x62"
13445 "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
13446 "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
13447 "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
13448 "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
13449 "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
13450 "\xef\x91\x64\x1d\x18\x07\x4e\x31"
13451 "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
13452 "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
13453 .ilen = 512,
13454 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
13455 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13456 "\x10\x11\x12\x13\x14\x15\x16\x17"
13457 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13458 "\x20\x21\x22\x23\x24\x25\x26\x27"
13459 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13460 "\x30\x31\x32\x33\x34\x35\x36\x37"
13461 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13462 "\x40\x41\x42\x43\x44\x45\x46\x47"
13463 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13464 "\x50\x51\x52\x53\x54\x55\x56\x57"
13465 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13466 "\x60\x61\x62\x63\x64\x65\x66\x67"
13467 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13468 "\x70\x71\x72\x73\x74\x75\x76\x77"
13469 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13470 "\x80\x81\x82\x83\x84\x85\x86\x87"
13471 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13472 "\x90\x91\x92\x93\x94\x95\x96\x97"
13473 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13474 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13475 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13476 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13477 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13478 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13479 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13480 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13481 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13482 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13483 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13484 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13485 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13486 "\x00\x01\x02\x03\x04\x05\x06\x07"
13487 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13488 "\x10\x11\x12\x13\x14\x15\x16\x17"
13489 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13490 "\x20\x21\x22\x23\x24\x25\x26\x27"
13491 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13492 "\x30\x31\x32\x33\x34\x35\x36\x37"
13493 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13494 "\x40\x41\x42\x43\x44\x45\x46\x47"
13495 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13496 "\x50\x51\x52\x53\x54\x55\x56\x57"
13497 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13498 "\x60\x61\x62\x63\x64\x65\x66\x67"
13499 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13500 "\x70\x71\x72\x73\x74\x75\x76\x77"
13501 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13502 "\x80\x81\x82\x83\x84\x85\x86\x87"
13503 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13504 "\x90\x91\x92\x93\x94\x95\x96\x97"
13505 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13506 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13507 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13508 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13509 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13510 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13511 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13512 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13513 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13514 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13515 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13516 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13517 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13518 .rlen = 512,
13519 }, {
13520 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
13521 "\x23\x53\x60\x28\x74\x71\x35\x26"
13522 "\x62\x49\x77\x57\x24\x70\x93\x69"
13523 "\x99\x59\x57\x49\x66\x96\x76\x27"
13524 "\x31\x41\x59\x26\x53\x58\x97\x93"
13525 "\x23\x84\x62\x64\x33\x83\x27\x95"
13526 "\x02\x88\x41\x97\x16\x93\x99\x37"
13527 "\x51\x05\x82\x09\x74\x94\x45\x92",
13528 .klen = 64,
13529 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
13530 "\x00\x00\x00\x00\x00\x00\x00\x00",
13531 .input = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
13532 "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
13533 "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
13534 "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
13535 "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
13536 "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
13537 "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
13538 "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
13539 "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
13540 "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
13541 "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
13542 "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
13543 "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
13544 "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
13545 "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
13546 "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
13547 "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
13548 "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
13549 "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
13550 "\xec\x9a\xda\x64\x96\xb5\x61\xff"
13551 "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
13552 "\x81\x85\x14\xa8\x59\xac\x8c\x94"
13553 "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
13554 "\x82\xc6\x4d\xca\x86\xea\x53\x28"
13555 "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
13556 "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
13557 "\x05\xca\x81\x7b\xda\xa2\xde\x63"
13558 "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
13559 "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
13560 "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
13561 "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
13562 "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
13563 "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
13564 "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
13565 "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
13566 "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
13567 "\xfd\x43\x7d\xda\x42\x51\x87\x43"
13568 "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
13569 "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
13570 "\x27\x5f\x11\xac\x71\xc7\x48\x46"
13571 "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
13572 "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
13573 "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
13574 "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
13575 "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
13576 "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
13577 "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
13578 "\x50\x88\x97\x40\x69\xb1\x37\xf5"
13579 "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
13580 "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
13581 "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
13582 "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
13583 "\xc1\x16\x73\x50\x77\xba\xa6\x65"
13584 "\x20\x2d\xb0\x02\x27\x89\xda\x99"
13585 "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
13586 "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
13587 "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
13588 "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
13589 "\xa3\x0e\x33\x74\x40\x18\x39\x72"
13590 "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
13591 "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
13592 "\x30\x05\xc8\x92\x98\x80\xff\x7a"
13593 "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
13594 "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
13595 .ilen = 512,
13596 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
13597 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13598 "\x10\x11\x12\x13\x14\x15\x16\x17"
13599 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13600 "\x20\x21\x22\x23\x24\x25\x26\x27"
13601 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13602 "\x30\x31\x32\x33\x34\x35\x36\x37"
13603 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13604 "\x40\x41\x42\x43\x44\x45\x46\x47"
13605 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13606 "\x50\x51\x52\x53\x54\x55\x56\x57"
13607 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13608 "\x60\x61\x62\x63\x64\x65\x66\x67"
13609 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13610 "\x70\x71\x72\x73\x74\x75\x76\x77"
13611 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13612 "\x80\x81\x82\x83\x84\x85\x86\x87"
13613 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13614 "\x90\x91\x92\x93\x94\x95\x96\x97"
13615 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13616 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13617 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13618 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13619 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13620 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13621 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13622 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13623 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13624 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13625 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13626 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13627 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13628 "\x00\x01\x02\x03\x04\x05\x06\x07"
13629 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13630 "\x10\x11\x12\x13\x14\x15\x16\x17"
13631 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13632 "\x20\x21\x22\x23\x24\x25\x26\x27"
13633 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13634 "\x30\x31\x32\x33\x34\x35\x36\x37"
13635 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13636 "\x40\x41\x42\x43\x44\x45\x46\x47"
13637 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13638 "\x50\x51\x52\x53\x54\x55\x56\x57"
13639 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13640 "\x60\x61\x62\x63\x64\x65\x66\x67"
13641 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13642 "\x70\x71\x72\x73\x74\x75\x76\x77"
13643 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13644 "\x80\x81\x82\x83\x84\x85\x86\x87"
13645 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13646 "\x90\x91\x92\x93\x94\x95\x96\x97"
13647 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13648 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13649 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13650 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13651 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13652 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13653 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13654 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13655 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13656 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13657 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13658 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13659 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13660 .rlen = 512,
13661 .also_non_np = 1,
13662 .np = 3,
13663 .tap = { 512 - 20, 4, 16 },
13667 /* Cast6 test vectors from RFC 2612 */
13668 #define CAST6_ENC_TEST_VECTORS 4
13669 #define CAST6_DEC_TEST_VECTORS 4
13670 #define CAST6_CBC_ENC_TEST_VECTORS 1
13671 #define CAST6_CBC_DEC_TEST_VECTORS 1
13672 #define CAST6_CTR_ENC_TEST_VECTORS 2
13673 #define CAST6_CTR_DEC_TEST_VECTORS 2
13674 #define CAST6_LRW_ENC_TEST_VECTORS 1
13675 #define CAST6_LRW_DEC_TEST_VECTORS 1
13676 #define CAST6_XTS_ENC_TEST_VECTORS 1
13677 #define CAST6_XTS_DEC_TEST_VECTORS 1
13679 static struct cipher_testvec cast6_enc_tv_template[] = {
13681 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13682 "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
13683 .klen = 16,
13684 .input = zeroed_string,
13685 .ilen = 16,
13686 .result = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
13687 "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
13688 .rlen = 16,
13689 }, {
13690 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13691 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
13692 "\xba\xc7\x7a\x77\x17\x94\x28\x63",
13693 .klen = 24,
13694 .input = zeroed_string,
13695 .ilen = 16,
13696 .result = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
13697 "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
13698 .rlen = 16,
13699 }, {
13700 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13701 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
13702 "\x8d\x7c\x47\xce\x26\x49\x08\x46"
13703 "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
13704 .klen = 32,
13705 .input = zeroed_string,
13706 .ilen = 16,
13707 .result = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
13708 "\xc9\x87\x01\x36\x55\x33\x17\xfa",
13709 .rlen = 16,
13710 }, { /* Generated from TF test vectors */
13711 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
13712 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
13713 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
13714 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
13715 .klen = 32,
13716 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
13717 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
13718 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
13719 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
13720 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
13721 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
13722 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
13723 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
13724 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
13725 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
13726 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
13727 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
13728 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
13729 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
13730 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
13731 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
13732 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
13733 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
13734 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
13735 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
13736 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
13737 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
13738 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
13739 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
13740 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
13741 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
13742 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
13743 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
13744 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
13745 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
13746 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
13747 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
13748 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
13749 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
13750 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
13751 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
13752 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
13753 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
13754 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
13755 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
13756 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
13757 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
13758 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
13759 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
13760 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
13761 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
13762 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
13763 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
13764 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
13765 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
13766 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
13767 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
13768 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
13769 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
13770 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
13771 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
13772 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
13773 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
13774 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
13775 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
13776 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
13777 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
13778 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
13779 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
13780 .ilen = 496,
13781 .result = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
13782 "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
13783 "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
13784 "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
13785 "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
13786 "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
13787 "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
13788 "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
13789 "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
13790 "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
13791 "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
13792 "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
13793 "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
13794 "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
13795 "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
13796 "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
13797 "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
13798 "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
13799 "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
13800 "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
13801 "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
13802 "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
13803 "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
13804 "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
13805 "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
13806 "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
13807 "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
13808 "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
13809 "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
13810 "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
13811 "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
13812 "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
13813 "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
13814 "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
13815 "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
13816 "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
13817 "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
13818 "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
13819 "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
13820 "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
13821 "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
13822 "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
13823 "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
13824 "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
13825 "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
13826 "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
13827 "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
13828 "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
13829 "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
13830 "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
13831 "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
13832 "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
13833 "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
13834 "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
13835 "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
13836 "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
13837 "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
13838 "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
13839 "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
13840 "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
13841 "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
13842 "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
13843 .rlen = 496,
13844 .also_non_np = 1,
13845 .np = 3,
13846 .tap = { 496 - 20, 4, 16 },
13850 static struct cipher_testvec cast6_dec_tv_template[] = {
13852 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13853 "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
13854 .klen = 16,
13855 .input = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
13856 "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
13857 .ilen = 16,
13858 .result = zeroed_string,
13859 .rlen = 16,
13860 }, {
13861 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13862 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
13863 "\xba\xc7\x7a\x77\x17\x94\x28\x63",
13864 .klen = 24,
13865 .input = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
13866 "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
13867 .ilen = 16,
13868 .result = zeroed_string,
13869 .rlen = 16,
13870 }, {
13871 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13872 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
13873 "\x8d\x7c\x47\xce\x26\x49\x08\x46"
13874 "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
13875 .klen = 32,
13876 .input = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
13877 "\xc9\x87\x01\x36\x55\x33\x17\xfa",
13878 .ilen = 16,
13879 .result = zeroed_string,
13880 .rlen = 16,
13881 }, { /* Generated from TF test vectors */
13882 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
13883 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
13884 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
13885 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
13886 .klen = 32,
13887 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
13888 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
13889 .input = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
13890 "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
13891 "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
13892 "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
13893 "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
13894 "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
13895 "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
13896 "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
13897 "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
13898 "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
13899 "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
13900 "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
13901 "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
13902 "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
13903 "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
13904 "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
13905 "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
13906 "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
13907 "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
13908 "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
13909 "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
13910 "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
13911 "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
13912 "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
13913 "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
13914 "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
13915 "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
13916 "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
13917 "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
13918 "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
13919 "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
13920 "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
13921 "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
13922 "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
13923 "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
13924 "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
13925 "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
13926 "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
13927 "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
13928 "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
13929 "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
13930 "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
13931 "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
13932 "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
13933 "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
13934 "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
13935 "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
13936 "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
13937 "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
13938 "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
13939 "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
13940 "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
13941 "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
13942 "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
13943 "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
13944 "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
13945 "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
13946 "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
13947 "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
13948 "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
13949 "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
13950 "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
13951 .ilen = 496,
13952 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
13953 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
13954 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
13955 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
13956 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
13957 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
13958 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
13959 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
13960 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
13961 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
13962 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
13963 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
13964 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
13965 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
13966 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
13967 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
13968 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
13969 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
13970 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
13971 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
13972 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
13973 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
13974 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
13975 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
13976 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
13977 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
13978 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
13979 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
13980 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
13981 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
13982 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
13983 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
13984 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
13985 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
13986 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
13987 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
13988 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
13989 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
13990 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
13991 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
13992 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
13993 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
13994 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
13995 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
13996 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
13997 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
13998 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
13999 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
14000 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
14001 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
14002 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
14003 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
14004 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
14005 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
14006 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
14007 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
14008 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
14009 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
14010 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
14011 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
14012 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
14013 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
14014 .rlen = 496,
14015 .also_non_np = 1,
14016 .np = 3,
14017 .tap = { 496 - 20, 4, 16 },
14021 static struct cipher_testvec cast6_cbc_enc_tv_template[] = {
14022 { /* Generated from TF test vectors */
14023 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14024 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
14025 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
14026 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
14027 .klen = 32,
14028 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14029 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14030 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14031 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14032 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
14033 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
14034 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
14035 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
14036 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
14037 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
14038 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
14039 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
14040 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
14041 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
14042 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
14043 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
14044 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
14045 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
14046 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
14047 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
14048 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
14049 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
14050 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
14051 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
14052 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
14053 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
14054 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
14055 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
14056 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
14057 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
14058 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
14059 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
14060 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
14061 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
14062 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
14063 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
14064 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
14065 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
14066 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
14067 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
14068 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
14069 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
14070 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
14071 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
14072 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
14073 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
14074 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
14075 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
14076 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
14077 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
14078 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
14079 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
14080 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
14081 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
14082 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
14083 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
14084 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
14085 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
14086 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
14087 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
14088 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
14089 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
14090 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
14091 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
14092 .ilen = 496,
14093 .result = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
14094 "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
14095 "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
14096 "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
14097 "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
14098 "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
14099 "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
14100 "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
14101 "\x57\x95\xE1\x21\x26\x10\x9A\x21"
14102 "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
14103 "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
14104 "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
14105 "\x23\x16\x47\x72\x81\x13\x3A\x72"
14106 "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
14107 "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
14108 "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
14109 "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
14110 "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
14111 "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
14112 "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
14113 "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
14114 "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
14115 "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
14116 "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
14117 "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
14118 "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
14119 "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
14120 "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
14121 "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
14122 "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
14123 "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
14124 "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
14125 "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
14126 "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
14127 "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
14128 "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
14129 "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
14130 "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
14131 "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
14132 "\x73\x3F\x12\x91\x47\x54\xBA\x39"
14133 "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
14134 "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
14135 "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
14136 "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
14137 "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
14138 "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
14139 "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
14140 "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
14141 "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
14142 "\x80\x21\x83\x58\x3C\x76\xFD\x28"
14143 "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
14144 "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
14145 "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
14146 "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
14147 "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
14148 "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
14149 "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
14150 "\x56\x4D\x82\x62\x37\xA3\x48\x01"
14151 "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
14152 "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
14153 "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
14154 "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
14155 .rlen = 496,
14156 .also_non_np = 1,
14157 .np = 3,
14158 .tap = { 496 - 20, 4, 16 },
14162 static struct cipher_testvec cast6_cbc_dec_tv_template[] = {
14163 { /* Generated from TF test vectors */
14164 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14165 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
14166 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
14167 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
14168 .klen = 32,
14169 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14170 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14171 .input = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
14172 "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
14173 "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
14174 "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
14175 "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
14176 "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
14177 "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
14178 "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
14179 "\x57\x95\xE1\x21\x26\x10\x9A\x21"
14180 "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
14181 "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
14182 "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
14183 "\x23\x16\x47\x72\x81\x13\x3A\x72"
14184 "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
14185 "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
14186 "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
14187 "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
14188 "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
14189 "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
14190 "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
14191 "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
14192 "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
14193 "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
14194 "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
14195 "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
14196 "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
14197 "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
14198 "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
14199 "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
14200 "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
14201 "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
14202 "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
14203 "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
14204 "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
14205 "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
14206 "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
14207 "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
14208 "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
14209 "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
14210 "\x73\x3F\x12\x91\x47\x54\xBA\x39"
14211 "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
14212 "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
14213 "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
14214 "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
14215 "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
14216 "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
14217 "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
14218 "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
14219 "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
14220 "\x80\x21\x83\x58\x3C\x76\xFD\x28"
14221 "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
14222 "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
14223 "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
14224 "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
14225 "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
14226 "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
14227 "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
14228 "\x56\x4D\x82\x62\x37\xA3\x48\x01"
14229 "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
14230 "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
14231 "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
14232 "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
14233 .ilen = 496,
14234 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14235 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14236 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
14237 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
14238 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
14239 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
14240 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
14241 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
14242 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
14243 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
14244 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
14245 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
14246 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
14247 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
14248 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
14249 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
14250 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
14251 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
14252 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
14253 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
14254 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
14255 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
14256 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
14257 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
14258 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
14259 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
14260 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
14261 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
14262 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
14263 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
14264 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
14265 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
14266 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
14267 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
14268 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
14269 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
14270 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
14271 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
14272 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
14273 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
14274 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
14275 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
14276 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
14277 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
14278 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
14279 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
14280 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
14281 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
14282 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
14283 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
14284 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
14285 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
14286 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
14287 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
14288 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
14289 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
14290 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
14291 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
14292 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
14293 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
14294 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
14295 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
14296 .rlen = 496,
14297 .also_non_np = 1,
14298 .np = 3,
14299 .tap = { 496 - 20, 4, 16 },
14303 static struct cipher_testvec cast6_ctr_enc_tv_template[] = {
14304 { /* Generated from TF test vectors */
14305 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14306 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
14307 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
14308 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
14309 .klen = 32,
14310 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14311 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14312 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14313 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14314 "\x3A",
14315 .ilen = 17,
14316 .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
14317 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
14318 "\x57",
14319 .rlen = 17,
14320 }, { /* Generated from TF test vectors */
14321 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14322 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
14323 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
14324 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
14325 .klen = 32,
14326 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14327 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14328 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14329 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14330 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
14331 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
14332 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
14333 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
14334 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
14335 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
14336 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
14337 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
14338 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
14339 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
14340 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
14341 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
14342 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
14343 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
14344 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
14345 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
14346 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
14347 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
14348 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
14349 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
14350 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
14351 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
14352 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
14353 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
14354 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
14355 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
14356 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
14357 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
14358 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
14359 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
14360 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
14361 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
14362 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
14363 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
14364 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
14365 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
14366 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
14367 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
14368 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
14369 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
14370 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
14371 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
14372 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
14373 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
14374 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
14375 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
14376 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
14377 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
14378 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
14379 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
14380 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
14381 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
14382 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
14383 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
14384 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
14385 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
14386 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
14387 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
14388 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
14389 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
14390 .ilen = 496,
14391 .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
14392 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
14393 "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
14394 "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
14395 "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
14396 "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
14397 "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
14398 "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
14399 "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
14400 "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
14401 "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
14402 "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
14403 "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
14404 "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
14405 "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
14406 "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
14407 "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
14408 "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
14409 "\x49\x61\x22\x52\x64\x8C\x46\x41"
14410 "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
14411 "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
14412 "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
14413 "\x00\x14\x15\x59\xC1\x30\x64\xAF"
14414 "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
14415 "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
14416 "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
14417 "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
14418 "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
14419 "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
14420 "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
14421 "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
14422 "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
14423 "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
14424 "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
14425 "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
14426 "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
14427 "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
14428 "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
14429 "\x60\x40\x38\x90\x20\x46\xC7\xB3"
14430 "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
14431 "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
14432 "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
14433 "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
14434 "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
14435 "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
14436 "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
14437 "\x73\xFC\x91\xAB\x79\x41\x23\x14"
14438 "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
14439 "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
14440 "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
14441 "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
14442 "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
14443 "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
14444 "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
14445 "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
14446 "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
14447 "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
14448 "\x19\x35\x88\x22\x45\x59\x0E\x8F"
14449 "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
14450 "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
14451 "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
14452 "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
14453 .rlen = 496,
14454 .also_non_np = 1,
14455 .np = 3,
14456 .tap = { 496 - 20, 4, 16 },
14460 static struct cipher_testvec cast6_ctr_dec_tv_template[] = {
14461 { /* Generated from TF test vectors */
14462 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14463 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
14464 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
14465 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
14466 .klen = 32,
14467 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14468 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14469 .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
14470 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
14471 "\x57",
14472 .ilen = 17,
14473 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14474 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14475 "\x3A",
14476 .rlen = 17,
14477 }, { /* Generated from TF test vectors */
14478 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14479 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
14480 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
14481 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
14482 .klen = 32,
14483 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14484 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14485 .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
14486 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
14487 "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
14488 "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
14489 "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
14490 "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
14491 "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
14492 "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
14493 "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
14494 "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
14495 "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
14496 "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
14497 "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
14498 "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
14499 "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
14500 "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
14501 "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
14502 "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
14503 "\x49\x61\x22\x52\x64\x8C\x46\x41"
14504 "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
14505 "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
14506 "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
14507 "\x00\x14\x15\x59\xC1\x30\x64\xAF"
14508 "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
14509 "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
14510 "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
14511 "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
14512 "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
14513 "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
14514 "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
14515 "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
14516 "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
14517 "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
14518 "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
14519 "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
14520 "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
14521 "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
14522 "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
14523 "\x60\x40\x38\x90\x20\x46\xC7\xB3"
14524 "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
14525 "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
14526 "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
14527 "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
14528 "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
14529 "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
14530 "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
14531 "\x73\xFC\x91\xAB\x79\x41\x23\x14"
14532 "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
14533 "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
14534 "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
14535 "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
14536 "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
14537 "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
14538 "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
14539 "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
14540 "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
14541 "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
14542 "\x19\x35\x88\x22\x45\x59\x0E\x8F"
14543 "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
14544 "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
14545 "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
14546 "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
14547 .ilen = 496,
14548 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14549 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14550 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
14551 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
14552 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
14553 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
14554 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
14555 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
14556 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
14557 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
14558 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
14559 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
14560 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
14561 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
14562 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
14563 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
14564 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
14565 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
14566 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
14567 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
14568 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
14569 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
14570 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
14571 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
14572 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
14573 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
14574 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
14575 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
14576 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
14577 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
14578 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
14579 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
14580 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
14581 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
14582 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
14583 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
14584 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
14585 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
14586 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
14587 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
14588 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
14589 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
14590 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
14591 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
14592 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
14593 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
14594 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
14595 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
14596 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
14597 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
14598 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
14599 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
14600 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
14601 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
14602 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
14603 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
14604 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
14605 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
14606 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
14607 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
14608 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
14609 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
14610 .rlen = 496,
14611 .also_non_np = 1,
14612 .np = 3,
14613 .tap = { 496 - 20, 4, 16 },
14617 static struct cipher_testvec cast6_lrw_enc_tv_template[] = {
14618 { /* Generated from TF test vectors */
14619 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
14620 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
14621 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
14622 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
14623 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
14624 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
14625 .klen = 48,
14626 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14627 "\x00\x00\x00\x00\x00\x00\x00\x01",
14628 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
14629 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
14630 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
14631 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
14632 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
14633 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
14634 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
14635 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
14636 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
14637 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
14638 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
14639 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
14640 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
14641 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
14642 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
14643 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
14644 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
14645 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
14646 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
14647 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
14648 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
14649 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
14650 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
14651 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
14652 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
14653 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
14654 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
14655 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
14656 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
14657 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
14658 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
14659 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
14660 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
14661 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
14662 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
14663 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
14664 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
14665 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
14666 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
14667 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
14668 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
14669 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
14670 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
14671 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
14672 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
14673 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
14674 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
14675 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
14676 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
14677 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
14678 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
14679 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
14680 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
14681 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
14682 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
14683 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
14684 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
14685 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
14686 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
14687 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
14688 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
14689 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
14690 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
14691 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
14692 .ilen = 512,
14693 .result = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
14694 "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
14695 "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
14696 "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
14697 "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
14698 "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
14699 "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
14700 "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
14701 "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
14702 "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
14703 "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
14704 "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
14705 "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
14706 "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
14707 "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
14708 "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
14709 "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
14710 "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
14711 "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
14712 "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
14713 "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
14714 "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
14715 "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
14716 "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
14717 "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
14718 "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
14719 "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
14720 "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
14721 "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
14722 "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
14723 "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
14724 "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
14725 "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
14726 "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
14727 "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
14728 "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
14729 "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
14730 "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
14731 "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
14732 "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
14733 "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
14734 "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
14735 "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
14736 "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
14737 "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
14738 "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
14739 "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
14740 "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
14741 "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
14742 "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
14743 "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
14744 "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
14745 "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
14746 "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
14747 "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
14748 "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
14749 "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
14750 "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
14751 "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
14752 "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
14753 "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
14754 "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
14755 "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
14756 "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
14757 .rlen = 512,
14758 .also_non_np = 1,
14759 .np = 3,
14760 .tap = { 512 - 20, 4, 16 },
14764 static struct cipher_testvec cast6_lrw_dec_tv_template[] = {
14765 { /* Generated from TF test vectors */
14766 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
14767 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
14768 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
14769 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
14770 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
14771 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
14772 .klen = 48,
14773 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14774 "\x00\x00\x00\x00\x00\x00\x00\x01",
14775 .input = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
14776 "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
14777 "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
14778 "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
14779 "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
14780 "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
14781 "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
14782 "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
14783 "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
14784 "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
14785 "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
14786 "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
14787 "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
14788 "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
14789 "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
14790 "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
14791 "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
14792 "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
14793 "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
14794 "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
14795 "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
14796 "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
14797 "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
14798 "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
14799 "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
14800 "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
14801 "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
14802 "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
14803 "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
14804 "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
14805 "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
14806 "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
14807 "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
14808 "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
14809 "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
14810 "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
14811 "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
14812 "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
14813 "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
14814 "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
14815 "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
14816 "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
14817 "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
14818 "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
14819 "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
14820 "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
14821 "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
14822 "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
14823 "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
14824 "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
14825 "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
14826 "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
14827 "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
14828 "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
14829 "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
14830 "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
14831 "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
14832 "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
14833 "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
14834 "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
14835 "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
14836 "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
14837 "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
14838 "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
14839 .ilen = 512,
14840 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
14841 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
14842 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
14843 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
14844 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
14845 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
14846 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
14847 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
14848 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
14849 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
14850 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
14851 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
14852 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
14853 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
14854 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
14855 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
14856 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
14857 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
14858 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
14859 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
14860 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
14861 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
14862 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
14863 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
14864 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
14865 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
14866 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
14867 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
14868 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
14869 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
14870 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
14871 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
14872 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
14873 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
14874 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
14875 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
14876 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
14877 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
14878 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
14879 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
14880 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
14881 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
14882 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
14883 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
14884 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
14885 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
14886 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
14887 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
14888 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
14889 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
14890 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
14891 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
14892 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
14893 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
14894 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
14895 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
14896 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
14897 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
14898 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
14899 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
14900 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
14901 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
14902 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
14903 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
14904 .rlen = 512,
14905 .also_non_np = 1,
14906 .np = 3,
14907 .tap = { 512 - 20, 4, 16 },
14911 static struct cipher_testvec cast6_xts_enc_tv_template[] = {
14912 { /* Generated from TF test vectors */
14913 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
14914 "\x23\x53\x60\x28\x74\x71\x35\x26"
14915 "\x62\x49\x77\x57\x24\x70\x93\x69"
14916 "\x99\x59\x57\x49\x66\x96\x76\x27"
14917 "\x31\x41\x59\x26\x53\x58\x97\x93"
14918 "\x23\x84\x62\x64\x33\x83\x27\x95"
14919 "\x02\x88\x41\x97\x16\x93\x99\x37"
14920 "\x51\x05\x82\x09\x74\x94\x45\x92",
14921 .klen = 64,
14922 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
14923 "\x00\x00\x00\x00\x00\x00\x00\x00",
14924 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
14925 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14926 "\x10\x11\x12\x13\x14\x15\x16\x17"
14927 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14928 "\x20\x21\x22\x23\x24\x25\x26\x27"
14929 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14930 "\x30\x31\x32\x33\x34\x35\x36\x37"
14931 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14932 "\x40\x41\x42\x43\x44\x45\x46\x47"
14933 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14934 "\x50\x51\x52\x53\x54\x55\x56\x57"
14935 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14936 "\x60\x61\x62\x63\x64\x65\x66\x67"
14937 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14938 "\x70\x71\x72\x73\x74\x75\x76\x77"
14939 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14940 "\x80\x81\x82\x83\x84\x85\x86\x87"
14941 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14942 "\x90\x91\x92\x93\x94\x95\x96\x97"
14943 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14944 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14945 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14946 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14947 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14948 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14949 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14950 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14951 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14952 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14953 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14954 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14955 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
14956 "\x00\x01\x02\x03\x04\x05\x06\x07"
14957 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14958 "\x10\x11\x12\x13\x14\x15\x16\x17"
14959 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14960 "\x20\x21\x22\x23\x24\x25\x26\x27"
14961 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14962 "\x30\x31\x32\x33\x34\x35\x36\x37"
14963 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14964 "\x40\x41\x42\x43\x44\x45\x46\x47"
14965 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14966 "\x50\x51\x52\x53\x54\x55\x56\x57"
14967 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14968 "\x60\x61\x62\x63\x64\x65\x66\x67"
14969 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14970 "\x70\x71\x72\x73\x74\x75\x76\x77"
14971 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14972 "\x80\x81\x82\x83\x84\x85\x86\x87"
14973 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14974 "\x90\x91\x92\x93\x94\x95\x96\x97"
14975 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14976 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14977 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14978 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14979 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14980 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14981 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14982 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14983 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14984 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14985 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14986 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14987 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
14988 .ilen = 512,
14989 .result = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
14990 "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
14991 "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
14992 "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
14993 "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
14994 "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
14995 "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
14996 "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
14997 "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
14998 "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
14999 "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
15000 "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
15001 "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
15002 "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
15003 "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
15004 "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
15005 "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
15006 "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
15007 "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
15008 "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
15009 "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
15010 "\x71\x38\x17\x91\x44\xE8\xFC\x65"
15011 "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
15012 "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
15013 "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
15014 "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
15015 "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
15016 "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
15017 "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
15018 "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
15019 "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
15020 "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
15021 "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
15022 "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
15023 "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
15024 "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
15025 "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
15026 "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
15027 "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
15028 "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
15029 "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
15030 "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
15031 "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
15032 "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
15033 "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
15034 "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
15035 "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
15036 "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
15037 "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
15038 "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
15039 "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
15040 "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
15041 "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
15042 "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
15043 "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
15044 "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
15045 "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
15046 "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
15047 "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
15048 "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
15049 "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
15050 "\x45\x72\x80\x17\x81\xBD\x9D\x62"
15051 "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
15052 "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
15053 .rlen = 512,
15054 .also_non_np = 1,
15055 .np = 3,
15056 .tap = { 512 - 20, 4, 16 },
15060 static struct cipher_testvec cast6_xts_dec_tv_template[] = {
15061 { /* Generated from TF test vectors */
15062 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
15063 "\x23\x53\x60\x28\x74\x71\x35\x26"
15064 "\x62\x49\x77\x57\x24\x70\x93\x69"
15065 "\x99\x59\x57\x49\x66\x96\x76\x27"
15066 "\x31\x41\x59\x26\x53\x58\x97\x93"
15067 "\x23\x84\x62\x64\x33\x83\x27\x95"
15068 "\x02\x88\x41\x97\x16\x93\x99\x37"
15069 "\x51\x05\x82\x09\x74\x94\x45\x92",
15070 .klen = 64,
15071 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
15072 "\x00\x00\x00\x00\x00\x00\x00\x00",
15073 .input = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
15074 "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
15075 "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
15076 "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
15077 "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
15078 "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
15079 "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
15080 "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
15081 "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
15082 "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
15083 "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
15084 "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
15085 "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
15086 "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
15087 "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
15088 "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
15089 "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
15090 "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
15091 "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
15092 "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
15093 "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
15094 "\x71\x38\x17\x91\x44\xE8\xFC\x65"
15095 "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
15096 "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
15097 "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
15098 "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
15099 "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
15100 "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
15101 "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
15102 "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
15103 "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
15104 "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
15105 "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
15106 "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
15107 "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
15108 "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
15109 "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
15110 "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
15111 "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
15112 "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
15113 "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
15114 "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
15115 "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
15116 "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
15117 "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
15118 "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
15119 "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
15120 "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
15121 "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
15122 "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
15123 "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
15124 "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
15125 "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
15126 "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
15127 "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
15128 "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
15129 "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
15130 "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
15131 "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
15132 "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
15133 "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
15134 "\x45\x72\x80\x17\x81\xBD\x9D\x62"
15135 "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
15136 "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
15137 .ilen = 512,
15138 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
15139 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15140 "\x10\x11\x12\x13\x14\x15\x16\x17"
15141 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15142 "\x20\x21\x22\x23\x24\x25\x26\x27"
15143 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15144 "\x30\x31\x32\x33\x34\x35\x36\x37"
15145 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15146 "\x40\x41\x42\x43\x44\x45\x46\x47"
15147 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15148 "\x50\x51\x52\x53\x54\x55\x56\x57"
15149 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15150 "\x60\x61\x62\x63\x64\x65\x66\x67"
15151 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15152 "\x70\x71\x72\x73\x74\x75\x76\x77"
15153 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15154 "\x80\x81\x82\x83\x84\x85\x86\x87"
15155 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15156 "\x90\x91\x92\x93\x94\x95\x96\x97"
15157 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15158 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15159 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15160 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15161 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15162 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15163 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15164 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15165 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15166 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15167 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15168 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15169 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
15170 "\x00\x01\x02\x03\x04\x05\x06\x07"
15171 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15172 "\x10\x11\x12\x13\x14\x15\x16\x17"
15173 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15174 "\x20\x21\x22\x23\x24\x25\x26\x27"
15175 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15176 "\x30\x31\x32\x33\x34\x35\x36\x37"
15177 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15178 "\x40\x41\x42\x43\x44\x45\x46\x47"
15179 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15180 "\x50\x51\x52\x53\x54\x55\x56\x57"
15181 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15182 "\x60\x61\x62\x63\x64\x65\x66\x67"
15183 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15184 "\x70\x71\x72\x73\x74\x75\x76\x77"
15185 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15186 "\x80\x81\x82\x83\x84\x85\x86\x87"
15187 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15188 "\x90\x91\x92\x93\x94\x95\x96\x97"
15189 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15190 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15191 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15192 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15193 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15194 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15195 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15196 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15197 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15198 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15199 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15200 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15201 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
15202 .rlen = 512,
15203 .also_non_np = 1,
15204 .np = 3,
15205 .tap = { 512 - 20, 4, 16 },
15211 * AES test vectors.
15213 #define AES_ENC_TEST_VECTORS 4
15214 #define AES_DEC_TEST_VECTORS 4
15215 #define AES_CBC_ENC_TEST_VECTORS 5
15216 #define AES_CBC_DEC_TEST_VECTORS 5
15217 #define HMAC_MD5_ECB_CIPHER_NULL_ENC_TEST_VECTORS 2
15218 #define HMAC_MD5_ECB_CIPHER_NULL_DEC_TEST_VECTORS 2
15219 #define HMAC_SHA1_ECB_CIPHER_NULL_ENC_TEST_VEC 2
15220 #define HMAC_SHA1_ECB_CIPHER_NULL_DEC_TEST_VEC 2
15221 #define HMAC_SHA1_AES_CBC_ENC_TEST_VEC 7
15222 #define HMAC_SHA256_AES_CBC_ENC_TEST_VEC 7
15223 #define HMAC_SHA512_AES_CBC_ENC_TEST_VEC 7
15224 #define AES_LRW_ENC_TEST_VECTORS 8
15225 #define AES_LRW_DEC_TEST_VECTORS 8
15226 #define AES_XTS_ENC_TEST_VECTORS 5
15227 #define AES_XTS_DEC_TEST_VECTORS 5
15228 #define AES_CTR_ENC_TEST_VECTORS 5
15229 #define AES_CTR_DEC_TEST_VECTORS 5
15230 #define AES_OFB_ENC_TEST_VECTORS 1
15231 #define AES_OFB_DEC_TEST_VECTORS 1
15232 #define AES_CTR_3686_ENC_TEST_VECTORS 7
15233 #define AES_CTR_3686_DEC_TEST_VECTORS 6
15234 #define AES_GCM_ENC_TEST_VECTORS 9
15235 #define AES_GCM_DEC_TEST_VECTORS 8
15236 #define AES_GCM_4106_ENC_TEST_VECTORS 23
15237 #define AES_GCM_4106_DEC_TEST_VECTORS 23
15238 #define AES_GCM_4543_ENC_TEST_VECTORS 1
15239 #define AES_GCM_4543_DEC_TEST_VECTORS 2
15240 #define AES_CCM_ENC_TEST_VECTORS 8
15241 #define AES_CCM_DEC_TEST_VECTORS 7
15242 #define AES_CCM_4309_ENC_TEST_VECTORS 7
15243 #define AES_CCM_4309_DEC_TEST_VECTORS 10
15245 static struct cipher_testvec aes_enc_tv_template[] = {
15246 { /* From FIPS-197 */
15247 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15248 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15249 .klen = 16,
15250 .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
15251 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15252 .ilen = 16,
15253 .result = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
15254 "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
15255 .rlen = 16,
15256 }, {
15257 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15258 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15259 "\x10\x11\x12\x13\x14\x15\x16\x17",
15260 .klen = 24,
15261 .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
15262 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15263 .ilen = 16,
15264 .result = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
15265 "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
15266 .rlen = 16,
15267 }, {
15268 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15269 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15270 "\x10\x11\x12\x13\x14\x15\x16\x17"
15271 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
15272 .klen = 32,
15273 .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
15274 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15275 .ilen = 16,
15276 .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
15277 "\xea\xfc\x49\x90\x4b\x49\x60\x89",
15278 .rlen = 16,
15279 }, { /* Generated with Crypto++ */
15280 .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
15281 "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
15282 "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
15283 "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
15284 .klen = 32,
15285 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
15286 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15287 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15288 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15289 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15290 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15291 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15292 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15293 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15294 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15295 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15296 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15297 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15298 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15299 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15300 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15301 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15302 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15303 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15304 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15305 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15306 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15307 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15308 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15309 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15310 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15311 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15312 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15313 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15314 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15315 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15316 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15317 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15318 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15319 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15320 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
15321 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
15322 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
15323 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
15324 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
15325 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
15326 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
15327 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
15328 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
15329 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
15330 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
15331 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
15332 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
15333 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
15334 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
15335 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
15336 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
15337 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
15338 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
15339 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
15340 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
15341 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
15342 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
15343 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
15344 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
15345 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
15346 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
15347 .ilen = 496,
15348 .result = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
15349 "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
15350 "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
15351 "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
15352 "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
15353 "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
15354 "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
15355 "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
15356 "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
15357 "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
15358 "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
15359 "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
15360 "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
15361 "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
15362 "\x41\x72\x51\x97\x1D\x07\x49\xA0"
15363 "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
15364 "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
15365 "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
15366 "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
15367 "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
15368 "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
15369 "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
15370 "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
15371 "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
15372 "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
15373 "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
15374 "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
15375 "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
15376 "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
15377 "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
15378 "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
15379 "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
15380 "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
15381 "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
15382 "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
15383 "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
15384 "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
15385 "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
15386 "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
15387 "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
15388 "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
15389 "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
15390 "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
15391 "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
15392 "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
15393 "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
15394 "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
15395 "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
15396 "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
15397 "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
15398 "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
15399 "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
15400 "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
15401 "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
15402 "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
15403 "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
15404 "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
15405 "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
15406 "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
15407 "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
15408 "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
15409 "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
15410 .rlen = 496,
15411 .also_non_np = 1,
15412 .np = 3,
15413 .tap = { 496 - 20, 4, 16 },
15417 static struct cipher_testvec aes_dec_tv_template[] = {
15418 { /* From FIPS-197 */
15419 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15420 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15421 .klen = 16,
15422 .input = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
15423 "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
15424 .ilen = 16,
15425 .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
15426 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15427 .rlen = 16,
15428 }, {
15429 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15430 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15431 "\x10\x11\x12\x13\x14\x15\x16\x17",
15432 .klen = 24,
15433 .input = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
15434 "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
15435 .ilen = 16,
15436 .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
15437 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15438 .rlen = 16,
15439 }, {
15440 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15441 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15442 "\x10\x11\x12\x13\x14\x15\x16\x17"
15443 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
15444 .klen = 32,
15445 .input = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
15446 "\xea\xfc\x49\x90\x4b\x49\x60\x89",
15447 .ilen = 16,
15448 .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
15449 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15450 .rlen = 16,
15451 }, { /* Generated with Crypto++ */
15452 .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
15453 "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
15454 "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
15455 "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
15456 .klen = 32,
15457 .input = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
15458 "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
15459 "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
15460 "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
15461 "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
15462 "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
15463 "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
15464 "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
15465 "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
15466 "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
15467 "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
15468 "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
15469 "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
15470 "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
15471 "\x41\x72\x51\x97\x1D\x07\x49\xA0"
15472 "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
15473 "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
15474 "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
15475 "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
15476 "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
15477 "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
15478 "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
15479 "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
15480 "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
15481 "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
15482 "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
15483 "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
15484 "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
15485 "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
15486 "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
15487 "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
15488 "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
15489 "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
15490 "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
15491 "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
15492 "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
15493 "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
15494 "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
15495 "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
15496 "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
15497 "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
15498 "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
15499 "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
15500 "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
15501 "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
15502 "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
15503 "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
15504 "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
15505 "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
15506 "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
15507 "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
15508 "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
15509 "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
15510 "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
15511 "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
15512 "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
15513 "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
15514 "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
15515 "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
15516 "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
15517 "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
15518 "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
15519 .ilen = 496,
15520 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
15521 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15522 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15523 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15524 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15525 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15526 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15527 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15528 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15529 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15530 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15531 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15532 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15533 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15534 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15535 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15536 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15537 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15538 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15539 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15540 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15541 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15542 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15543 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15544 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15545 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15546 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15547 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15548 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15549 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15550 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15551 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15552 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15553 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15554 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15555 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
15556 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
15557 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
15558 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
15559 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
15560 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
15561 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
15562 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
15563 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
15564 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
15565 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
15566 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
15567 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
15568 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
15569 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
15570 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
15571 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
15572 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
15573 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
15574 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
15575 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
15576 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
15577 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
15578 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
15579 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
15580 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
15581 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
15582 .rlen = 496,
15583 .also_non_np = 1,
15584 .np = 3,
15585 .tap = { 496 - 20, 4, 16 },
15589 static struct cipher_testvec aes_cbc_enc_tv_template[] = {
15590 { /* From RFC 3602 */
15591 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
15592 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
15593 .klen = 16,
15594 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
15595 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
15596 .input = "Single block msg",
15597 .ilen = 16,
15598 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
15599 "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
15600 .rlen = 16,
15601 .also_non_np = 1,
15602 .np = 8,
15603 .tap = { 3, 2, 3, 2, 3, 1, 1, 1 },
15604 }, {
15605 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
15606 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
15607 .klen = 16,
15608 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
15609 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
15610 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
15611 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15612 "\x10\x11\x12\x13\x14\x15\x16\x17"
15613 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
15614 .ilen = 32,
15615 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
15616 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
15617 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
15618 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
15619 .rlen = 32,
15620 }, { /* From NIST SP800-38A */
15621 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
15622 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
15623 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
15624 .klen = 24,
15625 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
15626 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15627 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15628 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15629 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15630 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15631 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15632 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15633 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15634 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15635 .ilen = 64,
15636 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
15637 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
15638 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
15639 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
15640 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
15641 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
15642 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
15643 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
15644 .rlen = 64,
15645 }, {
15646 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
15647 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
15648 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
15649 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
15650 .klen = 32,
15651 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
15652 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15653 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15654 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15655 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15656 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15657 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15658 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15659 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15660 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15661 .ilen = 64,
15662 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
15663 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
15664 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
15665 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
15666 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
15667 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
15668 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
15669 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
15670 .rlen = 64,
15671 }, { /* Generated with Crypto++ */
15672 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
15673 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
15674 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
15675 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
15676 .klen = 32,
15677 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
15678 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
15679 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
15680 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15681 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15682 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15683 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15684 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15685 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15686 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15687 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15688 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15689 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15690 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15691 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15692 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15693 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15694 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15695 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15696 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15697 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15698 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15699 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15700 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15701 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15702 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15703 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15704 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15705 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15706 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15707 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15708 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15709 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15710 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15711 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15712 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15713 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15714 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
15715 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
15716 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
15717 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
15718 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
15719 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
15720 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
15721 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
15722 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
15723 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
15724 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
15725 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
15726 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
15727 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
15728 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
15729 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
15730 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
15731 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
15732 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
15733 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
15734 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
15735 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
15736 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
15737 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
15738 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
15739 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
15740 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
15741 .ilen = 496,
15742 .result = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
15743 "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
15744 "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
15745 "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
15746 "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
15747 "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
15748 "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
15749 "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
15750 "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
15751 "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
15752 "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
15753 "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
15754 "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
15755 "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
15756 "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
15757 "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
15758 "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
15759 "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
15760 "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
15761 "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
15762 "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
15763 "\x16\x24\x02\x07\x48\xAE\xF2\x31"
15764 "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
15765 "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
15766 "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
15767 "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
15768 "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
15769 "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
15770 "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
15771 "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
15772 "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
15773 "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
15774 "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
15775 "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
15776 "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
15777 "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
15778 "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
15779 "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
15780 "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
15781 "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
15782 "\x22\x39\x7B\x16\x03\x01\x69\xAF"
15783 "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
15784 "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
15785 "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
15786 "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
15787 "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
15788 "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
15789 "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
15790 "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
15791 "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
15792 "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
15793 "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
15794 "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
15795 "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
15796 "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
15797 "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
15798 "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
15799 "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
15800 "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
15801 "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
15802 "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
15803 "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
15804 .rlen = 496,
15805 .also_non_np = 1,
15806 .np = 3,
15807 .tap = { 496 - 20, 4, 16 },
15811 static struct cipher_testvec aes_cbc_dec_tv_template[] = {
15812 { /* From RFC 3602 */
15813 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
15814 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
15815 .klen = 16,
15816 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
15817 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
15818 .input = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
15819 "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
15820 .ilen = 16,
15821 .result = "Single block msg",
15822 .rlen = 16,
15823 .also_non_np = 1,
15824 .np = 8,
15825 .tap = { 3, 2, 3, 2, 3, 1, 1, 1 },
15826 }, {
15827 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
15828 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
15829 .klen = 16,
15830 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
15831 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
15832 .input = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
15833 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
15834 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
15835 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
15836 .ilen = 32,
15837 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
15838 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15839 "\x10\x11\x12\x13\x14\x15\x16\x17"
15840 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
15841 .rlen = 32,
15842 }, { /* From NIST SP800-38A */
15843 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
15844 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
15845 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
15846 .klen = 24,
15847 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
15848 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15849 .input = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
15850 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
15851 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
15852 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
15853 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
15854 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
15855 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
15856 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
15857 .ilen = 64,
15858 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15859 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15860 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15861 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15862 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15863 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15864 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15865 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15866 .rlen = 64,
15867 }, {
15868 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
15869 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
15870 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
15871 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
15872 .klen = 32,
15873 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
15874 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15875 .input = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
15876 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
15877 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
15878 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
15879 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
15880 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
15881 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
15882 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
15883 .ilen = 64,
15884 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15885 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15886 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15887 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15888 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15889 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15890 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15891 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15892 .rlen = 64,
15893 }, { /* Generated with Crypto++ */
15894 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
15895 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
15896 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
15897 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
15898 .klen = 32,
15899 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
15900 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
15901 .input = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
15902 "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
15903 "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
15904 "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
15905 "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
15906 "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
15907 "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
15908 "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
15909 "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
15910 "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
15911 "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
15912 "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
15913 "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
15914 "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
15915 "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
15916 "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
15917 "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
15918 "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
15919 "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
15920 "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
15921 "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
15922 "\x16\x24\x02\x07\x48\xAE\xF2\x31"
15923 "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
15924 "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
15925 "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
15926 "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
15927 "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
15928 "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
15929 "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
15930 "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
15931 "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
15932 "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
15933 "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
15934 "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
15935 "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
15936 "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
15937 "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
15938 "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
15939 "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
15940 "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
15941 "\x22\x39\x7B\x16\x03\x01\x69\xAF"
15942 "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
15943 "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
15944 "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
15945 "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
15946 "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
15947 "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
15948 "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
15949 "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
15950 "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
15951 "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
15952 "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
15953 "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
15954 "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
15955 "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
15956 "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
15957 "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
15958 "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
15959 "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
15960 "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
15961 "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
15962 "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
15963 .ilen = 496,
15964 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
15965 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15966 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15967 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15968 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15969 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15970 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15971 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15972 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15973 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15974 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15975 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15976 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15977 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15978 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15979 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15980 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15981 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15982 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15983 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15984 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15985 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15986 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15987 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15988 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15989 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15990 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15991 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15992 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15993 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15994 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15995 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15996 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15997 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15998 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15999 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
16000 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
16001 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
16002 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
16003 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
16004 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
16005 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
16006 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
16007 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
16008 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
16009 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
16010 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
16011 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
16012 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
16013 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
16014 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
16015 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
16016 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
16017 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
16018 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
16019 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
16020 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
16021 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
16022 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
16023 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
16024 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
16025 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
16026 .rlen = 496,
16027 .also_non_np = 1,
16028 .np = 3,
16029 .tap = { 496 - 20, 4, 16 },
16033 static struct aead_testvec hmac_md5_ecb_cipher_null_enc_tv_template[] = {
16034 { /* Input data from RFC 2410 Case 1 */
16035 #ifdef __LITTLE_ENDIAN
16036 .key = "\x08\x00" /* rta length */
16037 "\x01\x00" /* rta type */
16038 #else
16039 .key = "\x00\x08" /* rta length */
16040 "\x00\x01" /* rta type */
16041 #endif
16042 "\x00\x00\x00\x00" /* enc key length */
16043 "\x00\x00\x00\x00\x00\x00\x00\x00"
16044 "\x00\x00\x00\x00\x00\x00\x00\x00",
16045 .klen = 8 + 16 + 0,
16046 .iv = "",
16047 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
16048 .ilen = 8,
16049 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
16050 "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
16051 "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
16052 .rlen = 8 + 16,
16053 }, { /* Input data from RFC 2410 Case 2 */
16054 #ifdef __LITTLE_ENDIAN
16055 .key = "\x08\x00" /* rta length */
16056 "\x01\x00" /* rta type */
16057 #else
16058 .key = "\x00\x08" /* rta length */
16059 "\x00\x01" /* rta type */
16060 #endif
16061 "\x00\x00\x00\x00" /* enc key length */
16062 "\x00\x00\x00\x00\x00\x00\x00\x00"
16063 "\x00\x00\x00\x00\x00\x00\x00\x00",
16064 .klen = 8 + 16 + 0,
16065 .iv = "",
16066 .input = "Network Security People Have A Strange Sense Of Humor",
16067 .ilen = 53,
16068 .result = "Network Security People Have A Strange Sense Of Humor"
16069 "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
16070 "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
16071 .rlen = 53 + 16,
16075 static struct aead_testvec hmac_md5_ecb_cipher_null_dec_tv_template[] = {
16077 #ifdef __LITTLE_ENDIAN
16078 .key = "\x08\x00" /* rta length */
16079 "\x01\x00" /* rta type */
16080 #else
16081 .key = "\x00\x08" /* rta length */
16082 "\x00\x01" /* rta type */
16083 #endif
16084 "\x00\x00\x00\x00" /* enc key length */
16085 "\x00\x00\x00\x00\x00\x00\x00\x00"
16086 "\x00\x00\x00\x00\x00\x00\x00\x00",
16087 .klen = 8 + 16 + 0,
16088 .iv = "",
16089 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
16090 "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
16091 "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
16092 .ilen = 8 + 16,
16093 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
16094 .rlen = 8,
16095 }, {
16096 #ifdef __LITTLE_ENDIAN
16097 .key = "\x08\x00" /* rta length */
16098 "\x01\x00" /* rta type */
16099 #else
16100 .key = "\x00\x08" /* rta length */
16101 "\x00\x01" /* rta type */
16102 #endif
16103 "\x00\x00\x00\x00" /* enc key length */
16104 "\x00\x00\x00\x00\x00\x00\x00\x00"
16105 "\x00\x00\x00\x00\x00\x00\x00\x00",
16106 .klen = 8 + 16 + 0,
16107 .iv = "",
16108 .input = "Network Security People Have A Strange Sense Of Humor"
16109 "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
16110 "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
16111 .ilen = 53 + 16,
16112 .result = "Network Security People Have A Strange Sense Of Humor",
16113 .rlen = 53,
16117 static struct aead_testvec hmac_sha1_aes_cbc_enc_tv_temp[] = {
16118 { /* RFC 3602 Case 1 */
16119 #ifdef __LITTLE_ENDIAN
16120 .key = "\x08\x00" /* rta length */
16121 "\x01\x00" /* rta type */
16122 #else
16123 .key = "\x00\x08" /* rta length */
16124 "\x00\x01" /* rta type */
16125 #endif
16126 "\x00\x00\x00\x10" /* enc key length */
16127 "\x00\x00\x00\x00\x00\x00\x00\x00"
16128 "\x00\x00\x00\x00\x00\x00\x00\x00"
16129 "\x00\x00\x00\x00"
16130 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
16131 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
16132 .klen = 8 + 20 + 16,
16133 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16134 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16135 .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16136 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16137 .alen = 16,
16138 .input = "Single block msg",
16139 .ilen = 16,
16140 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
16141 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
16142 "\x1b\x13\xcb\xaf\x89\x5e\xe1\x2c"
16143 "\x13\xc5\x2e\xa3\xcc\xed\xdc\xb5"
16144 "\x03\x71\xa2\x06",
16145 .rlen = 16 + 20,
16146 }, { /* RFC 3602 Case 2 */
16147 #ifdef __LITTLE_ENDIAN
16148 .key = "\x08\x00" /* rta length */
16149 "\x01\x00" /* rta type */
16150 #else
16151 .key = "\x00\x08" /* rta length */
16152 "\x00\x01" /* rta type */
16153 #endif
16154 "\x00\x00\x00\x10" /* enc key length */
16155 "\x20\x21\x22\x23\x24\x25\x26\x27"
16156 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16157 "\x30\x31\x32\x33"
16158 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
16159 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
16160 .klen = 8 + 20 + 16,
16161 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16162 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16163 .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16164 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16165 .alen = 16,
16166 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
16167 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16168 "\x10\x11\x12\x13\x14\x15\x16\x17"
16169 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
16170 .ilen = 32,
16171 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
16172 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
16173 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
16174 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
16175 "\xad\x9b\x4c\x5c\x85\xe1\xda\xae"
16176 "\xee\x81\x4e\xd7\xdb\x74\xcf\x58"
16177 "\x65\x39\xf8\xde",
16178 .rlen = 32 + 20,
16179 }, { /* RFC 3602 Case 3 */
16180 #ifdef __LITTLE_ENDIAN
16181 .key = "\x08\x00" /* rta length */
16182 "\x01\x00" /* rta type */
16183 #else
16184 .key = "\x00\x08" /* rta length */
16185 "\x00\x01" /* rta type */
16186 #endif
16187 "\x00\x00\x00\x10" /* enc key length */
16188 "\x11\x22\x33\x44\x55\x66\x77\x88"
16189 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16190 "\x22\x33\x44\x55"
16191 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
16192 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
16193 .klen = 8 + 20 + 16,
16194 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16195 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16196 .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16197 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16198 .alen = 16,
16199 .input = "This is a 48-byte message (exactly 3 AES blocks)",
16200 .ilen = 48,
16201 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
16202 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
16203 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
16204 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
16205 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
16206 "\x85\x79\x69\x5d\x83\xba\x26\x84"
16207 "\xc2\xec\x0c\xf8\x7f\x05\xba\xca"
16208 "\xff\xee\x4c\xd0\x93\xe6\x36\x7f"
16209 "\x8d\x62\xf2\x1e",
16210 .rlen = 48 + 20,
16211 }, { /* RFC 3602 Case 4 */
16212 #ifdef __LITTLE_ENDIAN
16213 .key = "\x08\x00" /* rta length */
16214 "\x01\x00" /* rta type */
16215 #else
16216 .key = "\x00\x08" /* rta length */
16217 "\x00\x01" /* rta type */
16218 #endif
16219 "\x00\x00\x00\x10" /* enc key length */
16220 "\x11\x22\x33\x44\x55\x66\x77\x88"
16221 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16222 "\x22\x33\x44\x55"
16223 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
16224 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
16225 .klen = 8 + 20 + 16,
16226 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16227 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16228 .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16229 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16230 .alen = 16,
16231 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16232 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16233 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16234 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16235 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16236 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16237 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16238 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
16239 .ilen = 64,
16240 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
16241 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
16242 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
16243 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
16244 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
16245 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
16246 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
16247 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
16248 "\x1c\x45\x57\xa9\x56\xcb\xa9\x2d"
16249 "\x18\xac\xf1\xc7\x5d\xd1\xcd\x0d"
16250 "\x1d\xbe\xc6\xe9",
16251 .rlen = 64 + 20,
16252 }, { /* RFC 3602 Case 5 */
16253 #ifdef __LITTLE_ENDIAN
16254 .key = "\x08\x00" /* rta length */
16255 "\x01\x00" /* rta type */
16256 #else
16257 .key = "\x00\x08" /* rta length */
16258 "\x00\x01" /* rta type */
16259 #endif
16260 "\x00\x00\x00\x10" /* enc key length */
16261 "\x11\x22\x33\x44\x55\x66\x77\x88"
16262 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16263 "\x22\x33\x44\x55"
16264 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
16265 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
16266 .klen = 8 + 20 + 16,
16267 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16268 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
16269 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
16270 "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16271 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
16272 .alen = 24,
16273 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
16274 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
16275 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16276 "\x10\x11\x12\x13\x14\x15\x16\x17"
16277 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16278 "\x20\x21\x22\x23\x24\x25\x26\x27"
16279 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16280 "\x30\x31\x32\x33\x34\x35\x36\x37"
16281 "\x01\x02\x03\x04\x05\x06\x07\x08"
16282 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
16283 .ilen = 80,
16284 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
16285 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
16286 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
16287 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
16288 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
16289 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
16290 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
16291 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
16292 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
16293 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
16294 "\x58\xc6\x84\x75\xe4\xe9\x6b\x0c"
16295 "\xe1\xc5\x0b\x73\x4d\x82\x55\xa8"
16296 "\x85\xe1\x59\xf7",
16297 .rlen = 80 + 20,
16298 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
16299 #ifdef __LITTLE_ENDIAN
16300 .key = "\x08\x00" /* rta length */
16301 "\x01\x00" /* rta type */
16302 #else
16303 .key = "\x00\x08" /* rta length */
16304 "\x00\x01" /* rta type */
16305 #endif
16306 "\x00\x00\x00\x18" /* enc key length */
16307 "\x11\x22\x33\x44\x55\x66\x77\x88"
16308 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16309 "\x22\x33\x44\x55"
16310 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
16311 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
16312 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
16313 .klen = 8 + 20 + 24,
16314 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
16315 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16316 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
16317 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16318 .alen = 16,
16319 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
16320 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16321 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
16322 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
16323 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
16324 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
16325 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
16326 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
16327 .ilen = 64,
16328 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
16329 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
16330 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
16331 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
16332 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
16333 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
16334 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
16335 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
16336 "\x73\xe3\x19\x3f\x8b\xc9\xc6\xf4"
16337 "\x5a\xf1\x5b\xa8\x98\x07\xc5\x36"
16338 "\x47\x4c\xfc\x36",
16339 .rlen = 64 + 20,
16340 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
16341 #ifdef __LITTLE_ENDIAN
16342 .key = "\x08\x00" /* rta length */
16343 "\x01\x00" /* rta type */
16344 #else
16345 .key = "\x00\x08" /* rta length */
16346 "\x00\x01" /* rta type */
16347 #endif
16348 "\x00\x00\x00\x20" /* enc key length */
16349 "\x11\x22\x33\x44\x55\x66\x77\x88"
16350 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16351 "\x22\x33\x44\x55"
16352 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
16353 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
16354 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
16355 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
16356 .klen = 8 + 20 + 32,
16357 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
16358 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16359 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
16360 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16361 .alen = 16,
16362 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
16363 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16364 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
16365 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
16366 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
16367 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
16368 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
16369 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
16370 .ilen = 64,
16371 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
16372 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
16373 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
16374 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
16375 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
16376 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
16377 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
16378 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
16379 "\xa3\xe8\x9b\x17\xe3\xf4\x7f\xde"
16380 "\x1b\x9f\xc6\x81\x26\x43\x4a\x87"
16381 "\x51\xee\xd6\x4e",
16382 .rlen = 64 + 20,
16386 static struct aead_testvec hmac_sha1_ecb_cipher_null_enc_tv_temp[] = {
16387 { /* Input data from RFC 2410 Case 1 */
16388 #ifdef __LITTLE_ENDIAN
16389 .key = "\x08\x00" /* rta length */
16390 "\x01\x00" /* rta type */
16391 #else
16392 .key = "\x00\x08" /* rta length */
16393 "\x00\x01" /* rta type */
16394 #endif
16395 "\x00\x00\x00\x00" /* enc key length */
16396 "\x00\x00\x00\x00\x00\x00\x00\x00"
16397 "\x00\x00\x00\x00\x00\x00\x00\x00"
16398 "\x00\x00\x00\x00",
16399 .klen = 8 + 20 + 0,
16400 .iv = "",
16401 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
16402 .ilen = 8,
16403 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
16404 "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
16405 "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
16406 "\x8c\x5e\xe4\x08",
16407 .rlen = 8 + 20,
16408 }, { /* Input data from RFC 2410 Case 2 */
16409 #ifdef __LITTLE_ENDIAN
16410 .key = "\x08\x00" /* rta length */
16411 "\x01\x00" /* rta type */
16412 #else
16413 .key = "\x00\x08" /* rta length */
16414 "\x00\x01" /* rta type */
16415 #endif
16416 "\x00\x00\x00\x00" /* enc key length */
16417 "\x00\x00\x00\x00\x00\x00\x00\x00"
16418 "\x00\x00\x00\x00\x00\x00\x00\x00"
16419 "\x00\x00\x00\x00",
16420 .klen = 8 + 20 + 0,
16421 .iv = "",
16422 .input = "Network Security People Have A Strange Sense Of Humor",
16423 .ilen = 53,
16424 .result = "Network Security People Have A Strange Sense Of Humor"
16425 "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
16426 "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
16427 "\x91\x56\xe4\xd6",
16428 .rlen = 53 + 20,
16432 static struct aead_testvec hmac_sha1_ecb_cipher_null_dec_tv_temp[] = {
16434 #ifdef __LITTLE_ENDIAN
16435 .key = "\x08\x00" /* rta length */
16436 "\x01\x00" /* rta type */
16437 #else
16438 .key = "\x00\x08" /* rta length */
16439 "\x00\x01" /* rta type */
16440 #endif
16441 "\x00\x00\x00\x00" /* enc key length */
16442 "\x00\x00\x00\x00\x00\x00\x00\x00"
16443 "\x00\x00\x00\x00\x00\x00\x00\x00"
16444 "\x00\x00\x00\x00",
16445 .klen = 8 + 20 + 0,
16446 .iv = "",
16447 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
16448 "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
16449 "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
16450 "\x8c\x5e\xe4\x08",
16451 .ilen = 8 + 20,
16452 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
16453 .rlen = 8,
16454 }, {
16455 #ifdef __LITTLE_ENDIAN
16456 .key = "\x08\x00" /* rta length */
16457 "\x01\x00" /* rta type */
16458 #else
16459 .key = "\x00\x08" /* rta length */
16460 "\x00\x01" /* rta type */
16461 #endif
16462 "\x00\x00\x00\x00" /* enc key length */
16463 "\x00\x00\x00\x00\x00\x00\x00\x00"
16464 "\x00\x00\x00\x00\x00\x00\x00\x00"
16465 "\x00\x00\x00\x00",
16466 .klen = 8 + 20 + 0,
16467 .iv = "",
16468 .input = "Network Security People Have A Strange Sense Of Humor"
16469 "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
16470 "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
16471 "\x91\x56\xe4\xd6",
16472 .ilen = 53 + 20,
16473 .result = "Network Security People Have A Strange Sense Of Humor",
16474 .rlen = 53,
16478 static struct aead_testvec hmac_sha256_aes_cbc_enc_tv_temp[] = {
16479 { /* RFC 3602 Case 1 */
16480 #ifdef __LITTLE_ENDIAN
16481 .key = "\x08\x00" /* rta length */
16482 "\x01\x00" /* rta type */
16483 #else
16484 .key = "\x00\x08" /* rta length */
16485 "\x00\x01" /* rta type */
16486 #endif
16487 "\x00\x00\x00\x10" /* enc key length */
16488 "\x00\x00\x00\x00\x00\x00\x00\x00"
16489 "\x00\x00\x00\x00\x00\x00\x00\x00"
16490 "\x00\x00\x00\x00\x00\x00\x00\x00"
16491 "\x00\x00\x00\x00\x00\x00\x00\x00"
16492 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
16493 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
16494 .klen = 8 + 32 + 16,
16495 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16496 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16497 .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16498 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16499 .alen = 16,
16500 .input = "Single block msg",
16501 .ilen = 16,
16502 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
16503 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
16504 "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc"
16505 "\x38\x06\x38\x51\xb4\xb8\xf3\x5b"
16506 "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5"
16507 "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5",
16508 .rlen = 16 + 32,
16509 }, { /* RFC 3602 Case 2 */
16510 #ifdef __LITTLE_ENDIAN
16511 .key = "\x08\x00" /* rta length */
16512 "\x01\x00" /* rta type */
16513 #else
16514 .key = "\x00\x08" /* rta length */
16515 "\x00\x01" /* rta type */
16516 #endif
16517 "\x00\x00\x00\x10" /* enc key length */
16518 "\x20\x21\x22\x23\x24\x25\x26\x27"
16519 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16520 "\x30\x31\x32\x33\x34\x35\x36\x37"
16521 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
16522 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
16523 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
16524 .klen = 8 + 32 + 16,
16525 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16526 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16527 .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16528 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16529 .alen = 16,
16530 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
16531 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16532 "\x10\x11\x12\x13\x14\x15\x16\x17"
16533 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
16534 .ilen = 32,
16535 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
16536 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
16537 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
16538 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
16539 "\xf5\x33\x53\xf3\x68\x85\x2a\x99"
16540 "\x0e\x06\x58\x8f\xba\xf6\x06\xda"
16541 "\x49\x69\x0d\x5b\xd4\x36\x06\x62"
16542 "\x35\x5e\x54\x58\x53\x4d\xdf\xbf",
16543 .rlen = 32 + 32,
16544 }, { /* RFC 3602 Case 3 */
16545 #ifdef __LITTLE_ENDIAN
16546 .key = "\x08\x00" /* rta length */
16547 "\x01\x00" /* rta type */
16548 #else
16549 .key = "\x00\x08" /* rta length */
16550 "\x00\x01" /* rta type */
16551 #endif
16552 "\x00\x00\x00\x10" /* enc key length */
16553 "\x11\x22\x33\x44\x55\x66\x77\x88"
16554 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16555 "\x22\x33\x44\x55\x66\x77\x88\x99"
16556 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16557 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
16558 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
16559 .klen = 8 + 32 + 16,
16560 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16561 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16562 .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16563 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16564 .alen = 16,
16565 .input = "This is a 48-byte message (exactly 3 AES blocks)",
16566 .ilen = 48,
16567 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
16568 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
16569 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
16570 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
16571 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
16572 "\x85\x79\x69\x5d\x83\xba\x26\x84"
16573 "\x68\xb9\x3e\x90\x38\xa0\x88\x01"
16574 "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d"
16575 "\x24\x78\xfb\xbe\x02\xe0\x4f\x40"
16576 "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a",
16577 .rlen = 48 + 32,
16578 }, { /* RFC 3602 Case 4 */
16579 #ifdef __LITTLE_ENDIAN
16580 .key = "\x08\x00" /* rta length */
16581 "\x01\x00" /* rta type */
16582 #else
16583 .key = "\x00\x08" /* rta length */
16584 "\x00\x01" /* rta type */
16585 #endif
16586 "\x00\x00\x00\x10" /* enc key length */
16587 "\x11\x22\x33\x44\x55\x66\x77\x88"
16588 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16589 "\x22\x33\x44\x55\x66\x77\x88\x99"
16590 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16591 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
16592 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
16593 .klen = 8 + 32 + 16,
16594 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16595 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16596 .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16597 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16598 .alen = 16,
16599 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16600 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16601 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16602 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16603 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16604 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16605 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16606 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
16607 .ilen = 64,
16608 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
16609 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
16610 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
16611 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
16612 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
16613 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
16614 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
16615 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
16616 "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2"
16617 "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8"
16618 "\x3f\x54\xe2\x49\x39\xe3\x71\x25"
16619 "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64",
16620 .rlen = 64 + 32,
16621 }, { /* RFC 3602 Case 5 */
16622 #ifdef __LITTLE_ENDIAN
16623 .key = "\x08\x00" /* rta length */
16624 "\x01\x00" /* rta type */
16625 #else
16626 .key = "\x00\x08" /* rta length */
16627 "\x00\x01" /* rta type */
16628 #endif
16629 "\x00\x00\x00\x10" /* enc key length */
16630 "\x11\x22\x33\x44\x55\x66\x77\x88"
16631 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16632 "\x22\x33\x44\x55\x66\x77\x88\x99"
16633 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16634 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
16635 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
16636 .klen = 8 + 32 + 16,
16637 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16638 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
16639 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
16640 "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16641 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
16642 .alen = 24,
16643 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
16644 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
16645 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16646 "\x10\x11\x12\x13\x14\x15\x16\x17"
16647 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16648 "\x20\x21\x22\x23\x24\x25\x26\x27"
16649 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16650 "\x30\x31\x32\x33\x34\x35\x36\x37"
16651 "\x01\x02\x03\x04\x05\x06\x07\x08"
16652 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
16653 .ilen = 80,
16654 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
16655 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
16656 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
16657 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
16658 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
16659 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
16660 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
16661 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
16662 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
16663 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
16664 "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8"
16665 "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7"
16666 "\x73\xc3\x46\x20\x2c\xb1\xef\x68"
16667 "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf",
16668 .rlen = 80 + 32,
16669 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
16670 #ifdef __LITTLE_ENDIAN
16671 .key = "\x08\x00" /* rta length */
16672 "\x01\x00" /* rta type */
16673 #else
16674 .key = "\x00\x08" /* rta length */
16675 "\x00\x01" /* rta type */
16676 #endif
16677 "\x00\x00\x00\x18" /* enc key length */
16678 "\x11\x22\x33\x44\x55\x66\x77\x88"
16679 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16680 "\x22\x33\x44\x55\x66\x77\x88\x99"
16681 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16682 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
16683 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
16684 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
16685 .klen = 8 + 32 + 24,
16686 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
16687 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16688 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
16689 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16690 .alen = 16,
16691 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
16692 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16693 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
16694 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
16695 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
16696 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
16697 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
16698 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
16699 .ilen = 64,
16700 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
16701 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
16702 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
16703 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
16704 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
16705 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
16706 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
16707 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
16708 "\x2f\xee\x5f\xdb\x66\xfe\x79\x09"
16709 "\x61\x81\x31\xea\x5b\x3d\x8e\xfb"
16710 "\xca\x71\x85\x93\xf7\x85\x55\x8b"
16711 "\x7a\xe4\x94\xca\x8b\xba\x19\x33",
16712 .rlen = 64 + 32,
16713 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
16714 #ifdef __LITTLE_ENDIAN
16715 .key = "\x08\x00" /* rta length */
16716 "\x01\x00" /* rta type */
16717 #else
16718 .key = "\x00\x08" /* rta length */
16719 "\x00\x01" /* rta type */
16720 #endif
16721 "\x00\x00\x00\x20" /* enc key length */
16722 "\x11\x22\x33\x44\x55\x66\x77\x88"
16723 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16724 "\x22\x33\x44\x55\x66\x77\x88\x99"
16725 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16726 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
16727 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
16728 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
16729 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
16730 .klen = 8 + 32 + 32,
16731 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
16732 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16733 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
16734 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16735 .alen = 16,
16736 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
16737 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16738 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
16739 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
16740 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
16741 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
16742 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
16743 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
16744 .ilen = 64,
16745 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
16746 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
16747 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
16748 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
16749 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
16750 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
16751 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
16752 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
16753 "\x24\x29\xed\xc2\x31\x49\xdb\xb1"
16754 "\x8f\x74\xbd\x17\x92\x03\xbe\x8f"
16755 "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0"
16756 "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f",
16757 .rlen = 64 + 32,
16761 static struct aead_testvec hmac_sha512_aes_cbc_enc_tv_temp[] = {
16762 { /* RFC 3602 Case 1 */
16763 #ifdef __LITTLE_ENDIAN
16764 .key = "\x08\x00" /* rta length */
16765 "\x01\x00" /* rta type */
16766 #else
16767 .key = "\x00\x08" /* rta length */
16768 "\x00\x01" /* rta type */
16769 #endif
16770 "\x00\x00\x00\x10" /* enc key length */
16771 "\x00\x00\x00\x00\x00\x00\x00\x00"
16772 "\x00\x00\x00\x00\x00\x00\x00\x00"
16773 "\x00\x00\x00\x00\x00\x00\x00\x00"
16774 "\x00\x00\x00\x00\x00\x00\x00\x00"
16775 "\x00\x00\x00\x00\x00\x00\x00\x00"
16776 "\x00\x00\x00\x00\x00\x00\x00\x00"
16777 "\x00\x00\x00\x00\x00\x00\x00\x00"
16778 "\x00\x00\x00\x00\x00\x00\x00\x00"
16779 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
16780 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
16781 .klen = 8 + 64 + 16,
16782 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16783 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16784 .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16785 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16786 .alen = 16,
16787 .input = "Single block msg",
16788 .ilen = 16,
16789 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
16790 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
16791 "\x3f\xdc\xad\x90\x03\x63\x5e\x68"
16792 "\xc3\x13\xdd\xa4\x5c\x4d\x54\xa7"
16793 "\x19\x6e\x03\x75\x2b\xa1\x62\xce"
16794 "\xe0\xc6\x96\x75\xb2\x14\xca\x96"
16795 "\xec\xbd\x50\x08\x07\x64\x1a\x49"
16796 "\xe8\x9a\x7c\x06\x3d\xcb\xff\xb2"
16797 "\xfa\x20\x89\xdd\x9c\xac\x9e\x16"
16798 "\x18\x8a\xa0\x6d\x01\x6c\xa3\x3a",
16799 .rlen = 16 + 64,
16800 }, { /* RFC 3602 Case 2 */
16801 #ifdef __LITTLE_ENDIAN
16802 .key = "\x08\x00" /* rta length */
16803 "\x01\x00" /* rta type */
16804 #else
16805 .key = "\x00\x08" /* rta length */
16806 "\x00\x01" /* rta type */
16807 #endif
16808 "\x00\x00\x00\x10" /* enc key length */
16809 "\x20\x21\x22\x23\x24\x25\x26\x27"
16810 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16811 "\x30\x31\x32\x33\x34\x35\x36\x37"
16812 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
16813 "\x40\x41\x42\x43\x44\x45\x46\x47"
16814 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
16815 "\x50\x51\x52\x53\x54\x55\x56\x57"
16816 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
16817 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
16818 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
16819 .klen = 8 + 64 + 16,
16820 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16821 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16822 .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16823 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16824 .alen = 16,
16825 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
16826 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16827 "\x10\x11\x12\x13\x14\x15\x16\x17"
16828 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
16829 .ilen = 32,
16830 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
16831 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
16832 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
16833 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
16834 "\xda\xb2\x0c\xb2\x26\xc4\xd5\xef"
16835 "\x60\x38\xa4\x5e\x9a\x8c\x1b\x41"
16836 "\x03\x9f\xc4\x64\x7f\x01\x42\x9b"
16837 "\x0e\x1b\xea\xef\xbc\x88\x19\x5e"
16838 "\x31\x7e\xc2\x95\xfc\x09\x32\x0a"
16839 "\x46\x32\x7c\x41\x9c\x59\x3e\xe9"
16840 "\x8f\x9f\xd4\x31\xd6\x22\xbd\xf8"
16841 "\xf7\x0a\x94\xe5\xa9\xc3\xf6\x9d",
16842 .rlen = 32 + 64,
16843 }, { /* RFC 3602 Case 3 */
16844 #ifdef __LITTLE_ENDIAN
16845 .key = "\x08\x00" /* rta length */
16846 "\x01\x00" /* rta type */
16847 #else
16848 .key = "\x00\x08" /* rta length */
16849 "\x00\x01" /* rta type */
16850 #endif
16851 "\x00\x00\x00\x10" /* enc key length */
16852 "\x11\x22\x33\x44\x55\x66\x77\x88"
16853 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16854 "\x22\x33\x44\x55\x66\x77\x88\x99"
16855 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16856 "\x33\x44\x55\x66\x77\x88\x99\xaa"
16857 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
16858 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
16859 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
16860 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
16861 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
16862 .klen = 8 + 64 + 16,
16863 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16864 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16865 .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16866 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16867 .alen = 16,
16868 .input = "This is a 48-byte message (exactly 3 AES blocks)",
16869 .ilen = 48,
16870 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
16871 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
16872 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
16873 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
16874 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
16875 "\x85\x79\x69\x5d\x83\xba\x26\x84"
16876 "\x64\x19\x17\x5b\x57\xe0\x21\x0f"
16877 "\xca\xdb\xa1\x26\x38\x14\xa2\x69"
16878 "\xdb\x54\x67\x80\xc0\x54\xe0\xfd"
16879 "\x3e\x91\xe7\x91\x7f\x13\x38\x44"
16880 "\xb7\xb1\xd6\xc8\x7d\x48\x8d\x41"
16881 "\x08\xea\x29\x6c\x74\x67\x3f\xb0"
16882 "\xac\x7f\x5c\x1d\xf5\xee\x22\x66"
16883 "\x27\xa6\xb6\x13\xba\xba\xf0\xc2",
16884 .rlen = 48 + 64,
16885 }, { /* RFC 3602 Case 4 */
16886 #ifdef __LITTLE_ENDIAN
16887 .key = "\x08\x00" /* rta length */
16888 "\x01\x00" /* rta type */
16889 #else
16890 .key = "\x00\x08" /* rta length */
16891 "\x00\x01" /* rta type */
16892 #endif
16893 "\x00\x00\x00\x10" /* enc key length */
16894 "\x11\x22\x33\x44\x55\x66\x77\x88"
16895 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16896 "\x22\x33\x44\x55\x66\x77\x88\x99"
16897 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16898 "\x33\x44\x55\x66\x77\x88\x99\xaa"
16899 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
16900 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
16901 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
16902 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
16903 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
16904 .klen = 8 + 64 + 16,
16905 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16906 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16907 .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16908 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16909 .alen = 16,
16910 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16911 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16912 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16913 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16914 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16915 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16916 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16917 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
16918 .ilen = 64,
16919 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
16920 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
16921 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
16922 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
16923 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
16924 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
16925 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
16926 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
16927 "\x82\xcd\x42\x28\x21\x20\x15\xcc"
16928 "\xb7\xb2\x48\x40\xc7\x64\x41\x3a"
16929 "\x61\x32\x82\x85\xcf\x27\xed\xb4"
16930 "\xe4\x68\xa2\xf5\x79\x26\x27\xb2"
16931 "\x51\x67\x6a\xc4\xf0\x66\x55\x50"
16932 "\xbc\x6f\xed\xd5\x8d\xde\x23\x7c"
16933 "\x62\x98\x14\xd7\x2f\x37\x8d\xdf"
16934 "\xf4\x33\x80\xeb\x8e\xb4\xa4\xda",
16935 .rlen = 64 + 64,
16936 }, { /* RFC 3602 Case 5 */
16937 #ifdef __LITTLE_ENDIAN
16938 .key = "\x08\x00" /* rta length */
16939 "\x01\x00" /* rta type */
16940 #else
16941 .key = "\x00\x08" /* rta length */
16942 "\x00\x01" /* rta type */
16943 #endif
16944 "\x00\x00\x00\x10" /* enc key length */
16945 "\x11\x22\x33\x44\x55\x66\x77\x88"
16946 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16947 "\x22\x33\x44\x55\x66\x77\x88\x99"
16948 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16949 "\x33\x44\x55\x66\x77\x88\x99\xaa"
16950 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
16951 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
16952 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
16953 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
16954 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
16955 .klen = 8 + 64 + 16,
16956 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16957 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
16958 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
16959 "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16960 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
16961 .alen = 24,
16962 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
16963 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
16964 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16965 "\x10\x11\x12\x13\x14\x15\x16\x17"
16966 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16967 "\x20\x21\x22\x23\x24\x25\x26\x27"
16968 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16969 "\x30\x31\x32\x33\x34\x35\x36\x37"
16970 "\x01\x02\x03\x04\x05\x06\x07\x08"
16971 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
16972 .ilen = 80,
16973 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
16974 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
16975 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
16976 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
16977 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
16978 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
16979 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
16980 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
16981 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
16982 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
16983 "\x74\x84\x94\xe2\xd7\x7a\xf9\xbf"
16984 "\x00\x8a\xa2\xd5\xb7\xf3\x60\xcf"
16985 "\xa0\x47\xdf\x4e\x09\xf4\xb1\x7f"
16986 "\x14\xd9\x3d\x53\x8e\x12\xb3\x00"
16987 "\x4c\x0a\x4e\x32\x40\x43\x88\xce"
16988 "\x92\x26\xc1\x76\x20\x11\xeb\xba"
16989 "\x62\x4f\x9a\x62\x25\xc3\x75\x80"
16990 "\xb7\x0a\x17\xf5\xd7\x94\xb4\x14",
16991 .rlen = 80 + 64,
16992 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
16993 #ifdef __LITTLE_ENDIAN
16994 .key = "\x08\x00" /* rta length */
16995 "\x01\x00" /* rta type */
16996 #else
16997 .key = "\x00\x08" /* rta length */
16998 "\x00\x01" /* rta type */
16999 #endif
17000 "\x00\x00\x00\x18" /* enc key length */
17001 "\x11\x22\x33\x44\x55\x66\x77\x88"
17002 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17003 "\x22\x33\x44\x55\x66\x77\x88\x99"
17004 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17005 "\x33\x44\x55\x66\x77\x88\x99\xaa"
17006 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17007 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
17008 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
17009 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
17010 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
17011 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
17012 .klen = 8 + 64 + 24,
17013 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
17014 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
17015 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
17016 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
17017 .alen = 16,
17018 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
17019 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
17020 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
17021 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
17022 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
17023 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
17024 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
17025 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
17026 .ilen = 64,
17027 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
17028 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
17029 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
17030 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
17031 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
17032 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
17033 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
17034 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
17035 "\x77\x4b\x69\x9d\x3a\x0d\xb4\x99"
17036 "\x8f\xc6\x8e\x0e\x72\x58\xe3\x56"
17037 "\xbb\x21\xd2\x7d\x93\x11\x17\x91"
17038 "\xc4\x83\xfd\x0a\xea\x71\xfe\x77"
17039 "\xae\x6f\x0a\xa5\xf0\xcf\xe1\x35"
17040 "\xba\x03\xd5\x32\xfa\x5f\x41\x58"
17041 "\x8d\x43\x98\xa7\x94\x16\x07\x02"
17042 "\x0f\xb6\x81\x50\x28\x95\x2e\x75",
17043 .rlen = 64 + 64,
17044 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
17045 #ifdef __LITTLE_ENDIAN
17046 .key = "\x08\x00" /* rta length */
17047 "\x01\x00" /* rta type */
17048 #else
17049 .key = "\x00\x08" /* rta length */
17050 "\x00\x01" /* rta type */
17051 #endif
17052 "\x00\x00\x00\x20" /* enc key length */
17053 "\x11\x22\x33\x44\x55\x66\x77\x88"
17054 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17055 "\x22\x33\x44\x55\x66\x77\x88\x99"
17056 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17057 "\x33\x44\x55\x66\x77\x88\x99\xaa"
17058 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17059 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
17060 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
17061 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
17062 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
17063 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
17064 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
17065 .klen = 8 + 64 + 32,
17066 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
17067 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
17068 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
17069 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
17070 .alen = 16,
17071 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
17072 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
17073 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
17074 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
17075 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
17076 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
17077 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
17078 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
17079 .ilen = 64,
17080 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
17081 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
17082 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
17083 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
17084 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
17085 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
17086 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
17087 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
17088 "\xb2\x27\x69\x7f\x45\x64\x79\x2b"
17089 "\xb7\xb8\x4c\xd4\x75\x94\x68\x40"
17090 "\x2a\xea\x91\xc7\x3f\x7c\xed\x7b"
17091 "\x95\x2c\x9b\xa8\xf5\xe5\x52\x8d"
17092 "\x6b\xe1\xae\xf1\x74\xfa\x0d\x0c"
17093 "\xe3\x8d\x64\xc3\x8d\xff\x7c\x8c"
17094 "\xdb\xbf\xa0\xb4\x01\xa2\xa8\xa2"
17095 "\x2c\xb1\x62\x2c\x10\xca\xf1\x21",
17096 .rlen = 64 + 64,
17100 #define HMAC_SHA1_DES_CBC_ENC_TEST_VEC 1
17102 static struct aead_testvec hmac_sha1_des_cbc_enc_tv_temp[] = {
17103 { /*Generated with cryptopp*/
17104 #ifdef __LITTLE_ENDIAN
17105 .key = "\x08\x00" /* rta length */
17106 "\x01\x00" /* rta type */
17107 #else
17108 .key = "\x00\x08" /* rta length */
17109 "\x00\x01" /* rta type */
17110 #endif
17111 "\x00\x00\x00\x08" /* enc key length */
17112 "\x11\x22\x33\x44\x55\x66\x77\x88"
17113 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17114 "\x22\x33\x44\x55"
17115 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
17116 .klen = 8 + 20 + 8,
17117 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17118 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17119 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17120 .alen = 16,
17121 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17122 "\x53\x20\x63\x65\x65\x72\x73\x74"
17123 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17124 "\x20\x79\x65\x53\x72\x63\x74\x65"
17125 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17126 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17127 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17128 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17129 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17130 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17131 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17132 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17133 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17134 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17135 "\x63\x65\x65\x72\x73\x74\x54\x20"
17136 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17137 .ilen = 128,
17138 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
17139 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
17140 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
17141 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
17142 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
17143 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
17144 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
17145 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
17146 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
17147 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
17148 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
17149 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
17150 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
17151 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
17152 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
17153 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
17154 "\x95\x16\x20\x09\xf5\x95\x19\xfd"
17155 "\x3c\xc7\xe0\x42\xc0\x14\x69\xfa"
17156 "\x5c\x44\xa9\x37",
17157 .rlen = 128 + 20,
17161 #define HMAC_SHA224_DES_CBC_ENC_TEST_VEC 1
17163 static struct aead_testvec hmac_sha224_des_cbc_enc_tv_temp[] = {
17164 { /*Generated with cryptopp*/
17165 #ifdef __LITTLE_ENDIAN
17166 .key = "\x08\x00" /* rta length */
17167 "\x01\x00" /* rta type */
17168 #else
17169 .key = "\x00\x08" /* rta length */
17170 "\x00\x01" /* rta type */
17171 #endif
17172 "\x00\x00\x00\x08" /* enc key length */
17173 "\x11\x22\x33\x44\x55\x66\x77\x88"
17174 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17175 "\x22\x33\x44\x55\x66\x77\x88\x99"
17176 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
17177 .klen = 8 + 24 + 8,
17178 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17179 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17180 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17181 .alen = 16,
17182 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17183 "\x53\x20\x63\x65\x65\x72\x73\x74"
17184 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17185 "\x20\x79\x65\x53\x72\x63\x74\x65"
17186 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17187 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17188 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17189 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17190 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17191 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17192 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17193 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17194 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17195 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17196 "\x63\x65\x65\x72\x73\x74\x54\x20"
17197 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17198 .ilen = 128,
17199 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
17200 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
17201 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
17202 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
17203 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
17204 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
17205 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
17206 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
17207 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
17208 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
17209 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
17210 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
17211 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
17212 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
17213 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
17214 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
17215 "\x9c\x2d\x7e\xee\x20\x34\x55\x0a"
17216 "\xce\xb5\x4e\x64\x53\xe7\xbf\x91"
17217 "\xab\xd4\xd9\xda\xc9\x12\xae\xf7",
17218 .rlen = 128 + 24,
17222 #define HMAC_SHA256_DES_CBC_ENC_TEST_VEC 1
17224 static struct aead_testvec hmac_sha256_des_cbc_enc_tv_temp[] = {
17225 { /*Generated with cryptopp*/
17226 #ifdef __LITTLE_ENDIAN
17227 .key = "\x08\x00" /* rta length */
17228 "\x01\x00" /* rta type */
17229 #else
17230 .key = "\x00\x08" /* rta length */
17231 "\x00\x01" /* rta type */
17232 #endif
17233 "\x00\x00\x00\x08" /* enc key length */
17234 "\x11\x22\x33\x44\x55\x66\x77\x88"
17235 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17236 "\x22\x33\x44\x55\x66\x77\x88\x99"
17237 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17238 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
17239 .klen = 8 + 32 + 8,
17240 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17241 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17242 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17243 .alen = 16,
17244 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17245 "\x53\x20\x63\x65\x65\x72\x73\x74"
17246 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17247 "\x20\x79\x65\x53\x72\x63\x74\x65"
17248 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17249 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17250 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17251 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17252 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17253 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17254 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17255 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17256 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17257 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17258 "\x63\x65\x65\x72\x73\x74\x54\x20"
17259 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17260 .ilen = 128,
17261 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
17262 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
17263 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
17264 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
17265 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
17266 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
17267 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
17268 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
17269 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
17270 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
17271 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
17272 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
17273 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
17274 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
17275 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
17276 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
17277 "\xc6\x58\xa1\x60\x70\x91\x39\x36"
17278 "\x50\xf6\x5d\xab\x4b\x51\x4e\x5e"
17279 "\xde\x63\xde\x76\x52\xde\x9f\xba"
17280 "\x90\xcf\x15\xf2\xbb\x6e\x84\x00",
17281 .rlen = 128 + 32,
17285 #define HMAC_SHA384_DES_CBC_ENC_TEST_VEC 1
17287 static struct aead_testvec hmac_sha384_des_cbc_enc_tv_temp[] = {
17288 { /*Generated with cryptopp*/
17289 #ifdef __LITTLE_ENDIAN
17290 .key = "\x08\x00" /* rta length */
17291 "\x01\x00" /* rta type */
17292 #else
17293 .key = "\x00\x08" /* rta length */
17294 "\x00\x01" /* rta type */
17295 #endif
17296 "\x00\x00\x00\x08" /* enc key length */
17297 "\x11\x22\x33\x44\x55\x66\x77\x88"
17298 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17299 "\x22\x33\x44\x55\x66\x77\x88\x99"
17300 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17301 "\x33\x44\x55\x66\x77\x88\x99\xaa"
17302 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17303 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
17304 .klen = 8 + 48 + 8,
17305 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17306 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17307 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17308 .alen = 16,
17309 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17310 "\x53\x20\x63\x65\x65\x72\x73\x74"
17311 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17312 "\x20\x79\x65\x53\x72\x63\x74\x65"
17313 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17314 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17315 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17316 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17317 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17318 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17319 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17320 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17321 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17322 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17323 "\x63\x65\x65\x72\x73\x74\x54\x20"
17324 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17325 .ilen = 128,
17326 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
17327 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
17328 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
17329 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
17330 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
17331 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
17332 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
17333 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
17334 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
17335 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
17336 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
17337 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
17338 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
17339 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
17340 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
17341 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
17342 "\xa8\x8e\x9c\x74\x8c\x2b\x99\xa0"
17343 "\xc8\x8c\xef\x25\x07\x83\x11\x3a"
17344 "\x31\x8d\xbe\x3b\x6a\xd7\x96\xfe"
17345 "\x5e\x67\xb5\x74\xe7\xe7\x85\x61"
17346 "\x6a\x95\x26\x75\xcc\x53\x89\xf3"
17347 "\x74\xc9\x2a\x76\x20\xa2\x64\x62",
17348 .rlen = 128 + 48,
17352 #define HMAC_SHA512_DES_CBC_ENC_TEST_VEC 1
17354 static struct aead_testvec hmac_sha512_des_cbc_enc_tv_temp[] = {
17355 { /*Generated with cryptopp*/
17356 #ifdef __LITTLE_ENDIAN
17357 .key = "\x08\x00" /* rta length */
17358 "\x01\x00" /* rta type */
17359 #else
17360 .key = "\x00\x08" /* rta length */
17361 "\x00\x01" /* rta type */
17362 #endif
17363 "\x00\x00\x00\x08" /* enc key length */
17364 "\x11\x22\x33\x44\x55\x66\x77\x88"
17365 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17366 "\x22\x33\x44\x55\x66\x77\x88\x99"
17367 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17368 "\x33\x44\x55\x66\x77\x88\x99\xaa"
17369 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17370 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
17371 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
17372 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
17373 .klen = 8 + 64 + 8,
17374 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17375 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17376 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17377 .alen = 16,
17378 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17379 "\x53\x20\x63\x65\x65\x72\x73\x74"
17380 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17381 "\x20\x79\x65\x53\x72\x63\x74\x65"
17382 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17383 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17384 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17385 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17386 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17387 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17388 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17389 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17390 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17391 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17392 "\x63\x65\x65\x72\x73\x74\x54\x20"
17393 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17394 .ilen = 128,
17395 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
17396 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
17397 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
17398 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
17399 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
17400 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
17401 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
17402 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
17403 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
17404 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
17405 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
17406 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
17407 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
17408 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
17409 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
17410 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
17411 "\xc6\x2c\x73\x88\xb0\x9d\x5f\x3e"
17412 "\x5b\x78\xca\x0e\xab\x8a\xa3\xbb"
17413 "\xd9\x1d\xc3\xe3\x05\xac\x76\xfb"
17414 "\x58\x83\xda\x67\xfb\x21\x24\xa2"
17415 "\xb1\xa7\xd7\x66\xa6\x8d\xa6\x93"
17416 "\x97\xe2\xe3\xb8\xaa\x48\x85\xee"
17417 "\x8c\xf6\x07\x95\x1f\xa6\x6c\x96"
17418 "\x99\xc7\x5c\x8d\xd8\xb5\x68\x7b",
17419 .rlen = 128 + 64,
17423 #define HMAC_SHA1_DES3_EDE_CBC_ENC_TEST_VEC 1
17425 static struct aead_testvec hmac_sha1_des3_ede_cbc_enc_tv_temp[] = {
17426 { /*Generated with cryptopp*/
17427 #ifdef __LITTLE_ENDIAN
17428 .key = "\x08\x00" /* rta length */
17429 "\x01\x00" /* rta type */
17430 #else
17431 .key = "\x00\x08" /* rta length */
17432 "\x00\x01" /* rta type */
17433 #endif
17434 "\x00\x00\x00\x18" /* enc key length */
17435 "\x11\x22\x33\x44\x55\x66\x77\x88"
17436 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17437 "\x22\x33\x44\x55"
17438 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
17439 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
17440 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
17441 .klen = 8 + 20 + 24,
17442 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17443 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17444 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17445 .alen = 16,
17446 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17447 "\x53\x20\x63\x65\x65\x72\x73\x74"
17448 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17449 "\x20\x79\x65\x53\x72\x63\x74\x65"
17450 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17451 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17452 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17453 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17454 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17455 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17456 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17457 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17458 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17459 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17460 "\x63\x65\x65\x72\x73\x74\x54\x20"
17461 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17462 .ilen = 128,
17463 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
17464 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
17465 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
17466 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
17467 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
17468 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
17469 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
17470 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
17471 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
17472 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
17473 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
17474 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
17475 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
17476 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
17477 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
17478 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
17479 "\x67\x6d\xb1\xf5\xb8\x10\xdc\xc6"
17480 "\x75\x86\x96\x6b\xb1\xc5\xe4\xcf"
17481 "\xd1\x60\x91\xb3",
17482 .rlen = 128 + 20,
17486 #define HMAC_SHA224_DES3_EDE_CBC_ENC_TEST_VEC 1
17488 static struct aead_testvec hmac_sha224_des3_ede_cbc_enc_tv_temp[] = {
17489 { /*Generated with cryptopp*/
17490 #ifdef __LITTLE_ENDIAN
17491 .key = "\x08\x00" /* rta length */
17492 "\x01\x00" /* rta type */
17493 #else
17494 .key = "\x00\x08" /* rta length */
17495 "\x00\x01" /* rta type */
17496 #endif
17497 "\x00\x00\x00\x18" /* enc key length */
17498 "\x11\x22\x33\x44\x55\x66\x77\x88"
17499 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17500 "\x22\x33\x44\x55\x66\x77\x88\x99"
17501 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
17502 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
17503 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
17504 .klen = 8 + 24 + 24,
17505 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17506 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17507 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17508 .alen = 16,
17509 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17510 "\x53\x20\x63\x65\x65\x72\x73\x74"
17511 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17512 "\x20\x79\x65\x53\x72\x63\x74\x65"
17513 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17514 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17515 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17516 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17517 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17518 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17519 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17520 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17521 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17522 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17523 "\x63\x65\x65\x72\x73\x74\x54\x20"
17524 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17525 .ilen = 128,
17526 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
17527 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
17528 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
17529 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
17530 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
17531 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
17532 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
17533 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
17534 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
17535 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
17536 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
17537 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
17538 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
17539 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
17540 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
17541 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
17542 "\x15\x24\x7f\x5a\x45\x4a\x66\xce"
17543 "\x2b\x0b\x93\x99\x2f\x9d\x0c\x6c"
17544 "\x56\x1f\xe1\xa6\x41\xb2\x4c\xd0",
17545 .rlen = 128 + 24,
17549 #define HMAC_SHA256_DES3_EDE_CBC_ENC_TEST_VEC 1
17551 static struct aead_testvec hmac_sha256_des3_ede_cbc_enc_tv_temp[] = {
17552 { /*Generated with cryptopp*/
17553 #ifdef __LITTLE_ENDIAN
17554 .key = "\x08\x00" /* rta length */
17555 "\x01\x00" /* rta type */
17556 #else
17557 .key = "\x00\x08" /* rta length */
17558 "\x00\x01" /* rta type */
17559 #endif
17560 "\x00\x00\x00\x18" /* enc key length */
17561 "\x11\x22\x33\x44\x55\x66\x77\x88"
17562 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17563 "\x22\x33\x44\x55\x66\x77\x88\x99"
17564 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17565 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
17566 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
17567 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
17568 .klen = 8 + 32 + 24,
17569 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17570 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17571 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17572 .alen = 16,
17573 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17574 "\x53\x20\x63\x65\x65\x72\x73\x74"
17575 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17576 "\x20\x79\x65\x53\x72\x63\x74\x65"
17577 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17578 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17579 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17580 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17581 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17582 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17583 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17584 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17585 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17586 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17587 "\x63\x65\x65\x72\x73\x74\x54\x20"
17588 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17589 .ilen = 128,
17590 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
17591 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
17592 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
17593 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
17594 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
17595 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
17596 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
17597 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
17598 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
17599 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
17600 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
17601 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
17602 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
17603 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
17604 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
17605 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
17606 "\x73\xb0\xea\x9f\xe8\x18\x80\xd6"
17607 "\x56\x38\x44\xc0\xdb\xe3\x4f\x71"
17608 "\xf7\xce\xd1\xd3\xf8\xbd\x3e\x4f"
17609 "\xca\x43\x95\xdf\x80\x61\x81\xa9",
17610 .rlen = 128 + 32,
17614 #define HMAC_SHA384_DES3_EDE_CBC_ENC_TEST_VEC 1
17616 static struct aead_testvec hmac_sha384_des3_ede_cbc_enc_tv_temp[] = {
17617 { /*Generated with cryptopp*/
17618 #ifdef __LITTLE_ENDIAN
17619 .key = "\x08\x00" /* rta length */
17620 "\x01\x00" /* rta type */
17621 #else
17622 .key = "\x00\x08" /* rta length */
17623 "\x00\x01" /* rta type */
17624 #endif
17625 "\x00\x00\x00\x18" /* enc key length */
17626 "\x11\x22\x33\x44\x55\x66\x77\x88"
17627 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17628 "\x22\x33\x44\x55\x66\x77\x88\x99"
17629 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17630 "\x33\x44\x55\x66\x77\x88\x99\xaa"
17631 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17632 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
17633 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
17634 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
17635 .klen = 8 + 48 + 24,
17636 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17637 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17638 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17639 .alen = 16,
17640 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17641 "\x53\x20\x63\x65\x65\x72\x73\x74"
17642 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17643 "\x20\x79\x65\x53\x72\x63\x74\x65"
17644 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17645 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17646 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17647 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17648 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17649 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17650 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17651 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17652 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17653 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17654 "\x63\x65\x65\x72\x73\x74\x54\x20"
17655 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17656 .ilen = 128,
17657 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
17658 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
17659 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
17660 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
17661 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
17662 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
17663 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
17664 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
17665 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
17666 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
17667 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
17668 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
17669 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
17670 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
17671 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
17672 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
17673 "\x6d\x77\xfc\x80\x9d\x8a\x9c\xb7"
17674 "\x70\xe7\x93\xbf\x73\xe6\x9f\x83"
17675 "\x99\x62\x23\xe6\x5b\xd0\xda\x18"
17676 "\xa4\x32\x8a\x0b\x46\xd7\xf0\x39"
17677 "\x36\x5d\x13\x2f\x86\x10\x78\xd6"
17678 "\xd6\xbe\x5c\xb9\x15\x89\xf9\x1b",
17679 .rlen = 128 + 48,
17683 #define HMAC_SHA512_DES3_EDE_CBC_ENC_TEST_VEC 1
17685 static struct aead_testvec hmac_sha512_des3_ede_cbc_enc_tv_temp[] = {
17686 { /*Generated with cryptopp*/
17687 #ifdef __LITTLE_ENDIAN
17688 .key = "\x08\x00" /* rta length */
17689 "\x01\x00" /* rta type */
17690 #else
17691 .key = "\x00\x08" /* rta length */
17692 "\x00\x01" /* rta type */
17693 #endif
17694 "\x00\x00\x00\x18" /* enc key length */
17695 "\x11\x22\x33\x44\x55\x66\x77\x88"
17696 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17697 "\x22\x33\x44\x55\x66\x77\x88\x99"
17698 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17699 "\x33\x44\x55\x66\x77\x88\x99\xaa"
17700 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17701 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
17702 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
17703 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
17704 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
17705 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
17706 .klen = 8 + 64 + 24,
17707 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17708 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17709 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17710 .alen = 16,
17711 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17712 "\x53\x20\x63\x65\x65\x72\x73\x74"
17713 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17714 "\x20\x79\x65\x53\x72\x63\x74\x65"
17715 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17716 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17717 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17718 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17719 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17720 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17721 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17722 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17723 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17724 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17725 "\x63\x65\x65\x72\x73\x74\x54\x20"
17726 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17727 .ilen = 128,
17728 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
17729 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
17730 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
17731 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
17732 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
17733 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
17734 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
17735 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
17736 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
17737 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
17738 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
17739 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
17740 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
17741 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
17742 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
17743 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
17744 "\x41\xb5\x1f\xbb\xbd\x4e\xb8\x32"
17745 "\x22\x86\x4e\x57\x1b\x2a\xd8\x6e"
17746 "\xa9\xfb\xc8\xf3\xbf\x2d\xae\x2b"
17747 "\x3b\xbc\x41\xe8\x38\xbb\xf1\x60"
17748 "\x4c\x68\xa9\x4e\x8c\x73\xa7\xc0"
17749 "\x2a\x74\xd4\x65\x12\xcb\x55\xf2"
17750 "\xd5\x02\x6d\xe6\xaf\xc9\x2f\xf2"
17751 "\x57\xaa\x85\xf7\xf3\x6a\xcb\xdb",
17752 .rlen = 128 + 64,
17756 static struct cipher_testvec aes_lrw_enc_tv_template[] = {
17757 /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
17758 { /* LRW-32-AES 1 */
17759 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
17760 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
17761 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
17762 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
17763 .klen = 32,
17764 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17765 "\x00\x00\x00\x00\x00\x00\x00\x01",
17766 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17767 "\x38\x39\x41\x42\x43\x44\x45\x46",
17768 .ilen = 16,
17769 .result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
17770 "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
17771 .rlen = 16,
17772 }, { /* LRW-32-AES 2 */
17773 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
17774 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
17775 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
17776 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
17777 .klen = 32,
17778 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17779 "\x00\x00\x00\x00\x00\x00\x00\x02",
17780 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17781 "\x38\x39\x41\x42\x43\x44\x45\x46",
17782 .ilen = 16,
17783 .result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
17784 "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
17785 .rlen = 16,
17786 }, { /* LRW-32-AES 3 */
17787 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
17788 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
17789 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
17790 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
17791 .klen = 32,
17792 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17793 "\x00\x00\x00\x02\x00\x00\x00\x00",
17794 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17795 "\x38\x39\x41\x42\x43\x44\x45\x46",
17796 .ilen = 16,
17797 .result = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
17798 "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
17799 .rlen = 16,
17800 }, { /* LRW-32-AES 4 */
17801 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
17802 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
17803 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
17804 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
17805 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
17806 .klen = 40,
17807 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17808 "\x00\x00\x00\x00\x00\x00\x00\x01",
17809 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17810 "\x38\x39\x41\x42\x43\x44\x45\x46",
17811 .ilen = 16,
17812 .result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
17813 "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
17814 .rlen = 16,
17815 }, { /* LRW-32-AES 5 */
17816 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
17817 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
17818 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
17819 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
17820 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
17821 .klen = 40,
17822 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17823 "\x00\x00\x00\x02\x00\x00\x00\x00",
17824 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17825 "\x38\x39\x41\x42\x43\x44\x45\x46",
17826 .ilen = 16,
17827 .result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
17828 "\xc8\x60\x48\x02\x87\xe3\x34\x06",
17829 .rlen = 16,
17830 }, { /* LRW-32-AES 6 */
17831 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
17832 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
17833 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
17834 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
17835 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
17836 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
17837 .klen = 48,
17838 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17839 "\x00\x00\x00\x00\x00\x00\x00\x01",
17840 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17841 "\x38\x39\x41\x42\x43\x44\x45\x46",
17842 .ilen = 16,
17843 .result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
17844 "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
17845 .rlen = 16,
17846 }, { /* LRW-32-AES 7 */
17847 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
17848 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
17849 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
17850 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
17851 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
17852 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
17853 .klen = 48,
17854 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17855 "\x00\x00\x00\x02\x00\x00\x00\x00",
17856 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17857 "\x38\x39\x41\x42\x43\x44\x45\x46",
17858 .ilen = 16,
17859 .result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
17860 "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
17861 .rlen = 16,
17862 }, {
17863 /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
17864 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
17865 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
17866 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
17867 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
17868 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
17869 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
17870 .klen = 48,
17871 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17872 "\x00\x00\x00\x00\x00\x00\x00\x01",
17873 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
17874 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
17875 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
17876 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
17877 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
17878 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
17879 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
17880 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
17881 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
17882 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
17883 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
17884 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
17885 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
17886 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
17887 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
17888 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
17889 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
17890 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
17891 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
17892 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
17893 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
17894 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
17895 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
17896 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
17897 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
17898 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
17899 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
17900 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
17901 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
17902 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
17903 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
17904 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
17905 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
17906 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
17907 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
17908 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
17909 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
17910 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
17911 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
17912 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
17913 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
17914 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
17915 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
17916 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
17917 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
17918 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
17919 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
17920 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
17921 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
17922 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
17923 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
17924 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
17925 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
17926 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
17927 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
17928 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
17929 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
17930 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
17931 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
17932 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
17933 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
17934 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
17935 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
17936 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
17937 .ilen = 512,
17938 .result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
17939 "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
17940 "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
17941 "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
17942 "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
17943 "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
17944 "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
17945 "\xe8\x58\x46\x97\x39\x51\x07\xde"
17946 "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
17947 "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
17948 "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
17949 "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
17950 "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
17951 "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
17952 "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
17953 "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
17954 "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
17955 "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
17956 "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
17957 "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
17958 "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
17959 "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
17960 "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
17961 "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
17962 "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
17963 "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
17964 "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
17965 "\x41\x30\x58\xc5\x62\x74\x52\x1d"
17966 "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
17967 "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
17968 "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
17969 "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
17970 "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
17971 "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
17972 "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
17973 "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
17974 "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
17975 "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
17976 "\xb8\x79\x78\x97\x94\xff\x72\x13"
17977 "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
17978 "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
17979 "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
17980 "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
17981 "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
17982 "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
17983 "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
17984 "\x1e\x86\x53\x11\x53\x94\x00\xee"
17985 "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
17986 "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
17987 "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
17988 "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
17989 "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
17990 "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
17991 "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
17992 "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
17993 "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
17994 "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
17995 "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
17996 "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
17997 "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
17998 "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
17999 "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
18000 "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
18001 "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
18002 .rlen = 512,
18003 .also_non_np = 1,
18004 .np = 3,
18005 .tap = { 512 - 20, 4, 16 },
18009 static struct cipher_testvec aes_lrw_dec_tv_template[] = {
18010 /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
18011 /* same as enc vectors with input and result reversed */
18012 { /* LRW-32-AES 1 */
18013 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
18014 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
18015 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
18016 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
18017 .klen = 32,
18018 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18019 "\x00\x00\x00\x00\x00\x00\x00\x01",
18020 .input = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
18021 "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
18022 .ilen = 16,
18023 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18024 "\x38\x39\x41\x42\x43\x44\x45\x46",
18025 .rlen = 16,
18026 }, { /* LRW-32-AES 2 */
18027 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
18028 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
18029 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
18030 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
18031 .klen = 32,
18032 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18033 "\x00\x00\x00\x00\x00\x00\x00\x02",
18034 .input = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
18035 "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
18036 .ilen = 16,
18037 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18038 "\x38\x39\x41\x42\x43\x44\x45\x46",
18039 .rlen = 16,
18040 }, { /* LRW-32-AES 3 */
18041 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
18042 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
18043 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
18044 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
18045 .klen = 32,
18046 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18047 "\x00\x00\x00\x02\x00\x00\x00\x00",
18048 .input = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
18049 "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
18050 .ilen = 16,
18051 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18052 "\x38\x39\x41\x42\x43\x44\x45\x46",
18053 .rlen = 16,
18054 }, { /* LRW-32-AES 4 */
18055 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
18056 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
18057 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
18058 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
18059 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
18060 .klen = 40,
18061 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18062 "\x00\x00\x00\x00\x00\x00\x00\x01",
18063 .input = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
18064 "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
18065 .ilen = 16,
18066 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18067 "\x38\x39\x41\x42\x43\x44\x45\x46",
18068 .rlen = 16,
18069 }, { /* LRW-32-AES 5 */
18070 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
18071 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
18072 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
18073 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
18074 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
18075 .klen = 40,
18076 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18077 "\x00\x00\x00\x02\x00\x00\x00\x00",
18078 .input = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
18079 "\xc8\x60\x48\x02\x87\xe3\x34\x06",
18080 .ilen = 16,
18081 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18082 "\x38\x39\x41\x42\x43\x44\x45\x46",
18083 .rlen = 16,
18084 }, { /* LRW-32-AES 6 */
18085 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
18086 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
18087 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
18088 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
18089 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
18090 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
18091 .klen = 48,
18092 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18093 "\x00\x00\x00\x00\x00\x00\x00\x01",
18094 .input = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
18095 "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
18096 .ilen = 16,
18097 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18098 "\x38\x39\x41\x42\x43\x44\x45\x46",
18099 .rlen = 16,
18100 }, { /* LRW-32-AES 7 */
18101 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
18102 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
18103 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
18104 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
18105 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
18106 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
18107 .klen = 48,
18108 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18109 "\x00\x00\x00\x02\x00\x00\x00\x00",
18110 .input = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
18111 "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
18112 .ilen = 16,
18113 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18114 "\x38\x39\x41\x42\x43\x44\x45\x46",
18115 .rlen = 16,
18116 }, {
18117 /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
18118 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
18119 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
18120 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
18121 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
18122 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
18123 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
18124 .klen = 48,
18125 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18126 "\x00\x00\x00\x00\x00\x00\x00\x01",
18127 .input = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
18128 "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
18129 "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
18130 "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
18131 "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
18132 "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
18133 "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
18134 "\xe8\x58\x46\x97\x39\x51\x07\xde"
18135 "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
18136 "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
18137 "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
18138 "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
18139 "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
18140 "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
18141 "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
18142 "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
18143 "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
18144 "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
18145 "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
18146 "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
18147 "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
18148 "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
18149 "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
18150 "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
18151 "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
18152 "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
18153 "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
18154 "\x41\x30\x58\xc5\x62\x74\x52\x1d"
18155 "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
18156 "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
18157 "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
18158 "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
18159 "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
18160 "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
18161 "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
18162 "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
18163 "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
18164 "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
18165 "\xb8\x79\x78\x97\x94\xff\x72\x13"
18166 "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
18167 "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
18168 "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
18169 "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
18170 "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
18171 "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
18172 "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
18173 "\x1e\x86\x53\x11\x53\x94\x00\xee"
18174 "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
18175 "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
18176 "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
18177 "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
18178 "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
18179 "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
18180 "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
18181 "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
18182 "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
18183 "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
18184 "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
18185 "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
18186 "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
18187 "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
18188 "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
18189 "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
18190 "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
18191 .ilen = 512,
18192 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
18193 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
18194 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
18195 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
18196 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
18197 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
18198 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
18199 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
18200 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
18201 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
18202 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
18203 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
18204 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
18205 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
18206 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
18207 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
18208 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
18209 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
18210 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
18211 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
18212 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
18213 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
18214 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
18215 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
18216 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
18217 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
18218 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
18219 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
18220 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
18221 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
18222 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
18223 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
18224 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
18225 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
18226 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
18227 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
18228 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
18229 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
18230 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
18231 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
18232 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
18233 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
18234 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
18235 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
18236 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
18237 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
18238 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
18239 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
18240 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
18241 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
18242 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
18243 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
18244 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
18245 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
18246 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
18247 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
18248 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
18249 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
18250 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
18251 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
18252 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
18253 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
18254 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
18255 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
18256 .rlen = 512,
18257 .also_non_np = 1,
18258 .np = 3,
18259 .tap = { 512 - 20, 4, 16 },
18263 static struct cipher_testvec aes_xts_enc_tv_template[] = {
18264 /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
18265 { /* XTS-AES 1 */
18266 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
18267 "\x00\x00\x00\x00\x00\x00\x00\x00"
18268 "\x00\x00\x00\x00\x00\x00\x00\x00"
18269 "\x00\x00\x00\x00\x00\x00\x00\x00",
18270 .klen = 32,
18271 .fips_skip = 1,
18272 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18273 "\x00\x00\x00\x00\x00\x00\x00\x00",
18274 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
18275 "\x00\x00\x00\x00\x00\x00\x00\x00"
18276 "\x00\x00\x00\x00\x00\x00\x00\x00"
18277 "\x00\x00\x00\x00\x00\x00\x00\x00",
18278 .ilen = 32,
18279 .result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
18280 "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
18281 "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
18282 "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
18283 .rlen = 32,
18284 }, { /* XTS-AES 2 */
18285 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
18286 "\x11\x11\x11\x11\x11\x11\x11\x11"
18287 "\x22\x22\x22\x22\x22\x22\x22\x22"
18288 "\x22\x22\x22\x22\x22\x22\x22\x22",
18289 .klen = 32,
18290 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
18291 "\x00\x00\x00\x00\x00\x00\x00\x00",
18292 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
18293 "\x44\x44\x44\x44\x44\x44\x44\x44"
18294 "\x44\x44\x44\x44\x44\x44\x44\x44"
18295 "\x44\x44\x44\x44\x44\x44\x44\x44",
18296 .ilen = 32,
18297 .result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
18298 "\x39\x33\x40\x38\xac\xef\x83\x8b"
18299 "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
18300 "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
18301 .rlen = 32,
18302 }, { /* XTS-AES 3 */
18303 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
18304 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
18305 "\x22\x22\x22\x22\x22\x22\x22\x22"
18306 "\x22\x22\x22\x22\x22\x22\x22\x22",
18307 .klen = 32,
18308 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
18309 "\x00\x00\x00\x00\x00\x00\x00\x00",
18310 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
18311 "\x44\x44\x44\x44\x44\x44\x44\x44"
18312 "\x44\x44\x44\x44\x44\x44\x44\x44"
18313 "\x44\x44\x44\x44\x44\x44\x44\x44",
18314 .ilen = 32,
18315 .result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
18316 "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
18317 "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
18318 "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
18319 .rlen = 32,
18320 }, { /* XTS-AES 4 */
18321 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
18322 "\x23\x53\x60\x28\x74\x71\x35\x26"
18323 "\x31\x41\x59\x26\x53\x58\x97\x93"
18324 "\x23\x84\x62\x64\x33\x83\x27\x95",
18325 .klen = 32,
18326 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18327 "\x00\x00\x00\x00\x00\x00\x00\x00",
18328 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
18329 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18330 "\x10\x11\x12\x13\x14\x15\x16\x17"
18331 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18332 "\x20\x21\x22\x23\x24\x25\x26\x27"
18333 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18334 "\x30\x31\x32\x33\x34\x35\x36\x37"
18335 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18336 "\x40\x41\x42\x43\x44\x45\x46\x47"
18337 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18338 "\x50\x51\x52\x53\x54\x55\x56\x57"
18339 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18340 "\x60\x61\x62\x63\x64\x65\x66\x67"
18341 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18342 "\x70\x71\x72\x73\x74\x75\x76\x77"
18343 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18344 "\x80\x81\x82\x83\x84\x85\x86\x87"
18345 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18346 "\x90\x91\x92\x93\x94\x95\x96\x97"
18347 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18348 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18349 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18350 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18351 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18352 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18353 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18354 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18355 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18356 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18357 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18358 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18359 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
18360 "\x00\x01\x02\x03\x04\x05\x06\x07"
18361 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18362 "\x10\x11\x12\x13\x14\x15\x16\x17"
18363 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18364 "\x20\x21\x22\x23\x24\x25\x26\x27"
18365 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18366 "\x30\x31\x32\x33\x34\x35\x36\x37"
18367 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18368 "\x40\x41\x42\x43\x44\x45\x46\x47"
18369 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18370 "\x50\x51\x52\x53\x54\x55\x56\x57"
18371 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18372 "\x60\x61\x62\x63\x64\x65\x66\x67"
18373 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18374 "\x70\x71\x72\x73\x74\x75\x76\x77"
18375 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18376 "\x80\x81\x82\x83\x84\x85\x86\x87"
18377 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18378 "\x90\x91\x92\x93\x94\x95\x96\x97"
18379 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18380 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18381 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18382 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18383 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18384 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18385 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18386 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18387 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18388 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18389 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18390 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18391 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18392 .ilen = 512,
18393 .result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
18394 "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
18395 "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
18396 "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
18397 "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
18398 "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
18399 "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
18400 "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
18401 "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
18402 "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
18403 "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
18404 "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
18405 "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
18406 "\x22\x97\x61\x46\xae\x20\xce\x84"
18407 "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
18408 "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
18409 "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
18410 "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
18411 "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
18412 "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
18413 "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
18414 "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
18415 "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
18416 "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
18417 "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
18418 "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
18419 "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
18420 "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
18421 "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
18422 "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
18423 "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
18424 "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
18425 "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
18426 "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
18427 "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
18428 "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
18429 "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
18430 "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
18431 "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
18432 "\x55\xef\x52\x97\xca\x67\xe9\xf3"
18433 "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
18434 "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
18435 "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
18436 "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
18437 "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
18438 "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
18439 "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
18440 "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
18441 "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
18442 "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
18443 "\x18\x84\x69\x77\xae\x11\x9f\x7a"
18444 "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
18445 "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
18446 "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
18447 "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
18448 "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
18449 "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
18450 "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
18451 "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
18452 "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
18453 "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
18454 "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
18455 "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
18456 "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
18457 .rlen = 512,
18458 }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
18459 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
18460 "\x23\x53\x60\x28\x74\x71\x35\x26"
18461 "\x62\x49\x77\x57\x24\x70\x93\x69"
18462 "\x99\x59\x57\x49\x66\x96\x76\x27"
18463 "\x31\x41\x59\x26\x53\x58\x97\x93"
18464 "\x23\x84\x62\x64\x33\x83\x27\x95"
18465 "\x02\x88\x41\x97\x16\x93\x99\x37"
18466 "\x51\x05\x82\x09\x74\x94\x45\x92",
18467 .klen = 64,
18468 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
18469 "\x00\x00\x00\x00\x00\x00\x00\x00",
18470 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
18471 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18472 "\x10\x11\x12\x13\x14\x15\x16\x17"
18473 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18474 "\x20\x21\x22\x23\x24\x25\x26\x27"
18475 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18476 "\x30\x31\x32\x33\x34\x35\x36\x37"
18477 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18478 "\x40\x41\x42\x43\x44\x45\x46\x47"
18479 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18480 "\x50\x51\x52\x53\x54\x55\x56\x57"
18481 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18482 "\x60\x61\x62\x63\x64\x65\x66\x67"
18483 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18484 "\x70\x71\x72\x73\x74\x75\x76\x77"
18485 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18486 "\x80\x81\x82\x83\x84\x85\x86\x87"
18487 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18488 "\x90\x91\x92\x93\x94\x95\x96\x97"
18489 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18490 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18491 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18492 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18493 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18494 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18495 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18496 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18497 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18498 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18499 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18500 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18501 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
18502 "\x00\x01\x02\x03\x04\x05\x06\x07"
18503 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18504 "\x10\x11\x12\x13\x14\x15\x16\x17"
18505 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18506 "\x20\x21\x22\x23\x24\x25\x26\x27"
18507 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18508 "\x30\x31\x32\x33\x34\x35\x36\x37"
18509 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18510 "\x40\x41\x42\x43\x44\x45\x46\x47"
18511 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18512 "\x50\x51\x52\x53\x54\x55\x56\x57"
18513 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18514 "\x60\x61\x62\x63\x64\x65\x66\x67"
18515 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18516 "\x70\x71\x72\x73\x74\x75\x76\x77"
18517 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18518 "\x80\x81\x82\x83\x84\x85\x86\x87"
18519 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18520 "\x90\x91\x92\x93\x94\x95\x96\x97"
18521 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18522 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18523 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18524 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18525 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18526 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18527 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18528 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18529 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18530 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18531 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18532 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18533 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18534 .ilen = 512,
18535 .result = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
18536 "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
18537 "\xea\x00\x80\x3f\x5e\x48\x23\x57"
18538 "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
18539 "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
18540 "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
18541 "\x68\x0a\x86\xac\x35\xad\xfc\x33"
18542 "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
18543 "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
18544 "\xb1\x08\xfd\x10\x98\xba\xec\x70"
18545 "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
18546 "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
18547 "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
18548 "\xae\xba\x12\x29\x61\xd0\x3a\x75"
18549 "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
18550 "\x00\x02\x08\x87\x89\x14\x29\xca"
18551 "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
18552 "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
18553 "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
18554 "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
18555 "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
18556 "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
18557 "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
18558 "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
18559 "\x93\xec\x05\xc5\x2e\x04\x93\xef"
18560 "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
18561 "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
18562 "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
18563 "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
18564 "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
18565 "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
18566 "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
18567 "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
18568 "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
18569 "\xbc\x48\x14\x57\x77\x8f\x61\x60"
18570 "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
18571 "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
18572 "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
18573 "\xf4\xc3\x33\xec\x44\x23\x88\x51"
18574 "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
18575 "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
18576 "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
18577 "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
18578 "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
18579 "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
18580 "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
18581 "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
18582 "\x92\x5f\xed\xc4\xae\x74\xff\xac"
18583 "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
18584 "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
18585 "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
18586 "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
18587 "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
18588 "\x94\x30\x54\xff\x84\x01\x14\x93"
18589 "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
18590 "\x53\x76\x44\x1a\x77\xed\x43\x85"
18591 "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
18592 "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
18593 "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
18594 "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
18595 "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
18596 "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
18597 "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
18598 "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
18599 .rlen = 512,
18600 .also_non_np = 1,
18601 .np = 3,
18602 .tap = { 512 - 20, 4, 16 },
18606 static struct cipher_testvec aes_xts_dec_tv_template[] = {
18607 /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
18608 { /* XTS-AES 1 */
18609 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
18610 "\x00\x00\x00\x00\x00\x00\x00\x00"
18611 "\x00\x00\x00\x00\x00\x00\x00\x00"
18612 "\x00\x00\x00\x00\x00\x00\x00\x00",
18613 .klen = 32,
18614 .fips_skip = 1,
18615 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18616 "\x00\x00\x00\x00\x00\x00\x00\x00",
18617 .input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
18618 "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
18619 "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
18620 "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
18621 .ilen = 32,
18622 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
18623 "\x00\x00\x00\x00\x00\x00\x00\x00"
18624 "\x00\x00\x00\x00\x00\x00\x00\x00"
18625 "\x00\x00\x00\x00\x00\x00\x00\x00",
18626 .rlen = 32,
18627 }, { /* XTS-AES 2 */
18628 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
18629 "\x11\x11\x11\x11\x11\x11\x11\x11"
18630 "\x22\x22\x22\x22\x22\x22\x22\x22"
18631 "\x22\x22\x22\x22\x22\x22\x22\x22",
18632 .klen = 32,
18633 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
18634 "\x00\x00\x00\x00\x00\x00\x00\x00",
18635 .input = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
18636 "\x39\x33\x40\x38\xac\xef\x83\x8b"
18637 "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
18638 "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
18639 .ilen = 32,
18640 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
18641 "\x44\x44\x44\x44\x44\x44\x44\x44"
18642 "\x44\x44\x44\x44\x44\x44\x44\x44"
18643 "\x44\x44\x44\x44\x44\x44\x44\x44",
18644 .rlen = 32,
18645 }, { /* XTS-AES 3 */
18646 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
18647 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
18648 "\x22\x22\x22\x22\x22\x22\x22\x22"
18649 "\x22\x22\x22\x22\x22\x22\x22\x22",
18650 .klen = 32,
18651 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
18652 "\x00\x00\x00\x00\x00\x00\x00\x00",
18653 .input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
18654 "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
18655 "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
18656 "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
18657 .ilen = 32,
18658 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
18659 "\x44\x44\x44\x44\x44\x44\x44\x44"
18660 "\x44\x44\x44\x44\x44\x44\x44\x44"
18661 "\x44\x44\x44\x44\x44\x44\x44\x44",
18662 .rlen = 32,
18663 }, { /* XTS-AES 4 */
18664 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
18665 "\x23\x53\x60\x28\x74\x71\x35\x26"
18666 "\x31\x41\x59\x26\x53\x58\x97\x93"
18667 "\x23\x84\x62\x64\x33\x83\x27\x95",
18668 .klen = 32,
18669 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18670 "\x00\x00\x00\x00\x00\x00\x00\x00",
18671 .input = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
18672 "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
18673 "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
18674 "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
18675 "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
18676 "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
18677 "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
18678 "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
18679 "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
18680 "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
18681 "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
18682 "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
18683 "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
18684 "\x22\x97\x61\x46\xae\x20\xce\x84"
18685 "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
18686 "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
18687 "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
18688 "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
18689 "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
18690 "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
18691 "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
18692 "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
18693 "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
18694 "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
18695 "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
18696 "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
18697 "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
18698 "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
18699 "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
18700 "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
18701 "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
18702 "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
18703 "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
18704 "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
18705 "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
18706 "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
18707 "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
18708 "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
18709 "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
18710 "\x55\xef\x52\x97\xca\x67\xe9\xf3"
18711 "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
18712 "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
18713 "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
18714 "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
18715 "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
18716 "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
18717 "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
18718 "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
18719 "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
18720 "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
18721 "\x18\x84\x69\x77\xae\x11\x9f\x7a"
18722 "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
18723 "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
18724 "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
18725 "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
18726 "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
18727 "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
18728 "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
18729 "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
18730 "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
18731 "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
18732 "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
18733 "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
18734 "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
18735 .ilen = 512,
18736 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
18737 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18738 "\x10\x11\x12\x13\x14\x15\x16\x17"
18739 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18740 "\x20\x21\x22\x23\x24\x25\x26\x27"
18741 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18742 "\x30\x31\x32\x33\x34\x35\x36\x37"
18743 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18744 "\x40\x41\x42\x43\x44\x45\x46\x47"
18745 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18746 "\x50\x51\x52\x53\x54\x55\x56\x57"
18747 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18748 "\x60\x61\x62\x63\x64\x65\x66\x67"
18749 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18750 "\x70\x71\x72\x73\x74\x75\x76\x77"
18751 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18752 "\x80\x81\x82\x83\x84\x85\x86\x87"
18753 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18754 "\x90\x91\x92\x93\x94\x95\x96\x97"
18755 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18756 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18757 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18758 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18759 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18760 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18761 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18762 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18763 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18764 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18765 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18766 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18767 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
18768 "\x00\x01\x02\x03\x04\x05\x06\x07"
18769 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18770 "\x10\x11\x12\x13\x14\x15\x16\x17"
18771 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18772 "\x20\x21\x22\x23\x24\x25\x26\x27"
18773 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18774 "\x30\x31\x32\x33\x34\x35\x36\x37"
18775 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18776 "\x40\x41\x42\x43\x44\x45\x46\x47"
18777 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18778 "\x50\x51\x52\x53\x54\x55\x56\x57"
18779 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18780 "\x60\x61\x62\x63\x64\x65\x66\x67"
18781 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18782 "\x70\x71\x72\x73\x74\x75\x76\x77"
18783 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18784 "\x80\x81\x82\x83\x84\x85\x86\x87"
18785 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18786 "\x90\x91\x92\x93\x94\x95\x96\x97"
18787 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18788 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18789 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18790 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18791 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18792 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18793 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18794 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18795 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18796 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18797 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18798 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18799 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18800 .rlen = 512,
18801 }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
18802 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
18803 "\x23\x53\x60\x28\x74\x71\x35\x26"
18804 "\x62\x49\x77\x57\x24\x70\x93\x69"
18805 "\x99\x59\x57\x49\x66\x96\x76\x27"
18806 "\x31\x41\x59\x26\x53\x58\x97\x93"
18807 "\x23\x84\x62\x64\x33\x83\x27\x95"
18808 "\x02\x88\x41\x97\x16\x93\x99\x37"
18809 "\x51\x05\x82\x09\x74\x94\x45\x92",
18810 .klen = 64,
18811 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
18812 "\x00\x00\x00\x00\x00\x00\x00\x00",
18813 .input = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
18814 "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
18815 "\xea\x00\x80\x3f\x5e\x48\x23\x57"
18816 "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
18817 "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
18818 "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
18819 "\x68\x0a\x86\xac\x35\xad\xfc\x33"
18820 "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
18821 "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
18822 "\xb1\x08\xfd\x10\x98\xba\xec\x70"
18823 "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
18824 "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
18825 "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
18826 "\xae\xba\x12\x29\x61\xd0\x3a\x75"
18827 "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
18828 "\x00\x02\x08\x87\x89\x14\x29\xca"
18829 "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
18830 "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
18831 "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
18832 "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
18833 "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
18834 "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
18835 "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
18836 "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
18837 "\x93\xec\x05\xc5\x2e\x04\x93\xef"
18838 "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
18839 "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
18840 "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
18841 "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
18842 "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
18843 "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
18844 "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
18845 "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
18846 "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
18847 "\xbc\x48\x14\x57\x77\x8f\x61\x60"
18848 "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
18849 "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
18850 "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
18851 "\xf4\xc3\x33\xec\x44\x23\x88\x51"
18852 "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
18853 "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
18854 "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
18855 "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
18856 "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
18857 "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
18858 "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
18859 "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
18860 "\x92\x5f\xed\xc4\xae\x74\xff\xac"
18861 "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
18862 "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
18863 "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
18864 "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
18865 "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
18866 "\x94\x30\x54\xff\x84\x01\x14\x93"
18867 "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
18868 "\x53\x76\x44\x1a\x77\xed\x43\x85"
18869 "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
18870 "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
18871 "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
18872 "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
18873 "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
18874 "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
18875 "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
18876 "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
18877 .ilen = 512,
18878 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
18879 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18880 "\x10\x11\x12\x13\x14\x15\x16\x17"
18881 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18882 "\x20\x21\x22\x23\x24\x25\x26\x27"
18883 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18884 "\x30\x31\x32\x33\x34\x35\x36\x37"
18885 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18886 "\x40\x41\x42\x43\x44\x45\x46\x47"
18887 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18888 "\x50\x51\x52\x53\x54\x55\x56\x57"
18889 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18890 "\x60\x61\x62\x63\x64\x65\x66\x67"
18891 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18892 "\x70\x71\x72\x73\x74\x75\x76\x77"
18893 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18894 "\x80\x81\x82\x83\x84\x85\x86\x87"
18895 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18896 "\x90\x91\x92\x93\x94\x95\x96\x97"
18897 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18898 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18899 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18900 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18901 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18902 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18903 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18904 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18905 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18906 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18907 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18908 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18909 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
18910 "\x00\x01\x02\x03\x04\x05\x06\x07"
18911 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18912 "\x10\x11\x12\x13\x14\x15\x16\x17"
18913 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18914 "\x20\x21\x22\x23\x24\x25\x26\x27"
18915 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18916 "\x30\x31\x32\x33\x34\x35\x36\x37"
18917 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18918 "\x40\x41\x42\x43\x44\x45\x46\x47"
18919 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18920 "\x50\x51\x52\x53\x54\x55\x56\x57"
18921 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18922 "\x60\x61\x62\x63\x64\x65\x66\x67"
18923 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18924 "\x70\x71\x72\x73\x74\x75\x76\x77"
18925 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18926 "\x80\x81\x82\x83\x84\x85\x86\x87"
18927 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18928 "\x90\x91\x92\x93\x94\x95\x96\x97"
18929 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18930 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18931 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18932 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18933 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18934 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18935 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18936 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18937 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18938 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18939 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18940 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18941 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18942 .rlen = 512,
18943 .also_non_np = 1,
18944 .np = 3,
18945 .tap = { 512 - 20, 4, 16 },
18950 static struct cipher_testvec aes_ctr_enc_tv_template[] = {
18951 { /* From NIST Special Publication 800-38A, Appendix F.5 */
18952 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
18953 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
18954 .klen = 16,
18955 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18956 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18957 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
18958 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
18959 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
18960 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
18961 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
18962 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
18963 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
18964 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
18965 .ilen = 64,
18966 .result = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
18967 "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
18968 "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
18969 "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
18970 "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
18971 "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
18972 "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
18973 "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
18974 .rlen = 64,
18975 }, {
18976 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
18977 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
18978 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
18979 .klen = 24,
18980 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18981 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18982 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
18983 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
18984 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
18985 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
18986 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
18987 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
18988 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
18989 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
18990 .ilen = 64,
18991 .result = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
18992 "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
18993 "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
18994 "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
18995 "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
18996 "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
18997 "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
18998 "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
18999 .rlen = 64,
19000 }, {
19001 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
19002 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
19003 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
19004 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
19005 .klen = 32,
19006 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
19007 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
19008 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
19009 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
19010 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
19011 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
19012 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
19013 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
19014 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
19015 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
19016 .ilen = 64,
19017 .result = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
19018 "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
19019 "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
19020 "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
19021 "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
19022 "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
19023 "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
19024 "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
19025 .rlen = 64,
19026 }, { /* Generated with Crypto++ */
19027 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
19028 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
19029 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
19030 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
19031 .klen = 32,
19032 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
19033 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
19034 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
19035 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
19036 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
19037 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
19038 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
19039 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
19040 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
19041 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
19042 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
19043 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
19044 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
19045 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
19046 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
19047 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
19048 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
19049 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
19050 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
19051 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
19052 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
19053 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
19054 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
19055 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
19056 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
19057 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
19058 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
19059 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
19060 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
19061 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
19062 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
19063 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
19064 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
19065 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
19066 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
19067 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
19068 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
19069 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
19070 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
19071 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
19072 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
19073 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
19074 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
19075 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
19076 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
19077 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
19078 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
19079 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
19080 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
19081 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
19082 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
19083 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
19084 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
19085 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
19086 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
19087 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
19088 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
19089 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
19090 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
19091 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
19092 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
19093 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
19094 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
19095 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
19096 .ilen = 496,
19097 .result = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
19098 "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
19099 "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
19100 "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
19101 "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
19102 "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
19103 "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
19104 "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
19105 "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
19106 "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
19107 "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
19108 "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
19109 "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
19110 "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
19111 "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
19112 "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
19113 "\x34\x4B\x31\x69\x84\x66\x96\x44"
19114 "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
19115 "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
19116 "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
19117 "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
19118 "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
19119 "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
19120 "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
19121 "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
19122 "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
19123 "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
19124 "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
19125 "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
19126 "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
19127 "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
19128 "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
19129 "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
19130 "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
19131 "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
19132 "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
19133 "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
19134 "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
19135 "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
19136 "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
19137 "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
19138 "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
19139 "\x85\x99\x22\xE8\x91\x38\x70\x83"
19140 "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
19141 "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
19142 "\x2F\x69\xEE\x84\x36\x44\x76\x98"
19143 "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
19144 "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
19145 "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
19146 "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
19147 "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
19148 "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
19149 "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
19150 "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
19151 "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
19152 "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
19153 "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
19154 "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
19155 "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
19156 "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
19157 "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
19158 "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
19159 .rlen = 496,
19160 .also_non_np = 1,
19161 .np = 3,
19162 .tap = { 496 - 20, 4, 16 },
19163 }, { /* Generated with Crypto++ */
19164 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
19165 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
19166 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
19167 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
19168 .klen = 32,
19169 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
19170 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
19171 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
19172 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
19173 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
19174 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
19175 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
19176 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
19177 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
19178 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
19179 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
19180 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
19181 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
19182 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
19183 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
19184 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
19185 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
19186 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
19187 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
19188 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
19189 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
19190 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
19191 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
19192 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
19193 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
19194 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
19195 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
19196 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
19197 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
19198 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
19199 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
19200 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
19201 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
19202 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
19203 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
19204 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
19205 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
19206 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
19207 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
19208 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
19209 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
19210 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
19211 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
19212 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
19213 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
19214 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
19215 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
19216 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
19217 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
19218 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
19219 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
19220 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
19221 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
19222 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
19223 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
19224 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
19225 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
19226 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
19227 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
19228 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
19229 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
19230 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
19231 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
19232 "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
19233 "\x7B\xE4\x4D",
19234 .ilen = 499,
19235 .result = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
19236 "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
19237 "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
19238 "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
19239 "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
19240 "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
19241 "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
19242 "\x75\xDE\x71\x86\x3C\x98\x23\x44"
19243 "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
19244 "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
19245 "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
19246 "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
19247 "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
19248 "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
19249 "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
19250 "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
19251 "\xA8\x28\x69\x65\x31\xE1\x45\x83"
19252 "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
19253 "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
19254 "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
19255 "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
19256 "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
19257 "\x45\x18\x18\x74\x19\xAD\x71\x01"
19258 "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
19259 "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
19260 "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
19261 "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
19262 "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
19263 "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
19264 "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
19265 "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
19266 "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
19267 "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
19268 "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
19269 "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
19270 "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
19271 "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
19272 "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
19273 "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
19274 "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
19275 "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
19276 "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
19277 "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
19278 "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
19279 "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
19280 "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
19281 "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
19282 "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
19283 "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
19284 "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
19285 "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
19286 "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
19287 "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
19288 "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
19289 "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
19290 "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
19291 "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
19292 "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
19293 "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
19294 "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
19295 "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
19296 "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
19297 "\xFB\xF2\x3F",
19298 .rlen = 499,
19299 .also_non_np = 1,
19300 .np = 2,
19301 .tap = { 499 - 16, 16 },
19305 static struct cipher_testvec aes_ctr_dec_tv_template[] = {
19306 { /* From NIST Special Publication 800-38A, Appendix F.5 */
19307 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
19308 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
19309 .klen = 16,
19310 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
19311 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
19312 .input = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
19313 "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
19314 "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
19315 "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
19316 "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
19317 "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
19318 "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
19319 "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
19320 .ilen = 64,
19321 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
19322 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
19323 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
19324 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
19325 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
19326 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
19327 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
19328 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
19329 .rlen = 64,
19330 }, {
19331 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
19332 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
19333 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
19334 .klen = 24,
19335 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
19336 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
19337 .input = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
19338 "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
19339 "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
19340 "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
19341 "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
19342 "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
19343 "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
19344 "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
19345 .ilen = 64,
19346 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
19347 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
19348 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
19349 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
19350 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
19351 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
19352 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
19353 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
19354 .rlen = 64,
19355 }, {
19356 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
19357 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
19358 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
19359 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
19360 .klen = 32,
19361 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
19362 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
19363 .input = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
19364 "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
19365 "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
19366 "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
19367 "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
19368 "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
19369 "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
19370 "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
19371 .ilen = 64,
19372 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
19373 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
19374 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
19375 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
19376 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
19377 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
19378 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
19379 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
19380 .rlen = 64,
19381 }, { /* Generated with Crypto++ */
19382 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
19383 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
19384 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
19385 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
19386 .klen = 32,
19387 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
19388 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
19389 .input = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
19390 "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
19391 "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
19392 "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
19393 "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
19394 "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
19395 "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
19396 "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
19397 "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
19398 "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
19399 "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
19400 "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
19401 "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
19402 "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
19403 "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
19404 "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
19405 "\x34\x4B\x31\x69\x84\x66\x96\x44"
19406 "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
19407 "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
19408 "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
19409 "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
19410 "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
19411 "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
19412 "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
19413 "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
19414 "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
19415 "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
19416 "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
19417 "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
19418 "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
19419 "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
19420 "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
19421 "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
19422 "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
19423 "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
19424 "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
19425 "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
19426 "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
19427 "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
19428 "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
19429 "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
19430 "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
19431 "\x85\x99\x22\xE8\x91\x38\x70\x83"
19432 "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
19433 "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
19434 "\x2F\x69\xEE\x84\x36\x44\x76\x98"
19435 "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
19436 "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
19437 "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
19438 "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
19439 "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
19440 "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
19441 "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
19442 "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
19443 "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
19444 "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
19445 "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
19446 "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
19447 "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
19448 "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
19449 "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
19450 "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
19451 .ilen = 496,
19452 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
19453 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
19454 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
19455 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
19456 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
19457 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
19458 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
19459 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
19460 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
19461 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
19462 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
19463 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
19464 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
19465 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
19466 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
19467 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
19468 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
19469 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
19470 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
19471 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
19472 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
19473 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
19474 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
19475 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
19476 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
19477 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
19478 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
19479 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
19480 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
19481 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
19482 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
19483 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
19484 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
19485 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
19486 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
19487 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
19488 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
19489 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
19490 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
19491 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
19492 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
19493 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
19494 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
19495 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
19496 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
19497 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
19498 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
19499 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
19500 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
19501 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
19502 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
19503 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
19504 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
19505 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
19506 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
19507 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
19508 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
19509 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
19510 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
19511 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
19512 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
19513 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
19514 .rlen = 496,
19515 .also_non_np = 1,
19516 .np = 3,
19517 .tap = { 496 - 20, 4, 16 },
19518 }, { /* Generated with Crypto++ */
19519 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
19520 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
19521 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
19522 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
19523 .klen = 32,
19524 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
19525 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
19526 .input = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
19527 "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
19528 "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
19529 "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
19530 "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
19531 "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
19532 "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
19533 "\x75\xDE\x71\x86\x3C\x98\x23\x44"
19534 "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
19535 "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
19536 "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
19537 "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
19538 "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
19539 "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
19540 "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
19541 "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
19542 "\xA8\x28\x69\x65\x31\xE1\x45\x83"
19543 "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
19544 "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
19545 "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
19546 "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
19547 "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
19548 "\x45\x18\x18\x74\x19\xAD\x71\x01"
19549 "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
19550 "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
19551 "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
19552 "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
19553 "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
19554 "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
19555 "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
19556 "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
19557 "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
19558 "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
19559 "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
19560 "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
19561 "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
19562 "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
19563 "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
19564 "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
19565 "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
19566 "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
19567 "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
19568 "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
19569 "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
19570 "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
19571 "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
19572 "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
19573 "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
19574 "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
19575 "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
19576 "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
19577 "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
19578 "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
19579 "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
19580 "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
19581 "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
19582 "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
19583 "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
19584 "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
19585 "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
19586 "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
19587 "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
19588 "\xFB\xF2\x3F",
19589 .ilen = 499,
19590 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
19591 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
19592 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
19593 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
19594 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
19595 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
19596 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
19597 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
19598 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
19599 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
19600 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
19601 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
19602 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
19603 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
19604 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
19605 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
19606 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
19607 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
19608 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
19609 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
19610 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
19611 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
19612 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
19613 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
19614 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
19615 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
19616 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
19617 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
19618 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
19619 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
19620 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
19621 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
19622 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
19623 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
19624 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
19625 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
19626 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
19627 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
19628 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
19629 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
19630 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
19631 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
19632 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
19633 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
19634 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
19635 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
19636 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
19637 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
19638 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
19639 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
19640 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
19641 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
19642 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
19643 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
19644 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
19645 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
19646 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
19647 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
19648 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
19649 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
19650 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
19651 "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
19652 "\x7B\xE4\x4D",
19653 .rlen = 499,
19654 .also_non_np = 1,
19655 .np = 2,
19656 .tap = { 499 - 16, 16 },
19660 static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = {
19661 { /* From RFC 3686 */
19662 .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
19663 "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
19664 "\x00\x00\x00\x30",
19665 .klen = 20,
19666 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
19667 .input = "Single block msg",
19668 .ilen = 16,
19669 .result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
19670 "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
19671 .rlen = 16,
19672 }, {
19673 .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
19674 "\x43\xd6\xce\x1f\x32\x53\x91\x63"
19675 "\x00\x6c\xb6\xdb",
19676 .klen = 20,
19677 .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
19678 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
19679 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19680 "\x10\x11\x12\x13\x14\x15\x16\x17"
19681 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
19682 .ilen = 32,
19683 .result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
19684 "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
19685 "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
19686 "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
19687 .rlen = 32,
19688 }, {
19689 .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
19690 "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
19691 "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
19692 "\x00\x00\x00\x48",
19693 .klen = 28,
19694 .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
19695 .input = "Single block msg",
19696 .ilen = 16,
19697 .result = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
19698 "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
19699 .rlen = 16,
19700 }, {
19701 .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
19702 "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
19703 "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
19704 "\x00\x96\xb0\x3b",
19705 .klen = 28,
19706 .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
19707 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
19708 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19709 "\x10\x11\x12\x13\x14\x15\x16\x17"
19710 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
19711 .ilen = 32,
19712 .result = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
19713 "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
19714 "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
19715 "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
19716 .rlen = 32,
19717 }, {
19718 .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
19719 "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
19720 "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
19721 "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
19722 "\x00\x00\x00\x60",
19723 .klen = 36,
19724 .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
19725 .input = "Single block msg",
19726 .ilen = 16,
19727 .result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
19728 "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
19729 .rlen = 16,
19730 }, {
19731 .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
19732 "\x07\x96\x36\x58\x79\xef\xf8\x86"
19733 "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
19734 "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
19735 "\x00\xfa\xac\x24",
19736 .klen = 36,
19737 .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
19738 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
19739 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19740 "\x10\x11\x12\x13\x14\x15\x16\x17"
19741 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
19742 .ilen = 32,
19743 .result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
19744 "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
19745 "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
19746 "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
19747 .rlen = 32,
19748 }, {
19749 // generated using Crypto++
19750 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
19751 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19752 "\x10\x11\x12\x13\x14\x15\x16\x17"
19753 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
19754 "\x00\x00\x00\x00",
19755 .klen = 32 + 4,
19756 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
19757 .input =
19758 "\x00\x01\x02\x03\x04\x05\x06\x07"
19759 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19760 "\x10\x11\x12\x13\x14\x15\x16\x17"
19761 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
19762 "\x20\x21\x22\x23\x24\x25\x26\x27"
19763 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
19764 "\x30\x31\x32\x33\x34\x35\x36\x37"
19765 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
19766 "\x40\x41\x42\x43\x44\x45\x46\x47"
19767 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
19768 "\x50\x51\x52\x53\x54\x55\x56\x57"
19769 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
19770 "\x60\x61\x62\x63\x64\x65\x66\x67"
19771 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
19772 "\x70\x71\x72\x73\x74\x75\x76\x77"
19773 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
19774 "\x80\x81\x82\x83\x84\x85\x86\x87"
19775 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
19776 "\x90\x91\x92\x93\x94\x95\x96\x97"
19777 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
19778 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
19779 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
19780 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
19781 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
19782 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
19783 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
19784 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
19785 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
19786 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
19787 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
19788 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
19789 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
19790 "\x00\x03\x06\x09\x0c\x0f\x12\x15"
19791 "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
19792 "\x30\x33\x36\x39\x3c\x3f\x42\x45"
19793 "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
19794 "\x60\x63\x66\x69\x6c\x6f\x72\x75"
19795 "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
19796 "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
19797 "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
19798 "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
19799 "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
19800 "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
19801 "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
19802 "\x20\x23\x26\x29\x2c\x2f\x32\x35"
19803 "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
19804 "\x50\x53\x56\x59\x5c\x5f\x62\x65"
19805 "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
19806 "\x80\x83\x86\x89\x8c\x8f\x92\x95"
19807 "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
19808 "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
19809 "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
19810 "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
19811 "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
19812 "\x10\x13\x16\x19\x1c\x1f\x22\x25"
19813 "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
19814 "\x40\x43\x46\x49\x4c\x4f\x52\x55"
19815 "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
19816 "\x70\x73\x76\x79\x7c\x7f\x82\x85"
19817 "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
19818 "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
19819 "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
19820 "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
19821 "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
19822 "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
19823 "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
19824 "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
19825 "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
19826 "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
19827 "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
19828 "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
19829 "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
19830 "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
19831 "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
19832 "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
19833 "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
19834 "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
19835 "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
19836 "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
19837 "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
19838 "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
19839 "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
19840 "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
19841 "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
19842 "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
19843 "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
19844 "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
19845 "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
19846 "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
19847 "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
19848 "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
19849 "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
19850 "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
19851 "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
19852 "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
19853 "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
19854 "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
19855 "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
19856 "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
19857 "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
19858 "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
19859 "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
19860 "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
19861 "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
19862 "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
19863 "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
19864 "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
19865 "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
19866 "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
19867 "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
19868 "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
19869 "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
19870 "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
19871 "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
19872 "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
19873 "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
19874 "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
19875 "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
19876 "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
19877 "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
19878 "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
19879 "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
19880 "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
19881 "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
19882 "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
19883 "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
19884 "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
19885 "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
19886 "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
19887 "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
19888 "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
19889 "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
19890 "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
19891 "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
19892 "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
19893 "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
19894 "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
19895 "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
19896 "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
19897 "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
19898 "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
19899 "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
19900 "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
19901 "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
19902 "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
19903 "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
19904 "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
19905 "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
19906 "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
19907 "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
19908 "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
19909 "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
19910 "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
19911 "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
19912 "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
19913 "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
19914 "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
19915 "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
19916 "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
19917 "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
19918 "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
19919 "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
19920 "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
19921 "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
19922 "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
19923 "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
19924 "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
19925 "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
19926 "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
19927 "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
19928 "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
19929 "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
19930 "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
19931 "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
19932 "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
19933 "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
19934 "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
19935 "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
19936 "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
19937 "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
19938 "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
19939 "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
19940 "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
19941 "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
19942 "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
19943 "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
19944 "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
19945 "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
19946 "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
19947 "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
19948 "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
19949 "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
19950 "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
19951 "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
19952 "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
19953 "\x38\x45\x52\x5f\x6c\x79\x86\x93"
19954 "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
19955 "\x08\x15\x22\x2f\x3c\x49\x56\x63"
19956 "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
19957 "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
19958 "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
19959 "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
19960 "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
19961 "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
19962 "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
19963 "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
19964 "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
19965 "\x18\x25\x32\x3f\x4c\x59\x66\x73"
19966 "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
19967 "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
19968 "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
19969 "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
19970 "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
19971 "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
19972 "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
19973 "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
19974 "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
19975 "\x28\x35\x42\x4f\x5c\x69\x76\x83"
19976 "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
19977 "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
19978 "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
19979 "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
19980 "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
19981 "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
19982 "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
19983 "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
19984 "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
19985 "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
19986 "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
19987 "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
19988 "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
19989 "\x48\x57\x66\x75\x84\x93\xa2\xb1"
19990 "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
19991 "\x38\x47\x56\x65\x74\x83\x92\xa1"
19992 "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
19993 "\x28\x37\x46\x55\x64\x73\x82\x91"
19994 "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
19995 "\x18\x27\x36\x45\x54\x63\x72\x81"
19996 "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
19997 "\x08\x17\x26\x35\x44\x53\x62\x71"
19998 "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
19999 "\xf8\x07\x16\x25\x34\x43\x52\x61"
20000 "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
20001 "\xe8\xf7\x06\x15\x24\x33\x42\x51"
20002 "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
20003 "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
20004 "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
20005 "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
20006 "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
20007 "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
20008 "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
20009 "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
20010 "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
20011 "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
20012 "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
20013 "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
20014 "\x00\x11\x22\x33\x44\x55\x66\x77"
20015 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
20016 "\x10\x21\x32\x43\x54\x65\x76\x87"
20017 "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
20018 "\x20\x31\x42\x53\x64\x75\x86\x97"
20019 "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
20020 "\x30\x41\x52\x63\x74\x85\x96\xa7"
20021 "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
20022 "\x40\x51\x62\x73\x84\x95\xa6\xb7"
20023 "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
20024 "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
20025 "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
20026 "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
20027 "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
20028 "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
20029 "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
20030 "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
20031 "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
20032 "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
20033 "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
20034 "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
20035 "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
20036 "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
20037 "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
20038 "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
20039 "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
20040 "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
20041 "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
20042 "\xe0\xf1\x02\x13\x24\x35\x46\x57"
20043 "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
20044 "\xf0\x01\x12\x23\x34\x45\x56\x67"
20045 "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
20046 "\x00\x13\x26\x39\x4c\x5f\x72\x85"
20047 "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
20048 "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
20049 "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
20050 "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
20051 "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
20052 "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
20053 "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
20054 "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
20055 "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
20056 "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
20057 "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
20058 "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
20059 "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
20060 "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
20061 "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
20062 "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
20063 "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
20064 "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
20065 "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
20066 "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
20067 "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
20068 "\x10\x23\x36\x49\x5c\x6f\x82\x95"
20069 "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
20070 "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
20071 "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
20072 "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
20073 "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
20074 "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
20075 "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
20076 "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
20077 "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
20078 "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
20079 "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
20080 "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
20081 "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
20082 "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
20083 "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
20084 "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
20085 "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
20086 "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
20087 "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
20088 "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
20089 "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
20090 "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
20091 "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
20092 "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
20093 "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
20094 "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
20095 "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
20096 "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
20097 "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
20098 "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
20099 "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
20100 "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
20101 "\x18\x2d\x42\x57\x6c\x81\x96\xab"
20102 "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
20103 "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
20104 "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
20105 "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
20106 "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
20107 "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
20108 "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
20109 "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
20110 "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
20111 "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
20112 "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
20113 "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
20114 "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
20115 "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
20116 "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
20117 "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
20118 "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
20119 "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
20120 "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
20121 "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
20122 "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
20123 "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
20124 "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
20125 "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
20126 "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
20127 "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
20128 "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
20129 "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
20130 "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
20131 "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
20132 "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
20133 "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
20134 "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
20135 "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
20136 "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
20137 "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
20138 "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
20139 "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
20140 "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
20141 "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
20142 "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
20143 "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
20144 "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
20145 "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
20146 "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
20147 "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
20148 "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
20149 "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
20150 "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
20151 "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
20152 "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
20153 "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
20154 "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
20155 "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
20156 "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
20157 "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
20158 "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
20159 "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
20160 "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
20161 "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
20162 "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
20163 "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
20164 "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
20165 "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
20166 "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
20167 "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
20168 "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
20169 "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
20170 "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
20171 "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
20172 "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
20173 "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
20174 "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
20175 "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
20176 "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
20177 "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
20178 "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
20179 "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
20180 "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
20181 "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
20182 "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
20183 "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
20184 "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
20185 "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
20186 "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
20187 "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
20188 "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
20189 "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
20190 "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
20191 "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
20192 "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
20193 "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
20194 "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
20195 "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
20196 "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
20197 "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
20198 "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
20199 "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
20200 "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
20201 "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
20202 "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
20203 "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
20204 "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
20205 "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
20206 "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
20207 "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
20208 "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
20209 "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
20210 "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
20211 "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
20212 "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
20213 "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
20214 "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
20215 "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
20216 "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
20217 "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
20218 "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
20219 "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
20220 "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
20221 "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
20222 "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
20223 "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
20224 "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
20225 "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
20226 "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
20227 "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
20228 "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
20229 "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
20230 "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
20231 "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
20232 "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
20233 "\x78\x95\xb2\xcf\xec\x09\x26\x43"
20234 "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
20235 "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
20236 "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
20237 "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
20238 "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
20239 "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
20240 "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
20241 "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
20242 "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
20243 "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
20244 "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
20245 "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
20246 "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
20247 "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
20248 "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
20249 "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
20250 "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
20251 "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
20252 "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
20253 "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
20254 "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
20255 "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
20256 "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
20257 "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
20258 "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
20259 "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
20260 "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
20261 "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
20262 "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
20263 "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
20264 "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
20265 "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
20266 "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
20267 "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
20268 "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
20269 "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
20270 "\x00\x21\x42\x63",
20271 .ilen = 4100,
20272 .result =
20273 "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
20274 "\xae\xff\x91\x3a\x44\xcf\x38\x32"
20275 "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
20276 "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
20277 "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
20278 "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
20279 "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
20280 "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
20281 "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
20282 "\x18\xff\x75\x6d\x06\x2d\x00\xab"
20283 "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
20284 "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
20285 "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
20286 "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
20287 "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
20288 "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
20289 "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
20290 "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
20291 "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
20292 "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
20293 "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
20294 "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
20295 "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
20296 "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
20297 "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
20298 "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
20299 "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
20300 "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
20301 "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
20302 "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
20303 "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
20304 "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
20305 "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
20306 "\x6a\x25\x15\x33\x4e\x45\x08\xec"
20307 "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
20308 "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
20309 "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
20310 "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
20311 "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
20312 "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
20313 "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
20314 "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
20315 "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
20316 "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
20317 "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
20318 "\x04\x02\xef\xd3\x44\xde\x76\x31"
20319 "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
20320 "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
20321 "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
20322 "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
20323 "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
20324 "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
20325 "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
20326 "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
20327 "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
20328 "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
20329 "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
20330 "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
20331 "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
20332 "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
20333 "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
20334 "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
20335 "\x32\x03\xed\xf0\x50\x1c\x56\x39"
20336 "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
20337 "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
20338 "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
20339 "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
20340 "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
20341 "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
20342 "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
20343 "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
20344 "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
20345 "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
20346 "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
20347 "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
20348 "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
20349 "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
20350 "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
20351 "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
20352 "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
20353 "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
20354 "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
20355 "\x69\x3a\x29\x23\xac\x86\x32\xa5"
20356 "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
20357 "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
20358 "\x59\x6a\xd3\x50\x59\x43\x59\xde"
20359 "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
20360 "\x18\x34\x0d\x1a\x63\x33\xed\x10"
20361 "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
20362 "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
20363 "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
20364 "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
20365 "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
20366 "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
20367 "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
20368 "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
20369 "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
20370 "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
20371 "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
20372 "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
20373 "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
20374 "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
20375 "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
20376 "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
20377 "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
20378 "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
20379 "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
20380 "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
20381 "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
20382 "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
20383 "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
20384 "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
20385 "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
20386 "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
20387 "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
20388 "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
20389 "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
20390 "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
20391 "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
20392 "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
20393 "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
20394 "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
20395 "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
20396 "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
20397 "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
20398 "\x26\x39\x83\x94\xef\x27\xd8\x53"
20399 "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
20400 "\x43\x7c\x95\x0a\x53\xef\x66\xda"
20401 "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
20402 "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
20403 "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
20404 "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
20405 "\x88\xee\x73\xcf\x66\x2f\x52\x56"
20406 "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
20407 "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
20408 "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
20409 "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
20410 "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
20411 "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
20412 "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
20413 "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
20414 "\xba\x61\x34\x38\x7c\xda\x48\x3e"
20415 "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
20416 "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
20417 "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
20418 "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
20419 "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
20420 "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
20421 "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
20422 "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
20423 "\x35\x12\xe3\x36\x28\x27\x36\x58"
20424 "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
20425 "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
20426 "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
20427 "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
20428 "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
20429 "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
20430 "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
20431 "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
20432 "\x89\xf3\x78\x35\x44\x62\x78\x72"
20433 "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
20434 "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
20435 "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
20436 "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
20437 "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
20438 "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
20439 "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
20440 "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
20441 "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
20442 "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
20443 "\xd2\x49\x77\x81\x6d\x90\x70\xae"
20444 "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
20445 "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
20446 "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
20447 "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
20448 "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
20449 "\x45\x42\x27\x75\x50\xe5\xee\xb8"
20450 "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
20451 "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
20452 "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
20453 "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
20454 "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
20455 "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
20456 "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
20457 "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
20458 "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
20459 "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
20460 "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
20461 "\xa9\x21\x2b\x92\x94\x87\x62\x57"
20462 "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
20463 "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
20464 "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
20465 "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
20466 "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
20467 "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
20468 "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
20469 "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
20470 "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
20471 "\x69\x34\x78\x61\x24\x21\x9c\x8a"
20472 "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
20473 "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
20474 "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
20475 "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
20476 "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
20477 "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
20478 "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
20479 "\xb1\x95\x28\x86\x20\xe9\x17\x49"
20480 "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
20481 "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
20482 "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
20483 "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
20484 "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
20485 "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
20486 "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
20487 "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
20488 "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
20489 "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
20490 "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
20491 "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
20492 "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
20493 "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
20494 "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
20495 "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
20496 "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
20497 "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
20498 "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
20499 "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
20500 "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
20501 "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
20502 "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
20503 "\x29\x90\x46\x30\x92\x69\x7d\x13"
20504 "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
20505 "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
20506 "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
20507 "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
20508 "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
20509 "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
20510 "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
20511 "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
20512 "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
20513 "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
20514 "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
20515 "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
20516 "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
20517 "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
20518 "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
20519 "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
20520 "\x77\x65\x08\x60\x11\x76\x4c\x8d"
20521 "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
20522 "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
20523 "\x03\xd1\x24\x95\xec\x6d\xab\x38"
20524 "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
20525 "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
20526 "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
20527 "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
20528 "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
20529 "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
20530 "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
20531 "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
20532 "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
20533 "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
20534 "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
20535 "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
20536 "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
20537 "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
20538 "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
20539 "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
20540 "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
20541 "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
20542 "\xe5\x79\x81\x73\xcd\x43\x59\x68"
20543 "\x73\x02\x3b\x78\x21\x72\x43\x00"
20544 "\x49\x17\xf7\x00\xaf\x68\x24\x53"
20545 "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
20546 "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
20547 "\x11\x94\x13\x69\x51\x09\x28\xde"
20548 "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
20549 "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
20550 "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
20551 "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
20552 "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
20553 "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
20554 "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
20555 "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
20556 "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
20557 "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
20558 "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
20559 "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
20560 "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
20561 "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
20562 "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
20563 "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
20564 "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
20565 "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
20566 "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
20567 "\x69\xdc\xab\x24\x57\x60\x47\xc1"
20568 "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
20569 "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
20570 "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
20571 "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
20572 "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
20573 "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
20574 "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
20575 "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
20576 "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
20577 "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
20578 "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
20579 "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
20580 "\x85\x62\x82\x70\x18\xe2\x9a\x78"
20581 "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
20582 "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
20583 "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
20584 "\x35\xf3\x61\x06\x72\x84\xc4\x32"
20585 "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
20586 "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
20587 "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
20588 "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
20589 "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
20590 "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
20591 "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
20592 "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
20593 "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
20594 "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
20595 "\x4f\x73\x38\x09\x75\x64\x48\xe0"
20596 "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
20597 "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
20598 "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
20599 "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
20600 "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
20601 "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
20602 "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
20603 "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
20604 "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
20605 "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
20606 "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
20607 "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
20608 "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
20609 "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
20610 "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
20611 "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
20612 "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
20613 "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
20614 "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
20615 "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
20616 "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
20617 "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
20618 "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
20619 "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
20620 "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
20621 "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
20622 "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
20623 "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
20624 "\xce\x4d\x5f\x18\x60\xce\x87\x22"
20625 "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
20626 "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
20627 "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
20628 "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
20629 "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
20630 "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
20631 "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
20632 "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
20633 "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
20634 "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
20635 "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
20636 "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
20637 "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
20638 "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
20639 "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
20640 "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
20641 "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
20642 "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
20643 "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
20644 "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
20645 "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
20646 "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
20647 "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
20648 "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
20649 "\xce\x54\xf9\x18\x58\xb5\xff\x44"
20650 "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
20651 "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
20652 "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
20653 "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
20654 "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
20655 "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
20656 "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
20657 "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
20658 "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
20659 "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
20660 "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
20661 "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
20662 "\x0c\xd6\x04\x14\xde\x51\x74\x75"
20663 "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
20664 "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
20665 "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
20666 "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
20667 "\x75\x46\x65\x4e\x07\x34\x37\xa3"
20668 "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
20669 "\x69\x24\x0e\x38\x67\x43\x8c\xde"
20670 "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
20671 "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
20672 "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
20673 "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
20674 "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
20675 "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
20676 "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
20677 "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
20678 "\x91\x7d\x62\x64\x96\x72\xde\xfc"
20679 "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
20680 "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
20681 "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
20682 "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
20683 "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
20684 "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
20685 "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
20686 "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
20687 "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
20688 "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
20689 "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
20690 "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
20691 "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
20692 "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
20693 "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
20694 "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
20695 "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
20696 "\xae\xed\x39\x88\x42\x11\x3c\xed"
20697 "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
20698 "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
20699 "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
20700 "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
20701 "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
20702 "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
20703 "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
20704 "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
20705 "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
20706 "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
20707 "\x34\x17\xde\xba\x47\xf1\x06\x18"
20708 "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
20709 "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
20710 "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
20711 "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
20712 "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
20713 "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
20714 "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
20715 "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
20716 "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
20717 "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
20718 "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
20719 "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
20720 "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
20721 "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
20722 "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
20723 "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
20724 "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
20725 "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
20726 "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
20727 "\x2c\x56\x39\x79\x0f\x69\x44\x75"
20728 "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
20729 "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
20730 "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
20731 "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
20732 "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
20733 "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
20734 "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
20735 "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
20736 "\x63\x9b\xce\x61\x24\x79\xc0\x70"
20737 "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
20738 "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
20739 "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
20740 "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
20741 "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
20742 "\x74\x56\x58\x40\x02\x37\x52\x2c"
20743 "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
20744 "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
20745 "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
20746 "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
20747 "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
20748 "\xed\x38\x80\x36\x72\x43\x27\x49"
20749 "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
20750 "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
20751 "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
20752 "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
20753 "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
20754 "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
20755 "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
20756 "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
20757 "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
20758 "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
20759 "\x12\xee\x30\xfe\xd8\x30\xef\x34"
20760 "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
20761 "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
20762 "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
20763 "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
20764 "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
20765 "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
20766 "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
20767 "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
20768 "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
20769 "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
20770 "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
20771 "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
20772 "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
20773 "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
20774 "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
20775 "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
20776 "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
20777 "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
20778 "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
20779 "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
20780 "\x44\x12\xfb\x73\x77\xd4\x13\x39"
20781 "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
20782 "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
20783 "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
20784 "\x4b\xef\x31\x18\xea\xac\xb1\x84"
20785 "\x21\xed\xda\x86",
20786 .rlen = 4100,
20787 .np = 2,
20788 .tap = { 4064, 36 },
20792 static struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = {
20793 { /* From RFC 3686 */
20794 .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
20795 "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
20796 "\x00\x00\x00\x30",
20797 .klen = 20,
20798 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
20799 .input = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
20800 "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
20801 .ilen = 16,
20802 .result = "Single block msg",
20803 .rlen = 16,
20804 }, {
20805 .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
20806 "\x43\xd6\xce\x1f\x32\x53\x91\x63"
20807 "\x00\x6c\xb6\xdb",
20808 .klen = 20,
20809 .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
20810 .input = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
20811 "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
20812 "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
20813 "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
20814 .ilen = 32,
20815 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
20816 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
20817 "\x10\x11\x12\x13\x14\x15\x16\x17"
20818 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
20819 .rlen = 32,
20820 }, {
20821 .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
20822 "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
20823 "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
20824 "\x00\x00\x00\x48",
20825 .klen = 28,
20826 .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
20827 .input = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
20828 "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
20829 .ilen = 16,
20830 .result = "Single block msg",
20831 .rlen = 16,
20832 }, {
20833 .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
20834 "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
20835 "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
20836 "\x00\x96\xb0\x3b",
20837 .klen = 28,
20838 .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
20839 .input = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
20840 "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
20841 "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
20842 "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
20843 .ilen = 32,
20844 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
20845 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
20846 "\x10\x11\x12\x13\x14\x15\x16\x17"
20847 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
20848 .rlen = 32,
20849 }, {
20850 .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
20851 "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
20852 "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
20853 "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
20854 "\x00\x00\x00\x60",
20855 .klen = 36,
20856 .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
20857 .input = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
20858 "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
20859 .ilen = 16,
20860 .result = "Single block msg",
20861 .rlen = 16,
20862 }, {
20863 .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
20864 "\x07\x96\x36\x58\x79\xef\xf8\x86"
20865 "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
20866 "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
20867 "\x00\xfa\xac\x24",
20868 .klen = 36,
20869 .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
20870 .input = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
20871 "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
20872 "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
20873 "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
20874 .ilen = 32,
20875 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
20876 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
20877 "\x10\x11\x12\x13\x14\x15\x16\x17"
20878 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
20879 .rlen = 32,
20883 static struct cipher_testvec aes_ofb_enc_tv_template[] = {
20884 /* From NIST Special Publication 800-38A, Appendix F.5 */
20886 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
20887 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
20888 .klen = 16,
20889 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
20890 "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
20891 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
20892 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
20893 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
20894 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
20895 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
20896 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
20897 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
20898 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
20899 .ilen = 64,
20900 .result = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
20901 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
20902 "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
20903 "\x3c\x52\xda\xc5\x4e\xd8\x25"
20904 "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
20905 "\x44\xf7\xa8\x22\x60\xed\xcc"
20906 "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
20907 "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
20908 .rlen = 64,
20912 static struct cipher_testvec aes_ofb_dec_tv_template[] = {
20913 /* From NIST Special Publication 800-38A, Appendix F.5 */
20915 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
20916 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
20917 .klen = 16,
20918 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
20919 "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
20920 .input = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
20921 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
20922 "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
20923 "\x3c\x52\xda\xc5\x4e\xd8\x25"
20924 "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
20925 "\x44\xf7\xa8\x22\x60\xed\xcc"
20926 "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
20927 "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
20928 .ilen = 64,
20929 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
20930 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
20931 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
20932 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
20933 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
20934 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
20935 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
20936 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
20937 .rlen = 64,
20941 static struct aead_testvec aes_gcm_enc_tv_template[] = {
20942 { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
20943 .key = zeroed_string,
20944 .klen = 16,
20945 .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
20946 "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
20947 .rlen = 16,
20948 }, {
20949 .key = zeroed_string,
20950 .klen = 16,
20951 .input = zeroed_string,
20952 .ilen = 16,
20953 .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
20954 "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
20955 "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
20956 "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
20957 .rlen = 32,
20958 }, {
20959 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
20960 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
20961 .klen = 16,
20962 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
20963 "\xde\xca\xf8\x88",
20964 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
20965 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
20966 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
20967 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
20968 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
20969 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
20970 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
20971 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
20972 .ilen = 64,
20973 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
20974 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
20975 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
20976 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
20977 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
20978 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
20979 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
20980 "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
20981 "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
20982 "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
20983 .rlen = 80,
20984 }, {
20985 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
20986 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
20987 .klen = 16,
20988 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
20989 "\xde\xca\xf8\x88",
20990 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
20991 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
20992 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
20993 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
20994 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
20995 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
20996 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
20997 "\xba\x63\x7b\x39",
20998 .ilen = 60,
20999 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21000 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21001 "\xab\xad\xda\xd2",
21002 .alen = 20,
21003 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
21004 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
21005 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
21006 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
21007 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
21008 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
21009 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
21010 "\x3d\x58\xe0\x91"
21011 "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
21012 "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
21013 .rlen = 76,
21014 }, {
21015 .key = zeroed_string,
21016 .klen = 24,
21017 .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
21018 "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
21019 .rlen = 16,
21020 }, {
21021 .key = zeroed_string,
21022 .klen = 24,
21023 .input = zeroed_string,
21024 .ilen = 16,
21025 .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
21026 "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
21027 "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
21028 "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
21029 .rlen = 32,
21030 }, {
21031 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21032 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21033 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
21034 .klen = 24,
21035 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21036 "\xde\xca\xf8\x88",
21037 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21038 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21039 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21040 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21041 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21042 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21043 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21044 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
21045 .ilen = 64,
21046 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
21047 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
21048 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
21049 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
21050 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
21051 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
21052 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
21053 "\xcc\xda\x27\x10\xac\xad\xe2\x56"
21054 "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
21055 "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
21056 .rlen = 80,
21057 }, {
21058 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21059 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21060 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
21061 .klen = 24,
21062 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21063 "\xde\xca\xf8\x88",
21064 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21065 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21066 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21067 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21068 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21069 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21070 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21071 "\xba\x63\x7b\x39",
21072 .ilen = 60,
21073 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21074 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21075 "\xab\xad\xda\xd2",
21076 .alen = 20,
21077 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
21078 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
21079 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
21080 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
21081 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
21082 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
21083 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
21084 "\xcc\xda\x27\x10"
21085 "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
21086 "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
21087 .rlen = 76,
21088 .np = 2,
21089 .tap = { 32, 28 },
21090 .anp = 2,
21091 .atap = { 8, 12 }
21092 }, {
21093 .key = zeroed_string,
21094 .klen = 32,
21095 .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
21096 "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
21097 .rlen = 16,
21101 static struct aead_testvec aes_gcm_dec_tv_template[] = {
21102 { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
21103 .key = zeroed_string,
21104 .klen = 32,
21105 .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
21106 "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
21107 "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
21108 "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
21109 .ilen = 32,
21110 .result = zeroed_string,
21111 .rlen = 16,
21112 }, {
21113 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21114 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21115 "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21116 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
21117 .klen = 32,
21118 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21119 "\xde\xca\xf8\x88",
21120 .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
21121 "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
21122 "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
21123 "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
21124 "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
21125 "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
21126 "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
21127 "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
21128 "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
21129 "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
21130 .ilen = 80,
21131 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21132 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21133 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21134 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21135 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21136 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21137 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21138 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
21139 .rlen = 64,
21140 }, {
21141 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21142 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21143 "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21144 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
21145 .klen = 32,
21146 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21147 "\xde\xca\xf8\x88",
21148 .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
21149 "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
21150 "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
21151 "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
21152 "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
21153 "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
21154 "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
21155 "\xbc\xc9\xf6\x62"
21156 "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
21157 "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
21158 .ilen = 76,
21159 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21160 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21161 "\xab\xad\xda\xd2",
21162 .alen = 20,
21163 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21164 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21165 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21166 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21167 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21168 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21169 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21170 "\xba\x63\x7b\x39",
21171 .rlen = 60,
21172 .np = 2,
21173 .tap = { 48, 28 },
21174 .anp = 3,
21175 .atap = { 8, 8, 4 }
21176 }, {
21177 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21178 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
21179 .klen = 16,
21180 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21181 "\xde\xca\xf8\x88",
21182 .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
21183 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
21184 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
21185 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
21186 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
21187 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
21188 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
21189 "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
21190 "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
21191 "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
21192 .ilen = 80,
21193 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21194 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21195 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21196 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21197 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21198 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21199 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21200 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
21201 .rlen = 64,
21202 }, {
21203 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21204 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
21205 .klen = 16,
21206 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21207 "\xde\xca\xf8\x88",
21208 .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
21209 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
21210 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
21211 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
21212 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
21213 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
21214 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
21215 "\x3d\x58\xe0\x91"
21216 "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
21217 "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
21218 .ilen = 76,
21219 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21220 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21221 "\xab\xad\xda\xd2",
21222 .alen = 20,
21223 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21224 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21225 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21226 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21227 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21228 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21229 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21230 "\xba\x63\x7b\x39",
21231 .rlen = 60,
21232 }, {
21233 .key = zeroed_string,
21234 .klen = 24,
21235 .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
21236 "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
21237 "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
21238 "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
21239 .ilen = 32,
21240 .result = zeroed_string,
21241 .rlen = 16,
21242 }, {
21243 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21244 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21245 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
21246 .klen = 24,
21247 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21248 "\xde\xca\xf8\x88",
21249 .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
21250 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
21251 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
21252 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
21253 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
21254 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
21255 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
21256 "\xcc\xda\x27\x10\xac\xad\xe2\x56"
21257 "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
21258 "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
21259 .ilen = 80,
21260 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21261 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21262 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21263 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21264 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21265 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21266 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21267 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
21268 .rlen = 64,
21269 }, {
21270 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21271 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21272 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
21273 .klen = 24,
21274 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21275 "\xde\xca\xf8\x88",
21276 .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
21277 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
21278 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
21279 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
21280 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
21281 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
21282 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
21283 "\xcc\xda\x27\x10"
21284 "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
21285 "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
21286 .ilen = 76,
21287 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21288 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21289 "\xab\xad\xda\xd2",
21290 .alen = 20,
21291 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21292 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21293 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21294 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21295 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21296 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21297 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21298 "\xba\x63\x7b\x39",
21299 .rlen = 60,
21303 static struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = {
21304 { /* Generated using Crypto++ */
21305 .key = zeroed_string,
21306 .klen = 20,
21307 .iv = zeroed_string,
21308 .input = zeroed_string,
21309 .ilen = 16,
21310 .assoc = zeroed_string,
21311 .alen = 16,
21312 .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
21313 "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
21314 "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
21315 "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
21316 .rlen = 32,
21318 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21319 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21320 "\x00\x00\x00\x00",
21321 .klen = 20,
21322 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
21323 .input = zeroed_string,
21324 .ilen = 16,
21325 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
21326 "\x00\x00\x00\x00\x00\x00\x00\x01",
21327 .alen = 16,
21328 .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
21329 "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
21330 "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
21331 "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
21332 .rlen = 32,
21334 }, {
21335 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21336 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21337 "\x00\x00\x00\x00",
21338 .klen = 20,
21339 .iv = zeroed_string,
21340 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
21341 "\x01\x01\x01\x01\x01\x01\x01\x01",
21342 .ilen = 16,
21343 .assoc = zeroed_string,
21344 .alen = 16,
21345 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
21346 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
21347 "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
21348 "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
21349 .rlen = 32,
21350 }, {
21351 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21352 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21353 "\x00\x00\x00\x00",
21354 .klen = 20,
21355 .iv = zeroed_string,
21356 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
21357 "\x01\x01\x01\x01\x01\x01\x01\x01",
21358 .ilen = 16,
21359 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
21360 "\x00\x00\x00\x00\x00\x00\x00\x00",
21361 .alen = 16,
21362 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
21363 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
21364 "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
21365 "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
21366 .rlen = 32,
21367 }, {
21368 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21369 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21370 "\x00\x00\x00\x00",
21371 .klen = 20,
21372 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
21373 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
21374 "\x01\x01\x01\x01\x01\x01\x01\x01",
21375 .ilen = 16,
21376 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
21377 "\x00\x00\x00\x00\x00\x00\x00\x01",
21378 .alen = 16,
21379 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
21380 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
21381 "\x64\x50\xF9\x32\x13\xFB\x74\x61"
21382 "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
21383 .rlen = 32,
21384 }, {
21385 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21386 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21387 "\x00\x00\x00\x00",
21388 .klen = 20,
21389 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
21390 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
21391 "\x01\x01\x01\x01\x01\x01\x01\x01"
21392 "\x01\x01\x01\x01\x01\x01\x01\x01"
21393 "\x01\x01\x01\x01\x01\x01\x01\x01"
21394 "\x01\x01\x01\x01\x01\x01\x01\x01"
21395 "\x01\x01\x01\x01\x01\x01\x01\x01"
21396 "\x01\x01\x01\x01\x01\x01\x01\x01"
21397 "\x01\x01\x01\x01\x01\x01\x01\x01",
21398 .ilen = 64,
21399 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
21400 "\x00\x00\x00\x00\x00\x00\x00\x01",
21401 .alen = 16,
21402 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
21403 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
21404 "\x98\x14\xA1\x42\x37\x80\xFD\x90"
21405 "\x68\x12\x01\xA8\x91\x89\xB9\x83"
21406 "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
21407 "\x94\x5F\x18\x12\xBA\x27\x09\x39"
21408 "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
21409 "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
21410 "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
21411 "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
21412 .rlen = 80,
21413 }, {
21414 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
21415 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
21416 "\x00\x00\x00\x00",
21417 .klen = 20,
21418 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
21419 .input = "\xff\xff\xff\xff\xff\xff\xff\xff"
21420 "\xff\xff\xff\xff\xff\xff\xff\xff"
21421 "\xff\xff\xff\xff\xff\xff\xff\xff"
21422 "\xff\xff\xff\xff\xff\xff\xff\xff"
21423 "\xff\xff\xff\xff\xff\xff\xff\xff"
21424 "\xff\xff\xff\xff\xff\xff\xff\xff"
21425 "\xff\xff\xff\xff\xff\xff\xff\xff"
21426 "\xff\xff\xff\xff\xff\xff\xff\xff"
21427 "\xff\xff\xff\xff\xff\xff\xff\xff"
21428 "\xff\xff\xff\xff\xff\xff\xff\xff"
21429 "\xff\xff\xff\xff\xff\xff\xff\xff"
21430 "\xff\xff\xff\xff\xff\xff\xff\xff"
21431 "\xff\xff\xff\xff\xff\xff\xff\xff"
21432 "\xff\xff\xff\xff\xff\xff\xff\xff"
21433 "\xff\xff\xff\xff\xff\xff\xff\xff"
21434 "\xff\xff\xff\xff\xff\xff\xff\xff"
21435 "\xff\xff\xff\xff\xff\xff\xff\xff"
21436 "\xff\xff\xff\xff\xff\xff\xff\xff"
21437 "\xff\xff\xff\xff\xff\xff\xff\xff"
21438 "\xff\xff\xff\xff\xff\xff\xff\xff"
21439 "\xff\xff\xff\xff\xff\xff\xff\xff"
21440 "\xff\xff\xff\xff\xff\xff\xff\xff"
21441 "\xff\xff\xff\xff\xff\xff\xff\xff"
21442 "\xff\xff\xff\xff\xff\xff\xff\xff",
21443 .ilen = 192,
21444 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
21445 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
21446 "\x89\xab\xcd\xef",
21447 .alen = 20,
21448 .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
21449 "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
21450 "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
21451 "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
21452 "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
21453 "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
21454 "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
21455 "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
21456 "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
21457 "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
21458 "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
21459 "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
21460 "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
21461 "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
21462 "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
21463 "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
21464 "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
21465 "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
21466 "\x7E\x13\x06\x82\x08\x17\xA4\x35"
21467 "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
21468 "\xA3\x05\x38\x95\x20\x1A\x47\x04"
21469 "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
21470 "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
21471 "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
21472 "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
21473 "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
21474 .rlen = 208,
21475 }, { /* From draft-mcgrew-gcm-test-01 */
21476 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
21477 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
21478 "\x2E\x44\x3B\x68",
21479 .klen = 20,
21480 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
21481 .input = "\x45\x00\x00\x48\x69\x9A\x00\x00"
21482 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
21483 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
21484 "\x38\xD3\x01\x00\x00\x01\x00\x00"
21485 "\x00\x00\x00\x00\x04\x5F\x73\x69"
21486 "\x70\x04\x5F\x75\x64\x70\x03\x73"
21487 "\x69\x70\x09\x63\x79\x62\x65\x72"
21488 "\x63\x69\x74\x79\x02\x64\x6B\x00"
21489 "\x00\x21\x00\x01\x01\x02\x02\x01",
21490 .ilen = 72,
21491 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
21492 "\x00\x00\x00\x00\x49\x56\xED\x7E"
21493 "\x3B\x24\x4C\xFE",
21494 .alen = 20,
21495 .result = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
21496 "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
21497 "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
21498 "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
21499 "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
21500 "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
21501 "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
21502 "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
21503 "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
21504 "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
21505 "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
21506 .rlen = 88,
21507 }, {
21508 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
21509 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
21510 "\xCA\xFE\xBA\xBE",
21511 .klen = 20,
21512 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
21513 .input = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
21514 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
21515 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
21516 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
21517 "\x00\x01\x00\x00\x00\x00\x00\x00"
21518 "\x03\x73\x69\x70\x09\x63\x79\x62"
21519 "\x65\x72\x63\x69\x74\x79\x02\x64"
21520 "\x6B\x00\x00\x01\x00\x01\x00\x01",
21521 .ilen = 64,
21522 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
21523 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
21524 .alen = 16,
21525 .result = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
21526 "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
21527 "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
21528 "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
21529 "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
21530 "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
21531 "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
21532 "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
21533 "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
21534 "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
21535 .rlen = 80,
21536 }, {
21537 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21538 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21539 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21540 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21541 "\x11\x22\x33\x44",
21542 .klen = 36,
21543 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
21544 .input = "\x45\x00\x00\x30\x69\xA6\x40\x00"
21545 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
21546 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
21547 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
21548 "\x70\x02\x40\x00\x20\xBF\x00\x00"
21549 "\x02\x04\x05\xB4\x01\x01\x04\x02"
21550 "\x01\x02\x02\x01",
21551 .ilen = 52,
21552 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
21553 "\x01\x02\x03\x04\x05\x06\x07\x08",
21554 .alen = 16,
21555 .result = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
21556 "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
21557 "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
21558 "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
21559 "\x74\x8A\x63\x79\x85\x77\x1D\x34"
21560 "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
21561 "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
21562 "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
21563 "\x15\x95\x6C\x96",
21564 .rlen = 68,
21565 }, {
21566 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
21567 "\x00\x00\x00\x00\x00\x00\x00\x00"
21568 "\x00\x00\x00\x00",
21569 .klen = 20,
21570 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
21571 .input = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
21572 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
21573 "\x01\x01\x01\x01\x08\x00\x07\x5C"
21574 "\x02\x00\x44\x00\x61\x62\x63\x64"
21575 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
21576 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
21577 "\x75\x76\x77\x61\x62\x63\x64\x65"
21578 "\x66\x67\x68\x69\x01\x02\x02\x01",
21579 .ilen = 64,
21580 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
21581 "\x00\x00\x00\x00\x00\x00\x00\x00",
21582 .alen = 16,
21583 .result = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
21584 "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
21585 "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
21586 "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
21587 "\x45\x64\x76\x49\x27\x19\xFF\xB6"
21588 "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
21589 "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
21590 "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
21591 "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
21592 "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
21593 .rlen = 80,
21594 }, {
21595 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
21596 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
21597 "\x57\x69\x0E\x43",
21598 .klen = 20,
21599 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
21600 .input = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
21601 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
21602 "\x01\x01\x01\x01\x08\x00\x08\x5C"
21603 "\x02\x00\x43\x00\x61\x62\x63\x64"
21604 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
21605 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
21606 "\x75\x76\x77\x61\x62\x63\x64\x65"
21607 "\x66\x67\x68\x69\x01\x02\x02\x01",
21608 .ilen = 64,
21609 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
21610 "\x10\x10\x10\x10\x4E\x28\x00\x00"
21611 "\xA2\xFC\xA1\xA3",
21612 .alen = 20,
21613 .result = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
21614 "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
21615 "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
21616 "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
21617 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
21618 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
21619 "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
21620 "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
21621 "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
21622 "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
21623 .rlen = 80,
21624 }, {
21625 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
21626 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
21627 "\x57\x69\x0E\x43",
21628 .klen = 20,
21629 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
21630 .input = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
21631 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
21632 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
21633 "\x01\x02\x02\x01",
21634 .ilen = 28,
21635 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
21636 "\x10\x10\x10\x10\x4E\x28\x00\x00"
21637 "\xA2\xFC\xA1\xA3",
21638 .alen = 20,
21639 .result = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
21640 "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
21641 "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
21642 "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
21643 "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
21644 "\xE7\xD0\x5D\x35",
21645 .rlen = 44,
21646 }, {
21647 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
21648 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
21649 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
21650 "\xCA\xFE\xBA\xBE",
21651 .klen = 28,
21652 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
21653 .input = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
21654 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
21655 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
21656 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
21657 "\x50\x10\x16\xD0\x75\x68\x00\x01",
21658 .ilen = 40,
21659 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
21660 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
21661 .alen = 16,
21662 .result = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
21663 "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
21664 "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
21665 "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
21666 "\x31\x5B\x27\x45\x21\x44\xCC\x77"
21667 "\x95\x45\x7B\x96\x52\x03\x7F\x53"
21668 "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
21669 .rlen = 56,
21670 }, {
21671 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21672 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21673 "\xDE\xCA\xF8\x88",
21674 .klen = 20,
21675 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
21676 .input = "\x45\x00\x00\x49\x33\xBA\x00\x00"
21677 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
21678 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
21679 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
21680 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
21681 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
21682 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
21683 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
21684 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
21685 "\x23\x01\x01\x01",
21686 .ilen = 76,
21687 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
21688 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
21689 "\xCE\xFA\xCE\x74",
21690 .alen = 20,
21691 .result = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
21692 "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
21693 "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
21694 "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
21695 "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
21696 "\x84\xE6\x58\x63\x96\x5D\x74\x72"
21697 "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
21698 "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
21699 "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
21700 "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
21701 "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
21702 "\x69\x62\x34\x36",
21703 .rlen = 92,
21704 }, {
21705 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21706 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21707 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21708 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21709 "\x73\x61\x6C\x74",
21710 .klen = 36,
21711 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
21712 .input = "\x45\x08\x00\x28\x73\x2C\x00\x00"
21713 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
21714 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
21715 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
21716 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
21717 .ilen = 40,
21718 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
21719 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
21720 "\x69\x76\x65\x63",
21721 .alen = 20,
21722 .result = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
21723 "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
21724 "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
21725 "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
21726 "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
21727 "\x45\x16\x26\xC2\x41\x57\x71\xE3"
21728 "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
21729 .rlen = 56,
21730 }, {
21731 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
21732 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
21733 "\x57\x69\x0E\x43",
21734 .klen = 20,
21735 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
21736 .input = "\x45\x00\x00\x49\x33\x3E\x00\x00"
21737 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
21738 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
21739 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
21740 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
21741 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
21742 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
21743 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
21744 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
21745 "\x15\x01\x01\x01",
21746 .ilen = 76,
21747 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
21748 "\x10\x10\x10\x10\x4E\x28\x00\x00"
21749 "\xA2\xFC\xA1\xA3",
21750 .alen = 20,
21751 .result = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
21752 "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
21753 "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
21754 "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
21755 "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
21756 "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
21757 "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
21758 "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
21759 "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
21760 "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
21761 "\x76\x91\x89\x60\x97\x63\xB8\xE1"
21762 "\x8C\xAA\x81\xE2",
21763 .rlen = 92,
21764 }, {
21765 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21766 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21767 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21768 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21769 "\x73\x61\x6C\x74",
21770 .klen = 36,
21771 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
21772 .input = "\x63\x69\x73\x63\x6F\x01\x72\x75"
21773 "\x6C\x65\x73\x01\x74\x68\x65\x01"
21774 "\x6E\x65\x74\x77\x65\x01\x64\x65"
21775 "\x66\x69\x6E\x65\x01\x74\x68\x65"
21776 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
21777 "\x67\x69\x65\x73\x01\x74\x68\x61"
21778 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
21779 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
21780 "\x72\x72\x6F\x77\x01\x02\x02\x01",
21781 .ilen = 72,
21782 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
21783 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
21784 "\x69\x76\x65\x63",
21785 .alen = 20,
21786 .result = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
21787 "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
21788 "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
21789 "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
21790 "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
21791 "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
21792 "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
21793 "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
21794 "\x12\xA4\x93\x63\x41\x23\x64\xF8"
21795 "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
21796 "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
21797 .rlen = 88,
21798 }, {
21799 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
21800 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
21801 "\xD9\x66\x42\x67",
21802 .klen = 20,
21803 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
21804 .input = "\x01\x02\x02\x01",
21805 .ilen = 4,
21806 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
21807 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
21808 .alen = 16,
21809 .result = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
21810 "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
21811 "\x04\xBE\xF2\x70",
21812 .rlen = 20,
21813 }, {
21814 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21815 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21816 "\xDE\xCA\xF8\x88",
21817 .klen = 20,
21818 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
21819 .input = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
21820 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
21821 "\x62\x65\x00\x01",
21822 .ilen = 20,
21823 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
21824 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
21825 "\xCE\xFA\xCE\x74",
21826 .alen = 20,
21827 .result = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
21828 "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
21829 "\x43\x33\x21\x64\x41\x25\x03\x52"
21830 "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
21831 "\x43\xAF\x8C\x3E",
21832 .rlen = 36,
21833 }, {
21834 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
21835 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
21836 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
21837 "\x62\x65\x66\x6F\x72\x65\x69\x61"
21838 "\x74\x75\x72\x6E",
21839 .klen = 36,
21840 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
21841 .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
21842 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
21843 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
21844 "\x02\x00\x07\x00\x61\x62\x63\x64"
21845 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
21846 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
21847 "\x01\x02\x02\x01",
21848 .ilen = 52,
21849 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
21850 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
21851 "\x67\x65\x74\x6D",
21852 .alen = 20,
21853 .result = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
21854 "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
21855 "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
21856 "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
21857 "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
21858 "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
21859 "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
21860 "\x94\x5F\x66\x93\x68\x66\x1A\x32"
21861 "\x9F\xB4\xC0\x53",
21862 .rlen = 68,
21863 }, {
21864 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
21865 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
21866 "\x57\x69\x0E\x43",
21867 .klen = 20,
21868 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
21869 .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
21870 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
21871 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
21872 "\x02\x00\x07\x00\x61\x62\x63\x64"
21873 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
21874 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
21875 "\x01\x02\x02\x01",
21876 .ilen = 52,
21877 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
21878 "\x10\x10\x10\x10\x4E\x28\x00\x00"
21879 "\xA2\xFC\xA1\xA3",
21880 .alen = 20,
21881 .result = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
21882 "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
21883 "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
21884 "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
21885 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
21886 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
21887 "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
21888 "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
21889 "\x40\xD7\xCB\x05",
21890 .rlen = 68,
21891 }, {
21892 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
21893 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
21894 "\x22\x43\x3C\x64",
21895 .klen = 20,
21896 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
21897 .input = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
21898 "\x61\x62\x63\x64\x65\x66\x67\x68"
21899 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
21900 "\x71\x72\x73\x74\x01\x02\x02\x01",
21901 .ilen = 32,
21902 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
21903 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
21904 "\x3A\x23\x4B\xFD",
21905 .alen = 20,
21906 .result = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
21907 "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
21908 "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
21909 "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
21910 "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
21911 "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
21912 .rlen = 48,
21916 static struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = {
21917 { /* Generated using Crypto++ */
21918 .key = zeroed_string,
21919 .klen = 20,
21920 .iv = zeroed_string,
21921 .input = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
21922 "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
21923 "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
21924 "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
21925 .ilen = 32,
21926 .assoc = zeroed_string,
21927 .alen = 16,
21928 .result = zeroed_string,
21929 .rlen = 16,
21932 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21933 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21934 "\x00\x00\x00\x00",
21935 .klen = 20,
21936 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
21937 .input = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
21938 "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
21939 "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
21940 "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
21941 .ilen = 32,
21942 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
21943 "\x00\x00\x00\x00\x00\x00\x00\x01",
21944 .alen = 16,
21945 .result = zeroed_string,
21946 .rlen = 16,
21947 }, {
21948 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21949 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21950 "\x00\x00\x00\x00",
21951 .klen = 20,
21952 .iv = zeroed_string,
21953 .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
21954 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
21955 "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
21956 "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
21957 .ilen = 32,
21958 .assoc = zeroed_string,
21959 .alen = 16,
21960 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
21961 "\x01\x01\x01\x01\x01\x01\x01\x01",
21962 .rlen = 16,
21963 }, {
21964 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21965 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21966 "\x00\x00\x00\x00",
21967 .klen = 20,
21968 .iv = zeroed_string,
21969 .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
21970 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
21971 "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
21972 "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
21973 .ilen = 32,
21974 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
21975 "\x00\x00\x00\x00\x00\x00\x00\x00",
21976 .alen = 16,
21977 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
21978 "\x01\x01\x01\x01\x01\x01\x01\x01",
21979 .rlen = 16,
21981 }, {
21982 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21983 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21984 "\x00\x00\x00\x00",
21985 .klen = 20,
21986 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
21987 .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
21988 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
21989 "\x64\x50\xF9\x32\x13\xFB\x74\x61"
21990 "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
21991 .ilen = 32,
21992 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
21993 "\x00\x00\x00\x00\x00\x00\x00\x01",
21994 .alen = 16,
21995 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
21996 "\x01\x01\x01\x01\x01\x01\x01\x01",
21997 .rlen = 16,
21998 }, {
21999 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
22000 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
22001 "\x00\x00\x00\x00",
22002 .klen = 20,
22003 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
22004 .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
22005 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
22006 "\x98\x14\xA1\x42\x37\x80\xFD\x90"
22007 "\x68\x12\x01\xA8\x91\x89\xB9\x83"
22008 "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
22009 "\x94\x5F\x18\x12\xBA\x27\x09\x39"
22010 "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
22011 "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
22012 "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
22013 "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
22014 .ilen = 80,
22015 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
22016 "\x00\x00\x00\x00\x00\x00\x00\x01",
22017 .alen = 16,
22018 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
22019 "\x01\x01\x01\x01\x01\x01\x01\x01"
22020 "\x01\x01\x01\x01\x01\x01\x01\x01"
22021 "\x01\x01\x01\x01\x01\x01\x01\x01"
22022 "\x01\x01\x01\x01\x01\x01\x01\x01"
22023 "\x01\x01\x01\x01\x01\x01\x01\x01"
22024 "\x01\x01\x01\x01\x01\x01\x01\x01"
22025 "\x01\x01\x01\x01\x01\x01\x01\x01",
22026 .rlen = 64,
22027 }, {
22028 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
22029 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22030 "\x00\x00\x00\x00",
22031 .klen = 20,
22032 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
22033 .input = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
22034 "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
22035 "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
22036 "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
22037 "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
22038 "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
22039 "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
22040 "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
22041 "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
22042 "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
22043 "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
22044 "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
22045 "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
22046 "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
22047 "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
22048 "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
22049 "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
22050 "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
22051 "\x7E\x13\x06\x82\x08\x17\xA4\x35"
22052 "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
22053 "\xA3\x05\x38\x95\x20\x1A\x47\x04"
22054 "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
22055 "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
22056 "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
22057 "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
22058 "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
22059 .ilen = 208,
22060 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
22061 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
22062 "\x89\xab\xcd\xef",
22063 .alen = 20,
22064 .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
22065 "\xff\xff\xff\xff\xff\xff\xff\xff"
22066 "\xff\xff\xff\xff\xff\xff\xff\xff"
22067 "\xff\xff\xff\xff\xff\xff\xff\xff"
22068 "\xff\xff\xff\xff\xff\xff\xff\xff"
22069 "\xff\xff\xff\xff\xff\xff\xff\xff"
22070 "\xff\xff\xff\xff\xff\xff\xff\xff"
22071 "\xff\xff\xff\xff\xff\xff\xff\xff"
22072 "\xff\xff\xff\xff\xff\xff\xff\xff"
22073 "\xff\xff\xff\xff\xff\xff\xff\xff"
22074 "\xff\xff\xff\xff\xff\xff\xff\xff"
22075 "\xff\xff\xff\xff\xff\xff\xff\xff"
22076 "\xff\xff\xff\xff\xff\xff\xff\xff"
22077 "\xff\xff\xff\xff\xff\xff\xff\xff"
22078 "\xff\xff\xff\xff\xff\xff\xff\xff"
22079 "\xff\xff\xff\xff\xff\xff\xff\xff"
22080 "\xff\xff\xff\xff\xff\xff\xff\xff"
22081 "\xff\xff\xff\xff\xff\xff\xff\xff"
22082 "\xff\xff\xff\xff\xff\xff\xff\xff"
22083 "\xff\xff\xff\xff\xff\xff\xff\xff"
22084 "\xff\xff\xff\xff\xff\xff\xff\xff"
22085 "\xff\xff\xff\xff\xff\xff\xff\xff"
22086 "\xff\xff\xff\xff\xff\xff\xff\xff"
22087 "\xff\xff\xff\xff\xff\xff\xff\xff",
22088 .rlen = 192,
22089 }, {
22090 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
22091 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
22092 "\x2E\x44\x3B\x68",
22093 .klen = 20,
22094 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
22095 .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
22096 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
22097 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
22098 "\x38\xD3\x01\x00\x00\x01\x00\x00"
22099 "\x00\x00\x00\x00\x04\x5F\x73\x69"
22100 "\x70\x04\x5F\x75\x64\x70\x03\x73"
22101 "\x69\x70\x09\x63\x79\x62\x65\x72"
22102 "\x63\x69\x74\x79\x02\x64\x6B\x00"
22103 "\x00\x21\x00\x01\x01\x02\x02\x01",
22104 .rlen = 72,
22105 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
22106 "\x00\x00\x00\x00\x49\x56\xED\x7E"
22107 "\x3B\x24\x4C\xFE",
22108 .alen = 20,
22109 .input = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
22110 "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
22111 "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
22112 "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
22113 "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
22114 "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
22115 "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
22116 "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
22117 "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
22118 "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
22119 "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
22120 .ilen = 88,
22121 }, {
22122 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
22123 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
22124 "\xCA\xFE\xBA\xBE",
22125 .klen = 20,
22126 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
22127 .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
22128 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
22129 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
22130 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
22131 "\x00\x01\x00\x00\x00\x00\x00\x00"
22132 "\x03\x73\x69\x70\x09\x63\x79\x62"
22133 "\x65\x72\x63\x69\x74\x79\x02\x64"
22134 "\x6B\x00\x00\x01\x00\x01\x00\x01",
22135 .rlen = 64,
22136 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
22137 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
22138 .alen = 16,
22139 .input = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
22140 "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
22141 "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
22142 "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
22143 "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
22144 "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
22145 "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
22146 "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
22147 "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
22148 "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
22149 .ilen = 80,
22150 }, {
22151 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22152 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22153 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22154 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22155 "\x11\x22\x33\x44",
22156 .klen = 36,
22157 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
22158 .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
22159 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
22160 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
22161 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
22162 "\x70\x02\x40\x00\x20\xBF\x00\x00"
22163 "\x02\x04\x05\xB4\x01\x01\x04\x02"
22164 "\x01\x02\x02\x01",
22165 .rlen = 52,
22166 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
22167 "\x01\x02\x03\x04\x05\x06\x07\x08",
22168 .alen = 16,
22169 .input = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
22170 "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
22171 "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
22172 "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
22173 "\x74\x8A\x63\x79\x85\x77\x1D\x34"
22174 "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
22175 "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
22176 "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
22177 "\x15\x95\x6C\x96",
22178 .ilen = 68,
22179 }, {
22180 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
22181 "\x00\x00\x00\x00\x00\x00\x00\x00"
22182 "\x00\x00\x00\x00",
22183 .klen = 20,
22184 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
22185 .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
22186 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
22187 "\x01\x01\x01\x01\x08\x00\x07\x5C"
22188 "\x02\x00\x44\x00\x61\x62\x63\x64"
22189 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
22190 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
22191 "\x75\x76\x77\x61\x62\x63\x64\x65"
22192 "\x66\x67\x68\x69\x01\x02\x02\x01",
22193 .rlen = 64,
22194 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
22195 "\x00\x00\x00\x00\x00\x00\x00\x00",
22196 .alen = 16,
22197 .input = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
22198 "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
22199 "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
22200 "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
22201 "\x45\x64\x76\x49\x27\x19\xFF\xB6"
22202 "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
22203 "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
22204 "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
22205 "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
22206 "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
22207 .ilen = 80,
22208 }, {
22209 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
22210 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
22211 "\x57\x69\x0E\x43",
22212 .klen = 20,
22213 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
22214 .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
22215 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
22216 "\x01\x01\x01\x01\x08\x00\x08\x5C"
22217 "\x02\x00\x43\x00\x61\x62\x63\x64"
22218 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
22219 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
22220 "\x75\x76\x77\x61\x62\x63\x64\x65"
22221 "\x66\x67\x68\x69\x01\x02\x02\x01",
22222 .rlen = 64,
22223 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
22224 "\x10\x10\x10\x10\x4E\x28\x00\x00"
22225 "\xA2\xFC\xA1\xA3",
22226 .alen = 20,
22227 .input = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
22228 "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
22229 "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
22230 "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
22231 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
22232 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
22233 "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
22234 "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
22235 "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
22236 "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
22237 .ilen = 80,
22238 }, {
22239 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
22240 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
22241 "\x57\x69\x0E\x43",
22242 .klen = 20,
22243 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
22244 .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
22245 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
22246 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
22247 "\x01\x02\x02\x01",
22248 .rlen = 28,
22249 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
22250 "\x10\x10\x10\x10\x4E\x28\x00\x00"
22251 "\xA2\xFC\xA1\xA3",
22252 .alen = 20,
22253 .input = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
22254 "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
22255 "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
22256 "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
22257 "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
22258 "\xE7\xD0\x5D\x35",
22259 .ilen = 44,
22260 }, {
22261 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
22262 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
22263 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
22264 "\xCA\xFE\xBA\xBE",
22265 .klen = 28,
22266 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
22267 .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
22268 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
22269 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
22270 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
22271 "\x50\x10\x16\xD0\x75\x68\x00\x01",
22272 .rlen = 40,
22273 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
22274 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
22275 .alen = 16,
22276 .input = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
22277 "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
22278 "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
22279 "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
22280 "\x31\x5B\x27\x45\x21\x44\xCC\x77"
22281 "\x95\x45\x7B\x96\x52\x03\x7F\x53"
22282 "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
22283 .ilen = 56,
22284 }, {
22285 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22286 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22287 "\xDE\xCA\xF8\x88",
22288 .klen = 20,
22289 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
22290 .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
22291 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
22292 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
22293 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
22294 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
22295 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
22296 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
22297 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
22298 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
22299 "\x23\x01\x01\x01",
22300 .rlen = 76,
22301 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
22302 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
22303 "\xCE\xFA\xCE\x74",
22304 .alen = 20,
22305 .input = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
22306 "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
22307 "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
22308 "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
22309 "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
22310 "\x84\xE6\x58\x63\x96\x5D\x74\x72"
22311 "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
22312 "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
22313 "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
22314 "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
22315 "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
22316 "\x69\x62\x34\x36",
22317 .ilen = 92,
22318 }, {
22319 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22320 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22321 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22322 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22323 "\x73\x61\x6C\x74",
22324 .klen = 36,
22325 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
22326 .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
22327 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
22328 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
22329 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
22330 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
22331 .rlen = 40,
22332 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
22333 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
22334 "\x69\x76\x65\x63",
22335 .alen = 20,
22336 .input = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
22337 "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
22338 "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
22339 "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
22340 "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
22341 "\x45\x16\x26\xC2\x41\x57\x71\xE3"
22342 "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
22343 .ilen = 56,
22344 }, {
22345 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
22346 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
22347 "\x57\x69\x0E\x43",
22348 .klen = 20,
22349 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
22350 .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
22351 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
22352 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
22353 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
22354 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
22355 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
22356 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
22357 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
22358 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
22359 "\x15\x01\x01\x01",
22360 .rlen = 76,
22361 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
22362 "\x10\x10\x10\x10\x4E\x28\x00\x00"
22363 "\xA2\xFC\xA1\xA3",
22364 .alen = 20,
22365 .input = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
22366 "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
22367 "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
22368 "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
22369 "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
22370 "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
22371 "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
22372 "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
22373 "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
22374 "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
22375 "\x76\x91\x89\x60\x97\x63\xB8\xE1"
22376 "\x8C\xAA\x81\xE2",
22377 .ilen = 92,
22378 }, {
22379 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22380 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22381 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22382 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22383 "\x73\x61\x6C\x74",
22384 .klen = 36,
22385 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
22386 .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
22387 "\x6C\x65\x73\x01\x74\x68\x65\x01"
22388 "\x6E\x65\x74\x77\x65\x01\x64\x65"
22389 "\x66\x69\x6E\x65\x01\x74\x68\x65"
22390 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
22391 "\x67\x69\x65\x73\x01\x74\x68\x61"
22392 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
22393 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
22394 "\x72\x72\x6F\x77\x01\x02\x02\x01",
22395 .rlen = 72,
22396 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
22397 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
22398 "\x69\x76\x65\x63",
22399 .alen = 20,
22400 .input = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
22401 "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
22402 "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
22403 "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
22404 "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
22405 "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
22406 "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
22407 "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
22408 "\x12\xA4\x93\x63\x41\x23\x64\xF8"
22409 "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
22410 "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
22411 .ilen = 88,
22412 }, {
22413 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
22414 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
22415 "\xD9\x66\x42\x67",
22416 .klen = 20,
22417 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
22418 .result = "\x01\x02\x02\x01",
22419 .rlen = 4,
22420 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
22421 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
22422 .alen = 16,
22423 .input = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
22424 "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
22425 "\x04\xBE\xF2\x70",
22426 .ilen = 20,
22427 }, {
22428 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22429 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22430 "\xDE\xCA\xF8\x88",
22431 .klen = 20,
22432 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
22433 .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
22434 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
22435 "\x62\x65\x00\x01",
22436 .rlen = 20,
22437 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
22438 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
22439 "\xCE\xFA\xCE\x74",
22440 .alen = 20,
22441 .input = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
22442 "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
22443 "\x43\x33\x21\x64\x41\x25\x03\x52"
22444 "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
22445 "\x43\xAF\x8C\x3E",
22446 .ilen = 36,
22447 }, {
22448 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
22449 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
22450 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
22451 "\x62\x65\x66\x6F\x72\x65\x69\x61"
22452 "\x74\x75\x72\x6E",
22453 .klen = 36,
22454 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
22455 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
22456 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
22457 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
22458 "\x02\x00\x07\x00\x61\x62\x63\x64"
22459 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
22460 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
22461 "\x01\x02\x02\x01",
22462 .rlen = 52,
22463 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
22464 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
22465 "\x67\x65\x74\x6D",
22466 .alen = 20,
22467 .input = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
22468 "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
22469 "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
22470 "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
22471 "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
22472 "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
22473 "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
22474 "\x94\x5F\x66\x93\x68\x66\x1A\x32"
22475 "\x9F\xB4\xC0\x53",
22476 .ilen = 68,
22477 }, {
22478 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
22479 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
22480 "\x57\x69\x0E\x43",
22481 .klen = 20,
22482 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
22483 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
22484 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
22485 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
22486 "\x02\x00\x07\x00\x61\x62\x63\x64"
22487 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
22488 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
22489 "\x01\x02\x02\x01",
22490 .rlen = 52,
22491 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
22492 "\x10\x10\x10\x10\x4E\x28\x00\x00"
22493 "\xA2\xFC\xA1\xA3",
22494 .alen = 20,
22495 .input = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
22496 "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
22497 "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
22498 "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
22499 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
22500 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
22501 "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
22502 "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
22503 "\x40\xD7\xCB\x05",
22504 .ilen = 68,
22505 }, {
22506 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
22507 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
22508 "\x22\x43\x3C\x64",
22509 .klen = 20,
22510 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
22511 .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
22512 "\x61\x62\x63\x64\x65\x66\x67\x68"
22513 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
22514 "\x71\x72\x73\x74\x01\x02\x02\x01",
22515 .rlen = 32,
22516 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
22517 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
22518 "\x3A\x23\x4B\xFD",
22519 .alen = 20,
22520 .input = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
22521 "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
22522 "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
22523 "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
22524 "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
22525 "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
22526 .ilen = 48,
22530 static struct aead_testvec aes_gcm_rfc4543_enc_tv_template[] = {
22531 { /* From draft-mcgrew-gcm-test-01 */
22532 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
22533 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
22534 "\x22\x43\x3c\x64",
22535 .klen = 20,
22536 .iv = zeroed_string,
22537 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
22538 "\x00\x00\x00\x00\x00\x00\x00\x00",
22539 .alen = 16,
22540 .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22541 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22542 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22543 "\x02\x00\x07\x00\x61\x62\x63\x64"
22544 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22545 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22546 "\x01\x02\x02\x01",
22547 .ilen = 52,
22548 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22549 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22550 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22551 "\x02\x00\x07\x00\x61\x62\x63\x64"
22552 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22553 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22554 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
22555 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
22556 "\xe4\x09\x9a\xaa",
22557 .rlen = 68,
22561 static struct aead_testvec aes_gcm_rfc4543_dec_tv_template[] = {
22562 { /* From draft-mcgrew-gcm-test-01 */
22563 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
22564 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
22565 "\x22\x43\x3c\x64",
22566 .klen = 20,
22567 .iv = zeroed_string,
22568 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
22569 "\x00\x00\x00\x00\x00\x00\x00\x00",
22570 .alen = 16,
22571 .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22572 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22573 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22574 "\x02\x00\x07\x00\x61\x62\x63\x64"
22575 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22576 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22577 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
22578 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
22579 "\xe4\x09\x9a\xaa",
22580 .ilen = 68,
22581 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22582 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22583 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22584 "\x02\x00\x07\x00\x61\x62\x63\x64"
22585 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22586 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22587 "\x01\x02\x02\x01",
22588 .rlen = 52,
22589 }, { /* nearly same as previous, but should fail */
22590 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
22591 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
22592 "\x22\x43\x3c\x64",
22593 .klen = 20,
22594 .iv = zeroed_string,
22595 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
22596 "\x00\x00\x00\x00\x00\x00\x00\x00",
22597 .alen = 16,
22598 .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22599 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22600 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22601 "\x02\x00\x07\x00\x61\x62\x63\x64"
22602 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22603 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22604 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
22605 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
22606 "\x00\x00\x00\x00",
22607 .ilen = 68,
22608 .novrfy = 1,
22609 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22610 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22611 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22612 "\x02\x00\x07\x00\x61\x62\x63\x64"
22613 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22614 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22615 "\x01\x02\x02\x01",
22616 .rlen = 52,
22620 static struct aead_testvec aes_ccm_enc_tv_template[] = {
22621 { /* From RFC 3610 */
22622 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22623 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22624 .klen = 16,
22625 .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
22626 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22627 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
22628 .alen = 8,
22629 .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22630 "\x10\x11\x12\x13\x14\x15\x16\x17"
22631 "\x18\x19\x1a\x1b\x1c\x1d\x1e",
22632 .ilen = 23,
22633 .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
22634 "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
22635 "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
22636 "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
22637 .rlen = 31,
22638 }, {
22639 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22640 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22641 .klen = 16,
22642 .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
22643 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22644 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
22645 "\x08\x09\x0a\x0b",
22646 .alen = 12,
22647 .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
22648 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
22649 "\x1c\x1d\x1e\x1f",
22650 .ilen = 20,
22651 .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
22652 "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
22653 "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
22654 "\x7d\x9c\x2d\x93",
22655 .rlen = 28,
22656 }, {
22657 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22658 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22659 .klen = 16,
22660 .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
22661 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22662 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
22663 .alen = 8,
22664 .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22665 "\x10\x11\x12\x13\x14\x15\x16\x17"
22666 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
22667 "\x20",
22668 .ilen = 25,
22669 .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
22670 "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
22671 "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
22672 "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
22673 "\x7e\x5f\x4e",
22674 .rlen = 35,
22675 }, {
22676 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22677 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22678 .klen = 16,
22679 .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
22680 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22681 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
22682 "\x08\x09\x0a\x0b",
22683 .alen = 12,
22684 .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
22685 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
22686 "\x1c\x1d\x1e",
22687 .ilen = 19,
22688 .result = "\x07\x34\x25\x94\x15\x77\x85\x15"
22689 "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
22690 "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
22691 "\x4d\x99\x99\x88\xdd",
22692 .rlen = 29,
22693 }, {
22694 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
22695 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
22696 .klen = 16,
22697 .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
22698 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
22699 .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
22700 .alen = 8,
22701 .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
22702 "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
22703 "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
22704 .ilen = 24,
22705 .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
22706 "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
22707 "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
22708 "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
22709 .rlen = 32,
22710 }, {
22711 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
22712 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
22713 .klen = 16,
22714 .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
22715 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
22716 .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
22717 "\x20\xea\x60\xc0",
22718 .alen = 12,
22719 .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
22720 "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
22721 "\x3a\x80\x3b\xa8\x7f",
22722 .ilen = 21,
22723 .result = "\x00\x97\x69\xec\xab\xdf\x48\x62"
22724 "\x55\x94\xc5\x92\x51\xe6\x03\x57"
22725 "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
22726 "\x5a\xe0\x70\x45\x51",
22727 .rlen = 29,
22728 }, {
22729 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
22730 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
22731 .klen = 16,
22732 .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
22733 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
22734 .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
22735 .alen = 8,
22736 .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
22737 "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
22738 "\x98\x09\xd6\x7d\xbe\xdd\x18",
22739 .ilen = 23,
22740 .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
22741 "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
22742 "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
22743 "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
22744 "\xba",
22745 .rlen = 33,
22746 }, {
22747 /* This is taken from FIPS CAVS. */
22748 .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
22749 "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e",
22750 .klen = 16,
22751 .iv = "\x03\x96\xac\x59\x30\x07\xa1\xe2\xa2\xc7\x55\x24\0\0\0\0",
22752 .alen = 0,
22753 .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
22754 "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
22755 "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
22756 "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
22757 .ilen = 32,
22758 .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
22759 "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
22760 "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
22761 "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
22762 "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
22763 "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
22764 .rlen = 48,
22765 }, {
22766 .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
22767 "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3",
22768 .klen = 16,
22769 .iv = "\x03\x4f\xa3\x19\xd3\x01\x5a\xd8"
22770 "\x30\x60\x15\x56\x00\x00\x00\x00",
22771 .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
22772 "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
22773 "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
22774 "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
22775 .alen = 32,
22776 .input = "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
22777 "\xa9\x28\x63\xba\x12\xa3\x14\x85"
22778 "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
22779 "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
22780 .ilen = 32,
22781 .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
22782 "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
22783 "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
22784 "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
22785 "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
22786 "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
22787 .rlen = 48,
22788 }, {
22789 .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
22790 "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
22791 "\x53\x14\x73\x66\x8d\x88\xf6\x80",
22792 .klen = 24,
22793 .iv = "\x03\xa0\x20\x35\x26\xf2\x21\x8d"
22794 "\x50\x20\xda\xe2\x00\x00\x00\x00",
22795 .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
22796 "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
22797 "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
22798 "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
22799 .alen = 32,
22800 .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
22801 "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
22802 .rlen = 16,
22803 }, {
22804 .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
22805 "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
22806 "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01",
22807 .klen = 24,
22808 .iv = "\x03\xd6\x3c\x8c\x86\x84\xb6\xcd"
22809 "\xef\x09\x2e\x94\x00\x00\x00\x00",
22810 .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91"
22811 "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
22812 "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
22813 "\xe3\x00\x73\x69\x84\x69\x87\x79",
22814 .alen = 32,
22815 .input = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
22816 "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
22817 "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
22818 "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
22819 .ilen = 32,
22820 .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
22821 "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
22822 "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
22823 "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
22824 "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
22825 "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
22826 .rlen = 48,
22827 }, {
22828 .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
22829 "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
22830 "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
22831 "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b",
22832 .klen = 32,
22833 .iv = "\x03\x1e\x29\x91\xad\x8e\xc1\x53"
22834 "\x0a\xcf\x2d\xbe\x00\x00\x00\x00",
22835 .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
22836 "\x78\x2b\x94\x02\x29\x0f\x42\x27"
22837 "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
22838 "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
22839 .alen = 32,
22840 .input = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
22841 "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
22842 "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
22843 "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
22844 .ilen = 32,
22845 .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96"
22846 "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
22847 "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
22848 "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
22849 "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
22850 .rlen = 40,
22851 }, {
22852 .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
22853 "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
22854 "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
22855 "\x09\x75\x9a\x9b\x3c\x9b\x27\x39",
22856 .klen = 32,
22857 .iv = "\x03\xf9\xd9\x4e\x63\xb5\x3d\x9d"
22858 "\x43\xf6\x1e\x50\0\0\0\0",
22859 .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
22860 "\x13\x02\x01\x0c\x83\x4c\x96\x35"
22861 "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
22862 "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
22863 .alen = 32,
22864 .input = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
22865 "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
22866 "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
22867 "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
22868 .ilen = 32,
22869 .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
22870 "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
22871 "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
22872 "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
22873 "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
22874 "\x7b\x72\x8a\xf7",
22875 .rlen = 44,
22876 }, {
22877 .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
22878 "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
22879 "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
22880 "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b",
22881 .klen = 32,
22882 .iv = "\x03\x24\xa7\x8b\x07\xcb\xcc\x0e"
22883 "\xe6\x33\xbf\xf5\x00\x00\x00\x00",
22884 .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
22885 "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
22886 "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
22887 "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
22888 .alen = 32,
22889 .input = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
22890 "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
22891 "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
22892 "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
22893 .ilen = 32,
22894 .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
22895 "\xef\xbb\x80\x21\x04\x6c\x58\x09"
22896 "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
22897 "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
22898 "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
22899 "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
22900 .rlen = 48,
22904 static struct aead_testvec aes_ccm_dec_tv_template[] = {
22905 { /* From RFC 3610 */
22906 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22907 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22908 .klen = 16,
22909 .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
22910 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22911 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
22912 .alen = 8,
22913 .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
22914 "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
22915 "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
22916 "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
22917 .ilen = 31,
22918 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22919 "\x10\x11\x12\x13\x14\x15\x16\x17"
22920 "\x18\x19\x1a\x1b\x1c\x1d\x1e",
22921 .rlen = 23,
22922 }, {
22923 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22924 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22925 .klen = 16,
22926 .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
22927 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22928 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
22929 "\x08\x09\x0a\x0b",
22930 .alen = 12,
22931 .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
22932 "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
22933 "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
22934 "\x7d\x9c\x2d\x93",
22935 .ilen = 28,
22936 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
22937 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
22938 "\x1c\x1d\x1e\x1f",
22939 .rlen = 20,
22940 }, {
22941 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22942 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22943 .klen = 16,
22944 .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
22945 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22946 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
22947 .alen = 8,
22948 .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
22949 "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
22950 "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
22951 "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
22952 "\x7e\x5f\x4e",
22953 .ilen = 35,
22954 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22955 "\x10\x11\x12\x13\x14\x15\x16\x17"
22956 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
22957 "\x20",
22958 .rlen = 25,
22959 }, {
22960 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22961 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22962 .klen = 16,
22963 .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
22964 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22965 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
22966 "\x08\x09\x0a\x0b",
22967 .alen = 12,
22968 .input = "\x07\x34\x25\x94\x15\x77\x85\x15"
22969 "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
22970 "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
22971 "\x4d\x99\x99\x88\xdd",
22972 .ilen = 29,
22973 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
22974 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
22975 "\x1c\x1d\x1e",
22976 .rlen = 19,
22977 }, {
22978 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
22979 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
22980 .klen = 16,
22981 .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
22982 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
22983 .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
22984 .alen = 8,
22985 .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
22986 "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
22987 "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
22988 "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
22989 .ilen = 32,
22990 .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
22991 "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
22992 "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
22993 .rlen = 24,
22994 }, {
22995 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
22996 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
22997 .klen = 16,
22998 .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
22999 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
23000 .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
23001 "\x20\xea\x60\xc0",
23002 .alen = 12,
23003 .input = "\x00\x97\x69\xec\xab\xdf\x48\x62"
23004 "\x55\x94\xc5\x92\x51\xe6\x03\x57"
23005 "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
23006 "\x5a\xe0\x70\x45\x51",
23007 .ilen = 29,
23008 .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
23009 "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
23010 "\x3a\x80\x3b\xa8\x7f",
23011 .rlen = 21,
23012 }, {
23013 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
23014 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
23015 .klen = 16,
23016 .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
23017 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
23018 .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
23019 .alen = 8,
23020 .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
23021 "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
23022 "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
23023 "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
23024 "\xba",
23025 .ilen = 33,
23026 .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
23027 "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
23028 "\x98\x09\xd6\x7d\xbe\xdd\x18",
23029 .rlen = 23,
23030 }, {
23031 /* This is taken from FIPS CAVS. */
23032 .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
23033 "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
23034 .klen = 16,
23035 .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
23036 "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
23037 .alen = 0,
23038 .input = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
23039 .ilen = 8,
23040 .result = "\x00",
23041 .rlen = 0,
23042 .novrfy = 1,
23043 }, {
23044 .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
23045 "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
23046 .klen = 16,
23047 .iv = "\x03\xaf\x94\x87\x78\x35\x82\x81"
23048 "\x7f\x88\x94\x68\x00\x00\x00\x00",
23049 .alen = 0,
23050 .input = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
23051 .ilen = 8,
23052 .result = "\x00",
23053 .rlen = 0,
23054 }, {
23055 .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
23056 "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
23057 .klen = 16,
23058 .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
23059 "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
23060 .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
23061 "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
23062 "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
23063 "\xd8\x94\x99\x91\x81\x54\x62\x57",
23064 .alen = 32,
23065 .input = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
23066 "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
23067 "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
23068 "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
23069 "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
23070 "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
23071 .ilen = 48,
23072 .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
23073 "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
23074 "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
23075 "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
23076 .rlen = 32,
23077 .novrfy = 1,
23078 }, {
23079 .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
23080 "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
23081 .klen = 16,
23082 .iv = "\x03\x05\xe0\xc9\x0f\xed\x34\xea"
23083 "\x97\xd4\x3b\xdf\x00\x00\x00\x00",
23084 .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
23085 "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
23086 "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
23087 "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
23088 .alen = 32,
23089 .input = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
23090 "\xad\x83\x52\x6d\x71\x03\x25\x1c"
23091 "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
23092 "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
23093 "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
23094 "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
23095 .ilen = 48,
23096 .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
23097 "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
23098 "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
23099 "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
23100 .rlen = 32,
23101 }, {
23102 .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
23103 "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
23104 "\xa4\x48\x93\x39\x26\x71\x4a\xc6",
23105 .klen = 24,
23106 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
23107 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
23108 .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
23109 "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
23110 "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
23111 "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
23112 .alen = 32,
23113 .input = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
23114 .ilen = 8,
23115 .result = "\x00",
23116 .rlen = 0,
23117 }, {
23118 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
23119 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
23120 "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
23121 .klen = 24,
23122 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
23123 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
23124 .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
23125 "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
23126 "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
23127 "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
23128 .alen = 32,
23129 .input = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
23130 "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
23131 "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
23132 "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
23133 "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
23134 .ilen = 40,
23135 .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
23136 "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
23137 "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
23138 "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
23139 .rlen = 32,
23140 }, {
23141 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
23142 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
23143 "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
23144 .klen = 24,
23145 .iv = "\x03\xd1\xfc\x57\x9c\xfe\xb8\x9c"
23146 "\xad\x71\xaa\x1f\x00\x00\x00\x00",
23147 .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
23148 "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
23149 "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
23150 "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
23151 .alen = 32,
23152 .input = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
23153 "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
23154 "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
23155 "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
23156 "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
23157 "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
23158 .ilen = 48,
23159 .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
23160 "\x99\x2a\xa8\xca\x04\x25\x45\x90"
23161 "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
23162 "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
23163 .rlen = 32,
23164 .novrfy = 1,
23165 }, {
23166 .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
23167 "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
23168 "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
23169 "\x0e\x85\xbc\x33\xad\x0f\x2b\xff",
23170 .klen = 32,
23171 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
23172 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
23173 .alen = 0,
23174 .input = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
23175 .ilen = 8,
23176 .result = "\x00",
23177 .rlen = 0,
23178 }, {
23179 .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
23180 "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
23181 "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
23182 "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb",
23183 .klen = 32,
23184 .iv = "\x03\x85\x34\x66\x42\xc8\x92\x0f"
23185 "\x36\x58\xe0\x6b\x00\x00\x00\x00",
23186 .alen = 0,
23187 .input = "\x48\x01\x5e\x02\x24\x04\x66\x47"
23188 "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
23189 "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
23190 "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
23191 "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
23192 "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
23193 .ilen = 48,
23194 .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
23195 "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
23196 "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
23197 "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
23198 .rlen = 32,
23199 .novrfy = 1,
23200 }, {
23201 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
23202 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
23203 "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
23204 "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b",
23205 .klen = 32,
23206 .iv = "\x03\xcf\x76\x3f\xd9\x95\x75\x8f"
23207 "\x44\x89\x40\x7b\x00\x00\x00\x00",
23208 .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
23209 "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
23210 "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
23211 "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
23212 .alen = 32,
23213 .input = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
23214 "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
23215 "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
23216 "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
23217 "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
23218 "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
23219 .ilen = 48,
23220 .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
23221 "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
23222 "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
23223 "\x04\x49\x3b\x19\x93\x57\x25\x5d",
23224 .rlen = 32,
23229 * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
23230 * use a 13-byte nonce, we only support an 11-byte nonce. Worse,
23231 * they use AD lengths which are not valid ESP header lengths.
23233 * These vectors are copied/generated from the ones for rfc4106 with
23234 * the key truncated by one byte..
23236 static struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = {
23237 { /* Generated using Crypto++ */
23238 .key = zeroed_string,
23239 .klen = 19,
23240 .iv = zeroed_string,
23241 .input = zeroed_string,
23242 .ilen = 16,
23243 .assoc = zeroed_string,
23244 .alen = 16,
23245 .result = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
23246 "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
23247 "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
23248 "\x27\x50\x01\xAC\x03\x33\x39\xFB",
23249 .rlen = 32,
23251 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23252 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23253 "\x00\x00\x00",
23254 .klen = 19,
23255 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
23256 .input = zeroed_string,
23257 .ilen = 16,
23258 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
23259 "\x00\x00\x00\x00\x00\x00\x00\x01",
23260 .alen = 16,
23261 .result = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
23262 "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
23263 "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
23264 "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
23265 .rlen = 32,
23267 }, {
23268 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23269 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23270 "\x00\x00\x00",
23271 .klen = 19,
23272 .iv = zeroed_string,
23273 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
23274 "\x01\x01\x01\x01\x01\x01\x01\x01",
23275 .ilen = 16,
23276 .assoc = zeroed_string,
23277 .alen = 16,
23278 .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
23279 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
23280 "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
23281 "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
23282 .rlen = 32,
23283 }, {
23284 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23285 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23286 "\x00\x00\x00",
23287 .klen = 19,
23288 .iv = zeroed_string,
23289 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
23290 "\x01\x01\x01\x01\x01\x01\x01\x01",
23291 .ilen = 16,
23292 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
23293 "\x00\x00\x00\x00\x00\x00\x00\x00",
23294 .alen = 16,
23295 .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
23296 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
23297 "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
23298 "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
23299 .rlen = 32,
23300 }, {
23301 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23302 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23303 "\x00\x00\x00",
23304 .klen = 19,
23305 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
23306 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
23307 "\x01\x01\x01\x01\x01\x01\x01\x01",
23308 .ilen = 16,
23309 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
23310 "\x00\x00\x00\x00\x00\x00\x00\x01",
23311 .alen = 16,
23312 .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
23313 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
23314 "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
23315 "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
23316 .rlen = 32,
23317 }, {
23318 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23319 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23320 "\x00\x00\x00",
23321 .klen = 19,
23322 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
23323 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
23324 "\x01\x01\x01\x01\x01\x01\x01\x01"
23325 "\x01\x01\x01\x01\x01\x01\x01\x01"
23326 "\x01\x01\x01\x01\x01\x01\x01\x01"
23327 "\x01\x01\x01\x01\x01\x01\x01\x01"
23328 "\x01\x01\x01\x01\x01\x01\x01\x01"
23329 "\x01\x01\x01\x01\x01\x01\x01\x01"
23330 "\x01\x01\x01\x01\x01\x01\x01\x01",
23331 .ilen = 64,
23332 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
23333 "\x00\x00\x00\x00\x00\x00\x00\x01",
23334 .alen = 16,
23335 .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
23336 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
23337 "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
23338 "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
23339 "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
23340 "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
23341 "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
23342 "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
23343 "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
23344 "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
23345 .rlen = 80,
23346 }, {
23347 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
23348 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23349 "\x00\x00\x00",
23350 .klen = 19,
23351 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
23352 .input = "\xff\xff\xff\xff\xff\xff\xff\xff"
23353 "\xff\xff\xff\xff\xff\xff\xff\xff"
23354 "\xff\xff\xff\xff\xff\xff\xff\xff"
23355 "\xff\xff\xff\xff\xff\xff\xff\xff"
23356 "\xff\xff\xff\xff\xff\xff\xff\xff"
23357 "\xff\xff\xff\xff\xff\xff\xff\xff"
23358 "\xff\xff\xff\xff\xff\xff\xff\xff"
23359 "\xff\xff\xff\xff\xff\xff\xff\xff"
23360 "\xff\xff\xff\xff\xff\xff\xff\xff"
23361 "\xff\xff\xff\xff\xff\xff\xff\xff"
23362 "\xff\xff\xff\xff\xff\xff\xff\xff"
23363 "\xff\xff\xff\xff\xff\xff\xff\xff"
23364 "\xff\xff\xff\xff\xff\xff\xff\xff"
23365 "\xff\xff\xff\xff\xff\xff\xff\xff"
23366 "\xff\xff\xff\xff\xff\xff\xff\xff"
23367 "\xff\xff\xff\xff\xff\xff\xff\xff"
23368 "\xff\xff\xff\xff\xff\xff\xff\xff"
23369 "\xff\xff\xff\xff\xff\xff\xff\xff"
23370 "\xff\xff\xff\xff\xff\xff\xff\xff"
23371 "\xff\xff\xff\xff\xff\xff\xff\xff"
23372 "\xff\xff\xff\xff\xff\xff\xff\xff"
23373 "\xff\xff\xff\xff\xff\xff\xff\xff"
23374 "\xff\xff\xff\xff\xff\xff\xff\xff"
23375 "\xff\xff\xff\xff\xff\xff\xff\xff",
23376 .ilen = 192,
23377 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
23378 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
23379 "\x89\xab\xcd\xef",
23380 .alen = 20,
23381 .result = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
23382 "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
23383 "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
23384 "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
23385 "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
23386 "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
23387 "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
23388 "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
23389 "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
23390 "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
23391 "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
23392 "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
23393 "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
23394 "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
23395 "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
23396 "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
23397 "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
23398 "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
23399 "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
23400 "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
23401 "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
23402 "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
23403 "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
23404 "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
23405 "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
23406 "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
23407 .rlen = 208,
23408 }, { /* From draft-mcgrew-gcm-test-01 */
23409 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
23410 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
23411 "\x2E\x44\x3B",
23412 .klen = 19,
23413 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
23414 .input = "\x45\x00\x00\x48\x69\x9A\x00\x00"
23415 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
23416 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
23417 "\x38\xD3\x01\x00\x00\x01\x00\x00"
23418 "\x00\x00\x00\x00\x04\x5F\x73\x69"
23419 "\x70\x04\x5F\x75\x64\x70\x03\x73"
23420 "\x69\x70\x09\x63\x79\x62\x65\x72"
23421 "\x63\x69\x74\x79\x02\x64\x6B\x00"
23422 "\x00\x21\x00\x01\x01\x02\x02\x01",
23423 .ilen = 72,
23424 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
23425 "\x00\x00\x00\x00\x49\x56\xED\x7E"
23426 "\x3B\x24\x4C\xFE",
23427 .alen = 20,
23428 .result = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
23429 "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
23430 "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
23431 "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
23432 "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
23433 "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
23434 "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
23435 "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
23436 "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
23437 "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
23438 "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
23439 .rlen = 88,
23440 }, {
23441 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
23442 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
23443 "\xCA\xFE\xBA",
23444 .klen = 19,
23445 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
23446 .input = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
23447 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
23448 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
23449 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
23450 "\x00\x01\x00\x00\x00\x00\x00\x00"
23451 "\x03\x73\x69\x70\x09\x63\x79\x62"
23452 "\x65\x72\x63\x69\x74\x79\x02\x64"
23453 "\x6B\x00\x00\x01\x00\x01\x00\x01",
23454 .ilen = 64,
23455 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
23456 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
23457 .alen = 16,
23458 .result = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
23459 "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
23460 "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
23461 "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
23462 "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
23463 "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
23464 "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
23465 "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
23466 "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
23467 "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
23468 .rlen = 80,
23469 }, {
23470 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23471 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23472 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23473 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23474 "\x11\x22\x33",
23475 .klen = 35,
23476 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
23477 .input = "\x45\x00\x00\x30\x69\xA6\x40\x00"
23478 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
23479 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
23480 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
23481 "\x70\x02\x40\x00\x20\xBF\x00\x00"
23482 "\x02\x04\x05\xB4\x01\x01\x04\x02"
23483 "\x01\x02\x02\x01",
23484 .ilen = 52,
23485 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
23486 "\x01\x02\x03\x04\x05\x06\x07\x08",
23487 .alen = 16,
23488 .result = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
23489 "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
23490 "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
23491 "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
23492 "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
23493 "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
23494 "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
23495 "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
23496 "\x5A\x48\x6A\x3E",
23497 .rlen = 68,
23498 }, {
23499 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
23500 "\x00\x00\x00\x00\x00\x00\x00\x00"
23501 "\x00\x00\x00",
23502 .klen = 19,
23503 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
23504 .input = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
23505 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
23506 "\x01\x01\x01\x01\x08\x00\x07\x5C"
23507 "\x02\x00\x44\x00\x61\x62\x63\x64"
23508 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
23509 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
23510 "\x75\x76\x77\x61\x62\x63\x64\x65"
23511 "\x66\x67\x68\x69\x01\x02\x02\x01",
23512 .ilen = 64,
23513 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
23514 "\x00\x00\x00\x00\x00\x00\x00\x00",
23515 .alen = 16,
23516 .result = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
23517 "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
23518 "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
23519 "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
23520 "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
23521 "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
23522 "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
23523 "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
23524 "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
23525 "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
23526 .rlen = 80,
23527 }, {
23528 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
23529 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
23530 "\x57\x69\x0E",
23531 .klen = 19,
23532 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
23533 .input = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
23534 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
23535 "\x01\x01\x01\x01\x08\x00\x08\x5C"
23536 "\x02\x00\x43\x00\x61\x62\x63\x64"
23537 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
23538 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
23539 "\x75\x76\x77\x61\x62\x63\x64\x65"
23540 "\x66\x67\x68\x69\x01\x02\x02\x01",
23541 .ilen = 64,
23542 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
23543 "\x10\x10\x10\x10\x4E\x28\x00\x00"
23544 "\xA2\xFC\xA1\xA3",
23545 .alen = 20,
23546 .result = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
23547 "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
23548 "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
23549 "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
23550 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
23551 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
23552 "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
23553 "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
23554 "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
23555 "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
23556 .rlen = 80,
23557 }, {
23558 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
23559 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
23560 "\x57\x69\x0E",
23561 .klen = 19,
23562 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
23563 .input = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
23564 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
23565 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
23566 "\x01\x02\x02\x01",
23567 .ilen = 28,
23568 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
23569 "\x10\x10\x10\x10\x4E\x28\x00\x00"
23570 "\xA2\xFC\xA1\xA3",
23571 .alen = 20,
23572 .result = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
23573 "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
23574 "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
23575 "\xA1\xE5\x90\x40\x05\x37\x45\x70"
23576 "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
23577 "\x08\xB4\x22\xE4",
23578 .rlen = 44,
23579 }, {
23580 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
23581 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
23582 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
23583 "\xCA\xFE\xBA",
23584 .klen = 27,
23585 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
23586 .input = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
23587 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
23588 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
23589 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
23590 "\x50\x10\x16\xD0\x75\x68\x00\x01",
23591 .ilen = 40,
23592 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
23593 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
23594 .alen = 16,
23595 .result = "\x05\x22\x15\xD1\x52\x56\x85\x04"
23596 "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
23597 "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
23598 "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
23599 "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
23600 "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
23601 "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
23602 .rlen = 56,
23603 }, {
23604 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23605 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23606 "\xDE\xCA\xF8",
23607 .klen = 19,
23608 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
23609 .input = "\x45\x00\x00\x49\x33\xBA\x00\x00"
23610 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
23611 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
23612 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
23613 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
23614 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
23615 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
23616 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
23617 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
23618 "\x23\x01\x01\x01",
23619 .ilen = 76,
23620 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
23621 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
23622 "\xCE\xFA\xCE\x74",
23623 .alen = 20,
23624 .result = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
23625 "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
23626 "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
23627 "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
23628 "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
23629 "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
23630 "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
23631 "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
23632 "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
23633 "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
23634 "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
23635 "\x12\x25\x0B\xF9",
23636 .rlen = 92,
23637 }, {
23638 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23639 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23640 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23641 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23642 "\x73\x61\x6C",
23643 .klen = 35,
23644 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
23645 .input = "\x45\x08\x00\x28\x73\x2C\x00\x00"
23646 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
23647 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
23648 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
23649 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
23650 .ilen = 40,
23651 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
23652 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
23653 "\x69\x76\x65\x63",
23654 .alen = 20,
23655 .result = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
23656 "\x2C\x64\x87\x46\x1E\x34\x10\x05"
23657 "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
23658 "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
23659 "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
23660 "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
23661 "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
23662 .rlen = 56,
23663 }, {
23664 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
23665 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
23666 "\x57\x69\x0E",
23667 .klen = 19,
23668 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
23669 .input = "\x45\x00\x00\x49\x33\x3E\x00\x00"
23670 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
23671 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
23672 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
23673 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
23674 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
23675 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
23676 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
23677 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
23678 "\x15\x01\x01\x01",
23679 .ilen = 76,
23680 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
23681 "\x10\x10\x10\x10\x4E\x28\x00\x00"
23682 "\xA2\xFC\xA1\xA3",
23683 .alen = 20,
23684 .result = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
23685 "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
23686 "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
23687 "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
23688 "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
23689 "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
23690 "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
23691 "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
23692 "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
23693 "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
23694 "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
23695 "\xCC\xF7\x46\x6F",
23696 .rlen = 92,
23697 }, {
23698 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23699 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23700 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23701 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23702 "\x73\x61\x6C",
23703 .klen = 35,
23704 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
23705 .input = "\x63\x69\x73\x63\x6F\x01\x72\x75"
23706 "\x6C\x65\x73\x01\x74\x68\x65\x01"
23707 "\x6E\x65\x74\x77\x65\x01\x64\x65"
23708 "\x66\x69\x6E\x65\x01\x74\x68\x65"
23709 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
23710 "\x67\x69\x65\x73\x01\x74\x68\x61"
23711 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
23712 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
23713 "\x72\x72\x6F\x77\x01\x02\x02\x01",
23714 .ilen = 72,
23715 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
23716 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
23717 "\x69\x76\x65\x63",
23718 .alen = 20,
23719 .result = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
23720 "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
23721 "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
23722 "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
23723 "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
23724 "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
23725 "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
23726 "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
23727 "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
23728 "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
23729 "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
23730 .rlen = 88,
23731 }, {
23732 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
23733 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
23734 "\xD9\x66\x42",
23735 .klen = 19,
23736 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
23737 .input = "\x01\x02\x02\x01",
23738 .ilen = 4,
23739 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
23740 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
23741 .alen = 16,
23742 .result = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
23743 "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
23744 "\xF7\x61\x24\x62",
23745 .rlen = 20,
23746 }, {
23747 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23748 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23749 "\xDE\xCA\xF8",
23750 .klen = 19,
23751 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
23752 .input = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
23753 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
23754 "\x62\x65\x00\x01",
23755 .ilen = 20,
23756 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
23757 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
23758 "\xCE\xFA\xCE\x74",
23759 .alen = 20,
23760 .result = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
23761 "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
23762 "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
23763 "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
23764 "\x17\x17\x65\xAD",
23765 .rlen = 36,
23766 }, {
23767 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
23768 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
23769 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
23770 "\x62\x65\x66\x6F\x72\x65\x69\x61"
23771 "\x74\x75\x72",
23772 .klen = 35,
23773 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
23774 .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
23775 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
23776 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
23777 "\x02\x00\x07\x00\x61\x62\x63\x64"
23778 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
23779 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
23780 "\x01\x02\x02\x01",
23781 .ilen = 52,
23782 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
23783 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
23784 "\x67\x65\x74\x6D",
23785 .alen = 20,
23786 .result = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
23787 "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
23788 "\x48\x59\x80\x18\x1A\x18\x1A\x04"
23789 "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
23790 "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
23791 "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
23792 "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
23793 "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
23794 "\x39\xDB\xC8\xDC",
23795 .rlen = 68,
23796 }, {
23797 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
23798 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
23799 "\x57\x69\x0E",
23800 .klen = 19,
23801 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
23802 .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
23803 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
23804 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
23805 "\x02\x00\x07\x00\x61\x62\x63\x64"
23806 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
23807 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
23808 "\x01\x02\x02\x01",
23809 .ilen = 52,
23810 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
23811 "\x10\x10\x10\x10\x4E\x28\x00\x00"
23812 "\xA2\xFC\xA1\xA3",
23813 .alen = 20,
23814 .result = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
23815 "\x10\x60\x54\x25\xEB\x80\x04\x93"
23816 "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
23817 "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
23818 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
23819 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
23820 "\x44\xCC\x90\xBF\x00\x94\x94\x92"
23821 "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
23822 "\xF4\x95\x5D\x4F",
23823 .rlen = 68,
23824 }, {
23825 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
23826 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
23827 "\x22\x43\x3C",
23828 .klen = 19,
23829 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
23830 .input = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
23831 "\x61\x62\x63\x64\x65\x66\x67\x68"
23832 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
23833 "\x71\x72\x73\x74\x01\x02\x02\x01",
23834 .ilen = 32,
23835 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
23836 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
23837 "\x3A\x23\x4B\xFD",
23838 .alen = 20,
23839 .result = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
23840 "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
23841 "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
23842 "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
23843 "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
23844 "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
23845 .rlen = 48,
23849 static struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = {
23850 { /* Generated using Crypto++ */
23851 .key = zeroed_string,
23852 .klen = 19,
23853 .iv = zeroed_string,
23854 .result = zeroed_string,
23855 .rlen = 16,
23856 .assoc = zeroed_string,
23857 .alen = 16,
23858 .input = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
23859 "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
23860 "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
23861 "\x27\x50\x01\xAC\x03\x33\x39\xFB",
23862 .ilen = 32,
23864 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23865 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23866 "\x00\x00\x00",
23867 .klen = 19,
23868 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
23869 .result = zeroed_string,
23870 .rlen = 16,
23871 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
23872 "\x00\x00\x00\x00\x00\x00\x00\x01",
23873 .alen = 16,
23874 .input = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
23875 "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
23876 "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
23877 "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
23878 .ilen = 32,
23880 }, {
23881 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23882 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23883 "\x00\x00\x00",
23884 .klen = 19,
23885 .iv = zeroed_string,
23886 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
23887 "\x01\x01\x01\x01\x01\x01\x01\x01",
23888 .rlen = 16,
23889 .assoc = zeroed_string,
23890 .alen = 16,
23891 .input = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
23892 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
23893 "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
23894 "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
23895 .ilen = 32,
23896 }, {
23897 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23898 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23899 "\x00\x00\x00",
23900 .klen = 19,
23901 .iv = zeroed_string,
23902 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
23903 "\x01\x01\x01\x01\x01\x01\x01\x01",
23904 .rlen = 16,
23905 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
23906 "\x00\x00\x00\x00\x00\x00\x00\x00",
23907 .alen = 16,
23908 .input = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
23909 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
23910 "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
23911 "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
23912 .ilen = 32,
23913 }, {
23914 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23915 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23916 "\x00\x00\x00",
23917 .klen = 19,
23918 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
23919 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
23920 "\x01\x01\x01\x01\x01\x01\x01\x01",
23921 .rlen = 16,
23922 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
23923 "\x00\x00\x00\x00\x00\x00\x00\x01",
23924 .alen = 16,
23925 .input = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
23926 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
23927 "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
23928 "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
23929 .ilen = 32,
23930 }, {
23931 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23932 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23933 "\x00\x00\x00",
23934 .klen = 19,
23935 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
23936 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
23937 "\x01\x01\x01\x01\x01\x01\x01\x01"
23938 "\x01\x01\x01\x01\x01\x01\x01\x01"
23939 "\x01\x01\x01\x01\x01\x01\x01\x01"
23940 "\x01\x01\x01\x01\x01\x01\x01\x01"
23941 "\x01\x01\x01\x01\x01\x01\x01\x01"
23942 "\x01\x01\x01\x01\x01\x01\x01\x01"
23943 "\x01\x01\x01\x01\x01\x01\x01\x01",
23944 .rlen = 64,
23945 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
23946 "\x00\x00\x00\x00\x00\x00\x00\x01",
23947 .alen = 16,
23948 .input = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
23949 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
23950 "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
23951 "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
23952 "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
23953 "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
23954 "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
23955 "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
23956 "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
23957 "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
23958 .ilen = 80,
23959 }, {
23960 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
23961 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23962 "\x00\x00\x00",
23963 .klen = 19,
23964 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
23965 .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
23966 "\xff\xff\xff\xff\xff\xff\xff\xff"
23967 "\xff\xff\xff\xff\xff\xff\xff\xff"
23968 "\xff\xff\xff\xff\xff\xff\xff\xff"
23969 "\xff\xff\xff\xff\xff\xff\xff\xff"
23970 "\xff\xff\xff\xff\xff\xff\xff\xff"
23971 "\xff\xff\xff\xff\xff\xff\xff\xff"
23972 "\xff\xff\xff\xff\xff\xff\xff\xff"
23973 "\xff\xff\xff\xff\xff\xff\xff\xff"
23974 "\xff\xff\xff\xff\xff\xff\xff\xff"
23975 "\xff\xff\xff\xff\xff\xff\xff\xff"
23976 "\xff\xff\xff\xff\xff\xff\xff\xff"
23977 "\xff\xff\xff\xff\xff\xff\xff\xff"
23978 "\xff\xff\xff\xff\xff\xff\xff\xff"
23979 "\xff\xff\xff\xff\xff\xff\xff\xff"
23980 "\xff\xff\xff\xff\xff\xff\xff\xff"
23981 "\xff\xff\xff\xff\xff\xff\xff\xff"
23982 "\xff\xff\xff\xff\xff\xff\xff\xff"
23983 "\xff\xff\xff\xff\xff\xff\xff\xff"
23984 "\xff\xff\xff\xff\xff\xff\xff\xff"
23985 "\xff\xff\xff\xff\xff\xff\xff\xff"
23986 "\xff\xff\xff\xff\xff\xff\xff\xff"
23987 "\xff\xff\xff\xff\xff\xff\xff\xff"
23988 "\xff\xff\xff\xff\xff\xff\xff\xff",
23989 .rlen = 192,
23990 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
23991 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
23992 "\x89\xab\xcd\xef",
23993 .alen = 20,
23994 .input = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
23995 "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
23996 "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
23997 "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
23998 "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
23999 "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
24000 "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
24001 "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
24002 "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
24003 "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
24004 "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
24005 "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
24006 "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
24007 "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
24008 "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
24009 "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
24010 "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
24011 "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
24012 "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
24013 "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
24014 "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
24015 "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
24016 "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
24017 "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
24018 "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
24019 "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
24020 .ilen = 208,
24021 }, { /* From draft-mcgrew-gcm-test-01 */
24022 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
24023 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
24024 "\x2E\x44\x3B",
24025 .klen = 19,
24026 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
24027 .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
24028 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
24029 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
24030 "\x38\xD3\x01\x00\x00\x01\x00\x00"
24031 "\x00\x00\x00\x00\x04\x5F\x73\x69"
24032 "\x70\x04\x5F\x75\x64\x70\x03\x73"
24033 "\x69\x70\x09\x63\x79\x62\x65\x72"
24034 "\x63\x69\x74\x79\x02\x64\x6B\x00"
24035 "\x00\x21\x00\x01\x01\x02\x02\x01",
24036 .rlen = 72,
24037 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
24038 "\x00\x00\x00\x00\x49\x56\xED\x7E"
24039 "\x3B\x24\x4C\xFE",
24040 .alen = 20,
24041 .input = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
24042 "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
24043 "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
24044 "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
24045 "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
24046 "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
24047 "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
24048 "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
24049 "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
24050 "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
24051 "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
24052 .ilen = 88,
24053 }, {
24054 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
24055 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
24056 "\xCA\xFE\xBA",
24057 .klen = 19,
24058 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
24059 .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
24060 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
24061 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
24062 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
24063 "\x00\x01\x00\x00\x00\x00\x00\x00"
24064 "\x03\x73\x69\x70\x09\x63\x79\x62"
24065 "\x65\x72\x63\x69\x74\x79\x02\x64"
24066 "\x6B\x00\x00\x01\x00\x01\x00\x01",
24067 .rlen = 64,
24068 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
24069 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
24070 .alen = 16,
24071 .input = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
24072 "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
24073 "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
24074 "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
24075 "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
24076 "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
24077 "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
24078 "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
24079 "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
24080 "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
24081 .ilen = 80,
24082 }, {
24083 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24084 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24085 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24086 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24087 "\x11\x22\x33",
24088 .klen = 35,
24089 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
24090 .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
24091 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
24092 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
24093 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
24094 "\x70\x02\x40\x00\x20\xBF\x00\x00"
24095 "\x02\x04\x05\xB4\x01\x01\x04\x02"
24096 "\x01\x02\x02\x01",
24097 .rlen = 52,
24098 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
24099 "\x01\x02\x03\x04\x05\x06\x07\x08",
24100 .alen = 16,
24101 .input = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
24102 "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
24103 "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
24104 "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
24105 "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
24106 "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
24107 "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
24108 "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
24109 "\x5A\x48\x6A\x3E",
24110 .ilen = 68,
24111 }, {
24112 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
24113 "\x00\x00\x00\x00\x00\x00\x00\x00"
24114 "\x00\x00\x00",
24115 .klen = 19,
24116 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
24117 .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
24118 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
24119 "\x01\x01\x01\x01\x08\x00\x07\x5C"
24120 "\x02\x00\x44\x00\x61\x62\x63\x64"
24121 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
24122 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
24123 "\x75\x76\x77\x61\x62\x63\x64\x65"
24124 "\x66\x67\x68\x69\x01\x02\x02\x01",
24125 .rlen = 64,
24126 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
24127 "\x00\x00\x00\x00\x00\x00\x00\x00",
24128 .alen = 16,
24129 .input = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
24130 "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
24131 "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
24132 "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
24133 "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
24134 "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
24135 "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
24136 "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
24137 "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
24138 "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
24139 .ilen = 80,
24140 }, {
24141 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
24142 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
24143 "\x57\x69\x0E",
24144 .klen = 19,
24145 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
24146 .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
24147 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
24148 "\x01\x01\x01\x01\x08\x00\x08\x5C"
24149 "\x02\x00\x43\x00\x61\x62\x63\x64"
24150 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
24151 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
24152 "\x75\x76\x77\x61\x62\x63\x64\x65"
24153 "\x66\x67\x68\x69\x01\x02\x02\x01",
24154 .rlen = 64,
24155 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
24156 "\x10\x10\x10\x10\x4E\x28\x00\x00"
24157 "\xA2\xFC\xA1\xA3",
24158 .alen = 20,
24159 .input = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
24160 "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
24161 "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
24162 "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
24163 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
24164 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
24165 "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
24166 "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
24167 "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
24168 "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
24169 .ilen = 80,
24170 }, {
24171 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
24172 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
24173 "\x57\x69\x0E",
24174 .klen = 19,
24175 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
24176 .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
24177 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
24178 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
24179 "\x01\x02\x02\x01",
24180 .rlen = 28,
24181 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
24182 "\x10\x10\x10\x10\x4E\x28\x00\x00"
24183 "\xA2\xFC\xA1\xA3",
24184 .alen = 20,
24185 .input = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
24186 "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
24187 "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
24188 "\xA1\xE5\x90\x40\x05\x37\x45\x70"
24189 "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
24190 "\x08\xB4\x22\xE4",
24191 .ilen = 44,
24192 }, {
24193 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
24194 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
24195 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
24196 "\xCA\xFE\xBA",
24197 .klen = 27,
24198 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
24199 .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
24200 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
24201 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
24202 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
24203 "\x50\x10\x16\xD0\x75\x68\x00\x01",
24204 .rlen = 40,
24205 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
24206 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
24207 .alen = 16,
24208 .input = "\x05\x22\x15\xD1\x52\x56\x85\x04"
24209 "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
24210 "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
24211 "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
24212 "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
24213 "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
24214 "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
24215 .ilen = 56,
24216 }, {
24217 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24218 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24219 "\xDE\xCA\xF8",
24220 .klen = 19,
24221 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
24222 .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
24223 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
24224 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
24225 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
24226 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
24227 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
24228 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
24229 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
24230 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
24231 "\x23\x01\x01\x01",
24232 .rlen = 76,
24233 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
24234 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
24235 "\xCE\xFA\xCE\x74",
24236 .alen = 20,
24237 .input = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
24238 "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
24239 "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
24240 "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
24241 "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
24242 "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
24243 "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
24244 "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
24245 "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
24246 "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
24247 "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
24248 "\x12\x25\x0B\xF9",
24249 .ilen = 92,
24250 }, {
24251 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24252 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24253 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24254 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24255 "\x73\x61\x6C",
24256 .klen = 35,
24257 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
24258 .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
24259 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
24260 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
24261 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
24262 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
24263 .rlen = 40,
24264 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
24265 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
24266 "\x69\x76\x65\x63",
24267 .alen = 20,
24268 .input = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
24269 "\x2C\x64\x87\x46\x1E\x34\x10\x05"
24270 "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
24271 "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
24272 "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
24273 "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
24274 "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
24275 .ilen = 56,
24276 }, {
24277 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
24278 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
24279 "\x57\x69\x0E",
24280 .klen = 19,
24281 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
24282 .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
24283 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
24284 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
24285 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
24286 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
24287 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
24288 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
24289 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
24290 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
24291 "\x15\x01\x01\x01",
24292 .rlen = 76,
24293 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
24294 "\x10\x10\x10\x10\x4E\x28\x00\x00"
24295 "\xA2\xFC\xA1\xA3",
24296 .alen = 20,
24297 .input = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
24298 "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
24299 "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
24300 "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
24301 "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
24302 "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
24303 "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
24304 "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
24305 "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
24306 "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
24307 "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
24308 "\xCC\xF7\x46\x6F",
24309 .ilen = 92,
24310 }, {
24311 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24312 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24313 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24314 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24315 "\x73\x61\x6C",
24316 .klen = 35,
24317 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
24318 .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
24319 "\x6C\x65\x73\x01\x74\x68\x65\x01"
24320 "\x6E\x65\x74\x77\x65\x01\x64\x65"
24321 "\x66\x69\x6E\x65\x01\x74\x68\x65"
24322 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
24323 "\x67\x69\x65\x73\x01\x74\x68\x61"
24324 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
24325 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
24326 "\x72\x72\x6F\x77\x01\x02\x02\x01",
24327 .rlen = 72,
24328 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
24329 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
24330 "\x69\x76\x65\x63",
24331 .alen = 20,
24332 .input = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
24333 "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
24334 "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
24335 "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
24336 "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
24337 "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
24338 "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
24339 "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
24340 "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
24341 "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
24342 "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
24343 .ilen = 88,
24344 }, {
24345 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
24346 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
24347 "\xD9\x66\x42",
24348 .klen = 19,
24349 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
24350 .result = "\x01\x02\x02\x01",
24351 .rlen = 4,
24352 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
24353 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
24354 .alen = 16,
24355 .input = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
24356 "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
24357 "\xF7\x61\x24\x62",
24358 .ilen = 20,
24359 }, {
24360 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24361 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24362 "\xDE\xCA\xF8",
24363 .klen = 19,
24364 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
24365 .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
24366 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
24367 "\x62\x65\x00\x01",
24368 .rlen = 20,
24369 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
24370 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
24371 "\xCE\xFA\xCE\x74",
24372 .alen = 20,
24373 .input = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
24374 "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
24375 "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
24376 "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
24377 "\x17\x17\x65\xAD",
24378 .ilen = 36,
24379 }, {
24380 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
24381 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
24382 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
24383 "\x62\x65\x66\x6F\x72\x65\x69\x61"
24384 "\x74\x75\x72",
24385 .klen = 35,
24386 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
24387 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
24388 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
24389 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
24390 "\x02\x00\x07\x00\x61\x62\x63\x64"
24391 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
24392 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
24393 "\x01\x02\x02\x01",
24394 .rlen = 52,
24395 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
24396 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
24397 "\x67\x65\x74\x6D",
24398 .alen = 20,
24399 .input = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
24400 "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
24401 "\x48\x59\x80\x18\x1A\x18\x1A\x04"
24402 "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
24403 "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
24404 "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
24405 "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
24406 "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
24407 "\x39\xDB\xC8\xDC",
24408 .ilen = 68,
24409 }, {
24410 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
24411 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
24412 "\x57\x69\x0E",
24413 .klen = 19,
24414 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
24415 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
24416 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
24417 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
24418 "\x02\x00\x07\x00\x61\x62\x63\x64"
24419 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
24420 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
24421 "\x01\x02\x02\x01",
24422 .rlen = 52,
24423 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
24424 "\x10\x10\x10\x10\x4E\x28\x00\x00"
24425 "\xA2\xFC\xA1\xA3",
24426 .alen = 20,
24427 .input = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
24428 "\x10\x60\x54\x25\xEB\x80\x04\x93"
24429 "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
24430 "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
24431 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
24432 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
24433 "\x44\xCC\x90\xBF\x00\x94\x94\x92"
24434 "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
24435 "\xF4\x95\x5D\x4F",
24436 .ilen = 68,
24437 }, {
24438 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
24439 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
24440 "\x22\x43\x3C",
24441 .klen = 19,
24442 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
24443 .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
24444 "\x61\x62\x63\x64\x65\x66\x67\x68"
24445 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
24446 "\x71\x72\x73\x74\x01\x02\x02\x01",
24447 .rlen = 32,
24448 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
24449 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
24450 "\x3A\x23\x4B\xFD",
24451 .alen = 20,
24452 .input = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
24453 "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
24454 "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
24455 "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
24456 "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
24457 "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
24458 .ilen = 48,
24463 * ChaCha20-Poly1305 AEAD test vectors from RFC7539 2.8.2./A.5.
24465 #define RFC7539_ENC_TEST_VECTORS 2
24466 #define RFC7539_DEC_TEST_VECTORS 2
24467 static struct aead_testvec rfc7539_enc_tv_template[] = {
24469 .key = "\x80\x81\x82\x83\x84\x85\x86\x87"
24470 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
24471 "\x90\x91\x92\x93\x94\x95\x96\x97"
24472 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
24473 .klen = 32,
24474 .iv = "\x07\x00\x00\x00\x40\x41\x42\x43"
24475 "\x44\x45\x46\x47",
24476 .assoc = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
24477 "\xc4\xc5\xc6\xc7",
24478 .alen = 12,
24479 .input = "\x4c\x61\x64\x69\x65\x73\x20\x61"
24480 "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
24481 "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
24482 "\x74\x68\x65\x20\x63\x6c\x61\x73"
24483 "\x73\x20\x6f\x66\x20\x27\x39\x39"
24484 "\x3a\x20\x49\x66\x20\x49\x20\x63"
24485 "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
24486 "\x65\x72\x20\x79\x6f\x75\x20\x6f"
24487 "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
24488 "\x74\x69\x70\x20\x66\x6f\x72\x20"
24489 "\x74\x68\x65\x20\x66\x75\x74\x75"
24490 "\x72\x65\x2c\x20\x73\x75\x6e\x73"
24491 "\x63\x72\x65\x65\x6e\x20\x77\x6f"
24492 "\x75\x6c\x64\x20\x62\x65\x20\x69"
24493 "\x74\x2e",
24494 .ilen = 114,
24495 .result = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
24496 "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
24497 "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
24498 "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
24499 "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
24500 "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
24501 "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
24502 "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
24503 "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
24504 "\x98\x03\xae\xe3\x28\x09\x1b\x58"
24505 "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
24506 "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
24507 "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
24508 "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
24509 "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
24510 "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
24511 "\x06\x91",
24512 .rlen = 130,
24513 }, {
24514 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
24515 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
24516 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
24517 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
24518 .klen = 32,
24519 .iv = "\x00\x00\x00\x00\x01\x02\x03\x04"
24520 "\x05\x06\x07\x08",
24521 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
24522 "\x00\x00\x4e\x91",
24523 .alen = 12,
24524 .input = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
24525 "\x2d\x44\x72\x61\x66\x74\x73\x20"
24526 "\x61\x72\x65\x20\x64\x72\x61\x66"
24527 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
24528 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
24529 "\x64\x20\x66\x6f\x72\x20\x61\x20"
24530 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
24531 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
24532 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
24533 "\x64\x20\x6d\x61\x79\x20\x62\x65"
24534 "\x20\x75\x70\x64\x61\x74\x65\x64"
24535 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
24536 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
24537 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
24538 "\x20\x62\x79\x20\x6f\x74\x68\x65"
24539 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
24540 "\x6e\x74\x73\x20\x61\x74\x20\x61"
24541 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
24542 "\x20\x49\x74\x20\x69\x73\x20\x69"
24543 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
24544 "\x69\x61\x74\x65\x20\x74\x6f\x20"
24545 "\x75\x73\x65\x20\x49\x6e\x74\x65"
24546 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
24547 "\x66\x74\x73\x20\x61\x73\x20\x72"
24548 "\x65\x66\x65\x72\x65\x6e\x63\x65"
24549 "\x20\x6d\x61\x74\x65\x72\x69\x61"
24550 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
24551 "\x63\x69\x74\x65\x20\x74\x68\x65"
24552 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
24553 "\x74\x68\x61\x6e\x20\x61\x73\x20"
24554 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
24555 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
24556 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
24557 "\x9d",
24558 .ilen = 265,
24559 .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
24560 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
24561 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
24562 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
24563 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
24564 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
24565 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
24566 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
24567 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
24568 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
24569 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
24570 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
24571 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
24572 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
24573 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
24574 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
24575 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
24576 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
24577 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
24578 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
24579 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
24580 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
24581 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
24582 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
24583 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
24584 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
24585 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
24586 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
24587 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
24588 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
24589 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
24590 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
24591 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
24592 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
24593 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
24594 "\x38",
24595 .rlen = 281,
24599 static struct aead_testvec rfc7539_dec_tv_template[] = {
24601 .key = "\x80\x81\x82\x83\x84\x85\x86\x87"
24602 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
24603 "\x90\x91\x92\x93\x94\x95\x96\x97"
24604 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
24605 .klen = 32,
24606 .iv = "\x07\x00\x00\x00\x40\x41\x42\x43"
24607 "\x44\x45\x46\x47",
24608 .assoc = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
24609 "\xc4\xc5\xc6\xc7",
24610 .alen = 12,
24611 .input = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
24612 "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
24613 "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
24614 "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
24615 "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
24616 "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
24617 "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
24618 "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
24619 "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
24620 "\x98\x03\xae\xe3\x28\x09\x1b\x58"
24621 "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
24622 "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
24623 "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
24624 "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
24625 "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
24626 "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
24627 "\x06\x91",
24628 .ilen = 130,
24629 .result = "\x4c\x61\x64\x69\x65\x73\x20\x61"
24630 "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
24631 "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
24632 "\x74\x68\x65\x20\x63\x6c\x61\x73"
24633 "\x73\x20\x6f\x66\x20\x27\x39\x39"
24634 "\x3a\x20\x49\x66\x20\x49\x20\x63"
24635 "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
24636 "\x65\x72\x20\x79\x6f\x75\x20\x6f"
24637 "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
24638 "\x74\x69\x70\x20\x66\x6f\x72\x20"
24639 "\x74\x68\x65\x20\x66\x75\x74\x75"
24640 "\x72\x65\x2c\x20\x73\x75\x6e\x73"
24641 "\x63\x72\x65\x65\x6e\x20\x77\x6f"
24642 "\x75\x6c\x64\x20\x62\x65\x20\x69"
24643 "\x74\x2e",
24644 .rlen = 114,
24645 }, {
24646 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
24647 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
24648 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
24649 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
24650 .klen = 32,
24651 .iv = "\x00\x00\x00\x00\x01\x02\x03\x04"
24652 "\x05\x06\x07\x08",
24653 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
24654 "\x00\x00\x4e\x91",
24655 .alen = 12,
24656 .input = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
24657 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
24658 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
24659 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
24660 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
24661 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
24662 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
24663 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
24664 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
24665 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
24666 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
24667 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
24668 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
24669 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
24670 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
24671 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
24672 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
24673 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
24674 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
24675 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
24676 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
24677 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
24678 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
24679 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
24680 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
24681 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
24682 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
24683 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
24684 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
24685 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
24686 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
24687 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
24688 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
24689 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
24690 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
24691 "\x38",
24692 .ilen = 281,
24693 .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
24694 "\x2d\x44\x72\x61\x66\x74\x73\x20"
24695 "\x61\x72\x65\x20\x64\x72\x61\x66"
24696 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
24697 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
24698 "\x64\x20\x66\x6f\x72\x20\x61\x20"
24699 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
24700 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
24701 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
24702 "\x64\x20\x6d\x61\x79\x20\x62\x65"
24703 "\x20\x75\x70\x64\x61\x74\x65\x64"
24704 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
24705 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
24706 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
24707 "\x20\x62\x79\x20\x6f\x74\x68\x65"
24708 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
24709 "\x6e\x74\x73\x20\x61\x74\x20\x61"
24710 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
24711 "\x20\x49\x74\x20\x69\x73\x20\x69"
24712 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
24713 "\x69\x61\x74\x65\x20\x74\x6f\x20"
24714 "\x75\x73\x65\x20\x49\x6e\x74\x65"
24715 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
24716 "\x66\x74\x73\x20\x61\x73\x20\x72"
24717 "\x65\x66\x65\x72\x65\x6e\x63\x65"
24718 "\x20\x6d\x61\x74\x65\x72\x69\x61"
24719 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
24720 "\x63\x69\x74\x65\x20\x74\x68\x65"
24721 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
24722 "\x74\x68\x61\x6e\x20\x61\x73\x20"
24723 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
24724 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
24725 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
24726 "\x9d",
24727 .rlen = 265,
24732 * draft-irtf-cfrg-chacha20-poly1305
24734 #define RFC7539ESP_DEC_TEST_VECTORS 1
24735 #define RFC7539ESP_ENC_TEST_VECTORS 1
24736 static struct aead_testvec rfc7539esp_enc_tv_template[] = {
24738 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
24739 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
24740 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
24741 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
24742 "\x00\x00\x00\x00",
24743 .klen = 36,
24744 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
24745 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
24746 "\x00\x00\x4e\x91\x01\x02\x03\x04"
24747 "\x05\x06\x07\x08",
24748 .alen = 20,
24749 .input = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
24750 "\x2d\x44\x72\x61\x66\x74\x73\x20"
24751 "\x61\x72\x65\x20\x64\x72\x61\x66"
24752 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
24753 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
24754 "\x64\x20\x66\x6f\x72\x20\x61\x20"
24755 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
24756 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
24757 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
24758 "\x64\x20\x6d\x61\x79\x20\x62\x65"
24759 "\x20\x75\x70\x64\x61\x74\x65\x64"
24760 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
24761 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
24762 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
24763 "\x20\x62\x79\x20\x6f\x74\x68\x65"
24764 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
24765 "\x6e\x74\x73\x20\x61\x74\x20\x61"
24766 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
24767 "\x20\x49\x74\x20\x69\x73\x20\x69"
24768 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
24769 "\x69\x61\x74\x65\x20\x74\x6f\x20"
24770 "\x75\x73\x65\x20\x49\x6e\x74\x65"
24771 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
24772 "\x66\x74\x73\x20\x61\x73\x20\x72"
24773 "\x65\x66\x65\x72\x65\x6e\x63\x65"
24774 "\x20\x6d\x61\x74\x65\x72\x69\x61"
24775 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
24776 "\x63\x69\x74\x65\x20\x74\x68\x65"
24777 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
24778 "\x74\x68\x61\x6e\x20\x61\x73\x20"
24779 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
24780 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
24781 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
24782 "\x9d",
24783 .ilen = 265,
24784 .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
24785 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
24786 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
24787 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
24788 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
24789 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
24790 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
24791 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
24792 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
24793 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
24794 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
24795 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
24796 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
24797 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
24798 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
24799 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
24800 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
24801 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
24802 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
24803 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
24804 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
24805 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
24806 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
24807 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
24808 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
24809 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
24810 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
24811 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
24812 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
24813 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
24814 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
24815 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
24816 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
24817 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
24818 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
24819 "\x38",
24820 .rlen = 281,
24824 static struct aead_testvec rfc7539esp_dec_tv_template[] = {
24826 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
24827 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
24828 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
24829 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
24830 "\x00\x00\x00\x00",
24831 .klen = 36,
24832 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
24833 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
24834 "\x00\x00\x4e\x91\x01\x02\x03\x04"
24835 "\x05\x06\x07\x08",
24836 .alen = 20,
24837 .input = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
24838 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
24839 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
24840 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
24841 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
24842 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
24843 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
24844 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
24845 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
24846 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
24847 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
24848 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
24849 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
24850 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
24851 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
24852 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
24853 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
24854 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
24855 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
24856 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
24857 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
24858 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
24859 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
24860 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
24861 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
24862 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
24863 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
24864 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
24865 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
24866 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
24867 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
24868 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
24869 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
24870 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
24871 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
24872 "\x38",
24873 .ilen = 281,
24874 .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
24875 "\x2d\x44\x72\x61\x66\x74\x73\x20"
24876 "\x61\x72\x65\x20\x64\x72\x61\x66"
24877 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
24878 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
24879 "\x64\x20\x66\x6f\x72\x20\x61\x20"
24880 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
24881 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
24882 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
24883 "\x64\x20\x6d\x61\x79\x20\x62\x65"
24884 "\x20\x75\x70\x64\x61\x74\x65\x64"
24885 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
24886 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
24887 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
24888 "\x20\x62\x79\x20\x6f\x74\x68\x65"
24889 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
24890 "\x6e\x74\x73\x20\x61\x74\x20\x61"
24891 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
24892 "\x20\x49\x74\x20\x69\x73\x20\x69"
24893 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
24894 "\x69\x61\x74\x65\x20\x74\x6f\x20"
24895 "\x75\x73\x65\x20\x49\x6e\x74\x65"
24896 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
24897 "\x66\x74\x73\x20\x61\x73\x20\x72"
24898 "\x65\x66\x65\x72\x65\x6e\x63\x65"
24899 "\x20\x6d\x61\x74\x65\x72\x69\x61"
24900 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
24901 "\x63\x69\x74\x65\x20\x74\x68\x65"
24902 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
24903 "\x74\x68\x61\x6e\x20\x61\x73\x20"
24904 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
24905 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
24906 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
24907 "\x9d",
24908 .rlen = 265,
24913 * All key wrapping test vectors taken from
24914 * http://csrc.nist.gov/groups/STM/cavp/documents/mac/kwtestvectors.zip
24916 * Note: as documented in keywrap.c, the ivout for encryption is the first
24917 * semiblock of the ciphertext from the test vector. For decryption, iv is
24918 * the first semiblock of the ciphertext.
24920 static struct cipher_testvec aes_kw_enc_tv_template[] = {
24922 .key = "\x75\x75\xda\x3a\x93\x60\x7c\xc2"
24923 "\xbf\xd8\xce\xc7\xaa\xdf\xd9\xa6",
24924 .klen = 16,
24925 .input = "\x42\x13\x6d\x3c\x38\x4a\x3e\xea"
24926 "\xc9\x5a\x06\x6f\xd2\x8f\xed\x3f",
24927 .ilen = 16,
24928 .result = "\xf6\x85\x94\x81\x6f\x64\xca\xa3"
24929 "\xf5\x6f\xab\xea\x25\x48\xf5\xfb",
24930 .rlen = 16,
24931 .iv_out = "\x03\x1f\x6b\xd7\xe6\x1e\x64\x3d",
24935 static struct cipher_testvec aes_kw_dec_tv_template[] = {
24937 .key = "\x80\xaa\x99\x73\x27\xa4\x80\x6b"
24938 "\x6a\x7a\x41\xa5\x2b\x86\xc3\x71"
24939 "\x03\x86\xf9\x32\x78\x6e\xf7\x96"
24940 "\x76\xfa\xfb\x90\xb8\x26\x3c\x5f",
24941 .klen = 32,
24942 .input = "\xd3\x3d\x3d\x97\x7b\xf0\xa9\x15"
24943 "\x59\xf9\x9c\x8a\xcd\x29\x3d\x43",
24944 .ilen = 16,
24945 .result = "\x0a\x25\x6b\xa7\x5c\xfa\x03\xaa"
24946 "\xa0\x2b\xa9\x42\x03\xf1\x5b\xaa",
24947 .rlen = 16,
24948 .iv = "\x42\x3c\x96\x0d\x8a\x2a\xc4\xc1",
24953 * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
24954 * test vectors, taken from Appendix B.2.9 and B.2.10:
24955 * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
24956 * Only AES-128 is supported at this time.
24958 #define ANSI_CPRNG_AES_TEST_VECTORS 6
24960 static struct cprng_testvec ansi_cprng_aes_tv_template[] = {
24962 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
24963 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
24964 .klen = 16,
24965 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
24966 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
24967 .dtlen = 16,
24968 .v = "\x80\x00\x00\x00\x00\x00\x00\x00"
24969 "\x00\x00\x00\x00\x00\x00\x00\x00",
24970 .vlen = 16,
24971 .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
24972 "\x84\x79\x66\x85\xc1\x2f\x76\x41",
24973 .rlen = 16,
24974 .loops = 1,
24975 }, {
24976 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
24977 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
24978 .klen = 16,
24979 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
24980 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
24981 .dtlen = 16,
24982 .v = "\xc0\x00\x00\x00\x00\x00\x00\x00"
24983 "\x00\x00\x00\x00\x00\x00\x00\x00",
24984 .vlen = 16,
24985 .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
24986 "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
24987 .rlen = 16,
24988 .loops = 1,
24989 }, {
24990 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
24991 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
24992 .klen = 16,
24993 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
24994 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
24995 .dtlen = 16,
24996 .v = "\xe0\x00\x00\x00\x00\x00\x00\x00"
24997 "\x00\x00\x00\x00\x00\x00\x00\x00",
24998 .vlen = 16,
24999 .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
25000 "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
25001 .rlen = 16,
25002 .loops = 1,
25003 }, {
25004 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
25005 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
25006 .klen = 16,
25007 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
25008 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
25009 .dtlen = 16,
25010 .v = "\xf0\x00\x00\x00\x00\x00\x00\x00"
25011 "\x00\x00\x00\x00\x00\x00\x00\x00",
25012 .vlen = 16,
25013 .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
25014 "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
25015 .rlen = 16,
25016 .loops = 1,
25017 }, {
25018 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
25019 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
25020 .klen = 16,
25021 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
25022 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd",
25023 .dtlen = 16,
25024 .v = "\xf8\x00\x00\x00\x00\x00\x00\x00"
25025 "\x00\x00\x00\x00\x00\x00\x00\x00",
25026 .vlen = 16,
25027 .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb"
25028 "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
25029 .rlen = 16,
25030 .loops = 1,
25031 }, { /* Monte Carlo Test */
25032 .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
25033 "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
25034 .klen = 16,
25035 .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
25036 "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
25037 .dtlen = 16,
25038 .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97"
25039 "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
25040 .vlen = 16,
25041 .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
25042 "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
25043 .rlen = 16,
25044 .loops = 10000,
25049 * SP800-90A DRBG Test vectors from
25050 * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
25052 * Test vectors for DRBG with prediction resistance. All types of DRBGs
25053 * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
25054 * w/o personalization string, w/ and w/o additional input string).
25056 static struct drbg_testvec drbg_pr_sha256_tv_template[] = {
25058 .entropy = (unsigned char *)
25059 "\x72\x88\x4c\xcd\x6c\x85\x57\x70\xf7\x0b\x8b\x86"
25060 "\xc1\xeb\xd2\x4e\x36\x14\xab\x18\xc4\x9c\xc9\xcf"
25061 "\x1a\xe8\xf7\x7b\x02\x49\x73\xd7\xf1\x42\x7d\xc6"
25062 "\x3f\x29\x2d\xec\xd3\x66\x51\x3f\x1d\x8d\x5b\x4e",
25063 .entropylen = 48,
25064 .entpra = (unsigned char *)
25065 "\x38\x9c\x91\xfa\xc2\xa3\x46\x89\x56\x08\x3f\x62"
25066 "\x73\xd5\x22\xa9\x29\x63\x3a\x1d\xe5\x5d\x5e\x4f"
25067 "\x67\xb0\x67\x7a\x5e\x9e\x0c\x62",
25068 .entprb = (unsigned char *)
25069 "\xb2\x8f\x36\xb2\xf6\x8d\x39\x13\xfa\x6c\x66\xcf"
25070 "\x62\x8a\x7e\x8c\x12\x33\x71\x9c\x69\xe4\xa5\xf0"
25071 "\x8c\xee\xeb\x9c\xf5\x31\x98\x31",
25072 .entprlen = 32,
25073 .expected = (unsigned char *)
25074 "\x52\x7b\xa3\xad\x71\x77\xa4\x49\x42\x04\x61\xc7"
25075 "\xf0\xaf\xa5\xfd\xd3\xb3\x0d\x6a\x61\xba\x35\x49"
25076 "\xbb\xaa\xaf\xe4\x25\x7d\xb5\x48\xaf\x5c\x18\x3d"
25077 "\x33\x8d\x9d\x45\xdf\x98\xd5\x94\xa8\xda\x92\xfe"
25078 "\xc4\x3c\x94\x2a\xcf\x7f\x7b\xf2\xeb\x28\xa9\xf1"
25079 "\xe0\x86\x30\xa8\xfe\xf2\x48\x90\x91\x0c\x75\xb5"
25080 "\x3c\x00\xf0\x4d\x09\x4f\x40\xa7\xa2\x8c\x52\xdf"
25081 "\x52\xef\x17\xbf\x3d\xd1\xa2\x31\xb4\xb8\xdc\xe6"
25082 "\x5b\x0d\x1f\x78\x36\xb4\xe6\x4b\xa7\x11\x25\xd5"
25083 "\x94\xc6\x97\x36\xab\xf0\xe5\x31\x28\x6a\xbb\xce"
25084 "\x30\x81\xa6\x8f\x27\x14\xf8\x1c",
25085 .expectedlen = 128,
25086 .addtla = NULL,
25087 .addtlb = NULL,
25088 .addtllen = 0,
25089 .pers = NULL,
25090 .perslen = 0,
25091 }, {
25092 .entropy = (unsigned char *)
25093 "\x5d\xf2\x14\xbc\xf6\xb5\x4e\x0b\xf0\x0d\x6f\x2d"
25094 "\xe2\x01\x66\x7b\xd0\xa4\x73\xa4\x21\xdd\xb0\xc0"
25095 "\x51\x79\x09\xf4\xea\xa9\x08\xfa\xa6\x67\xe0\xe1"
25096 "\xd1\x88\xa8\xad\xee\x69\x74\xb3\x55\x06\x9b\xf6",
25097 .entropylen = 48,
25098 .entpra = (unsigned char *)
25099 "\xef\x48\x06\xa2\xc2\x45\xf1\x44\xfa\x34\x2c\xeb"
25100 "\x8d\x78\x3c\x09\x8f\x34\x72\x20\xf2\xe7\xfd\x13"
25101 "\x76\x0a\xf6\xdc\x3c\xf5\xc0\x15",
25102 .entprb = (unsigned char *)
25103 "\x4b\xbe\xe5\x24\xed\x6a\x2d\x0c\xdb\x73\x5e\x09"
25104 "\xf9\xad\x67\x7c\x51\x47\x8b\x6b\x30\x2a\xc6\xde"
25105 "\x76\xaa\x55\x04\x8b\x0a\x72\x95",
25106 .entprlen = 32,
25107 .expected = (unsigned char *)
25108 "\x3b\x14\x71\x99\xa1\xda\xa0\x42\xe6\xc8\x85\x32"
25109 "\x70\x20\x32\x53\x9a\xbe\xd1\x1e\x15\xef\xfb\x4c"
25110 "\x25\x6e\x19\x3a\xf0\xb9\xcb\xde\xf0\x3b\xc6\x18"
25111 "\x4d\x85\x5a\x9b\xf1\xe3\xc2\x23\x03\x93\x08\xdb"
25112 "\xa7\x07\x4b\x33\x78\x40\x4d\xeb\x24\xf5\x6e\x81"
25113 "\x4a\x1b\x6e\xa3\x94\x52\x43\xb0\xaf\x2e\x21\xf4"
25114 "\x42\x46\x8e\x90\xed\x34\x21\x75\xea\xda\x67\xb6"
25115 "\xe4\xf6\xff\xc6\x31\x6c\x9a\x5a\xdb\xb3\x97\x13"
25116 "\x09\xd3\x20\x98\x33\x2d\x6d\xd7\xb5\x6a\xa8\xa9"
25117 "\x9a\x5b\xd6\x87\x52\xa1\x89\x2b\x4b\x9c\x64\x60"
25118 "\x50\x47\xa3\x63\x81\x16\xaf\x19",
25119 .expectedlen = 128,
25120 .addtla = (unsigned char *)
25121 "\xbe\x13\xdb\x2a\xe9\xa8\xfe\x09\x97\xe1\xce\x5d"
25122 "\xe8\xbb\xc0\x7c\x4f\xcb\x62\x19\x3f\x0f\xd2\xad"
25123 "\xa9\xd0\x1d\x59\x02\xc4\xff\x70",
25124 .addtlb = (unsigned char *)
25125 "\x6f\x96\x13\xe2\xa7\xf5\x6c\xfe\xdf\x66\xe3\x31"
25126 "\x63\x76\xbf\x20\x27\x06\x49\xf1\xf3\x01\x77\x41"
25127 "\x9f\xeb\xe4\x38\xfe\x67\x00\xcd",
25128 .addtllen = 32,
25129 .pers = NULL,
25130 .perslen = 0,
25131 }, {
25132 .entropy = (unsigned char *)
25133 "\xc6\x1c\xaf\x83\xa2\x56\x38\xf9\xb0\xbc\xd9\x85"
25134 "\xf5\x2e\xc4\x46\x9c\xe1\xb9\x40\x98\x70\x10\x72"
25135 "\xd7\x7d\x15\x85\xa1\x83\x5a\x97\xdf\xc8\xa8\xe8"
25136 "\x03\x4c\xcb\x70\x35\x8b\x90\x94\x46\x8a\x6e\xa1",
25137 .entropylen = 48,
25138 .entpra = (unsigned char *)
25139 "\xc9\x05\xa4\xcf\x28\x80\x4b\x93\x0f\x8b\xc6\xf9"
25140 "\x09\x41\x58\x74\xe9\xec\x28\xc7\x53\x0a\x73\x60"
25141 "\xba\x0a\xde\x57\x5b\x4b\x9f\x29",
25142 .entprb = (unsigned char *)
25143 "\x4f\x31\xd2\xeb\xac\xfa\xa8\xe2\x01\x7d\xf3\xbd"
25144 "\x42\xbd\x20\xa0\x30\x65\x74\xd5\x5d\xd2\xad\xa4"
25145 "\xa9\xeb\x1f\x4d\xf6\xfd\xb8\x26",
25146 .entprlen = 32,
25147 .expected = (unsigned char *)
25148 "\xf6\x13\x05\xcb\x83\x60\x16\x42\x49\x1d\xc6\x25"
25149 "\x3b\x8c\x31\xa3\xbe\x8b\xbd\x1c\xe2\xec\x1d\xde"
25150 "\xbb\xbf\xa1\xac\xa8\x9f\x50\xce\x69\xce\xef\xd5"
25151 "\xd6\xf2\xef\x6a\xf7\x81\x38\xdf\xbc\xa7\x5a\xb9"
25152 "\xb2\x42\x65\xab\xe4\x86\x8d\x2d\x9d\x59\x99\x2c"
25153 "\x5a\x0d\x71\x55\x98\xa4\x45\xc2\x8d\xdb\x05\x5e"
25154 "\x50\x21\xf7\xcd\xe8\x98\x43\xce\x57\x74\x63\x4c"
25155 "\xf3\xb1\xa5\x14\x1e\x9e\x01\xeb\x54\xd9\x56\xae"
25156 "\xbd\xb6\x6f\x1a\x47\x6b\x3b\x44\xe4\xa2\xe9\x3c"
25157 "\x6c\x83\x12\x30\xb8\x78\x7f\x8e\x54\x82\xd4\xfe"
25158 "\x90\x35\x0d\x4c\x4d\x85\xe7\x13",
25159 .expectedlen = 128,
25160 .addtla = NULL,
25161 .addtlb = NULL,
25162 .addtllen = 0,
25163 .pers = (unsigned char *)
25164 "\xa5\xbf\xac\x4f\x71\xa1\xbb\x67\x94\xc6\x50\xc7"
25165 "\x2a\x45\x9e\x10\xa8\xed\xf7\x52\x4f\xfe\x21\x90"
25166 "\xa4\x1b\xe1\xe2\x53\xcc\x61\x47",
25167 .perslen = 32,
25168 }, {
25169 .entropy = (unsigned char *)
25170 "\xb6\xc1\x8d\xdf\x99\x54\xbe\x95\x10\x48\xd9\xf6"
25171 "\xd7\x48\xa8\x73\x2d\x74\xde\x1e\xde\x57\x7e\xf4"
25172 "\x7b\x7b\x64\xef\x88\x7a\xa8\x10\x4b\xe1\xc1\x87"
25173 "\xbb\x0b\xe1\x39\x39\x50\xaf\x68\x9c\xa2\xbf\x5e",
25174 .entropylen = 48,
25175 .entpra = (unsigned char *)
25176 "\xdc\x81\x0a\x01\x58\xa7\x2e\xce\xee\x48\x8c\x7c"
25177 "\x77\x9e\x3c\xf1\x17\x24\x7a\xbb\xab\x9f\xca\x12"
25178 "\x19\xaf\x97\x2d\x5f\xf9\xff\xfc",
25179 .entprb = (unsigned char *)
25180 "\xaf\xfc\x4f\x98\x8b\x93\x95\xc1\xb5\x8b\x7f\x73"
25181 "\x6d\xa6\xbe\x6d\x33\xeb\x2c\x82\xb1\xaf\xc1\xb6"
25182 "\xb6\x05\xe2\x44\xaa\xfd\xe7\xdb",
25183 .entprlen = 32,
25184 .expected = (unsigned char *)
25185 "\x51\x79\xde\x1c\x0f\x58\xf3\xf4\xc9\x57\x2e\x31"
25186 "\xa7\x09\xa1\x53\x64\x63\xa2\xc5\x1d\x84\x88\x65"
25187 "\x01\x1b\xc6\x16\x3c\x49\x5b\x42\x8e\x53\xf5\x18"
25188 "\xad\x94\x12\x0d\x4f\x55\xcc\x45\x5c\x98\x0f\x42"
25189 "\x28\x2f\x47\x11\xf9\xc4\x01\x97\x6b\xa0\x94\x50"
25190 "\xa9\xd1\x5e\x06\x54\x3f\xdf\xbb\xc4\x98\xee\x8b"
25191 "\xba\xa9\xfa\x49\xee\x1d\xdc\xfb\x50\xf6\x51\x9f"
25192 "\x6c\x4a\x9a\x6f\x63\xa2\x7d\xad\xaf\x3a\x24\xa0"
25193 "\xd9\x9f\x07\xeb\x15\xee\x26\xe0\xd5\x63\x39\xda"
25194 "\x3c\x59\xd6\x33\x6c\x02\xe8\x05\x71\x46\x68\x44"
25195 "\x63\x4a\x68\x72\xe9\xf5\x55\xfe",
25196 .expectedlen = 128,
25197 .addtla = (unsigned char *)
25198 "\x15\x20\x2f\xf6\x98\x28\x63\xa2\xc4\x4e\xbb\x6c"
25199 "\xb2\x25\x92\x61\x79\xc9\x22\xc4\x61\x54\x96\xff"
25200 "\x4a\x85\xca\x80\xfe\x0d\x1c\xd0",
25201 .addtlb = (unsigned char *)
25202 "\xde\x29\x8e\x03\x42\x61\xa3\x28\x5e\xc8\x80\xc2"
25203 "\x6d\xbf\xad\x13\xe1\x8d\x2a\xc7\xe8\xc7\x18\x89"
25204 "\x42\x58\x9e\xd6\xcc\xad\x7b\x1e",
25205 .addtllen = 32,
25206 .pers = (unsigned char *)
25207 "\x84\xc3\x73\x9e\xce\xb3\xbc\x89\xf7\x62\xb3\xe1"
25208 "\xd7\x48\x45\x8a\xa9\xcc\xe9\xed\xd5\x81\x84\x52"
25209 "\x82\x4c\xdc\x19\xb8\xf8\x92\x5c",
25210 .perslen = 32,
25214 static struct drbg_testvec drbg_pr_hmac_sha256_tv_template[] = {
25216 .entropy = (unsigned char *)
25217 "\x99\x69\xe5\x4b\x47\x03\xff\x31\x78\x5b\x87\x9a"
25218 "\x7e\x5c\x0e\xae\x0d\x3e\x30\x95\x59\xe9\xfe\x96"
25219 "\xb0\x67\x6d\x49\xd5\x91\xea\x4d\x07\xd2\x0d\x46"
25220 "\xd0\x64\x75\x7d\x30\x23\xca\xc2\x37\x61\x27\xab",
25221 .entropylen = 48,
25222 .entpra = (unsigned char *)
25223 "\xc6\x0f\x29\x99\x10\x0f\x73\x8c\x10\xf7\x47\x92"
25224 "\x67\x6a\x3f\xc4\xa2\x62\xd1\x37\x21\x79\x80\x46"
25225 "\xe2\x9a\x29\x51\x81\x56\x9f\x54",
25226 .entprb = (unsigned char *)
25227 "\xc1\x1d\x45\x24\xc9\x07\x1b\xd3\x09\x60\x15\xfc"
25228 "\xf7\xbc\x24\xa6\x07\xf2\x2f\xa0\x65\xc9\x37\x65"
25229 "\x8a\x2a\x77\xa8\x69\x90\x89\xf4",
25230 .entprlen = 32,
25231 .expected = (unsigned char *)
25232 "\xab\xc0\x15\x85\x60\x94\x80\x3a\x93\x8d\xff\xd2"
25233 "\x0d\xa9\x48\x43\x87\x0e\xf9\x35\xb8\x2c\xfe\xc1"
25234 "\x77\x06\xb8\xf5\x51\xb8\x38\x50\x44\x23\x5d\xd4"
25235 "\x4b\x59\x9f\x94\xb3\x9b\xe7\x8d\xd4\x76\xe0\xcf"
25236 "\x11\x30\x9c\x99\x5a\x73\x34\xe0\xa7\x8b\x37\xbc"
25237 "\x95\x86\x23\x50\x86\xfa\x3b\x63\x7b\xa9\x1c\xf8"
25238 "\xfb\x65\xef\xa2\x2a\x58\x9c\x13\x75\x31\xaa\x7b"
25239 "\x2d\x4e\x26\x07\xaa\xc2\x72\x92\xb0\x1c\x69\x8e"
25240 "\x6e\x01\xae\x67\x9e\xb8\x7c\x01\xa8\x9c\x74\x22"
25241 "\xd4\x37\x2d\x6d\x75\x4a\xba\xbb\x4b\xf8\x96\xfc"
25242 "\xb1\xcd\x09\xd6\x92\xd0\x28\x3f",
25243 .expectedlen = 128,
25244 .addtla = NULL,
25245 .addtlb = NULL,
25246 .addtllen = 0,
25247 .pers = NULL,
25248 .perslen = 0,
25249 }, {
25250 .entropy = (unsigned char *)
25251 "\xb9\x1f\xe9\xef\xdd\x9b\x7d\x20\xb6\xec\xe0\x2f"
25252 "\xdb\x76\x24\xce\x41\xc8\x3a\x4a\x12\x7f\x3e\x2f"
25253 "\xae\x05\x99\xea\xb5\x06\x71\x0d\x0c\x4c\xb4\x05"
25254 "\x26\xc6\xbd\xf5\x7f\x2a\x3d\xf2\xb5\x49\x7b\xda",
25255 .entropylen = 48,
25256 .entpra = (unsigned char *)
25257 "\xef\x67\x50\x9c\xa7\x7d\xdf\xb7\x2d\x81\x01\xa4"
25258 "\x62\x81\x6a\x69\x5b\xb3\x37\x45\xa7\x34\x8e\x26"
25259 "\x46\xd9\x26\xa2\x19\xd4\x94\x43",
25260 .entprb = (unsigned char *)
25261 "\x97\x75\x53\x53\xba\xb4\xa6\xb2\x91\x60\x71\x79"
25262 "\xd1\x6b\x4a\x24\x9a\x34\x66\xcc\x33\xab\x07\x98"
25263 "\x51\x78\x72\xb2\x79\xfd\x2c\xff",
25264 .entprlen = 32,
25265 .expected = (unsigned char *)
25266 "\x9c\xdc\x63\x8a\x19\x23\x22\x66\x0c\xc5\xb9\xd7"
25267 "\xfb\x2a\xb0\x31\xe3\x8a\x36\xa8\x5a\xa8\x14\xda"
25268 "\x1e\xa9\xcc\xfe\xb8\x26\x44\x83\x9f\xf6\xff\xaa"
25269 "\xc8\x98\xb8\x30\x35\x3b\x3d\x36\xd2\x49\xd4\x40"
25270 "\x62\x0a\x65\x10\x76\x55\xef\xc0\x95\x9c\xa7\xda"
25271 "\x3f\xcf\xb7\x7b\xc6\xe1\x28\x52\xfc\x0c\xe2\x37"
25272 "\x0d\x83\xa7\x51\x4b\x31\x47\x3c\xe1\x3c\xae\x70"
25273 "\x01\xc8\xa3\xd3\xc2\xac\x77\x9c\xd1\x68\x77\x9b"
25274 "\x58\x27\x3b\xa5\x0f\xc2\x7a\x8b\x04\x65\x62\xd5"
25275 "\xe8\xd6\xfe\x2a\xaf\xd3\xd3\xfe\xbd\x18\xfb\xcd"
25276 "\xcd\x66\xb5\x01\x69\x66\xa0\x3c",
25277 .expectedlen = 128,
25278 .addtla = (unsigned char *)
25279 "\x17\xc1\x56\xcb\xcc\x50\xd6\x03\x7d\x45\x76\xa3"
25280 "\x75\x76\xc1\x4a\x66\x1b\x2e\xdf\xb0\x2e\x7d\x56"
25281 "\x6d\x99\x3b\xc6\x58\xda\x03\xf6",
25282 .addtlb = (unsigned char *)
25283 "\x7c\x7b\x4a\x4b\x32\x5e\x6f\x67\x34\xf5\x21\x4c"
25284 "\xf9\x96\xf9\xbf\x1c\x8c\x81\xd3\x9b\x60\x6a\x44"
25285 "\xc6\x03\xa2\xfb\x13\x20\x19\xb7",
25286 .addtllen = 32,
25287 .pers = NULL,
25288 .perslen = 0,
25289 }, {
25290 .entropy = (unsigned char *)
25291 "\x13\x54\x96\xfc\x1b\x7d\x28\xf3\x18\xc9\xa7\x89"
25292 "\xb6\xb3\xc8\x72\xac\x00\xd4\x59\x36\x25\x05\xaf"
25293 "\xa5\xdb\x96\xcb\x3c\x58\x46\x87\xa5\xaa\xbf\x20"
25294 "\x3b\xfe\x23\x0e\xd1\xc7\x41\x0f\x3f\xc9\xb3\x67",
25295 .entropylen = 48,
25296 .entpra = (unsigned char *)
25297 "\xe2\xbd\xb7\x48\x08\x06\xf3\xe1\x93\x3c\xac\x79"
25298 "\xa7\x2b\x11\xda\xe3\x2e\xe1\x91\xa5\x02\x19\x57"
25299 "\x20\x28\xad\xf2\x60\xd7\xcd\x45",
25300 .entprb = (unsigned char *)
25301 "\x8b\xd4\x69\xfc\xff\x59\x95\x95\xc6\x51\xde\x71"
25302 "\x68\x5f\xfc\xf9\x4a\xab\xec\x5a\xcb\xbe\xd3\x66"
25303 "\x1f\xfa\x74\xd3\xac\xa6\x74\x60",
25304 .entprlen = 32,
25305 .expected = (unsigned char *)
25306 "\x1f\x9e\xaf\xe4\xd2\x46\xb7\x47\x41\x4c\x65\x99"
25307 "\x01\xe9\x3b\xbb\x83\x0c\x0a\xb0\xc1\x3a\xe2\xb3"
25308 "\x31\x4e\xeb\x93\x73\xee\x0b\x26\xc2\x63\xa5\x75"
25309 "\x45\x99\xd4\x5c\x9f\xa1\xd4\x45\x87\x6b\x20\x61"
25310 "\x40\xea\x78\xa5\x32\xdf\x9e\x66\x17\xaf\xb1\x88"
25311 "\x9e\x2e\x23\xdd\xc1\xda\x13\x97\x88\xa5\xb6\x5e"
25312 "\x90\x14\x4e\xef\x13\xab\x5c\xd9\x2c\x97\x9e\x7c"
25313 "\xd7\xf8\xce\xea\x81\xf5\xcd\x71\x15\x49\x44\xce"
25314 "\x83\xb6\x05\xfb\x7d\x30\xb5\x57\x2c\x31\x4f\xfc"
25315 "\xfe\x80\xb6\xc0\x13\x0c\x5b\x9b\x2e\x8f\x3d\xfc"
25316 "\xc2\xa3\x0c\x11\x1b\x80\x5f\xf3",
25317 .expectedlen = 128,
25318 .addtla = NULL,
25319 .addtlb = NULL,
25320 .addtllen = 0,
25321 .pers = (unsigned char *)
25322 "\x64\xb6\xfc\x60\xbc\x61\x76\x23\x6d\x3f\x4a\x0f"
25323 "\xe1\xb4\xd5\x20\x9e\x70\xdd\x03\x53\x6d\xbf\xce"
25324 "\xcd\x56\x80\xbc\xb8\x15\xc8\xaa",
25325 .perslen = 32,
25326 }, {
25327 .entropy = (unsigned char *)
25328 "\xc7\xcc\xbc\x67\x7e\x21\x66\x1e\x27\x2b\x63\xdd"
25329 "\x3a\x78\xdc\xdf\x66\x6d\x3f\x24\xae\xcf\x37\x01"
25330 "\xa9\x0d\x89\x8a\xa7\xdc\x81\x58\xae\xb2\x10\x15"
25331 "\x7e\x18\x44\x6d\x13\xea\xdf\x37\x85\xfe\x81\xfb",
25332 .entropylen = 48,
25333 .entpra = (unsigned char *)
25334 "\x7b\xa1\x91\x5b\x3c\x04\xc4\x1b\x1d\x19\x2f\x1a"
25335 "\x18\x81\x60\x3c\x6c\x62\x91\xb7\xe9\xf5\xcb\x96"
25336 "\xbb\x81\x6a\xcc\xb5\xae\x55\xb6",
25337 .entprb = (unsigned char *)
25338 "\x99\x2c\xc7\x78\x7e\x3b\x88\x12\xef\xbe\xd3\xd2"
25339 "\x7d\x2a\xa5\x86\xda\x8d\x58\x73\x4a\x0a\xb2\x2e"
25340 "\xbb\x4c\x7e\xe3\x9a\xb6\x81\xc1",
25341 .entprlen = 32,
25342 .expected = (unsigned char *)
25343 "\x95\x6f\x95\xfc\x3b\xb7\xfe\x3e\xd0\x4e\x1a\x14"
25344 "\x6c\x34\x7f\x7b\x1d\x0d\x63\x5e\x48\x9c\x69\xe6"
25345 "\x46\x07\xd2\x87\xf3\x86\x52\x3d\x98\x27\x5e\xd7"
25346 "\x54\xe7\x75\x50\x4f\xfb\x4d\xfd\xac\x2f\x4b\x77"
25347 "\xcf\x9e\x8e\xcc\x16\xa2\x24\xcd\x53\xde\x3e\xc5"
25348 "\x55\x5d\xd5\x26\x3f\x89\xdf\xca\x8b\x4e\x1e\xb6"
25349 "\x88\x78\x63\x5c\xa2\x63\x98\x4e\x6f\x25\x59\xb1"
25350 "\x5f\x2b\x23\xb0\x4b\xa5\x18\x5d\xc2\x15\x74\x40"
25351 "\x59\x4c\xb4\x1e\xcf\x9a\x36\xfd\x43\xe2\x03\xb8"
25352 "\x59\x91\x30\x89\x2a\xc8\x5a\x43\x23\x7c\x73\x72"
25353 "\xda\x3f\xad\x2b\xba\x00\x6b\xd1",
25354 .expectedlen = 128,
25355 .addtla = (unsigned char *)
25356 "\x18\xe8\x17\xff\xef\x39\xc7\x41\x5c\x73\x03\x03"
25357 "\xf6\x3d\xe8\x5f\xc8\xab\xe4\xab\x0f\xad\xe8\xd6"
25358 "\x86\x88\x55\x28\xc1\x69\xdd\x76",
25359 .addtlb = (unsigned char *)
25360 "\xac\x07\xfc\xbe\x87\x0e\xd3\xea\x1f\x7e\xb8\xe7"
25361 "\x9d\xec\xe8\xe7\xbc\xf3\x18\x25\x77\x35\x4a\xaa"
25362 "\x00\x99\x2a\xdd\x0a\x00\x50\x82",
25363 .addtllen = 32,
25364 .pers = (unsigned char *)
25365 "\xbc\x55\xab\x3c\xf6\x52\xb0\x11\x3d\x7b\x90\xb8"
25366 "\x24\xc9\x26\x4e\x5a\x1e\x77\x0d\x3d\x58\x4a\xda"
25367 "\xd1\x81\xe9\xf8\xeb\x30\x8f\x6f",
25368 .perslen = 32,
25372 static struct drbg_testvec drbg_pr_ctr_aes128_tv_template[] = {
25374 .entropy = (unsigned char *)
25375 "\xd1\x44\xc6\x61\x81\x6d\xca\x9d\x15\x28\x8a\x42"
25376 "\x94\xd7\x28\x9c\x43\x77\x19\x29\x1a\x6d\xc3\xa2",
25377 .entropylen = 24,
25378 .entpra = (unsigned char *)
25379 "\x96\xd8\x9e\x45\x32\xc9\xd2\x08\x7a\x6d\x97\x15"
25380 "\xb4\xec\x80\xb1",
25381 .entprb = (unsigned char *)
25382 "\x8b\xb6\x72\xb5\x24\x0b\x98\x65\x95\x95\xe9\xc9"
25383 "\x28\x07\xeb\xc2",
25384 .entprlen = 16,
25385 .expected = (unsigned char *)
25386 "\x70\x19\xd0\x4c\x45\x78\xd6\x68\xa9\x9a\xaa\xfe"
25387 "\xc1\xdf\x27\x9a\x1c\x0d\x0d\xf7\x24\x75\x46\xcc"
25388 "\x77\x6b\xdf\x89\xc6\x94\xdc\x74\x50\x10\x70\x18"
25389 "\x9b\xdc\x96\xb4\x89\x23\x40\x1a\xce\x09\x87\xce"
25390 "\xd2\xf3\xd5\xe4\x51\x67\x74\x11\x5a\xcc\x8b\x3b"
25391 "\x8a\xf1\x23\xa8",
25392 .expectedlen = 64,
25393 .addtla = NULL,
25394 .addtlb = NULL,
25395 .addtllen = 0,
25396 .pers = NULL,
25397 .perslen = 0,
25398 }, {
25399 .entropy = (unsigned char *)
25400 "\x8e\x83\xe0\xeb\x37\xea\x3e\x53\x5e\x17\x6e\x77"
25401 "\xbd\xb1\x53\x90\xfc\xdc\xc1\x3c\x9a\x88\x22\x94",
25402 .entropylen = 24,
25403 .entpra = (unsigned char *)
25404 "\x6a\x85\xe7\x37\xc8\xf1\x04\x31\x98\x4f\xc8\x73"
25405 "\x67\xd1\x08\xf8",
25406 .entprb = (unsigned char *)
25407 "\xd7\xa4\x68\xe2\x12\x74\xc3\xd9\xf1\xb7\x05\xbc"
25408 "\xd4\xba\x04\x58",
25409 .entprlen = 16,
25410 .expected = (unsigned char *)
25411 "\x78\xd6\xa6\x70\xff\xd1\x82\xf5\xa2\x88\x7f\x6d"
25412 "\x3d\x8c\x39\xb1\xa8\xcb\x2c\x91\xab\x14\x7e\xbc"
25413 "\x95\x45\x9f\x24\xb8\x20\xac\x21\x23\xdb\x72\xd7"
25414 "\x12\x8d\x48\x95\xf3\x19\x0c\x43\xc6\x19\x45\xfc"
25415 "\x8b\xac\x40\x29\x73\x00\x03\x45\x5e\x12\xff\x0c"
25416 "\xc1\x02\x41\x82",
25417 .expectedlen = 64,
25418 .addtla = (unsigned char *)
25419 "\xa2\xd9\x38\xcf\x8b\x29\x67\x5b\x65\x62\x6f\xe8"
25420 "\xeb\xb3\x01\x76",
25421 .addtlb = (unsigned char *)
25422 "\x59\x63\x1e\x81\x8a\x14\xa8\xbb\xa1\xb8\x41\x25"
25423 "\xd0\x7f\xcc\x43",
25424 .addtllen = 16,
25425 .pers = NULL,
25426 .perslen = 0,
25427 }, {
25428 .entropy = (unsigned char *)
25429 "\x04\xd9\x49\xa6\xdc\xe8\x6e\xbb\xf1\x08\x77\x2b"
25430 "\x9e\x08\xca\x92\x65\x16\xda\x99\xa2\x59\xf3\xe8",
25431 .entropylen = 24,
25432 .entpra = (unsigned char *)
25433 "\x38\x7e\x3f\x6b\x51\x70\x7b\x20\xec\x53\xd0\x66"
25434 "\xc3\x0f\xe3\xb0",
25435 .entprb = (unsigned char *)
25436 "\xe0\x86\xa6\xaa\x5f\x72\x2f\xad\xf7\xef\x06\xb8"
25437 "\xd6\x9c\x9d\xe8",
25438 .entprlen = 16,
25439 .expected = (unsigned char *)
25440 "\xc9\x0a\xaf\x85\x89\x71\x44\x66\x4f\x25\x0b\x2b"
25441 "\xde\xd8\xfa\xff\x52\x5a\x1b\x32\x5e\x41\x7a\x10"
25442 "\x1f\xef\x1e\x62\x23\xe9\x20\x30\xc9\x0d\xad\x69"
25443 "\xb4\x9c\x5b\xf4\x87\x42\xd5\xae\x5e\x5e\x43\xcc"
25444 "\xd9\xfd\x0b\x93\x4a\xe3\xd4\x06\x37\x36\x0f\x3f"
25445 "\x72\x82\x0c\xcf",
25446 .expectedlen = 64,
25447 .addtla = NULL,
25448 .addtlb = NULL,
25449 .addtllen = 0,
25450 .pers = (unsigned char *)
25451 "\xbf\xa4\x9a\x8f\x7b\xd8\xb1\x7a\x9d\xfa\x45\xed"
25452 "\x21\x52\xb3\xad",
25453 .perslen = 16,
25454 }, {
25455 .entropy = (unsigned char *)
25456 "\x92\x89\x8f\x31\xfa\x1c\xff\x6d\x18\x2f\x26\x06"
25457 "\x43\xdf\xf8\x18\xc2\xa4\xd9\x72\xc3\xb9\xb6\x97",
25458 .entropylen = 24,
25459 .entpra = (unsigned char *)
25460 "\x20\x72\x8a\x06\xf8\x6f\x8d\xd4\x41\xe2\x72\xb7"
25461 "\xc4\x2c\xe8\x10",
25462 .entprb = (unsigned char *)
25463 "\x3d\xb0\xf0\x94\xf3\x05\x50\x33\x17\x86\x3e\x22"
25464 "\x08\xf7\xa5\x01",
25465 .entprlen = 16,
25466 .expected = (unsigned char *)
25467 "\x5a\x35\x39\x87\x0f\x4d\x22\xa4\x09\x24\xee\x71"
25468 "\xc9\x6f\xac\x72\x0a\xd6\xf0\x88\x82\xd0\x83\x28"
25469 "\x73\xec\x3f\x93\xd8\xab\x45\x23\xf0\x7e\xac\x45"
25470 "\x14\x5e\x93\x9f\xb1\xd6\x76\x43\x3d\xb6\xe8\x08"
25471 "\x88\xf6\xda\x89\x08\x77\x42\xfe\x1a\xf4\x3f\xc4"
25472 "\x23\xc5\x1f\x68",
25473 .expectedlen = 64,
25474 .addtla = (unsigned char *)
25475 "\x1a\x40\xfa\xe3\xcc\x6c\x7c\xa0\xf8\xda\xba\x59"
25476 "\x23\x6d\xad\x1d",
25477 .addtlb = (unsigned char *)
25478 "\x9f\x72\x76\x6c\xc7\x46\xe5\xed\x2e\x53\x20\x12"
25479 "\xbc\x59\x31\x8c",
25480 .addtllen = 16,
25481 .pers = (unsigned char *)
25482 "\xea\x65\xee\x60\x26\x4e\x7e\xb6\x0e\x82\x68\xc4"
25483 "\x37\x3c\x5c\x0b",
25484 .perslen = 16,
25489 * SP800-90A DRBG Test vectors from
25490 * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
25492 * Test vectors for DRBG without prediction resistance. All types of DRBGs
25493 * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
25494 * w/o personalization string, w/ and w/o additional input string).
25496 static struct drbg_testvec drbg_nopr_sha256_tv_template[] = {
25498 .entropy = (unsigned char *)
25499 "\xa6\x5a\xd0\xf3\x45\xdb\x4e\x0e\xff\xe8\x75\xc3"
25500 "\xa2\xe7\x1f\x42\xc7\x12\x9d\x62\x0f\xf5\xc1\x19"
25501 "\xa9\xef\x55\xf0\x51\x85\xe0\xfb\x85\x81\xf9\x31"
25502 "\x75\x17\x27\x6e\x06\xe9\x60\x7d\xdb\xcb\xcc\x2e",
25503 .entropylen = 48,
25504 .expected = (unsigned char *)
25505 "\xd3\xe1\x60\xc3\x5b\x99\xf3\x40\xb2\x62\x82\x64"
25506 "\xd1\x75\x10\x60\xe0\x04\x5d\xa3\x83\xff\x57\xa5"
25507 "\x7d\x73\xa6\x73\xd2\xb8\xd8\x0d\xaa\xf6\xa6\xc3"
25508 "\x5a\x91\xbb\x45\x79\xd7\x3f\xd0\xc8\xfe\xd1\x11"
25509 "\xb0\x39\x13\x06\x82\x8a\xdf\xed\x52\x8f\x01\x81"
25510 "\x21\xb3\xfe\xbd\xc3\x43\xe7\x97\xb8\x7d\xbb\x63"
25511 "\xdb\x13\x33\xde\xd9\xd1\xec\xe1\x77\xcf\xa6\xb7"
25512 "\x1f\xe8\xab\x1d\xa4\x66\x24\xed\x64\x15\xe5\x1c"
25513 "\xcd\xe2\xc7\xca\x86\xe2\x83\x99\x0e\xea\xeb\x91"
25514 "\x12\x04\x15\x52\x8b\x22\x95\x91\x02\x81\xb0\x2d"
25515 "\xd4\x31\xf4\xc9\xf7\x04\x27\xdf",
25516 .expectedlen = 128,
25517 .addtla = NULL,
25518 .addtlb = NULL,
25519 .addtllen = 0,
25520 .pers = NULL,
25521 .perslen = 0,
25522 }, {
25523 .entropy = (unsigned char *)
25524 "\x73\xd3\xfb\xa3\x94\x5f\x2b\x5f\xb9\x8f\xf6\x9c"
25525 "\x8a\x93\x17\xae\x19\xc3\x4c\xc3\xd6\xca\xa3\x2d"
25526 "\x16\xfc\x42\xd2\x2d\xd5\x6f\x56\xcc\x1d\x30\xff"
25527 "\x9e\x06\x3e\x09\xce\x58\xe6\x9a\x35\xb3\xa6\x56",
25528 .entropylen = 48,
25529 .expected = (unsigned char *)
25530 "\x71\x7b\x93\x46\x1a\x40\xaa\x35\xa4\xaa\xc5\xe7"
25531 "\x6d\x5b\x5b\x8a\xa0\xdf\x39\x7d\xae\x71\x58\x5b"
25532 "\x3c\x7c\xb4\xf0\x89\xfa\x4a\x8c\xa9\x5c\x54\xc0"
25533 "\x40\xdf\xbc\xce\x26\x81\x34\xf8\xba\x7d\x1c\xe8"
25534 "\xad\x21\xe0\x74\xcf\x48\x84\x30\x1f\xa1\xd5\x4f"
25535 "\x81\x42\x2f\xf4\xdb\x0b\x23\xf8\x73\x27\xb8\x1d"
25536 "\x42\xf8\x44\x58\xd8\x5b\x29\x27\x0a\xf8\x69\x59"
25537 "\xb5\x78\x44\xeb\x9e\xe0\x68\x6f\x42\x9a\xb0\x5b"
25538 "\xe0\x4e\xcb\x6a\xaa\xe2\xd2\xd5\x33\x25\x3e\xe0"
25539 "\x6c\xc7\x6a\x07\xa5\x03\x83\x9f\xe2\x8b\xd1\x1c"
25540 "\x70\xa8\x07\x59\x97\xeb\xf6\xbe",
25541 .expectedlen = 128,
25542 .addtla = (unsigned char *)
25543 "\xf4\xd5\x98\x3d\xa8\xfc\xfa\x37\xb7\x54\x67\x73"
25544 "\xc7\xc3\xdd\x47\x34\x71\x02\x5d\xc1\xa0\xd3\x10"
25545 "\xc1\x8b\xbd\xf5\x66\x34\x6f\xdd",
25546 .addtlb = (unsigned char *)
25547 "\xf7\x9e\x6a\x56\x0e\x73\xe9\xd9\x7a\xd1\x69\xe0"
25548 "\x6f\x8c\x55\x1c\x44\xd1\xce\x6f\x28\xcc\xa4\x4d"
25549 "\xa8\xc0\x85\xd1\x5a\x0c\x59\x40",
25550 .addtllen = 32,
25551 .pers = NULL,
25552 .perslen = 0,
25553 }, {
25554 .entropy = (unsigned char *)
25555 "\x2a\x85\xa9\x8b\xd0\xda\x83\xd6\xad\xab\x9f\xbb"
25556 "\x54\x31\x15\x95\x1c\x4d\x49\x9f\x6a\x15\xf6\xe4"
25557 "\x15\x50\x88\x06\x29\x0d\xed\x8d\xb9\x6f\x96\xe1"
25558 "\x83\x9f\xf7\x88\xda\x84\xbf\x44\x28\xd9\x1d\xaa",
25559 .entropylen = 48,
25560 .expected = (unsigned char *)
25561 "\x2d\x55\xde\xc9\xed\x05\x47\x07\x3d\x04\xfc\x28"
25562 "\x0f\x92\xf0\x4d\xd8\x00\x32\x47\x0a\x1b\x1c\x4b"
25563 "\xef\xd9\x97\xa1\x17\x67\xda\x26\x6c\xfe\x76\x46"
25564 "\x6f\xbc\x6d\x82\x4e\x83\x8a\x98\x66\x6c\x01\xb6"
25565 "\xe6\x64\xe0\x08\x10\x6f\xd3\x5d\x90\xe7\x0d\x72"
25566 "\xa6\xa7\xe3\xbb\x98\x11\x12\x56\x23\xc2\x6d\xd1"
25567 "\xc8\xa8\x7a\x39\xf3\x34\xe3\xb8\xf8\x66\x00\x77"
25568 "\x7d\xcf\x3c\x3e\xfa\xc9\x0f\xaf\xe0\x24\xfa\xe9"
25569 "\x84\xf9\x6a\x01\xf6\x35\xdb\x5c\xab\x2a\xef\x4e"
25570 "\xac\xab\x55\xb8\x9b\xef\x98\x68\xaf\x51\xd8\x16"
25571 "\xa5\x5e\xae\xf9\x1e\xd2\xdb\xe6",
25572 .expectedlen = 128,
25573 .addtla = NULL,
25574 .addtlb = NULL,
25575 .addtllen = 0,
25576 .pers = (unsigned char *)
25577 "\xa8\x80\xec\x98\x30\x98\x15\xd2\xc6\xc4\x68\xf1"
25578 "\x3a\x1c\xbf\xce\x6a\x40\x14\xeb\x36\x99\x53\xda"
25579 "\x57\x6b\xce\xa4\x1c\x66\x3d\xbc",
25580 .perslen = 32,
25581 }, {
25582 .entropy = (unsigned char *)
25583 "\x69\xed\x82\xa9\xc5\x7b\xbf\xe5\x1d\x2f\xcb\x7a"
25584 "\xd3\x50\x7d\x96\xb4\xb9\x2b\x50\x77\x51\x27\x74"
25585 "\x33\x74\xba\xf1\x30\xdf\x8e\xdf\x87\x1d\x87\xbc"
25586 "\x96\xb2\xc3\xa7\xed\x60\x5e\x61\x4e\x51\x29\x1a",
25587 .entropylen = 48,
25588 .expected = (unsigned char *)
25589 "\xa5\x71\x24\x31\x11\xfe\x13\xe1\xa8\x24\x12\xfb"
25590 "\x37\xa1\x27\xa5\xab\x77\xa1\x9f\xae\x8f\xaf\x13"
25591 "\x93\xf7\x53\x85\x91\xb6\x1b\xab\xd4\x6b\xea\xb6"
25592 "\xef\xda\x4c\x90\x6e\xef\x5f\xde\xe1\xc7\x10\x36"
25593 "\xd5\x67\xbd\x14\xb6\x89\x21\x0c\xc9\x92\x65\x64"
25594 "\xd0\xf3\x23\xe0\x7f\xd1\xe8\x75\xc2\x85\x06\xea"
25595 "\xca\xc0\xcb\x79\x2d\x29\x82\xfc\xaa\x9a\xc6\x95"
25596 "\x7e\xdc\x88\x65\xba\xec\x0e\x16\x87\xec\xa3\x9e"
25597 "\xd8\x8c\x80\xab\x3a\x64\xe0\xcb\x0e\x45\x98\xdd"
25598 "\x7c\x6c\x6c\x26\x11\x13\xc8\xce\xa9\x47\xa6\x06"
25599 "\x57\xa2\x66\xbb\x2d\x7f\xf3\xc1",
25600 .expectedlen = 128,
25601 .addtla = (unsigned char *)
25602 "\x74\xd3\x6d\xda\xe8\xd6\x86\x5f\x63\x01\xfd\xf2"
25603 "\x7d\x06\x29\x6d\x94\xd1\x66\xf0\xd2\x72\x67\x4e"
25604 "\x77\xc5\x3d\x9e\x03\xe3\xa5\x78",
25605 .addtlb = (unsigned char *)
25606 "\xf6\xb6\x3d\xf0\x7c\x26\x04\xc5\x8b\xcd\x3e\x6a"
25607 "\x9f\x9c\x3a\x2e\xdb\x47\x87\xe5\x8e\x00\x5e\x2b"
25608 "\x74\x7f\xa6\xf6\x80\xcd\x9b\x21",
25609 .addtllen = 32,
25610 .pers = (unsigned char *)
25611 "\x74\xa6\xe0\x08\xf9\x27\xee\x1d\x6e\x3c\x28\x20"
25612 "\x87\xdd\xd7\x54\x31\x47\x78\x4b\xe5\x6d\xa3\x73"
25613 "\xa9\x65\xb1\x10\xc1\xdc\x77\x7c",
25614 .perslen = 32,
25618 static struct drbg_testvec drbg_nopr_hmac_sha256_tv_template[] = {
25620 .entropy = (unsigned char *)
25621 "\xca\x85\x19\x11\x34\x93\x84\xbf\xfe\x89\xde\x1c"
25622 "\xbd\xc4\x6e\x68\x31\xe4\x4d\x34\xa4\xfb\x93\x5e"
25623 "\xe2\x85\xdd\x14\xb7\x1a\x74\x88\x65\x9b\xa9\x6c"
25624 "\x60\x1d\xc6\x9f\xc9\x02\x94\x08\x05\xec\x0c\xa8",
25625 .entropylen = 48,
25626 .expected = (unsigned char *)
25627 "\xe5\x28\xe9\xab\xf2\xde\xce\x54\xd4\x7c\x7e\x75"
25628 "\xe5\xfe\x30\x21\x49\xf8\x17\xea\x9f\xb4\xbe\xe6"
25629 "\xf4\x19\x96\x97\xd0\x4d\x5b\x89\xd5\x4f\xbb\x97"
25630 "\x8a\x15\xb5\xc4\x43\xc9\xec\x21\x03\x6d\x24\x60"
25631 "\xb6\xf7\x3e\xba\xd0\xdc\x2a\xba\x6e\x62\x4a\xbf"
25632 "\x07\x74\x5b\xc1\x07\x69\x4b\xb7\x54\x7b\xb0\x99"
25633 "\x5f\x70\xde\x25\xd6\xb2\x9e\x2d\x30\x11\xbb\x19"
25634 "\xd2\x76\x76\xc0\x71\x62\xc8\xb5\xcc\xde\x06\x68"
25635 "\x96\x1d\xf8\x68\x03\x48\x2c\xb3\x7e\xd6\xd5\xc0"
25636 "\xbb\x8d\x50\xcf\x1f\x50\xd4\x76\xaa\x04\x58\xbd"
25637 "\xab\xa8\x06\xf4\x8b\xe9\xdc\xb8",
25638 .expectedlen = 128,
25639 .addtla = NULL,
25640 .addtlb = NULL,
25641 .addtllen = 0,
25642 .pers = NULL,
25643 .perslen = 0,
25644 }, {
25645 .entropy = (unsigned char *)
25646 "\xf9\x7a\x3c\xfd\x91\xfa\xa0\x46\xb9\xe6\x1b\x94"
25647 "\x93\xd4\x36\xc4\x93\x1f\x60\x4b\x22\xf1\x08\x15"
25648 "\x21\xb3\x41\x91\x51\xe8\xff\x06\x11\xf3\xa7\xd4"
25649 "\x35\x95\x35\x7d\x58\x12\x0b\xd1\xe2\xdd\x8a\xed",
25650 .entropylen = 48,
25651 .expected = (unsigned char *)
25652 "\xc6\x87\x1c\xff\x08\x24\xfe\x55\xea\x76\x89\xa5"
25653 "\x22\x29\x88\x67\x30\x45\x0e\x5d\x36\x2d\xa5\xbf"
25654 "\x59\x0d\xcf\x9a\xcd\x67\xfe\xd4\xcb\x32\x10\x7d"
25655 "\xf5\xd0\x39\x69\xa6\x6b\x1f\x64\x94\xfd\xf5\xd6"
25656 "\x3d\x5b\x4d\x0d\x34\xea\x73\x99\xa0\x7d\x01\x16"
25657 "\x12\x6d\x0d\x51\x8c\x7c\x55\xba\x46\xe1\x2f\x62"
25658 "\xef\xc8\xfe\x28\xa5\x1c\x9d\x42\x8e\x6d\x37\x1d"
25659 "\x73\x97\xab\x31\x9f\xc7\x3d\xed\x47\x22\xe5\xb4"
25660 "\xf3\x00\x04\x03\x2a\x61\x28\xdf\x5e\x74\x97\xec"
25661 "\xf8\x2c\xa7\xb0\xa5\x0e\x86\x7e\xf6\x72\x8a\x4f"
25662 "\x50\x9a\x8c\x85\x90\x87\x03\x9c",
25663 .expectedlen = 128,
25664 .addtla = (unsigned char *)
25665 "\x51\x72\x89\xaf\xe4\x44\xa0\xfe\x5e\xd1\xa4\x1d"
25666 "\xbb\xb5\xeb\x17\x15\x00\x79\xbd\xd3\x1e\x29\xcf"
25667 "\x2f\xf3\x00\x34\xd8\x26\x8e\x3b",
25668 .addtlb = (unsigned char *)
25669 "\x88\x02\x8d\x29\xef\x80\xb4\xe6\xf0\xfe\x12\xf9"
25670 "\x1d\x74\x49\xfe\x75\x06\x26\x82\xe8\x9c\x57\x14"
25671 "\x40\xc0\xc9\xb5\x2c\x42\xa6\xe0",
25672 .addtllen = 32,
25673 .pers = NULL,
25674 .perslen = 0,
25675 }, {
25676 .entropy = (unsigned char *)
25677 "\x8d\xf0\x13\xb4\xd1\x03\x52\x30\x73\x91\x7d\xdf"
25678 "\x6a\x86\x97\x93\x05\x9e\x99\x43\xfc\x86\x54\x54"
25679 "\x9e\x7a\xb2\x2f\x7c\x29\xf1\x22\xda\x26\x25\xaf"
25680 "\x2d\xdd\x4a\xbc\xce\x3c\xf4\xfa\x46\x59\xd8\x4e",
25681 .entropylen = 48,
25682 .expected = (unsigned char *)
25683 "\xb9\x1c\xba\x4c\xc8\x4f\xa2\x5d\xf8\x61\x0b\x81"
25684 "\xb6\x41\x40\x27\x68\xa2\x09\x72\x34\x93\x2e\x37"
25685 "\xd5\x90\xb1\x15\x4c\xbd\x23\xf9\x74\x52\xe3\x10"
25686 "\xe2\x91\xc4\x51\x46\x14\x7f\x0d\xa2\xd8\x17\x61"
25687 "\xfe\x90\xfb\xa6\x4f\x94\x41\x9c\x0f\x66\x2b\x28"
25688 "\xc1\xed\x94\xda\x48\x7b\xb7\xe7\x3e\xec\x79\x8f"
25689 "\xbc\xf9\x81\xb7\x91\xd1\xbe\x4f\x17\x7a\x89\x07"
25690 "\xaa\x3c\x40\x16\x43\xa5\xb6\x2b\x87\xb8\x9d\x66"
25691 "\xb3\xa6\x0e\x40\xd4\xa8\xe4\xe9\xd8\x2a\xf6\xd2"
25692 "\x70\x0e\x6f\x53\x5c\xdb\x51\xf7\x5c\x32\x17\x29"
25693 "\x10\x37\x41\x03\x0c\xcc\x3a\x56",
25694 .expectedlen = 128,
25695 .addtla = NULL,
25696 .addtlb = NULL,
25697 .addtllen = 0,
25698 .pers = (unsigned char *)
25699 "\xb5\x71\xe6\x6d\x7c\x33\x8b\xc0\x7b\x76\xad\x37"
25700 "\x57\xbb\x2f\x94\x52\xbf\x7e\x07\x43\x7a\xe8\x58"
25701 "\x1c\xe7\xbc\x7c\x3a\xc6\x51\xa9",
25702 .perslen = 32,
25703 }, {
25704 .entropy = (unsigned char *)
25705 "\xc2\xa5\x66\xa9\xa1\x81\x7b\x15\xc5\xc3\xb7\x78"
25706 "\x17\x7a\xc8\x7c\x24\xe7\x97\xbe\x0a\x84\x5f\x11"
25707 "\xc2\xfe\x39\x9d\xd3\x77\x32\xf2\xcb\x18\x94\xeb"
25708 "\x2b\x97\xb3\xc5\x6e\x62\x83\x29\x51\x6f\x86\xec",
25709 .entropylen = 48,
25710 .expected = (unsigned char *)
25711 "\xb3\xa3\x69\x8d\x77\x76\x99\xa0\xdd\x9f\xa3\xf0"
25712 "\xa9\xfa\x57\x83\x2d\x3c\xef\xac\x5d\xf2\x44\x37"
25713 "\xc6\xd7\x3a\x0f\xe4\x10\x40\xf1\x72\x90\x38\xae"
25714 "\xf1\xe9\x26\x35\x2e\xa5\x9d\xe1\x20\xbf\xb7\xb0"
25715 "\x73\x18\x3a\x34\x10\x6e\xfe\xd6\x27\x8f\xf8\xad"
25716 "\x84\x4b\xa0\x44\x81\x15\xdf\xdd\xf3\x31\x9a\x82"
25717 "\xde\x6b\xb1\x1d\x80\xbd\x87\x1a\x9a\xcd\x35\xc7"
25718 "\x36\x45\xe1\x27\x0f\xb9\xfe\x4f\xa8\x8e\xc0\xe4"
25719 "\x65\x40\x9e\xa0\xcb\xa8\x09\xfe\x2f\x45\xe0\x49"
25720 "\x43\xa2\xe3\x96\xbb\xb7\xdd\x2f\x4e\x07\x95\x30"
25721 "\x35\x24\xcc\x9c\xc5\xea\x54\xa1",
25722 .expectedlen = 128,
25723 .addtla = (unsigned char *)
25724 "\x41\x3d\xd8\x3f\xe5\x68\x35\xab\xd4\x78\xcb\x96"
25725 "\x93\xd6\x76\x35\x90\x1c\x40\x23\x9a\x26\x64\x62"
25726 "\xd3\x13\x3b\x83\xe4\x9c\x82\x0b",
25727 .addtlb = (unsigned char *)
25728 "\xd5\xc4\xa7\x1f\x9d\x6d\x95\xa1\xbe\xdf\x0b\xd2"
25729 "\x24\x7c\x27\x7d\x1f\x84\xa4\xe5\x7a\x4a\x88\x25"
25730 "\xb8\x2a\x2d\x09\x7d\xe6\x3e\xf1",
25731 .addtllen = 32,
25732 .pers = (unsigned char *)
25733 "\x13\xce\x4d\x8d\xd2\xdb\x97\x96\xf9\x41\x56\xc8"
25734 "\xe8\xf0\x76\x9b\x0a\xa1\xc8\x2c\x13\x23\xb6\x15"
25735 "\x36\x60\x3b\xca\x37\xc9\xee\x29",
25736 .perslen = 32,
25740 static struct drbg_testvec drbg_nopr_ctr_aes192_tv_template[] = {
25742 .entropy = (unsigned char *)
25743 "\xc3\x5c\x2f\xa2\xa8\x9d\x52\xa1\x1f\xa3\x2a\xa9"
25744 "\x6c\x95\xb8\xf1\xc9\xa8\xf9\xcb\x24\x5a\x8b\x40"
25745 "\xf3\xa6\xe5\xa7\xfb\xd9\xd3\xc6\x8e\x27\x7b\xa9"
25746 "\xac\x9b\xbb\x00",
25747 .entropylen = 40,
25748 .expected = (unsigned char *)
25749 "\x8c\x2e\x72\xab\xfd\x9b\xb8\x28\x4d\xb7\x9e\x17"
25750 "\xa4\x3a\x31\x46\xcd\x76\x94\xe3\x52\x49\xfc\x33"
25751 "\x83\x91\x4a\x71\x17\xf4\x13\x68\xe6\xd4\xf1\x48"
25752 "\xff\x49\xbf\x29\x07\x6b\x50\x15\xc5\x9f\x45\x79"
25753 "\x45\x66\x2e\x3d\x35\x03\x84\x3f\x4a\xa5\xa3\xdf"
25754 "\x9a\x9d\xf1\x0d",
25755 .expectedlen = 64,
25756 .addtla = NULL,
25757 .addtlb = NULL,
25758 .addtllen = 0,
25759 .pers = NULL,
25760 .perslen = 0,
25764 static struct drbg_testvec drbg_nopr_ctr_aes256_tv_template[] = {
25766 .entropy = (unsigned char *)
25767 "\x36\x40\x19\x40\xfa\x8b\x1f\xba\x91\xa1\x66\x1f"
25768 "\x21\x1d\x78\xa0\xb9\x38\x9a\x74\xe5\xbc\xcf\xec"
25769 "\xe8\xd7\x66\xaf\x1a\x6d\x3b\x14\x49\x6f\x25\xb0"
25770 "\xf1\x30\x1b\x4f\x50\x1b\xe3\x03\x80\xa1\x37\xeb",
25771 .entropylen = 48,
25772 .expected = (unsigned char *)
25773 "\x58\x62\xeb\x38\xbd\x55\x8d\xd9\x78\xa6\x96\xe6"
25774 "\xdf\x16\x47\x82\xdd\xd8\x87\xe7\xe9\xa6\xc9\xf3"
25775 "\xf1\xfb\xaf\xb7\x89\x41\xb5\x35\xa6\x49\x12\xdf"
25776 "\xd2\x24\xc6\xdc\x74\x54\xe5\x25\x0b\x3d\x97\x16"
25777 "\x5e\x16\x26\x0c\x2f\xaf\x1c\xc7\x73\x5c\xb7\x5f"
25778 "\xb4\xf0\x7e\x1d",
25779 .expectedlen = 64,
25780 .addtla = NULL,
25781 .addtlb = NULL,
25782 .addtllen = 0,
25783 .pers = NULL,
25784 .perslen = 0,
25788 static struct drbg_testvec drbg_nopr_ctr_aes128_tv_template[] = {
25790 .entropy = (unsigned char *)
25791 "\x87\xe1\xc5\x32\x99\x7f\x57\xa3\x5c\x28\x6d\xe8"
25792 "\x64\xbf\xf2\x64\xa3\x9e\x98\xdb\x6c\x10\x78\x7f",
25793 .entropylen = 24,
25794 .expected = (unsigned char *)
25795 "\x2c\x14\x7e\x24\x11\x9a\xd8\xd4\xb2\xed\x61\xc1"
25796 "\x53\xd0\x50\xc9\x24\xff\x59\x75\x15\xf1\x17\x3a"
25797 "\x3d\xf4\x4b\x2c\x84\x28\xef\x89\x0e\xb9\xde\xf3"
25798 "\xe4\x78\x04\xb2\xfd\x9b\x35\x7f\xe1\x3f\x8a\x3e"
25799 "\x10\xc8\x67\x0a\xf9\xdf\x2d\x6c\x96\xfb\xb2\xb8"
25800 "\xcb\x2d\xd6\xb0",
25801 .expectedlen = 64,
25802 .addtla = NULL,
25803 .addtlb = NULL,
25804 .addtllen = 0,
25805 .pers = NULL,
25806 .perslen = 0,
25807 }, {
25808 .entropy = (unsigned char *)
25809 "\x71\xbd\xce\x35\x42\x7d\x20\xbf\x58\xcf\x17\x74"
25810 "\xce\x72\xd8\x33\x34\x50\x2d\x8f\x5b\x14\xc4\xdd",
25811 .entropylen = 24,
25812 .expected = (unsigned char *)
25813 "\x97\x33\xe8\x20\x12\xe2\x7b\xa1\x46\x8f\xf2\x34"
25814 "\xb3\xc9\xb6\x6b\x20\xb2\x4f\xee\x27\xd8\x0b\x21"
25815 "\x8c\xff\x63\x73\x69\x29\xfb\xf3\x85\xcd\x88\x8e"
25816 "\x43\x2c\x71\x8b\xa2\x55\xd2\x0f\x1d\x7f\xe3\xe1"
25817 "\x2a\xa3\xe9\x2c\x25\x89\xc7\x14\x52\x99\x56\xcc"
25818 "\xc3\xdf\xb3\x81",
25819 .expectedlen = 64,
25820 .addtla = (unsigned char *)
25821 "\x66\xef\x42\xd6\x9a\x8c\x3d\x6d\x4a\x9e\x95\xa6"
25822 "\x91\x4d\x81\x56",
25823 .addtlb = (unsigned char *)
25824 "\xe3\x18\x83\xd9\x4b\x5e\xc4\xcc\xaa\x61\x2f\xbb"
25825 "\x4a\x55\xd1\xc6",
25826 .addtllen = 16,
25827 .pers = NULL,
25828 .perslen = 0,
25829 }, {
25830 .entropy = (unsigned char *)
25831 "\xca\x4b\x1e\xfa\x75\xbd\x69\x36\x38\x73\xb8\xf9"
25832 "\xdb\x4d\x35\x0e\x47\xbf\x6c\x37\x72\xfd\xf7\xa9",
25833 .entropylen = 24,
25834 .expected = (unsigned char *)
25835 "\x59\xc3\x19\x79\x1b\xb1\xf3\x0e\xe9\x34\xae\x6e"
25836 "\x8b\x1f\xad\x1f\x74\xca\x25\x45\x68\xb8\x7f\x75"
25837 "\x12\xf8\xf2\xab\x4c\x23\x01\x03\x05\xe1\x70\xee"
25838 "\x75\xd8\xcb\xeb\x23\x4c\x7a\x23\x6e\x12\x27\xdb"
25839 "\x6f\x7a\xac\x3c\x44\xb7\x87\x4b\x65\x56\x74\x45"
25840 "\x34\x30\x0c\x3d",
25841 .expectedlen = 64,
25842 .addtla = NULL,
25843 .addtlb = NULL,
25844 .addtllen = 0,
25845 .pers = (unsigned char *)
25846 "\xeb\xaa\x60\x2c\x4d\xbe\x33\xff\x1b\xef\xbf\x0a"
25847 "\x0b\xc6\x97\x54",
25848 .perslen = 16,
25849 }, {
25850 .entropy = (unsigned char *)
25851 "\xc0\x70\x1f\x92\x50\x75\x8f\xcd\xf2\xbe\x73\x98"
25852 "\x80\xdb\x66\xeb\x14\x68\xb4\xa5\x87\x9c\x2d\xa6",
25853 .entropylen = 24,
25854 .expected = (unsigned char *)
25855 "\x97\xc0\xc0\xe5\xa0\xcc\xf2\x4f\x33\x63\x48\x8a"
25856 "\xdb\x13\x0a\x35\x89\xbf\x80\x65\x62\xee\x13\x95"
25857 "\x7c\x33\xd3\x7d\xf4\x07\x77\x7a\x2b\x65\x0b\x5f"
25858 "\x45\x5c\x13\xf1\x90\x77\x7f\xc5\x04\x3f\xcc\x1a"
25859 "\x38\xf8\xcd\x1b\xbb\xd5\x57\xd1\x4a\x4c\x2e\x8a"
25860 "\x2b\x49\x1e\x5c",
25861 .expectedlen = 64,
25862 .addtla = (unsigned char *)
25863 "\xf9\x01\xf8\x16\x7a\x1d\xff\xde\x8e\x3c\x83\xe2"
25864 "\x44\x85\xe7\xfe",
25865 .addtlb = (unsigned char *)
25866 "\x17\x1c\x09\x38\xc2\x38\x9f\x97\x87\x60\x55\xb4"
25867 "\x82\x16\x62\x7f",
25868 .addtllen = 16,
25869 .pers = (unsigned char *)
25870 "\x80\x08\xae\xe8\xe9\x69\x40\xc5\x08\x73\xc7\x9f"
25871 "\x8e\xcf\xe0\x02",
25872 .perslen = 16,
25876 /* Cast5 test vectors from RFC 2144 */
25877 #define CAST5_ENC_TEST_VECTORS 4
25878 #define CAST5_DEC_TEST_VECTORS 4
25879 #define CAST5_CBC_ENC_TEST_VECTORS 1
25880 #define CAST5_CBC_DEC_TEST_VECTORS 1
25881 #define CAST5_CTR_ENC_TEST_VECTORS 2
25882 #define CAST5_CTR_DEC_TEST_VECTORS 2
25884 static struct cipher_testvec cast5_enc_tv_template[] = {
25886 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
25887 "\x23\x45\x67\x89\x34\x56\x78\x9a",
25888 .klen = 16,
25889 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
25890 .ilen = 8,
25891 .result = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
25892 .rlen = 8,
25893 }, {
25894 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
25895 "\x23\x45",
25896 .klen = 10,
25897 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
25898 .ilen = 8,
25899 .result = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
25900 .rlen = 8,
25901 }, {
25902 .key = "\x01\x23\x45\x67\x12",
25903 .klen = 5,
25904 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
25905 .ilen = 8,
25906 .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
25907 .rlen = 8,
25908 }, { /* Generated from TF test vectors */
25909 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
25910 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
25911 .klen = 16,
25912 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
25913 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
25914 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
25915 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
25916 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
25917 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
25918 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
25919 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
25920 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
25921 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
25922 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
25923 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
25924 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
25925 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
25926 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
25927 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
25928 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
25929 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
25930 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
25931 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
25932 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
25933 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
25934 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
25935 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
25936 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
25937 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
25938 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
25939 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
25940 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
25941 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
25942 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
25943 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
25944 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
25945 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
25946 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
25947 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
25948 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
25949 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
25950 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
25951 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
25952 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
25953 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
25954 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
25955 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
25956 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
25957 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
25958 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
25959 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
25960 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
25961 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
25962 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
25963 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
25964 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
25965 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
25966 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
25967 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
25968 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
25969 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
25970 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
25971 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
25972 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
25973 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
25974 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
25975 .ilen = 496,
25976 .result = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
25977 "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
25978 "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
25979 "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
25980 "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
25981 "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
25982 "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
25983 "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
25984 "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
25985 "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
25986 "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
25987 "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
25988 "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
25989 "\xED\x34\x35\x78\x6B\x91\xC9\x32"
25990 "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
25991 "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
25992 "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
25993 "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
25994 "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
25995 "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
25996 "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
25997 "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
25998 "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
25999 "\x78\x75\x37\x55\xC1\xF5\x90\x40"
26000 "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
26001 "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
26002 "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
26003 "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
26004 "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
26005 "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
26006 "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
26007 "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
26008 "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
26009 "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
26010 "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
26011 "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
26012 "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
26013 "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
26014 "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
26015 "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
26016 "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
26017 "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
26018 "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
26019 "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
26020 "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
26021 "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
26022 "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
26023 "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
26024 "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
26025 "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
26026 "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
26027 "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
26028 "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
26029 "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
26030 "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
26031 "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
26032 "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
26033 "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
26034 "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
26035 "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
26036 "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
26037 "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
26038 .rlen = 496,
26039 .also_non_np = 1,
26040 .np = 3,
26041 .tap = { 496 - 20, 4, 16 },
26045 static struct cipher_testvec cast5_dec_tv_template[] = {
26047 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
26048 "\x23\x45\x67\x89\x34\x56\x78\x9a",
26049 .klen = 16,
26050 .input = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
26051 .ilen = 8,
26052 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26053 .rlen = 8,
26054 }, {
26055 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
26056 "\x23\x45",
26057 .klen = 10,
26058 .input = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
26059 .ilen = 8,
26060 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26061 .rlen = 8,
26062 }, {
26063 .key = "\x01\x23\x45\x67\x12",
26064 .klen = 5,
26065 .input = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
26066 .ilen = 8,
26067 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26068 .rlen = 8,
26069 }, { /* Generated from TF test vectors */
26070 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26071 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26072 .klen = 16,
26073 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26074 .input = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
26075 "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
26076 "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
26077 "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
26078 "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
26079 "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
26080 "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
26081 "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
26082 "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
26083 "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
26084 "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
26085 "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
26086 "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
26087 "\xED\x34\x35\x78\x6B\x91\xC9\x32"
26088 "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
26089 "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
26090 "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
26091 "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
26092 "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
26093 "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
26094 "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
26095 "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
26096 "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
26097 "\x78\x75\x37\x55\xC1\xF5\x90\x40"
26098 "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
26099 "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
26100 "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
26101 "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
26102 "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
26103 "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
26104 "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
26105 "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
26106 "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
26107 "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
26108 "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
26109 "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
26110 "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
26111 "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
26112 "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
26113 "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
26114 "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
26115 "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
26116 "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
26117 "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
26118 "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
26119 "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
26120 "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
26121 "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
26122 "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
26123 "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
26124 "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
26125 "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
26126 "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
26127 "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
26128 "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
26129 "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
26130 "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
26131 "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
26132 "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
26133 "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
26134 "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
26135 "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
26136 .ilen = 496,
26137 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26138 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26139 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26140 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26141 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26142 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26143 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26144 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26145 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26146 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26147 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26148 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26149 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26150 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26151 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26152 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26153 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26154 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26155 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26156 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26157 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26158 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26159 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26160 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26161 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26162 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26163 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26164 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26165 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26166 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26167 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26168 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26169 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26170 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26171 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26172 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26173 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26174 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26175 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26176 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26177 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26178 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26179 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26180 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26181 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26182 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26183 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26184 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26185 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26186 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26187 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26188 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26189 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26190 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26191 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26192 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26193 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26194 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26195 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26196 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26197 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26198 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26199 .rlen = 496,
26200 .also_non_np = 1,
26201 .np = 3,
26202 .tap = { 496 - 20, 4, 16 },
26206 static struct cipher_testvec cast5_cbc_enc_tv_template[] = {
26207 { /* Generated from TF test vectors */
26208 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26209 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26210 .klen = 16,
26211 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26212 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26213 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26214 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26215 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26216 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26217 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26218 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26219 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26220 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26221 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26222 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26223 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26224 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26225 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26226 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26227 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26228 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26229 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26230 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26231 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26232 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26233 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26234 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26235 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26236 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26237 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26238 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26239 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26240 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26241 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26242 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26243 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26244 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26245 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26246 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26247 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26248 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26249 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26250 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26251 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26252 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26253 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26254 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26255 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26256 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26257 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26258 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26259 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26260 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26261 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26262 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26263 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26264 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26265 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26266 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26267 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26268 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26269 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26270 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26271 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26272 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26273 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26274 .ilen = 496,
26275 .result = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
26276 "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
26277 "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
26278 "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
26279 "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
26280 "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
26281 "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
26282 "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
26283 "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
26284 "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
26285 "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
26286 "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
26287 "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
26288 "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
26289 "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
26290 "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
26291 "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
26292 "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
26293 "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
26294 "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
26295 "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
26296 "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
26297 "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
26298 "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
26299 "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
26300 "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
26301 "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
26302 "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
26303 "\x90\x12\x37\x49\x27\x98\x69\x18"
26304 "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
26305 "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
26306 "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
26307 "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
26308 "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
26309 "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
26310 "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
26311 "\x03\x55\x0E\x02\x41\x4A\x45\x06"
26312 "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
26313 "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
26314 "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
26315 "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
26316 "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
26317 "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
26318 "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
26319 "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
26320 "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
26321 "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
26322 "\x11\xB4\x18\x17\x1A\x65\x92\x56"
26323 "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
26324 "\x1A\x01\x22\x45\x17\x62\x52\x6C"
26325 "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
26326 "\x32\x66\x6F\x23\x7F\x94\x36\x88"
26327 "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
26328 "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
26329 "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
26330 "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
26331 "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
26332 "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
26333 "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
26334 "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
26335 "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
26336 "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
26337 .rlen = 496,
26338 .also_non_np = 1,
26339 .np = 3,
26340 .tap = { 496 - 20, 4, 16 },
26344 static struct cipher_testvec cast5_cbc_dec_tv_template[] = {
26345 { /* Generated from TF test vectors */
26346 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26347 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26348 .klen = 16,
26349 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26350 .input = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
26351 "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
26352 "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
26353 "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
26354 "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
26355 "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
26356 "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
26357 "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
26358 "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
26359 "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
26360 "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
26361 "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
26362 "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
26363 "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
26364 "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
26365 "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
26366 "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
26367 "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
26368 "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
26369 "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
26370 "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
26371 "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
26372 "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
26373 "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
26374 "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
26375 "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
26376 "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
26377 "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
26378 "\x90\x12\x37\x49\x27\x98\x69\x18"
26379 "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
26380 "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
26381 "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
26382 "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
26383 "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
26384 "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
26385 "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
26386 "\x03\x55\x0E\x02\x41\x4A\x45\x06"
26387 "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
26388 "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
26389 "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
26390 "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
26391 "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
26392 "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
26393 "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
26394 "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
26395 "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
26396 "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
26397 "\x11\xB4\x18\x17\x1A\x65\x92\x56"
26398 "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
26399 "\x1A\x01\x22\x45\x17\x62\x52\x6C"
26400 "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
26401 "\x32\x66\x6F\x23\x7F\x94\x36\x88"
26402 "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
26403 "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
26404 "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
26405 "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
26406 "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
26407 "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
26408 "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
26409 "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
26410 "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
26411 "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
26412 .ilen = 496,
26413 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26414 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26415 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26416 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26417 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26418 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26419 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26420 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26421 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26422 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26423 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26424 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26425 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26426 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26427 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26428 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26429 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26430 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26431 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26432 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26433 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26434 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26435 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26436 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26437 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26438 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26439 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26440 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26441 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26442 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26443 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26444 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26445 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26446 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26447 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26448 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26449 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26450 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26451 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26452 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26453 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26454 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26455 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26456 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26457 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26458 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26459 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26460 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26461 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26462 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26463 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26464 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26465 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26466 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26467 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26468 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26469 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26470 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26471 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26472 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26473 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26474 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26475 .rlen = 496,
26476 .also_non_np = 1,
26477 .np = 3,
26478 .tap = { 496 - 20, 4, 16 },
26482 static struct cipher_testvec cast5_ctr_enc_tv_template[] = {
26483 { /* Generated from TF test vectors */
26484 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26485 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26486 .klen = 16,
26487 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26488 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26489 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26490 "\x3A",
26491 .ilen = 17,
26492 .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
26493 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
26494 "\x0C",
26495 .rlen = 17,
26496 }, { /* Generated from TF test vectors */
26497 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26498 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26499 .klen = 16,
26500 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26501 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26502 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26503 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26504 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26505 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26506 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26507 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26508 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26509 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26510 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26511 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26512 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26513 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26514 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26515 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26516 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26517 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26518 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26519 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26520 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26521 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26522 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26523 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26524 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26525 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26526 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26527 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26528 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26529 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26530 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26531 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26532 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26533 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26534 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26535 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26536 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26537 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26538 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26539 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26540 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26541 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26542 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26543 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26544 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26545 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26546 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26547 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26548 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26549 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26550 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26551 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26552 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26553 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26554 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26555 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26556 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26557 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26558 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26559 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26560 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26561 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26562 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26563 .ilen = 496,
26564 .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
26565 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
26566 "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
26567 "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
26568 "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
26569 "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
26570 "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
26571 "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
26572 "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
26573 "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
26574 "\x88\x18\x52\x56\x48\x58\xD1\x6B"
26575 "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
26576 "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
26577 "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
26578 "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
26579 "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
26580 "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
26581 "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
26582 "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
26583 "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
26584 "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
26585 "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
26586 "\x44\x67\x90\x20\xAC\x41\xDF\x43"
26587 "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
26588 "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
26589 "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
26590 "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
26591 "\xAE\x59\x0F\x07\x88\x79\x53\x26"
26592 "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
26593 "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
26594 "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
26595 "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
26596 "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
26597 "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
26598 "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
26599 "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
26600 "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
26601 "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
26602 "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
26603 "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
26604 "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
26605 "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
26606 "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
26607 "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
26608 "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
26609 "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
26610 "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
26611 "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
26612 "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
26613 "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
26614 "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
26615 "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
26616 "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
26617 "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
26618 "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
26619 "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
26620 "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
26621 "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
26622 "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
26623 "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
26624 "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
26625 "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
26626 .rlen = 496,
26627 .also_non_np = 1,
26628 .np = 3,
26629 .tap = { 496 - 20, 4, 16 },
26633 static struct cipher_testvec cast5_ctr_dec_tv_template[] = {
26634 { /* Generated from TF test vectors */
26635 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26636 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26637 .klen = 16,
26638 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26639 .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
26640 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
26641 "\x0C",
26642 .ilen = 17,
26643 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26644 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26645 "\x3A",
26646 .rlen = 17,
26647 }, { /* Generated from TF test vectors */
26648 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26649 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26650 .klen = 16,
26651 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26652 .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
26653 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
26654 "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
26655 "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
26656 "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
26657 "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
26658 "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
26659 "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
26660 "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
26661 "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
26662 "\x88\x18\x52\x56\x48\x58\xD1\x6B"
26663 "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
26664 "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
26665 "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
26666 "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
26667 "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
26668 "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
26669 "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
26670 "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
26671 "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
26672 "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
26673 "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
26674 "\x44\x67\x90\x20\xAC\x41\xDF\x43"
26675 "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
26676 "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
26677 "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
26678 "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
26679 "\xAE\x59\x0F\x07\x88\x79\x53\x26"
26680 "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
26681 "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
26682 "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
26683 "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
26684 "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
26685 "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
26686 "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
26687 "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
26688 "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
26689 "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
26690 "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
26691 "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
26692 "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
26693 "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
26694 "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
26695 "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
26696 "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
26697 "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
26698 "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
26699 "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
26700 "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
26701 "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
26702 "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
26703 "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
26704 "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
26705 "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
26706 "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
26707 "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
26708 "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
26709 "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
26710 "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
26711 "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
26712 "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
26713 "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
26714 .ilen = 496,
26715 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26716 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26717 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26718 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26719 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26720 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26721 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26722 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26723 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26724 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26725 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26726 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26727 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26728 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26729 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26730 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26731 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26732 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26733 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26734 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26735 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26736 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26737 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26738 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26739 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26740 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26741 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26742 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26743 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26744 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26745 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26746 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26747 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26748 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26749 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26750 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26751 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26752 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26753 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26754 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26755 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26756 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26757 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26758 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26759 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26760 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26761 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26762 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26763 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26764 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26765 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26766 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26767 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26768 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26769 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26770 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26771 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26772 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26773 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26774 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26775 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26776 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26777 .rlen = 496,
26778 .also_non_np = 1,
26779 .np = 3,
26780 .tap = { 496 - 20, 4, 16 },
26785 * ARC4 test vectors from OpenSSL
26787 #define ARC4_ENC_TEST_VECTORS 7
26788 #define ARC4_DEC_TEST_VECTORS 7
26790 static struct cipher_testvec arc4_enc_tv_template[] = {
26792 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26793 .klen = 8,
26794 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26795 .ilen = 8,
26796 .result = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
26797 .rlen = 8,
26798 }, {
26799 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26800 .klen = 8,
26801 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
26802 .ilen = 8,
26803 .result = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
26804 .rlen = 8,
26805 }, {
26806 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
26807 .klen = 8,
26808 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
26809 .ilen = 8,
26810 .result = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
26811 .rlen = 8,
26812 }, {
26813 .key = "\xef\x01\x23\x45",
26814 .klen = 4,
26815 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
26816 "\x00\x00\x00\x00\x00\x00\x00\x00"
26817 "\x00\x00\x00\x00",
26818 .ilen = 20,
26819 .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
26820 "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
26821 "\x36\xb6\x78\x58",
26822 .rlen = 20,
26823 }, {
26824 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26825 .klen = 8,
26826 .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26827 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26828 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26829 "\x12\x34\x56\x78",
26830 .ilen = 28,
26831 .result = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
26832 "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
26833 "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
26834 "\x40\x01\x1e\xcf",
26835 .rlen = 28,
26836 }, {
26837 .key = "\xef\x01\x23\x45",
26838 .klen = 4,
26839 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
26840 "\x00\x00",
26841 .ilen = 10,
26842 .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
26843 "\xbd\x61",
26844 .rlen = 10,
26845 }, {
26846 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
26847 "\x00\x00\x00\x00\x00\x00\x00\x00",
26848 .klen = 16,
26849 .input = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
26850 .ilen = 8,
26851 .result = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
26852 .rlen = 8,
26856 static struct cipher_testvec arc4_dec_tv_template[] = {
26858 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26859 .klen = 8,
26860 .input = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
26861 .ilen = 8,
26862 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26863 .rlen = 8,
26864 }, {
26865 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26866 .klen = 8,
26867 .input = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
26868 .ilen = 8,
26869 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
26870 .rlen = 8,
26871 }, {
26872 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
26873 .klen = 8,
26874 .input = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
26875 .ilen = 8,
26876 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
26877 .rlen = 8,
26878 }, {
26879 .key = "\xef\x01\x23\x45",
26880 .klen = 4,
26881 .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
26882 "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
26883 "\x36\xb6\x78\x58",
26884 .ilen = 20,
26885 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
26886 "\x00\x00\x00\x00\x00\x00\x00\x00"
26887 "\x00\x00\x00\x00",
26888 .rlen = 20,
26889 }, {
26890 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26891 .klen = 8,
26892 .input = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
26893 "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
26894 "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
26895 "\x40\x01\x1e\xcf",
26896 .ilen = 28,
26897 .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26898 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26899 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26900 "\x12\x34\x56\x78",
26901 .rlen = 28,
26902 }, {
26903 .key = "\xef\x01\x23\x45",
26904 .klen = 4,
26905 .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
26906 "\xbd\x61",
26907 .ilen = 10,
26908 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
26909 "\x00\x00",
26910 .rlen = 10,
26911 }, {
26912 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
26913 "\x00\x00\x00\x00\x00\x00\x00\x00",
26914 .klen = 16,
26915 .input = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
26916 .ilen = 8,
26917 .result = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
26918 .rlen = 8,
26923 * TEA test vectors
26925 #define TEA_ENC_TEST_VECTORS 4
26926 #define TEA_DEC_TEST_VECTORS 4
26928 static struct cipher_testvec tea_enc_tv_template[] = {
26930 .key = zeroed_string,
26931 .klen = 16,
26932 .input = zeroed_string,
26933 .ilen = 8,
26934 .result = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
26935 .rlen = 8,
26936 }, {
26937 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
26938 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
26939 .klen = 16,
26940 .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
26941 .ilen = 8,
26942 .result = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
26943 .rlen = 8,
26944 }, {
26945 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
26946 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
26947 .klen = 16,
26948 .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
26949 "\x65\x73\x74\x5f\x76\x65\x63\x74",
26950 .ilen = 16,
26951 .result = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
26952 "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
26953 .rlen = 16,
26954 }, {
26955 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
26956 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
26957 .klen = 16,
26958 .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
26959 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
26960 "\x79\x6f\x75\x21\x21\x21\x20\x72"
26961 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
26962 .ilen = 32,
26963 .result = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
26964 "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
26965 "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
26966 "\x07\x89\x73\xc2\x45\x92\xc6\x90",
26967 .rlen = 32,
26971 static struct cipher_testvec tea_dec_tv_template[] = {
26973 .key = zeroed_string,
26974 .klen = 16,
26975 .input = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
26976 .ilen = 8,
26977 .result = zeroed_string,
26978 .rlen = 8,
26979 }, {
26980 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
26981 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
26982 .klen = 16,
26983 .input = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
26984 .ilen = 8,
26985 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
26986 .rlen = 8,
26987 }, {
26988 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
26989 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
26990 .klen = 16,
26991 .input = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
26992 "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
26993 .ilen = 16,
26994 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
26995 "\x65\x73\x74\x5f\x76\x65\x63\x74",
26996 .rlen = 16,
26997 }, {
26998 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
26999 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27000 .klen = 16,
27001 .input = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
27002 "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
27003 "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
27004 "\x07\x89\x73\xc2\x45\x92\xc6\x90",
27005 .ilen = 32,
27006 .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
27007 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27008 "\x79\x6f\x75\x21\x21\x21\x20\x72"
27009 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27010 .rlen = 32,
27015 * XTEA test vectors
27017 #define XTEA_ENC_TEST_VECTORS 4
27018 #define XTEA_DEC_TEST_VECTORS 4
27020 static struct cipher_testvec xtea_enc_tv_template[] = {
27022 .key = zeroed_string,
27023 .klen = 16,
27024 .input = zeroed_string,
27025 .ilen = 8,
27026 .result = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
27027 .rlen = 8,
27028 }, {
27029 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27030 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27031 .klen = 16,
27032 .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27033 .ilen = 8,
27034 .result = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
27035 .rlen = 8,
27036 }, {
27037 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
27038 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27039 .klen = 16,
27040 .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27041 "\x65\x73\x74\x5f\x76\x65\x63\x74",
27042 .ilen = 16,
27043 .result = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
27044 "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
27045 .rlen = 16,
27046 }, {
27047 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27048 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27049 .klen = 16,
27050 .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
27051 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27052 "\x79\x6f\x75\x21\x21\x21\x20\x72"
27053 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27054 .ilen = 32,
27055 .result = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
27056 "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
27057 "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
27058 "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
27059 .rlen = 32,
27063 static struct cipher_testvec xtea_dec_tv_template[] = {
27065 .key = zeroed_string,
27066 .klen = 16,
27067 .input = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
27068 .ilen = 8,
27069 .result = zeroed_string,
27070 .rlen = 8,
27071 }, {
27072 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27073 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27074 .klen = 16,
27075 .input = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
27076 .ilen = 8,
27077 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27078 .rlen = 8,
27079 }, {
27080 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
27081 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27082 .klen = 16,
27083 .input = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
27084 "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
27085 .ilen = 16,
27086 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27087 "\x65\x73\x74\x5f\x76\x65\x63\x74",
27088 .rlen = 16,
27089 }, {
27090 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27091 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27092 .klen = 16,
27093 .input = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
27094 "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
27095 "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
27096 "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
27097 .ilen = 32,
27098 .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
27099 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27100 "\x79\x6f\x75\x21\x21\x21\x20\x72"
27101 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27102 .rlen = 32,
27107 * KHAZAD test vectors.
27109 #define KHAZAD_ENC_TEST_VECTORS 5
27110 #define KHAZAD_DEC_TEST_VECTORS 5
27112 static struct cipher_testvec khazad_enc_tv_template[] = {
27114 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
27115 "\x00\x00\x00\x00\x00\x00\x00\x00",
27116 .klen = 16,
27117 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
27118 .ilen = 8,
27119 .result = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
27120 .rlen = 8,
27121 }, {
27122 .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
27123 "\x38\x38\x38\x38\x38\x38\x38\x38",
27124 .klen = 16,
27125 .input = "\x38\x38\x38\x38\x38\x38\x38\x38",
27126 .ilen = 8,
27127 .result = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
27128 .rlen = 8,
27129 }, {
27130 .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
27131 "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27132 .klen = 16,
27133 .input = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27134 .ilen = 8,
27135 .result = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
27136 .rlen = 8,
27137 }, {
27138 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27139 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27140 .klen = 16,
27141 .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27142 .ilen = 8,
27143 .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27144 .rlen = 8,
27145 }, {
27146 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27147 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27148 .klen = 16,
27149 .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27150 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27151 .ilen = 16,
27152 .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
27153 "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27154 .rlen = 16,
27158 static struct cipher_testvec khazad_dec_tv_template[] = {
27160 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
27161 "\x00\x00\x00\x00\x00\x00\x00\x00",
27162 .klen = 16,
27163 .input = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
27164 .ilen = 8,
27165 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
27166 .rlen = 8,
27167 }, {
27168 .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
27169 "\x38\x38\x38\x38\x38\x38\x38\x38",
27170 .klen = 16,
27171 .input = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
27172 .ilen = 8,
27173 .result = "\x38\x38\x38\x38\x38\x38\x38\x38",
27174 .rlen = 8,
27175 }, {
27176 .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
27177 "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27178 .klen = 16,
27179 .input = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
27180 .ilen = 8,
27181 .result = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27182 .rlen = 8,
27183 }, {
27184 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27185 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27186 .klen = 16,
27187 .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27188 .ilen = 8,
27189 .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27190 .rlen = 8,
27191 }, {
27192 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27193 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27194 .klen = 16,
27195 .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
27196 "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27197 .ilen = 16,
27198 .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27199 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27200 .rlen = 16,
27205 * Anubis test vectors.
27208 #define ANUBIS_ENC_TEST_VECTORS 5
27209 #define ANUBIS_DEC_TEST_VECTORS 5
27210 #define ANUBIS_CBC_ENC_TEST_VECTORS 2
27211 #define ANUBIS_CBC_DEC_TEST_VECTORS 2
27213 static struct cipher_testvec anubis_enc_tv_template[] = {
27215 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27216 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27217 .klen = 16,
27218 .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27219 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27220 .ilen = 16,
27221 .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27222 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
27223 .rlen = 16,
27224 }, {
27226 .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
27227 "\x03\x03\x03\x03\x03\x03\x03\x03"
27228 "\x03\x03\x03\x03",
27229 .klen = 20,
27230 .input = "\x03\x03\x03\x03\x03\x03\x03\x03"
27231 "\x03\x03\x03\x03\x03\x03\x03\x03",
27232 .ilen = 16,
27233 .result = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
27234 "\x87\x41\x6f\x82\x0a\x98\x64\xae",
27235 .rlen = 16,
27236 }, {
27237 .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
27238 "\x24\x24\x24\x24\x24\x24\x24\x24"
27239 "\x24\x24\x24\x24\x24\x24\x24\x24"
27240 "\x24\x24\x24\x24",
27241 .klen = 28,
27242 .input = "\x24\x24\x24\x24\x24\x24\x24\x24"
27243 "\x24\x24\x24\x24\x24\x24\x24\x24",
27244 .ilen = 16,
27245 .result = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
27246 "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
27247 .rlen = 16,
27248 }, {
27249 .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
27250 "\x25\x25\x25\x25\x25\x25\x25\x25"
27251 "\x25\x25\x25\x25\x25\x25\x25\x25"
27252 "\x25\x25\x25\x25\x25\x25\x25\x25",
27253 .klen = 32,
27254 .input = "\x25\x25\x25\x25\x25\x25\x25\x25"
27255 "\x25\x25\x25\x25\x25\x25\x25\x25",
27256 .ilen = 16,
27257 .result = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
27258 "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
27259 .rlen = 16,
27260 }, {
27261 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
27262 "\x35\x35\x35\x35\x35\x35\x35\x35"
27263 "\x35\x35\x35\x35\x35\x35\x35\x35"
27264 "\x35\x35\x35\x35\x35\x35\x35\x35"
27265 "\x35\x35\x35\x35\x35\x35\x35\x35",
27266 .klen = 40,
27267 .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
27268 "\x35\x35\x35\x35\x35\x35\x35\x35",
27269 .ilen = 16,
27270 .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27271 "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
27272 .rlen = 16,
27276 static struct cipher_testvec anubis_dec_tv_template[] = {
27278 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27279 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27280 .klen = 16,
27281 .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27282 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
27283 .ilen = 16,
27284 .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27285 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27286 .rlen = 16,
27287 }, {
27289 .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
27290 "\x03\x03\x03\x03\x03\x03\x03\x03"
27291 "\x03\x03\x03\x03",
27292 .klen = 20,
27293 .input = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
27294 "\x87\x41\x6f\x82\x0a\x98\x64\xae",
27295 .ilen = 16,
27296 .result = "\x03\x03\x03\x03\x03\x03\x03\x03"
27297 "\x03\x03\x03\x03\x03\x03\x03\x03",
27298 .rlen = 16,
27299 }, {
27300 .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
27301 "\x24\x24\x24\x24\x24\x24\x24\x24"
27302 "\x24\x24\x24\x24\x24\x24\x24\x24"
27303 "\x24\x24\x24\x24",
27304 .klen = 28,
27305 .input = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
27306 "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
27307 .ilen = 16,
27308 .result = "\x24\x24\x24\x24\x24\x24\x24\x24"
27309 "\x24\x24\x24\x24\x24\x24\x24\x24",
27310 .rlen = 16,
27311 }, {
27312 .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
27313 "\x25\x25\x25\x25\x25\x25\x25\x25"
27314 "\x25\x25\x25\x25\x25\x25\x25\x25"
27315 "\x25\x25\x25\x25\x25\x25\x25\x25",
27316 .klen = 32,
27317 .input = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
27318 "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
27319 .ilen = 16,
27320 .result = "\x25\x25\x25\x25\x25\x25\x25\x25"
27321 "\x25\x25\x25\x25\x25\x25\x25\x25",
27322 .rlen = 16,
27323 }, {
27324 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
27325 "\x35\x35\x35\x35\x35\x35\x35\x35"
27326 "\x35\x35\x35\x35\x35\x35\x35\x35"
27327 "\x35\x35\x35\x35\x35\x35\x35\x35"
27328 "\x35\x35\x35\x35\x35\x35\x35\x35",
27329 .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27330 "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
27331 .klen = 40,
27332 .ilen = 16,
27333 .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
27334 "\x35\x35\x35\x35\x35\x35\x35\x35",
27335 .rlen = 16,
27339 static struct cipher_testvec anubis_cbc_enc_tv_template[] = {
27341 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27342 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27343 .klen = 16,
27344 .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27345 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27346 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27347 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27348 .ilen = 32,
27349 .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27350 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
27351 "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
27352 "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
27353 .rlen = 32,
27354 }, {
27355 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
27356 "\x35\x35\x35\x35\x35\x35\x35\x35"
27357 "\x35\x35\x35\x35\x35\x35\x35\x35"
27358 "\x35\x35\x35\x35\x35\x35\x35\x35"
27359 "\x35\x35\x35\x35\x35\x35\x35\x35",
27360 .klen = 40,
27361 .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
27362 "\x35\x35\x35\x35\x35\x35\x35\x35"
27363 "\x35\x35\x35\x35\x35\x35\x35\x35"
27364 "\x35\x35\x35\x35\x35\x35\x35\x35",
27365 .ilen = 32,
27366 .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27367 "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
27368 "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
27369 "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
27370 .rlen = 32,
27374 static struct cipher_testvec anubis_cbc_dec_tv_template[] = {
27376 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27377 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27378 .klen = 16,
27379 .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27380 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
27381 "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
27382 "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
27383 .ilen = 32,
27384 .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27385 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27386 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27387 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27388 .rlen = 32,
27389 }, {
27390 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
27391 "\x35\x35\x35\x35\x35\x35\x35\x35"
27392 "\x35\x35\x35\x35\x35\x35\x35\x35"
27393 "\x35\x35\x35\x35\x35\x35\x35\x35"
27394 "\x35\x35\x35\x35\x35\x35\x35\x35",
27395 .klen = 40,
27396 .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27397 "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
27398 "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
27399 "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
27400 .ilen = 32,
27401 .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
27402 "\x35\x35\x35\x35\x35\x35\x35\x35"
27403 "\x35\x35\x35\x35\x35\x35\x35\x35"
27404 "\x35\x35\x35\x35\x35\x35\x35\x35",
27405 .rlen = 32,
27410 * XETA test vectors
27412 #define XETA_ENC_TEST_VECTORS 4
27413 #define XETA_DEC_TEST_VECTORS 4
27415 static struct cipher_testvec xeta_enc_tv_template[] = {
27417 .key = zeroed_string,
27418 .klen = 16,
27419 .input = zeroed_string,
27420 .ilen = 8,
27421 .result = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
27422 .rlen = 8,
27423 }, {
27424 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27425 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27426 .klen = 16,
27427 .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27428 .ilen = 8,
27429 .result = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
27430 .rlen = 8,
27431 }, {
27432 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
27433 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27434 .klen = 16,
27435 .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27436 "\x65\x73\x74\x5f\x76\x65\x63\x74",
27437 .ilen = 16,
27438 .result = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
27439 "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
27440 .rlen = 16,
27441 }, {
27442 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27443 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27444 .klen = 16,
27445 .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
27446 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27447 "\x79\x6f\x75\x21\x21\x21\x20\x72"
27448 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27449 .ilen = 32,
27450 .result = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
27451 "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
27452 "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
27453 "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
27454 .rlen = 32,
27458 static struct cipher_testvec xeta_dec_tv_template[] = {
27460 .key = zeroed_string,
27461 .klen = 16,
27462 .input = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
27463 .ilen = 8,
27464 .result = zeroed_string,
27465 .rlen = 8,
27466 }, {
27467 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27468 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27469 .klen = 16,
27470 .input = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
27471 .ilen = 8,
27472 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27473 .rlen = 8,
27474 }, {
27475 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
27476 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27477 .klen = 16,
27478 .input = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
27479 "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
27480 .ilen = 16,
27481 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27482 "\x65\x73\x74\x5f\x76\x65\x63\x74",
27483 .rlen = 16,
27484 }, {
27485 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27486 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27487 .klen = 16,
27488 .input = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
27489 "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
27490 "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
27491 "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
27492 .ilen = 32,
27493 .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
27494 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27495 "\x79\x6f\x75\x21\x21\x21\x20\x72"
27496 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27497 .rlen = 32,
27502 * FCrypt test vectors
27504 #define FCRYPT_ENC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_enc_tv_template)
27505 #define FCRYPT_DEC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_dec_tv_template)
27507 static struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = {
27508 { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
27509 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
27510 .klen = 8,
27511 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
27512 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
27513 .ilen = 8,
27514 .result = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
27515 .rlen = 8,
27516 }, {
27517 .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
27518 .klen = 8,
27519 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
27520 .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
27521 .ilen = 8,
27522 .result = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
27523 .rlen = 8,
27524 }, { /* From Arla */
27525 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27526 .klen = 8,
27527 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27528 .input = "The quick brown fox jumps over the lazy dogs.\0\0",
27529 .ilen = 48,
27530 .result = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
27531 "\xee\xac\x98\x62\x44\x51\xe4\x84"
27532 "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
27533 "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
27534 "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
27535 "\xf8\x91\x3c\xac\x44\x22\x92\xef",
27536 .rlen = 48,
27537 }, {
27538 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27539 .klen = 8,
27540 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27541 .input = "The quick brown fox jumps over the lazy dogs.\0\0",
27542 .ilen = 48,
27543 .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27544 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27545 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27546 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27547 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27548 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27549 .rlen = 48,
27550 }, { /* split-page version */
27551 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27552 .klen = 8,
27553 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27554 .input = "The quick brown fox jumps over the lazy dogs.\0\0",
27555 .ilen = 48,
27556 .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27557 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27558 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27559 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27560 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27561 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27562 .rlen = 48,
27563 .np = 2,
27564 .tap = { 20, 28 },
27568 static struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = {
27569 { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
27570 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
27571 .klen = 8,
27572 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
27573 .input = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
27574 .ilen = 8,
27575 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
27576 .rlen = 8,
27577 }, {
27578 .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
27579 .klen = 8,
27580 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
27581 .input = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
27582 .ilen = 8,
27583 .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
27584 .rlen = 8,
27585 }, { /* From Arla */
27586 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27587 .klen = 8,
27588 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27589 .input = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
27590 "\xee\xac\x98\x62\x44\x51\xe4\x84"
27591 "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
27592 "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
27593 "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
27594 "\xf8\x91\x3c\xac\x44\x22\x92\xef",
27595 .ilen = 48,
27596 .result = "The quick brown fox jumps over the lazy dogs.\0\0",
27597 .rlen = 48,
27598 }, {
27599 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27600 .klen = 8,
27601 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27602 .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27603 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27604 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27605 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27606 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27607 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27608 .ilen = 48,
27609 .result = "The quick brown fox jumps over the lazy dogs.\0\0",
27610 .rlen = 48,
27611 }, { /* split-page version */
27612 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27613 .klen = 8,
27614 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27615 .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27616 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27617 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27618 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27619 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27620 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27621 .ilen = 48,
27622 .result = "The quick brown fox jumps over the lazy dogs.\0\0",
27623 .rlen = 48,
27624 .np = 2,
27625 .tap = { 20, 28 },
27630 * CAMELLIA test vectors.
27632 #define CAMELLIA_ENC_TEST_VECTORS 4
27633 #define CAMELLIA_DEC_TEST_VECTORS 4
27634 #define CAMELLIA_CBC_ENC_TEST_VECTORS 3
27635 #define CAMELLIA_CBC_DEC_TEST_VECTORS 3
27636 #define CAMELLIA_CTR_ENC_TEST_VECTORS 2
27637 #define CAMELLIA_CTR_DEC_TEST_VECTORS 2
27638 #define CAMELLIA_LRW_ENC_TEST_VECTORS 8
27639 #define CAMELLIA_LRW_DEC_TEST_VECTORS 8
27640 #define CAMELLIA_XTS_ENC_TEST_VECTORS 5
27641 #define CAMELLIA_XTS_DEC_TEST_VECTORS 5
27643 static struct cipher_testvec camellia_enc_tv_template[] = {
27645 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27646 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27647 .klen = 16,
27648 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27649 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27650 .ilen = 16,
27651 .result = "\x67\x67\x31\x38\x54\x96\x69\x73"
27652 "\x08\x57\x06\x56\x48\xea\xbe\x43",
27653 .rlen = 16,
27654 }, {
27655 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27656 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27657 "\x00\x11\x22\x33\x44\x55\x66\x77",
27658 .klen = 24,
27659 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27660 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27661 .ilen = 16,
27662 .result = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
27663 "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
27664 .rlen = 16,
27665 }, {
27666 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27667 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27668 "\x00\x11\x22\x33\x44\x55\x66\x77"
27669 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
27670 .klen = 32,
27671 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27672 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27673 .ilen = 16,
27674 .result = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
27675 "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
27676 .rlen = 16,
27677 }, { /* Generated with Crypto++ */
27678 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
27679 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
27680 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
27681 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
27682 .klen = 32,
27683 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
27684 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
27685 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
27686 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
27687 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
27688 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
27689 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
27690 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
27691 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
27692 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
27693 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
27694 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
27695 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
27696 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
27697 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
27698 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
27699 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
27700 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
27701 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
27702 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
27703 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
27704 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
27705 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
27706 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
27707 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
27708 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
27709 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
27710 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
27711 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
27712 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
27713 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
27714 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
27715 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
27716 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
27717 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
27718 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
27719 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
27720 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
27721 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
27722 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
27723 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
27724 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
27725 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
27726 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
27727 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
27728 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
27729 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
27730 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
27731 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
27732 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
27733 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
27734 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
27735 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
27736 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
27737 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
27738 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
27739 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
27740 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
27741 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
27742 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
27743 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
27744 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
27745 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
27746 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
27747 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
27748 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
27749 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
27750 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
27751 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
27752 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
27753 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
27754 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
27755 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
27756 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
27757 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
27758 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
27759 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
27760 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
27761 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
27762 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
27763 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
27764 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
27765 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
27766 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
27767 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
27768 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
27769 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
27770 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
27771 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
27772 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
27773 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
27774 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
27775 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
27776 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
27777 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
27778 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
27779 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
27780 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
27781 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
27782 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
27783 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
27784 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
27785 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
27786 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
27787 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
27788 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
27789 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
27790 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
27791 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
27792 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
27793 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
27794 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
27795 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
27796 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
27797 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
27798 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
27799 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
27800 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
27801 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
27802 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
27803 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
27804 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
27805 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
27806 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
27807 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
27808 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
27809 .ilen = 1008,
27810 .result = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
27811 "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
27812 "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
27813 "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
27814 "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
27815 "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
27816 "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
27817 "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
27818 "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
27819 "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
27820 "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
27821 "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
27822 "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
27823 "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
27824 "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
27825 "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
27826 "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
27827 "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
27828 "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
27829 "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
27830 "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
27831 "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
27832 "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
27833 "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
27834 "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
27835 "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
27836 "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
27837 "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
27838 "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
27839 "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
27840 "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
27841 "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
27842 "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
27843 "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
27844 "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
27845 "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
27846 "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
27847 "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
27848 "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
27849 "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
27850 "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
27851 "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
27852 "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
27853 "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
27854 "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
27855 "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
27856 "\x83\x06\xAB\x82\x99\x01\x16\x1A"
27857 "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
27858 "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
27859 "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
27860 "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
27861 "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
27862 "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
27863 "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
27864 "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
27865 "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
27866 "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
27867 "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
27868 "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
27869 "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
27870 "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
27871 "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
27872 "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
27873 "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
27874 "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
27875 "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
27876 "\xED\x28\x39\xE9\x63\xED\x41\x70"
27877 "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
27878 "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
27879 "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
27880 "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
27881 "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
27882 "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
27883 "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
27884 "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
27885 "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
27886 "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
27887 "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
27888 "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
27889 "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
27890 "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
27891 "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
27892 "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
27893 "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
27894 "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
27895 "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
27896 "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
27897 "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
27898 "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
27899 "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
27900 "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
27901 "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
27902 "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
27903 "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
27904 "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
27905 "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
27906 "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
27907 "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
27908 "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
27909 "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
27910 "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
27911 "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
27912 "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
27913 "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
27914 "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
27915 "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
27916 "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
27917 "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
27918 "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
27919 "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
27920 "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
27921 "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
27922 "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
27923 "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
27924 "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
27925 "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
27926 "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
27927 "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
27928 "\x31\x93\x51\x1C\x63\x97\x70\xB0"
27929 "\x99\x78\x83\x13\xFD\xCF\x53\x81"
27930 "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
27931 "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
27932 "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
27933 "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
27934 "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
27935 "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
27936 .rlen = 1008,
27937 .also_non_np = 1,
27938 .np = 3,
27939 .tap = { 1008 - 20, 4, 16 },
27943 static struct cipher_testvec camellia_dec_tv_template[] = {
27945 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27946 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27947 .klen = 16,
27948 .input = "\x67\x67\x31\x38\x54\x96\x69\x73"
27949 "\x08\x57\x06\x56\x48\xea\xbe\x43",
27950 .ilen = 16,
27951 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27952 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27953 .rlen = 16,
27954 }, {
27955 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27956 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27957 "\x00\x11\x22\x33\x44\x55\x66\x77",
27958 .klen = 24,
27959 .input = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
27960 "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
27961 .ilen = 16,
27962 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27963 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27964 .rlen = 16,
27965 }, {
27966 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27967 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27968 "\x00\x11\x22\x33\x44\x55\x66\x77"
27969 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
27970 .klen = 32,
27971 .input = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
27972 "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
27973 .ilen = 16,
27974 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27975 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27976 .rlen = 16,
27977 }, { /* Generated with Crypto++ */
27978 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
27979 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
27980 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
27981 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
27982 .klen = 32,
27983 .input = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
27984 "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
27985 "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
27986 "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
27987 "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
27988 "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
27989 "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
27990 "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
27991 "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
27992 "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
27993 "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
27994 "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
27995 "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
27996 "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
27997 "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
27998 "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
27999 "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
28000 "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
28001 "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
28002 "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
28003 "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
28004 "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
28005 "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
28006 "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
28007 "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
28008 "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
28009 "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
28010 "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
28011 "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
28012 "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
28013 "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
28014 "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
28015 "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
28016 "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
28017 "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
28018 "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
28019 "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
28020 "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
28021 "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
28022 "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
28023 "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
28024 "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
28025 "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
28026 "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
28027 "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
28028 "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
28029 "\x83\x06\xAB\x82\x99\x01\x16\x1A"
28030 "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
28031 "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
28032 "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
28033 "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
28034 "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
28035 "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
28036 "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
28037 "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
28038 "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
28039 "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
28040 "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
28041 "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
28042 "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
28043 "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
28044 "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
28045 "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
28046 "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
28047 "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
28048 "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
28049 "\xED\x28\x39\xE9\x63\xED\x41\x70"
28050 "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
28051 "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
28052 "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
28053 "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
28054 "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
28055 "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
28056 "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
28057 "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
28058 "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
28059 "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
28060 "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
28061 "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
28062 "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
28063 "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
28064 "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
28065 "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
28066 "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
28067 "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
28068 "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
28069 "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
28070 "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
28071 "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
28072 "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
28073 "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
28074 "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
28075 "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
28076 "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
28077 "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
28078 "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
28079 "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
28080 "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
28081 "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
28082 "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
28083 "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
28084 "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
28085 "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
28086 "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
28087 "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
28088 "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
28089 "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
28090 "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
28091 "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
28092 "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
28093 "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
28094 "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
28095 "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
28096 "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
28097 "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
28098 "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
28099 "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
28100 "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
28101 "\x31\x93\x51\x1C\x63\x97\x70\xB0"
28102 "\x99\x78\x83\x13\xFD\xCF\x53\x81"
28103 "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
28104 "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
28105 "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
28106 "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
28107 "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
28108 "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
28109 .ilen = 1008,
28110 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28111 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28112 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28113 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28114 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28115 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28116 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28117 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28118 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28119 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28120 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28121 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28122 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28123 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28124 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28125 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28126 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28127 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28128 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28129 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28130 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28131 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28132 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28133 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28134 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28135 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28136 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28137 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28138 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28139 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28140 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28141 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28142 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28143 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28144 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28145 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28146 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28147 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28148 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28149 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28150 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28151 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28152 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28153 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28154 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28155 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28156 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28157 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28158 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28159 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28160 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28161 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28162 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28163 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28164 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28165 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28166 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28167 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28168 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28169 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28170 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28171 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28172 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28173 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28174 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28175 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28176 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28177 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28178 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28179 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28180 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28181 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28182 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28183 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28184 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28185 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28186 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28187 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28188 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28189 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28190 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28191 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28192 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28193 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28194 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28195 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28196 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28197 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28198 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28199 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28200 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28201 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28202 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28203 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28204 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28205 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28206 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28207 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28208 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28209 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28210 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28211 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28212 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28213 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28214 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28215 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28216 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28217 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28218 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28219 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28220 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28221 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28222 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28223 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28224 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28225 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28226 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28227 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28228 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28229 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28230 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28231 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28232 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28233 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28234 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28235 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
28236 .rlen = 1008,
28237 .also_non_np = 1,
28238 .np = 3,
28239 .tap = { 1008 - 20, 4, 16 },
28243 static struct cipher_testvec camellia_cbc_enc_tv_template[] = {
28245 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
28246 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
28247 .klen = 16,
28248 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
28249 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
28250 .input = "Single block msg",
28251 .ilen = 16,
28252 .result = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
28253 "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
28254 .rlen = 16,
28255 }, {
28256 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
28257 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
28258 .klen = 16,
28259 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
28260 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
28261 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
28262 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
28263 "\x10\x11\x12\x13\x14\x15\x16\x17"
28264 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
28265 .ilen = 32,
28266 .result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
28267 "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
28268 "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
28269 "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
28270 .rlen = 32,
28271 }, { /* Generated with Crypto++ */
28272 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28273 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28274 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28275 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28276 .klen = 32,
28277 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28278 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28279 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28280 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28281 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28282 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28283 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28284 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28285 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28286 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28287 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28288 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28289 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28290 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28291 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28292 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28293 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28294 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28295 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28296 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28297 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28298 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28299 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28300 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28301 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28302 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28303 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28304 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28305 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28306 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28307 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28308 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28309 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28310 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28311 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28312 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28313 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28314 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28315 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28316 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28317 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28318 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28319 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28320 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28321 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28322 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28323 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28324 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28325 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28326 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28327 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28328 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28329 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28330 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28331 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28332 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28333 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28334 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28335 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28336 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28337 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28338 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28339 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28340 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28341 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28342 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28343 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28344 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28345 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28346 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28347 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28348 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28349 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28350 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28351 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28352 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28353 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28354 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28355 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28356 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28357 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28358 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28359 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28360 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28361 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28362 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28363 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28364 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28365 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28366 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28367 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28368 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28369 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28370 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28371 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28372 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28373 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28374 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28375 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28376 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28377 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28378 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28379 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28380 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28381 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28382 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28383 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28384 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28385 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28386 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28387 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28388 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28389 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28390 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28391 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28392 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28393 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28394 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28395 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28396 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28397 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28398 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28399 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28400 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28401 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28402 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28403 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28404 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
28405 .ilen = 1008,
28406 .result = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
28407 "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
28408 "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
28409 "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
28410 "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
28411 "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
28412 "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
28413 "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
28414 "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
28415 "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
28416 "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
28417 "\x37\x49\x88\xA4\xEF\x91\x21\x47"
28418 "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
28419 "\x28\x90\x77\x46\xD8\xD2\x35\x16"
28420 "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
28421 "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
28422 "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
28423 "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
28424 "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
28425 "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
28426 "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
28427 "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
28428 "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
28429 "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
28430 "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
28431 "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
28432 "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
28433 "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
28434 "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
28435 "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
28436 "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
28437 "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
28438 "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
28439 "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
28440 "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
28441 "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
28442 "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
28443 "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
28444 "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
28445 "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
28446 "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
28447 "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
28448 "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
28449 "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
28450 "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
28451 "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
28452 "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
28453 "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
28454 "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
28455 "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
28456 "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
28457 "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
28458 "\x38\xB8\x48\x36\x66\x4E\x20\x43"
28459 "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
28460 "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
28461 "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
28462 "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
28463 "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
28464 "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
28465 "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
28466 "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
28467 "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
28468 "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
28469 "\x21\x41\x56\x72\x13\xE1\x86\x07"
28470 "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
28471 "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
28472 "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
28473 "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
28474 "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
28475 "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
28476 "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
28477 "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
28478 "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
28479 "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
28480 "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
28481 "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
28482 "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
28483 "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
28484 "\xBE\x31\x31\x96\x8B\x40\x18\x75"
28485 "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
28486 "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
28487 "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
28488 "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
28489 "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
28490 "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
28491 "\x09\xB0\x43\x96\x4A\x64\x80\x40"
28492 "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
28493 "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
28494 "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
28495 "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
28496 "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
28497 "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
28498 "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
28499 "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
28500 "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
28501 "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
28502 "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
28503 "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
28504 "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
28505 "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
28506 "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
28507 "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
28508 "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
28509 "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
28510 "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
28511 "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
28512 "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
28513 "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
28514 "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
28515 "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
28516 "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
28517 "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
28518 "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
28519 "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
28520 "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
28521 "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
28522 "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
28523 "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
28524 "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
28525 "\x80\xE7\x29\xDC\x23\x55\x98\x54"
28526 "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
28527 "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
28528 "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
28529 "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
28530 "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
28531 "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
28532 .rlen = 1008,
28533 .also_non_np = 1,
28534 .np = 3,
28535 .tap = { 1008 - 20, 4, 16 },
28539 static struct cipher_testvec camellia_cbc_dec_tv_template[] = {
28541 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
28542 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
28543 .klen = 16,
28544 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
28545 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
28546 .input = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
28547 "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
28548 .ilen = 16,
28549 .result = "Single block msg",
28550 .rlen = 16,
28551 }, {
28552 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
28553 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
28554 .klen = 16,
28555 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
28556 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
28557 .input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
28558 "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
28559 "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
28560 "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
28561 .ilen = 32,
28562 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
28563 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
28564 "\x10\x11\x12\x13\x14\x15\x16\x17"
28565 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
28566 .rlen = 32,
28567 }, { /* Generated with Crypto++ */
28568 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28569 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28570 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28571 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28572 .klen = 32,
28573 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28574 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28575 .input = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
28576 "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
28577 "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
28578 "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
28579 "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
28580 "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
28581 "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
28582 "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
28583 "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
28584 "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
28585 "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
28586 "\x37\x49\x88\xA4\xEF\x91\x21\x47"
28587 "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
28588 "\x28\x90\x77\x46\xD8\xD2\x35\x16"
28589 "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
28590 "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
28591 "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
28592 "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
28593 "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
28594 "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
28595 "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
28596 "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
28597 "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
28598 "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
28599 "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
28600 "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
28601 "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
28602 "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
28603 "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
28604 "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
28605 "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
28606 "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
28607 "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
28608 "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
28609 "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
28610 "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
28611 "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
28612 "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
28613 "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
28614 "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
28615 "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
28616 "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
28617 "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
28618 "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
28619 "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
28620 "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
28621 "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
28622 "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
28623 "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
28624 "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
28625 "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
28626 "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
28627 "\x38\xB8\x48\x36\x66\x4E\x20\x43"
28628 "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
28629 "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
28630 "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
28631 "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
28632 "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
28633 "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
28634 "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
28635 "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
28636 "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
28637 "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
28638 "\x21\x41\x56\x72\x13\xE1\x86\x07"
28639 "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
28640 "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
28641 "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
28642 "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
28643 "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
28644 "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
28645 "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
28646 "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
28647 "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
28648 "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
28649 "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
28650 "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
28651 "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
28652 "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
28653 "\xBE\x31\x31\x96\x8B\x40\x18\x75"
28654 "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
28655 "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
28656 "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
28657 "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
28658 "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
28659 "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
28660 "\x09\xB0\x43\x96\x4A\x64\x80\x40"
28661 "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
28662 "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
28663 "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
28664 "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
28665 "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
28666 "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
28667 "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
28668 "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
28669 "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
28670 "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
28671 "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
28672 "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
28673 "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
28674 "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
28675 "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
28676 "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
28677 "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
28678 "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
28679 "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
28680 "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
28681 "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
28682 "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
28683 "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
28684 "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
28685 "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
28686 "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
28687 "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
28688 "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
28689 "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
28690 "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
28691 "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
28692 "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
28693 "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
28694 "\x80\xE7\x29\xDC\x23\x55\x98\x54"
28695 "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
28696 "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
28697 "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
28698 "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
28699 "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
28700 "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
28701 .ilen = 1008,
28702 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28703 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28704 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28705 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28706 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28707 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28708 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28709 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28710 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28711 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28712 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28713 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28714 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28715 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28716 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28717 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28718 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28719 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28720 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28721 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28722 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28723 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28724 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28725 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28726 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28727 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28728 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28729 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28730 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28731 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28732 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28733 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28734 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28735 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28736 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28737 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28738 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28739 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28740 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28741 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28742 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28743 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28744 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28745 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28746 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28747 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28748 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28749 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28750 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28751 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28752 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28753 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28754 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28755 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28756 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28757 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28758 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28759 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28760 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28761 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28762 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28763 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28764 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28765 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28766 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28767 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28768 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28769 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28770 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28771 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28772 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28773 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28774 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28775 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28776 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28777 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28778 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28779 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28780 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28781 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28782 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28783 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28784 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28785 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28786 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28787 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28788 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28789 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28790 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28791 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28792 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28793 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28794 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28795 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28796 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28797 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28798 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28799 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28800 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28801 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28802 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28803 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28804 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28805 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28806 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28807 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28808 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28809 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28810 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28811 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28812 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28813 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28814 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28815 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28816 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28817 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28818 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28819 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28820 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28821 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28822 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28823 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28824 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28825 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28826 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28827 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
28828 .rlen = 1008,
28829 .also_non_np = 1,
28830 .np = 3,
28831 .tap = { 1008 - 20, 4, 16 },
28835 static struct cipher_testvec camellia_ctr_enc_tv_template[] = {
28836 { /* Generated with Crypto++ */
28837 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28838 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28839 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28840 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28841 .klen = 32,
28842 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28843 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28844 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28845 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28846 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28847 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28848 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28849 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28850 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28851 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28852 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28853 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28854 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28855 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28856 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28857 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28858 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28859 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28860 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28861 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28862 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28863 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28864 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28865 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28866 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28867 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28868 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28869 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28870 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28871 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28872 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28873 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28874 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28875 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28876 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28877 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28878 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28879 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28880 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28881 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28882 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28883 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28884 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28885 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28886 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28887 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28888 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28889 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28890 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28891 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28892 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28893 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28894 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28895 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28896 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28897 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28898 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28899 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28900 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28901 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28902 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28903 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28904 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28905 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
28906 .ilen = 496,
28907 .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
28908 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
28909 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
28910 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
28911 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
28912 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
28913 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
28914 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
28915 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
28916 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
28917 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
28918 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
28919 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
28920 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
28921 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
28922 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
28923 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
28924 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
28925 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
28926 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
28927 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
28928 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
28929 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
28930 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
28931 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
28932 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
28933 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
28934 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
28935 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
28936 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
28937 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
28938 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
28939 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
28940 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
28941 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
28942 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
28943 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
28944 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
28945 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
28946 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
28947 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
28948 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
28949 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
28950 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
28951 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
28952 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
28953 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
28954 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
28955 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
28956 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
28957 "\x76\x44\x45\xF3\x24\x11\x57\x98"
28958 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
28959 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
28960 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
28961 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
28962 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
28963 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
28964 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
28965 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
28966 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
28967 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
28968 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
28969 .rlen = 496,
28970 }, { /* Generated with Crypto++ */
28971 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28972 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28973 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28974 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28975 .klen = 32,
28976 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28977 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28978 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28979 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28980 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28981 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28982 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28983 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28984 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28985 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28986 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28987 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28988 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28989 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28990 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28991 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28992 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28993 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28994 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28995 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28996 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28997 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28998 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28999 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
29000 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
29001 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
29002 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
29003 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
29004 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
29005 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
29006 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
29007 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
29008 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
29009 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
29010 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
29011 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
29012 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
29013 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
29014 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
29015 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
29016 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
29017 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
29018 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
29019 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
29020 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
29021 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
29022 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
29023 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
29024 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
29025 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
29026 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
29027 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
29028 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
29029 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
29030 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
29031 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
29032 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
29033 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
29034 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
29035 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
29036 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
29037 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
29038 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
29039 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
29040 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
29041 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
29042 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
29043 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
29044 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
29045 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
29046 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
29047 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
29048 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
29049 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
29050 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
29051 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
29052 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
29053 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
29054 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
29055 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
29056 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
29057 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
29058 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
29059 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
29060 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
29061 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
29062 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
29063 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
29064 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
29065 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
29066 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
29067 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
29068 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
29069 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
29070 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
29071 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
29072 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
29073 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
29074 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
29075 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
29076 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
29077 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
29078 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
29079 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
29080 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
29081 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
29082 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
29083 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
29084 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
29085 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
29086 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
29087 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
29088 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
29089 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
29090 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
29091 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
29092 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
29093 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
29094 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
29095 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
29096 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
29097 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
29098 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
29099 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
29100 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
29101 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
29102 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
29103 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
29104 "\xE4\x7B\x12",
29105 .ilen = 1011,
29106 .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
29107 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
29108 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
29109 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
29110 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
29111 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
29112 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
29113 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
29114 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
29115 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
29116 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
29117 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
29118 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
29119 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
29120 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
29121 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
29122 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
29123 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
29124 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
29125 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
29126 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
29127 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
29128 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
29129 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
29130 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
29131 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
29132 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
29133 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
29134 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
29135 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
29136 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
29137 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
29138 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
29139 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
29140 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
29141 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
29142 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
29143 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
29144 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
29145 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
29146 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
29147 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
29148 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
29149 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
29150 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
29151 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
29152 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
29153 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
29154 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
29155 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
29156 "\x76\x44\x45\xF3\x24\x11\x57\x98"
29157 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
29158 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
29159 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
29160 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
29161 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
29162 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
29163 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
29164 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
29165 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
29166 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
29167 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
29168 "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
29169 "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
29170 "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
29171 "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
29172 "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
29173 "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
29174 "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
29175 "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
29176 "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
29177 "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
29178 "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
29179 "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
29180 "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
29181 "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
29182 "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
29183 "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
29184 "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
29185 "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
29186 "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
29187 "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
29188 "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
29189 "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
29190 "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
29191 "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
29192 "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
29193 "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
29194 "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
29195 "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
29196 "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
29197 "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
29198 "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
29199 "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
29200 "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
29201 "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
29202 "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
29203 "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
29204 "\x00\x70\x12\x56\x56\x50\xAD\x14"
29205 "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
29206 "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
29207 "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
29208 "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
29209 "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
29210 "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
29211 "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
29212 "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
29213 "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
29214 "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
29215 "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
29216 "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
29217 "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
29218 "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
29219 "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
29220 "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
29221 "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
29222 "\x40\x48\x19\x73\x7C\x78\x64\x0B"
29223 "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
29224 "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
29225 "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
29226 "\x74\x28\x9D\x05\x30\x20\x62\x41"
29227 "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
29228 "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
29229 "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
29230 "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
29231 "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
29232 "\xF1\x6B\xD9",
29233 .rlen = 1011,
29234 .also_non_np = 1,
29235 .np = 2,
29236 .tap = { 1011 - 16, 16 },
29237 }, { /* Generated with Crypto++ */
29238 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
29239 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
29240 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
29241 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
29242 .klen = 32,
29243 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
29244 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
29245 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
29246 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
29247 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
29248 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
29249 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
29250 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
29251 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
29252 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
29253 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
29254 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
29255 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
29256 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
29257 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
29258 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
29259 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
29260 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
29261 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
29262 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
29263 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
29264 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
29265 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
29266 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
29267 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
29268 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
29269 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
29270 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
29271 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
29272 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
29273 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
29274 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
29275 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
29276 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
29277 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
29278 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
29279 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
29280 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
29281 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
29282 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
29283 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
29284 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
29285 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
29286 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
29287 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
29288 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
29289 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
29290 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
29291 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
29292 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
29293 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
29294 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
29295 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
29296 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
29297 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
29298 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
29299 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
29300 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
29301 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
29302 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
29303 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
29304 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
29305 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
29306 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
29307 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
29308 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
29309 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
29310 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
29311 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
29312 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
29313 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
29314 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
29315 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
29316 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
29317 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
29318 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
29319 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
29320 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
29321 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
29322 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
29323 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
29324 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
29325 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
29326 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
29327 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
29328 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
29329 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
29330 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
29331 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
29332 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
29333 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
29334 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
29335 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
29336 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
29337 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
29338 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
29339 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
29340 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
29341 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
29342 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
29343 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
29344 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
29345 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
29346 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
29347 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
29348 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
29349 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
29350 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
29351 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
29352 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
29353 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
29354 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
29355 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
29356 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
29357 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
29358 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
29359 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
29360 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
29361 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
29362 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
29363 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
29364 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
29365 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
29366 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
29367 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
29368 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
29369 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
29370 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
29371 .ilen = 1008,
29372 .result = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
29373 "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
29374 "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
29375 "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
29376 "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
29377 "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
29378 "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
29379 "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
29380 "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
29381 "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
29382 "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
29383 "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
29384 "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
29385 "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
29386 "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
29387 "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
29388 "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
29389 "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
29390 "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
29391 "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
29392 "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
29393 "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
29394 "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
29395 "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
29396 "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
29397 "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
29398 "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
29399 "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
29400 "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
29401 "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
29402 "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
29403 "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
29404 "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
29405 "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
29406 "\x93\x78\x86\x05\x69\x46\xD0\xC5"
29407 "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
29408 "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
29409 "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
29410 "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
29411 "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
29412 "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
29413 "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
29414 "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
29415 "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
29416 "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
29417 "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
29418 "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
29419 "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
29420 "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
29421 "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
29422 "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
29423 "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
29424 "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
29425 "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
29426 "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
29427 "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
29428 "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
29429 "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
29430 "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
29431 "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
29432 "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
29433 "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
29434 "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
29435 "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
29436 "\x3F\x23\x69\x63\x56\x96\x45\xD6"
29437 "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
29438 "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
29439 "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
29440 "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
29441 "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
29442 "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
29443 "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
29444 "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
29445 "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
29446 "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
29447 "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
29448 "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
29449 "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
29450 "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
29451 "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
29452 "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
29453 "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
29454 "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
29455 "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
29456 "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
29457 "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
29458 "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
29459 "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
29460 "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
29461 "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
29462 "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
29463 "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
29464 "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
29465 "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
29466 "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
29467 "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
29468 "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
29469 "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
29470 "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
29471 "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
29472 "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
29473 "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
29474 "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
29475 "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
29476 "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
29477 "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
29478 "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
29479 "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
29480 "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
29481 "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
29482 "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
29483 "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
29484 "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
29485 "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
29486 "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
29487 "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
29488 "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
29489 "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
29490 "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
29491 "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
29492 "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
29493 "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
29494 "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
29495 "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
29496 "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
29497 "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
29498 .rlen = 1008,
29502 static struct cipher_testvec camellia_ctr_dec_tv_template[] = {
29503 { /* Generated with Crypto++ */
29504 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
29505 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
29506 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
29507 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
29508 .klen = 32,
29509 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
29510 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
29511 .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
29512 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
29513 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
29514 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
29515 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
29516 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
29517 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
29518 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
29519 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
29520 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
29521 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
29522 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
29523 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
29524 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
29525 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
29526 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
29527 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
29528 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
29529 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
29530 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
29531 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
29532 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
29533 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
29534 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
29535 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
29536 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
29537 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
29538 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
29539 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
29540 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
29541 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
29542 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
29543 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
29544 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
29545 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
29546 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
29547 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
29548 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
29549 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
29550 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
29551 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
29552 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
29553 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
29554 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
29555 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
29556 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
29557 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
29558 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
29559 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
29560 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
29561 "\x76\x44\x45\xF3\x24\x11\x57\x98"
29562 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
29563 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
29564 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
29565 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
29566 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
29567 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
29568 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
29569 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
29570 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
29571 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
29572 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
29573 .ilen = 496,
29574 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
29575 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
29576 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
29577 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
29578 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
29579 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
29580 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
29581 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
29582 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
29583 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
29584 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
29585 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
29586 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
29587 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
29588 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
29589 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
29590 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
29591 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
29592 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
29593 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
29594 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
29595 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
29596 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
29597 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
29598 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
29599 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
29600 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
29601 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
29602 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
29603 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
29604 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
29605 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
29606 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
29607 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
29608 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
29609 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
29610 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
29611 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
29612 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
29613 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
29614 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
29615 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
29616 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
29617 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
29618 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
29619 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
29620 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
29621 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
29622 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
29623 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
29624 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
29625 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
29626 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
29627 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
29628 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
29629 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
29630 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
29631 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
29632 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
29633 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
29634 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
29635 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
29636 .rlen = 496,
29637 }, { /* Generated with Crypto++ */
29638 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
29639 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
29640 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
29641 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
29642 .klen = 32,
29643 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
29644 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
29645 .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
29646 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
29647 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
29648 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
29649 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
29650 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
29651 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
29652 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
29653 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
29654 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
29655 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
29656 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
29657 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
29658 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
29659 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
29660 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
29661 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
29662 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
29663 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
29664 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
29665 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
29666 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
29667 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
29668 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
29669 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
29670 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
29671 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
29672 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
29673 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
29674 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
29675 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
29676 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
29677 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
29678 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
29679 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
29680 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
29681 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
29682 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
29683 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
29684 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
29685 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
29686 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
29687 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
29688 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
29689 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
29690 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
29691 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
29692 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
29693 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
29694 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
29695 "\x76\x44\x45\xF3\x24\x11\x57\x98"
29696 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
29697 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
29698 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
29699 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
29700 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
29701 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
29702 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
29703 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
29704 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
29705 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
29706 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
29707 "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
29708 "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
29709 "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
29710 "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
29711 "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
29712 "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
29713 "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
29714 "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
29715 "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
29716 "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
29717 "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
29718 "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
29719 "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
29720 "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
29721 "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
29722 "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
29723 "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
29724 "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
29725 "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
29726 "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
29727 "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
29728 "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
29729 "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
29730 "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
29731 "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
29732 "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
29733 "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
29734 "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
29735 "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
29736 "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
29737 "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
29738 "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
29739 "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
29740 "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
29741 "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
29742 "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
29743 "\x00\x70\x12\x56\x56\x50\xAD\x14"
29744 "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
29745 "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
29746 "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
29747 "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
29748 "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
29749 "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
29750 "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
29751 "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
29752 "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
29753 "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
29754 "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
29755 "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
29756 "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
29757 "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
29758 "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
29759 "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
29760 "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
29761 "\x40\x48\x19\x73\x7C\x78\x64\x0B"
29762 "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
29763 "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
29764 "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
29765 "\x74\x28\x9D\x05\x30\x20\x62\x41"
29766 "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
29767 "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
29768 "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
29769 "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
29770 "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
29771 "\xF1\x6B\xD9",
29772 .ilen = 1011,
29773 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
29774 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
29775 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
29776 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
29777 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
29778 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
29779 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
29780 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
29781 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
29782 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
29783 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
29784 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
29785 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
29786 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
29787 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
29788 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
29789 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
29790 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
29791 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
29792 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
29793 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
29794 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
29795 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
29796 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
29797 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
29798 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
29799 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
29800 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
29801 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
29802 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
29803 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
29804 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
29805 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
29806 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
29807 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
29808 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
29809 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
29810 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
29811 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
29812 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
29813 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
29814 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
29815 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
29816 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
29817 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
29818 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
29819 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
29820 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
29821 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
29822 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
29823 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
29824 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
29825 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
29826 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
29827 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
29828 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
29829 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
29830 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
29831 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
29832 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
29833 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
29834 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
29835 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
29836 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
29837 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
29838 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
29839 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
29840 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
29841 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
29842 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
29843 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
29844 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
29845 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
29846 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
29847 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
29848 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
29849 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
29850 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
29851 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
29852 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
29853 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
29854 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
29855 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
29856 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
29857 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
29858 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
29859 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
29860 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
29861 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
29862 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
29863 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
29864 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
29865 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
29866 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
29867 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
29868 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
29869 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
29870 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
29871 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
29872 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
29873 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
29874 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
29875 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
29876 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
29877 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
29878 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
29879 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
29880 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
29881 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
29882 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
29883 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
29884 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
29885 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
29886 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
29887 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
29888 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
29889 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
29890 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
29891 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
29892 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
29893 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
29894 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
29895 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
29896 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
29897 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
29898 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
29899 "\xE4\x7B\x12",
29900 .rlen = 1011,
29901 .also_non_np = 1,
29902 .np = 2,
29903 .tap = { 1011 - 16, 16 },
29904 }, { /* Generated with Crypto++ */
29905 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
29906 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
29907 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
29908 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
29909 .klen = 32,
29910 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
29911 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
29912 .input = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
29913 "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
29914 "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
29915 "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
29916 "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
29917 "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
29918 "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
29919 "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
29920 "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
29921 "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
29922 "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
29923 "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
29924 "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
29925 "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
29926 "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
29927 "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
29928 "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
29929 "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
29930 "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
29931 "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
29932 "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
29933 "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
29934 "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
29935 "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
29936 "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
29937 "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
29938 "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
29939 "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
29940 "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
29941 "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
29942 "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
29943 "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
29944 "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
29945 "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
29946 "\x93\x78\x86\x05\x69\x46\xD0\xC5"
29947 "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
29948 "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
29949 "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
29950 "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
29951 "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
29952 "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
29953 "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
29954 "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
29955 "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
29956 "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
29957 "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
29958 "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
29959 "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
29960 "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
29961 "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
29962 "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
29963 "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
29964 "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
29965 "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
29966 "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
29967 "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
29968 "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
29969 "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
29970 "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
29971 "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
29972 "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
29973 "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
29974 "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
29975 "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
29976 "\x3F\x23\x69\x63\x56\x96\x45\xD6"
29977 "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
29978 "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
29979 "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
29980 "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
29981 "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
29982 "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
29983 "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
29984 "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
29985 "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
29986 "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
29987 "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
29988 "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
29989 "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
29990 "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
29991 "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
29992 "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
29993 "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
29994 "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
29995 "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
29996 "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
29997 "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
29998 "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
29999 "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
30000 "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
30001 "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
30002 "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
30003 "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
30004 "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
30005 "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
30006 "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
30007 "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
30008 "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
30009 "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
30010 "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
30011 "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
30012 "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
30013 "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
30014 "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
30015 "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
30016 "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
30017 "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
30018 "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
30019 "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
30020 "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
30021 "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
30022 "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
30023 "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
30024 "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
30025 "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
30026 "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
30027 "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
30028 "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
30029 "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
30030 "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
30031 "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
30032 "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
30033 "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
30034 "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
30035 "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
30036 "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
30037 "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
30038 .ilen = 1008,
30039 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
30040 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
30041 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
30042 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
30043 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
30044 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
30045 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
30046 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
30047 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
30048 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
30049 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
30050 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
30051 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
30052 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
30053 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
30054 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
30055 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
30056 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
30057 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
30058 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
30059 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
30060 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
30061 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
30062 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
30063 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
30064 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
30065 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
30066 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
30067 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
30068 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
30069 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
30070 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
30071 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
30072 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
30073 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
30074 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
30075 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
30076 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
30077 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
30078 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
30079 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
30080 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
30081 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
30082 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
30083 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
30084 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
30085 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
30086 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
30087 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
30088 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
30089 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
30090 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
30091 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
30092 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
30093 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
30094 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
30095 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
30096 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
30097 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
30098 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
30099 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
30100 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
30101 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
30102 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
30103 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
30104 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
30105 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
30106 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
30107 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
30108 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
30109 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
30110 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
30111 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
30112 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
30113 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
30114 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
30115 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
30116 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
30117 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
30118 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
30119 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
30120 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
30121 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
30122 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
30123 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
30124 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
30125 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
30126 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
30127 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
30128 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
30129 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
30130 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
30131 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
30132 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
30133 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
30134 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
30135 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
30136 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
30137 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
30138 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
30139 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
30140 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
30141 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
30142 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
30143 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
30144 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
30145 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
30146 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
30147 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
30148 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
30149 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
30150 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
30151 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
30152 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
30153 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
30154 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
30155 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
30156 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
30157 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
30158 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
30159 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
30160 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
30161 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
30162 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
30163 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
30164 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
30165 .rlen = 1008,
30169 static struct cipher_testvec camellia_lrw_enc_tv_template[] = {
30170 /* Generated from AES-LRW test vectors */
30172 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
30173 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
30174 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
30175 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
30176 .klen = 32,
30177 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30178 "\x00\x00\x00\x00\x00\x00\x00\x01",
30179 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30180 "\x38\x39\x41\x42\x43\x44\x45\x46",
30181 .ilen = 16,
30182 .result = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
30183 "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
30184 .rlen = 16,
30185 }, {
30186 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
30187 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
30188 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
30189 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
30190 .klen = 32,
30191 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30192 "\x00\x00\x00\x00\x00\x00\x00\x02",
30193 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30194 "\x38\x39\x41\x42\x43\x44\x45\x46",
30195 .ilen = 16,
30196 .result = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
30197 "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
30198 .rlen = 16,
30199 }, {
30200 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
30201 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
30202 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
30203 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
30204 .klen = 32,
30205 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30206 "\x00\x00\x00\x02\x00\x00\x00\x00",
30207 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30208 "\x38\x39\x41\x42\x43\x44\x45\x46",
30209 .ilen = 16,
30210 .result = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
30211 "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
30212 .rlen = 16,
30213 }, {
30214 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
30215 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
30216 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
30217 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
30218 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
30219 .klen = 40,
30220 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30221 "\x00\x00\x00\x00\x00\x00\x00\x01",
30222 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30223 "\x38\x39\x41\x42\x43\x44\x45\x46",
30224 .ilen = 16,
30225 .result = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
30226 "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
30227 .rlen = 16,
30228 }, {
30229 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
30230 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
30231 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
30232 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
30233 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
30234 .klen = 40,
30235 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30236 "\x00\x00\x00\x02\x00\x00\x00\x00",
30237 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30238 "\x38\x39\x41\x42\x43\x44\x45\x46",
30239 .ilen = 16,
30240 .result = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
30241 "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
30242 .rlen = 16,
30243 }, {
30244 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
30245 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
30246 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
30247 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
30248 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
30249 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
30250 .klen = 48,
30251 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30252 "\x00\x00\x00\x00\x00\x00\x00\x01",
30253 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30254 "\x38\x39\x41\x42\x43\x44\x45\x46",
30255 .ilen = 16,
30256 .result = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
30257 "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
30258 .rlen = 16,
30259 }, {
30260 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
30261 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
30262 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
30263 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
30264 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
30265 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
30266 .klen = 48,
30267 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30268 "\x00\x00\x00\x02\x00\x00\x00\x00",
30269 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30270 "\x38\x39\x41\x42\x43\x44\x45\x46",
30271 .ilen = 16,
30272 .result = "\x04\xab\x28\x37\x31\x7a\x26\xab"
30273 "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
30274 .rlen = 16,
30275 }, {
30276 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
30277 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
30278 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
30279 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
30280 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
30281 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
30282 .klen = 48,
30283 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30284 "\x00\x00\x00\x00\x00\x00\x00\x01",
30285 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
30286 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
30287 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
30288 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
30289 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
30290 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
30291 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
30292 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
30293 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
30294 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
30295 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
30296 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
30297 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
30298 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
30299 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
30300 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
30301 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
30302 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
30303 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
30304 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
30305 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
30306 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
30307 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
30308 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
30309 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
30310 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
30311 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
30312 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
30313 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
30314 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
30315 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
30316 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
30317 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
30318 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
30319 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
30320 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
30321 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
30322 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
30323 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
30324 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
30325 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
30326 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
30327 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
30328 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
30329 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
30330 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
30331 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
30332 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
30333 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
30334 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
30335 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
30336 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
30337 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
30338 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
30339 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
30340 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
30341 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
30342 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
30343 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
30344 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
30345 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
30346 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
30347 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
30348 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
30349 .ilen = 512,
30350 .result = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
30351 "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
30352 "\x67\x76\xac\x2c\xd2\x63\x18\x93"
30353 "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
30354 "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
30355 "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
30356 "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
30357 "\x62\xdd\x78\x81\xea\x1d\xef\x04"
30358 "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
30359 "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
30360 "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
30361 "\x40\x41\x69\xaa\x71\xc0\x37\xec"
30362 "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
30363 "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
30364 "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
30365 "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
30366 "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
30367 "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
30368 "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
30369 "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
30370 "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
30371 "\x42\x08\x40\x82\x06\x1c\x2d\x55"
30372 "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
30373 "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
30374 "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
30375 "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
30376 "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
30377 "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
30378 "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
30379 "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
30380 "\xed\x14\xa9\x57\x19\x63\x40\x04"
30381 "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
30382 "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
30383 "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
30384 "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
30385 "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
30386 "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
30387 "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
30388 "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
30389 "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
30390 "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
30391 "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
30392 "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
30393 "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
30394 "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
30395 "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
30396 "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
30397 "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
30398 "\x35\xa5\x83\x04\x84\x01\x99\x56"
30399 "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
30400 "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
30401 "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
30402 "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
30403 "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
30404 "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
30405 "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
30406 "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
30407 "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
30408 "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
30409 "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
30410 "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
30411 "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
30412 "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
30413 "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
30414 .rlen = 512,
30415 .also_non_np = 1,
30416 .np = 3,
30417 .tap = { 512 - 20, 4, 16 },
30421 static struct cipher_testvec camellia_lrw_dec_tv_template[] = {
30422 /* Generated from AES-LRW test vectors */
30423 /* same as enc vectors with input and result reversed */
30425 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
30426 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
30427 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
30428 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
30429 .klen = 32,
30430 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30431 "\x00\x00\x00\x00\x00\x00\x00\x01",
30432 .input = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
30433 "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
30434 .ilen = 16,
30435 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30436 "\x38\x39\x41\x42\x43\x44\x45\x46",
30437 .rlen = 16,
30438 }, {
30439 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
30440 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
30441 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
30442 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
30443 .klen = 32,
30444 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30445 "\x00\x00\x00\x00\x00\x00\x00\x02",
30446 .input = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
30447 "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
30448 .ilen = 16,
30449 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30450 "\x38\x39\x41\x42\x43\x44\x45\x46",
30451 .rlen = 16,
30452 }, {
30453 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
30454 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
30455 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
30456 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
30457 .klen = 32,
30458 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30459 "\x00\x00\x00\x02\x00\x00\x00\x00",
30460 .input = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
30461 "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
30462 .ilen = 16,
30463 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30464 "\x38\x39\x41\x42\x43\x44\x45\x46",
30465 .rlen = 16,
30466 }, {
30467 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
30468 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
30469 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
30470 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
30471 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
30472 .klen = 40,
30473 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30474 "\x00\x00\x00\x00\x00\x00\x00\x01",
30475 .input = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
30476 "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
30477 .ilen = 16,
30478 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30479 "\x38\x39\x41\x42\x43\x44\x45\x46",
30480 .rlen = 16,
30481 }, {
30482 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
30483 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
30484 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
30485 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
30486 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
30487 .klen = 40,
30488 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30489 "\x00\x00\x00\x02\x00\x00\x00\x00",
30490 .input = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
30491 "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
30492 .ilen = 16,
30493 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30494 "\x38\x39\x41\x42\x43\x44\x45\x46",
30495 .rlen = 16,
30496 }, {
30497 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
30498 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
30499 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
30500 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
30501 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
30502 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
30503 .klen = 48,
30504 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30505 "\x00\x00\x00\x00\x00\x00\x00\x01",
30506 .input = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
30507 "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
30508 .ilen = 16,
30509 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30510 "\x38\x39\x41\x42\x43\x44\x45\x46",
30511 .rlen = 16,
30512 }, {
30513 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
30514 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
30515 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
30516 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
30517 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
30518 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
30519 .klen = 48,
30520 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30521 "\x00\x00\x00\x02\x00\x00\x00\x00",
30522 .input = "\x04\xab\x28\x37\x31\x7a\x26\xab"
30523 "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
30524 .ilen = 16,
30525 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30526 "\x38\x39\x41\x42\x43\x44\x45\x46",
30527 .rlen = 16,
30528 }, {
30529 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
30530 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
30531 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
30532 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
30533 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
30534 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
30535 .klen = 48,
30536 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30537 "\x00\x00\x00\x00\x00\x00\x00\x01",
30538 .input = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
30539 "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
30540 "\x67\x76\xac\x2c\xd2\x63\x18\x93"
30541 "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
30542 "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
30543 "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
30544 "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
30545 "\x62\xdd\x78\x81\xea\x1d\xef\x04"
30546 "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
30547 "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
30548 "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
30549 "\x40\x41\x69\xaa\x71\xc0\x37\xec"
30550 "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
30551 "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
30552 "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
30553 "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
30554 "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
30555 "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
30556 "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
30557 "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
30558 "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
30559 "\x42\x08\x40\x82\x06\x1c\x2d\x55"
30560 "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
30561 "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
30562 "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
30563 "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
30564 "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
30565 "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
30566 "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
30567 "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
30568 "\xed\x14\xa9\x57\x19\x63\x40\x04"
30569 "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
30570 "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
30571 "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
30572 "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
30573 "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
30574 "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
30575 "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
30576 "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
30577 "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
30578 "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
30579 "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
30580 "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
30581 "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
30582 "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
30583 "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
30584 "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
30585 "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
30586 "\x35\xa5\x83\x04\x84\x01\x99\x56"
30587 "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
30588 "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
30589 "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
30590 "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
30591 "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
30592 "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
30593 "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
30594 "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
30595 "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
30596 "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
30597 "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
30598 "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
30599 "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
30600 "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
30601 "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
30602 .ilen = 512,
30603 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
30604 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
30605 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
30606 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
30607 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
30608 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
30609 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
30610 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
30611 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
30612 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
30613 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
30614 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
30615 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
30616 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
30617 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
30618 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
30619 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
30620 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
30621 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
30622 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
30623 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
30624 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
30625 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
30626 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
30627 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
30628 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
30629 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
30630 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
30631 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
30632 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
30633 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
30634 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
30635 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
30636 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
30637 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
30638 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
30639 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
30640 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
30641 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
30642 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
30643 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
30644 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
30645 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
30646 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
30647 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
30648 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
30649 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
30650 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
30651 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
30652 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
30653 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
30654 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
30655 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
30656 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
30657 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
30658 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
30659 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
30660 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
30661 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
30662 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
30663 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
30664 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
30665 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
30666 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
30667 .rlen = 512,
30668 .also_non_np = 1,
30669 .np = 3,
30670 .tap = { 512 - 20, 4, 16 },
30674 static struct cipher_testvec camellia_xts_enc_tv_template[] = {
30675 /* Generated from AES-XTS test vectors */
30677 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
30678 "\x00\x00\x00\x00\x00\x00\x00\x00"
30679 "\x00\x00\x00\x00\x00\x00\x00\x00"
30680 "\x00\x00\x00\x00\x00\x00\x00\x00",
30681 .klen = 32,
30682 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30683 "\x00\x00\x00\x00\x00\x00\x00\x00",
30684 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
30685 "\x00\x00\x00\x00\x00\x00\x00\x00"
30686 "\x00\x00\x00\x00\x00\x00\x00\x00"
30687 "\x00\x00\x00\x00\x00\x00\x00\x00",
30688 .ilen = 32,
30689 .result = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
30690 "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
30691 "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
30692 "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
30693 .rlen = 32,
30694 }, {
30695 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
30696 "\x11\x11\x11\x11\x11\x11\x11\x11"
30697 "\x22\x22\x22\x22\x22\x22\x22\x22"
30698 "\x22\x22\x22\x22\x22\x22\x22\x22",
30699 .klen = 32,
30700 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
30701 "\x00\x00\x00\x00\x00\x00\x00\x00",
30702 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
30703 "\x44\x44\x44\x44\x44\x44\x44\x44"
30704 "\x44\x44\x44\x44\x44\x44\x44\x44"
30705 "\x44\x44\x44\x44\x44\x44\x44\x44",
30706 .ilen = 32,
30707 .result = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
30708 "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
30709 "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
30710 "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
30711 .rlen = 32,
30712 }, {
30713 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
30714 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
30715 "\x22\x22\x22\x22\x22\x22\x22\x22"
30716 "\x22\x22\x22\x22\x22\x22\x22\x22",
30717 .klen = 32,
30718 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
30719 "\x00\x00\x00\x00\x00\x00\x00\x00",
30720 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
30721 "\x44\x44\x44\x44\x44\x44\x44\x44"
30722 "\x44\x44\x44\x44\x44\x44\x44\x44"
30723 "\x44\x44\x44\x44\x44\x44\x44\x44",
30724 .ilen = 32,
30725 .result = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
30726 "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
30727 "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
30728 "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
30729 .rlen = 32,
30730 }, {
30731 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
30732 "\x23\x53\x60\x28\x74\x71\x35\x26"
30733 "\x31\x41\x59\x26\x53\x58\x97\x93"
30734 "\x23\x84\x62\x64\x33\x83\x27\x95",
30735 .klen = 32,
30736 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30737 "\x00\x00\x00\x00\x00\x00\x00\x00",
30738 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
30739 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30740 "\x10\x11\x12\x13\x14\x15\x16\x17"
30741 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30742 "\x20\x21\x22\x23\x24\x25\x26\x27"
30743 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30744 "\x30\x31\x32\x33\x34\x35\x36\x37"
30745 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30746 "\x40\x41\x42\x43\x44\x45\x46\x47"
30747 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30748 "\x50\x51\x52\x53\x54\x55\x56\x57"
30749 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30750 "\x60\x61\x62\x63\x64\x65\x66\x67"
30751 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30752 "\x70\x71\x72\x73\x74\x75\x76\x77"
30753 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30754 "\x80\x81\x82\x83\x84\x85\x86\x87"
30755 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30756 "\x90\x91\x92\x93\x94\x95\x96\x97"
30757 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30758 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30759 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30760 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30761 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30762 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30763 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30764 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30765 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30766 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30767 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30768 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30769 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
30770 "\x00\x01\x02\x03\x04\x05\x06\x07"
30771 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30772 "\x10\x11\x12\x13\x14\x15\x16\x17"
30773 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30774 "\x20\x21\x22\x23\x24\x25\x26\x27"
30775 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30776 "\x30\x31\x32\x33\x34\x35\x36\x37"
30777 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30778 "\x40\x41\x42\x43\x44\x45\x46\x47"
30779 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30780 "\x50\x51\x52\x53\x54\x55\x56\x57"
30781 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30782 "\x60\x61\x62\x63\x64\x65\x66\x67"
30783 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30784 "\x70\x71\x72\x73\x74\x75\x76\x77"
30785 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30786 "\x80\x81\x82\x83\x84\x85\x86\x87"
30787 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30788 "\x90\x91\x92\x93\x94\x95\x96\x97"
30789 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30790 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30791 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30792 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30793 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30794 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30795 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30796 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30797 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30798 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30799 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30800 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30801 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
30802 .ilen = 512,
30803 .result = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
30804 "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
30805 "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
30806 "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
30807 "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
30808 "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
30809 "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
30810 "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
30811 "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
30812 "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
30813 "\x08\xda\x76\x00\x65\xcf\x7b\x31"
30814 "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
30815 "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
30816 "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
30817 "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
30818 "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
30819 "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
30820 "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
30821 "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
30822 "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
30823 "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
30824 "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
30825 "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
30826 "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
30827 "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
30828 "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
30829 "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
30830 "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
30831 "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
30832 "\x16\x31\xb2\x47\x91\x67\xaa\x28"
30833 "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
30834 "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
30835 "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
30836 "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
30837 "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
30838 "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
30839 "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
30840 "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
30841 "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
30842 "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
30843 "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
30844 "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
30845 "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
30846 "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
30847 "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
30848 "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
30849 "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
30850 "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
30851 "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
30852 "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
30853 "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
30854 "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
30855 "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
30856 "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
30857 "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
30858 "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
30859 "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
30860 "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
30861 "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
30862 "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
30863 "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
30864 "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
30865 "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
30866 "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
30867 .rlen = 512,
30868 }, {
30869 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
30870 "\x23\x53\x60\x28\x74\x71\x35\x26"
30871 "\x62\x49\x77\x57\x24\x70\x93\x69"
30872 "\x99\x59\x57\x49\x66\x96\x76\x27"
30873 "\x31\x41\x59\x26\x53\x58\x97\x93"
30874 "\x23\x84\x62\x64\x33\x83\x27\x95"
30875 "\x02\x88\x41\x97\x16\x93\x99\x37"
30876 "\x51\x05\x82\x09\x74\x94\x45\x92",
30877 .klen = 64,
30878 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
30879 "\x00\x00\x00\x00\x00\x00\x00\x00",
30880 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
30881 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30882 "\x10\x11\x12\x13\x14\x15\x16\x17"
30883 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30884 "\x20\x21\x22\x23\x24\x25\x26\x27"
30885 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30886 "\x30\x31\x32\x33\x34\x35\x36\x37"
30887 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30888 "\x40\x41\x42\x43\x44\x45\x46\x47"
30889 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30890 "\x50\x51\x52\x53\x54\x55\x56\x57"
30891 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30892 "\x60\x61\x62\x63\x64\x65\x66\x67"
30893 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30894 "\x70\x71\x72\x73\x74\x75\x76\x77"
30895 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30896 "\x80\x81\x82\x83\x84\x85\x86\x87"
30897 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30898 "\x90\x91\x92\x93\x94\x95\x96\x97"
30899 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30900 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30901 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30902 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30903 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30904 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30905 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30906 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30907 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30908 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30909 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30910 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30911 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
30912 "\x00\x01\x02\x03\x04\x05\x06\x07"
30913 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30914 "\x10\x11\x12\x13\x14\x15\x16\x17"
30915 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30916 "\x20\x21\x22\x23\x24\x25\x26\x27"
30917 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30918 "\x30\x31\x32\x33\x34\x35\x36\x37"
30919 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30920 "\x40\x41\x42\x43\x44\x45\x46\x47"
30921 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30922 "\x50\x51\x52\x53\x54\x55\x56\x57"
30923 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30924 "\x60\x61\x62\x63\x64\x65\x66\x67"
30925 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30926 "\x70\x71\x72\x73\x74\x75\x76\x77"
30927 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30928 "\x80\x81\x82\x83\x84\x85\x86\x87"
30929 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30930 "\x90\x91\x92\x93\x94\x95\x96\x97"
30931 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30932 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30933 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30934 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30935 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30936 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30937 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30938 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30939 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30940 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30941 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30942 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30943 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
30944 .ilen = 512,
30945 .result = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
30946 "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
30947 "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
30948 "\xf1\x74\xac\x96\x05\x7b\x32\xca"
30949 "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
30950 "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
30951 "\x97\x07\x82\xf0\x07\x12\x38\x0a"
30952 "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
30953 "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
30954 "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
30955 "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
30956 "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
30957 "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
30958 "\x41\x82\x0c\x45\x39\x35\xa8\x75"
30959 "\x03\x29\x01\x84\x8c\xab\x48\xbe"
30960 "\x11\x56\x22\x67\xb7\x67\x1a\x09"
30961 "\xa1\x72\x25\x41\x3c\x39\x65\x80"
30962 "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
30963 "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
30964 "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
30965 "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
30966 "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
30967 "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
30968 "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
30969 "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
30970 "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
30971 "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
30972 "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
30973 "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
30974 "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
30975 "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
30976 "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
30977 "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
30978 "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
30979 "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
30980 "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
30981 "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
30982 "\xef\x38\x52\x18\x0e\x29\x7e\xef"
30983 "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
30984 "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
30985 "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
30986 "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
30987 "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
30988 "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
30989 "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
30990 "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
30991 "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
30992 "\x21\x17\xf8\x59\x15\x24\x64\x22"
30993 "\x57\x48\x80\xd5\x3d\x92\x30\x07"
30994 "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
30995 "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
30996 "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
30997 "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
30998 "\x6b\x84\xf3\x00\xba\x52\x05\x02"
30999 "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
31000 "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
31001 "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
31002 "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
31003 "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
31004 "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
31005 "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
31006 "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
31007 "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
31008 "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
31009 .rlen = 512,
31010 .also_non_np = 1,
31011 .np = 3,
31012 .tap = { 512 - 20, 4, 16 },
31016 static struct cipher_testvec camellia_xts_dec_tv_template[] = {
31017 /* Generated from AES-XTS test vectors */
31018 /* same as enc vectors with input and result reversed */
31020 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
31021 "\x00\x00\x00\x00\x00\x00\x00\x00"
31022 "\x00\x00\x00\x00\x00\x00\x00\x00"
31023 "\x00\x00\x00\x00\x00\x00\x00\x00",
31024 .klen = 32,
31025 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
31026 "\x00\x00\x00\x00\x00\x00\x00\x00",
31027 .input = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
31028 "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
31029 "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
31030 "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
31031 .ilen = 32,
31032 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
31033 "\x00\x00\x00\x00\x00\x00\x00\x00"
31034 "\x00\x00\x00\x00\x00\x00\x00\x00"
31035 "\x00\x00\x00\x00\x00\x00\x00\x00",
31036 .rlen = 32,
31037 }, {
31038 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
31039 "\x11\x11\x11\x11\x11\x11\x11\x11"
31040 "\x22\x22\x22\x22\x22\x22\x22\x22"
31041 "\x22\x22\x22\x22\x22\x22\x22\x22",
31042 .klen = 32,
31043 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
31044 "\x00\x00\x00\x00\x00\x00\x00\x00",
31045 .input = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
31046 "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
31047 "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
31048 "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
31049 .ilen = 32,
31050 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
31051 "\x44\x44\x44\x44\x44\x44\x44\x44"
31052 "\x44\x44\x44\x44\x44\x44\x44\x44"
31053 "\x44\x44\x44\x44\x44\x44\x44\x44",
31054 .rlen = 32,
31055 }, {
31056 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
31057 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
31058 "\x22\x22\x22\x22\x22\x22\x22\x22"
31059 "\x22\x22\x22\x22\x22\x22\x22\x22",
31060 .klen = 32,
31061 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
31062 "\x00\x00\x00\x00\x00\x00\x00\x00",
31063 .input = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
31064 "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
31065 "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
31066 "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
31067 .ilen = 32,
31068 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
31069 "\x44\x44\x44\x44\x44\x44\x44\x44"
31070 "\x44\x44\x44\x44\x44\x44\x44\x44"
31071 "\x44\x44\x44\x44\x44\x44\x44\x44",
31072 .rlen = 32,
31073 }, {
31074 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
31075 "\x23\x53\x60\x28\x74\x71\x35\x26"
31076 "\x31\x41\x59\x26\x53\x58\x97\x93"
31077 "\x23\x84\x62\x64\x33\x83\x27\x95",
31078 .klen = 32,
31079 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
31080 "\x00\x00\x00\x00\x00\x00\x00\x00",
31081 .input = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
31082 "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
31083 "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
31084 "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
31085 "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
31086 "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
31087 "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
31088 "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
31089 "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
31090 "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
31091 "\x08\xda\x76\x00\x65\xcf\x7b\x31"
31092 "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
31093 "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
31094 "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
31095 "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
31096 "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
31097 "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
31098 "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
31099 "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
31100 "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
31101 "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
31102 "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
31103 "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
31104 "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
31105 "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
31106 "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
31107 "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
31108 "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
31109 "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
31110 "\x16\x31\xb2\x47\x91\x67\xaa\x28"
31111 "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
31112 "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
31113 "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
31114 "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
31115 "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
31116 "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
31117 "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
31118 "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
31119 "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
31120 "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
31121 "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
31122 "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
31123 "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
31124 "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
31125 "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
31126 "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
31127 "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
31128 "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
31129 "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
31130 "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
31131 "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
31132 "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
31133 "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
31134 "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
31135 "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
31136 "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
31137 "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
31138 "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
31139 "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
31140 "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
31141 "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
31142 "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
31143 "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
31144 "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
31145 .ilen = 512,
31146 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
31147 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31148 "\x10\x11\x12\x13\x14\x15\x16\x17"
31149 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31150 "\x20\x21\x22\x23\x24\x25\x26\x27"
31151 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31152 "\x30\x31\x32\x33\x34\x35\x36\x37"
31153 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31154 "\x40\x41\x42\x43\x44\x45\x46\x47"
31155 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
31156 "\x50\x51\x52\x53\x54\x55\x56\x57"
31157 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
31158 "\x60\x61\x62\x63\x64\x65\x66\x67"
31159 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
31160 "\x70\x71\x72\x73\x74\x75\x76\x77"
31161 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
31162 "\x80\x81\x82\x83\x84\x85\x86\x87"
31163 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
31164 "\x90\x91\x92\x93\x94\x95\x96\x97"
31165 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
31166 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31167 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31168 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31169 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31170 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31171 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31172 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31173 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
31174 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
31175 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
31176 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
31177 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
31178 "\x00\x01\x02\x03\x04\x05\x06\x07"
31179 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31180 "\x10\x11\x12\x13\x14\x15\x16\x17"
31181 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31182 "\x20\x21\x22\x23\x24\x25\x26\x27"
31183 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31184 "\x30\x31\x32\x33\x34\x35\x36\x37"
31185 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31186 "\x40\x41\x42\x43\x44\x45\x46\x47"
31187 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
31188 "\x50\x51\x52\x53\x54\x55\x56\x57"
31189 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
31190 "\x60\x61\x62\x63\x64\x65\x66\x67"
31191 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
31192 "\x70\x71\x72\x73\x74\x75\x76\x77"
31193 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
31194 "\x80\x81\x82\x83\x84\x85\x86\x87"
31195 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
31196 "\x90\x91\x92\x93\x94\x95\x96\x97"
31197 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
31198 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31199 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31200 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31201 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31202 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31203 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31204 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31205 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
31206 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
31207 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
31208 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
31209 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
31210 .rlen = 512,
31211 }, {
31212 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
31213 "\x23\x53\x60\x28\x74\x71\x35\x26"
31214 "\x62\x49\x77\x57\x24\x70\x93\x69"
31215 "\x99\x59\x57\x49\x66\x96\x76\x27"
31216 "\x31\x41\x59\x26\x53\x58\x97\x93"
31217 "\x23\x84\x62\x64\x33\x83\x27\x95"
31218 "\x02\x88\x41\x97\x16\x93\x99\x37"
31219 "\x51\x05\x82\x09\x74\x94\x45\x92",
31220 .klen = 64,
31221 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
31222 "\x00\x00\x00\x00\x00\x00\x00\x00",
31223 .input = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
31224 "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
31225 "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
31226 "\xf1\x74\xac\x96\x05\x7b\x32\xca"
31227 "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
31228 "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
31229 "\x97\x07\x82\xf0\x07\x12\x38\x0a"
31230 "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
31231 "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
31232 "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
31233 "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
31234 "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
31235 "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
31236 "\x41\x82\x0c\x45\x39\x35\xa8\x75"
31237 "\x03\x29\x01\x84\x8c\xab\x48\xbe"
31238 "\x11\x56\x22\x67\xb7\x67\x1a\x09"
31239 "\xa1\x72\x25\x41\x3c\x39\x65\x80"
31240 "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
31241 "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
31242 "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
31243 "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
31244 "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
31245 "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
31246 "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
31247 "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
31248 "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
31249 "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
31250 "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
31251 "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
31252 "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
31253 "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
31254 "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
31255 "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
31256 "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
31257 "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
31258 "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
31259 "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
31260 "\xef\x38\x52\x18\x0e\x29\x7e\xef"
31261 "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
31262 "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
31263 "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
31264 "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
31265 "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
31266 "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
31267 "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
31268 "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
31269 "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
31270 "\x21\x17\xf8\x59\x15\x24\x64\x22"
31271 "\x57\x48\x80\xd5\x3d\x92\x30\x07"
31272 "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
31273 "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
31274 "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
31275 "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
31276 "\x6b\x84\xf3\x00\xba\x52\x05\x02"
31277 "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
31278 "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
31279 "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
31280 "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
31281 "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
31282 "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
31283 "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
31284 "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
31285 "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
31286 "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
31287 .ilen = 512,
31288 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
31289 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31290 "\x10\x11\x12\x13\x14\x15\x16\x17"
31291 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31292 "\x20\x21\x22\x23\x24\x25\x26\x27"
31293 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31294 "\x30\x31\x32\x33\x34\x35\x36\x37"
31295 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31296 "\x40\x41\x42\x43\x44\x45\x46\x47"
31297 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
31298 "\x50\x51\x52\x53\x54\x55\x56\x57"
31299 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
31300 "\x60\x61\x62\x63\x64\x65\x66\x67"
31301 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
31302 "\x70\x71\x72\x73\x74\x75\x76\x77"
31303 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
31304 "\x80\x81\x82\x83\x84\x85\x86\x87"
31305 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
31306 "\x90\x91\x92\x93\x94\x95\x96\x97"
31307 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
31308 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31309 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31310 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31311 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31312 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31313 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31314 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31315 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
31316 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
31317 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
31318 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
31319 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
31320 "\x00\x01\x02\x03\x04\x05\x06\x07"
31321 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31322 "\x10\x11\x12\x13\x14\x15\x16\x17"
31323 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31324 "\x20\x21\x22\x23\x24\x25\x26\x27"
31325 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31326 "\x30\x31\x32\x33\x34\x35\x36\x37"
31327 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31328 "\x40\x41\x42\x43\x44\x45\x46\x47"
31329 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
31330 "\x50\x51\x52\x53\x54\x55\x56\x57"
31331 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
31332 "\x60\x61\x62\x63\x64\x65\x66\x67"
31333 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
31334 "\x70\x71\x72\x73\x74\x75\x76\x77"
31335 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
31336 "\x80\x81\x82\x83\x84\x85\x86\x87"
31337 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
31338 "\x90\x91\x92\x93\x94\x95\x96\x97"
31339 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
31340 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31341 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31342 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31343 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31344 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31345 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31346 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31347 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
31348 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
31349 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
31350 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
31351 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
31352 .rlen = 512,
31353 .also_non_np = 1,
31354 .np = 3,
31355 .tap = { 512 - 20, 4, 16 },
31360 * SEED test vectors
31362 #define SEED_ENC_TEST_VECTORS 4
31363 #define SEED_DEC_TEST_VECTORS 4
31365 static struct cipher_testvec seed_enc_tv_template[] = {
31367 .key = zeroed_string,
31368 .klen = 16,
31369 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
31370 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
31371 .ilen = 16,
31372 .result = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
31373 "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
31374 .rlen = 16,
31375 }, {
31376 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
31377 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
31378 .klen = 16,
31379 .input = zeroed_string,
31380 .ilen = 16,
31381 .result = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
31382 "\x84\x48\x35\x97\xe4\x37\x0f\x43",
31383 .rlen = 16,
31384 }, {
31385 .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
31386 "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
31387 .klen = 16,
31388 .input = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
31389 "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
31390 .ilen = 16,
31391 .result = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
31392 "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
31393 .rlen = 16,
31394 }, {
31395 .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
31396 "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
31397 .klen = 16,
31398 .input = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
31399 "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
31400 .ilen = 16,
31401 .result = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
31402 "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
31403 .rlen = 16,
31407 static struct cipher_testvec seed_dec_tv_template[] = {
31409 .key = zeroed_string,
31410 .klen = 16,
31411 .input = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
31412 "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
31413 .ilen = 16,
31414 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
31415 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
31416 .rlen = 16,
31417 }, {
31418 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
31419 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
31420 .klen = 16,
31421 .input = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
31422 "\x84\x48\x35\x97\xe4\x37\x0f\x43",
31423 .ilen = 16,
31424 .result = zeroed_string,
31425 .rlen = 16,
31426 }, {
31427 .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
31428 "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
31429 .klen = 16,
31430 .input = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
31431 "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
31432 .ilen = 16,
31433 .result = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
31434 "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
31435 .rlen = 16,
31436 }, {
31437 .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
31438 "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
31439 .klen = 16,
31440 .input = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
31441 "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
31442 .ilen = 16,
31443 .result = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
31444 "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
31445 .rlen = 16,
31449 #define SALSA20_STREAM_ENC_TEST_VECTORS 5
31450 static struct cipher_testvec salsa20_stream_enc_tv_template[] = {
31452 * Testvectors from verified.test-vectors submitted to ECRYPT.
31453 * They are truncated to size 39, 64, 111, 129 to test a variety
31454 * of input length.
31456 { /* Set 3, vector 0 */
31457 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
31458 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
31459 .klen = 16,
31460 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
31461 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
31462 "\x00\x00\x00\x00\x00\x00\x00\x00"
31463 "\x00\x00\x00\x00\x00\x00\x00\x00"
31464 "\x00\x00\x00\x00\x00\x00\x00\x00"
31465 "\x00\x00\x00\x00\x00\x00\x00",
31466 .ilen = 39,
31467 .result = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
31468 "\x68\x02\x41\x0C\x68\x86\x88\x89"
31469 "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
31470 "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
31471 "\x58\x3F\x52\x79\x70\xEB\xC1",
31472 .rlen = 39,
31473 }, { /* Set 5, vector 0 */
31474 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
31475 "\x00\x00\x00\x00\x00\x00\x00\x00",
31476 .klen = 16,
31477 .iv = "\x80\x00\x00\x00\x00\x00\x00\x00",
31478 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
31479 "\x00\x00\x00\x00\x00\x00\x00\x00"
31480 "\x00\x00\x00\x00\x00\x00\x00\x00"
31481 "\x00\x00\x00\x00\x00\x00\x00\x00"
31482 "\x00\x00\x00\x00\x00\x00\x00\x00"
31483 "\x00\x00\x00\x00\x00\x00\x00\x00"
31484 "\x00\x00\x00\x00\x00\x00\x00\x00"
31485 "\x00\x00\x00\x00\x00\x00\x00\x00",
31486 .ilen = 64,
31487 .result = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
31488 "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
31489 "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
31490 "\x46\x26\xBF\x44\x3F\x21\x97\x76"
31491 "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
31492 "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
31493 "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
31494 "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
31495 .rlen = 64,
31496 }, { /* Set 3, vector 27 */
31497 .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
31498 "\x23\x24\x25\x26\x27\x28\x29\x2A"
31499 "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
31500 "\x33\x34\x35\x36\x37\x38\x39\x3A",
31501 .klen = 32,
31502 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
31503 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
31504 "\x00\x00\x00\x00\x00\x00\x00\x00"
31505 "\x00\x00\x00\x00\x00\x00\x00\x00"
31506 "\x00\x00\x00\x00\x00\x00\x00\x00"
31507 "\x00\x00\x00\x00\x00\x00\x00\x00"
31508 "\x00\x00\x00\x00\x00\x00\x00\x00"
31509 "\x00\x00\x00\x00\x00\x00\x00\x00"
31510 "\x00\x00\x00\x00\x00\x00\x00\x00"
31511 "\x00\x00\x00\x00\x00\x00\x00\x00"
31512 "\x00\x00\x00\x00\x00\x00\x00\x00"
31513 "\x00\x00\x00\x00\x00\x00\x00\x00"
31514 "\x00\x00\x00\x00\x00\x00\x00\x00"
31515 "\x00\x00\x00\x00\x00\x00\x00\x00"
31516 "\x00\x00\x00\x00\x00\x00\x00",
31517 .ilen = 111,
31518 .result = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
31519 "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
31520 "\x87\xD9\x47\xF8\x28\x91\x35\x98"
31521 "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
31522 "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
31523 "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
31524 "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
31525 "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
31526 "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
31527 "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
31528 "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
31529 "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
31530 "\x95\x46\x45\x54\xE9\x75\x03\x08"
31531 "\x44\xAF\xE5\x8A\x81\x12\x09",
31532 .rlen = 111,
31533 }, { /* Set 5, vector 27 */
31534 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
31535 "\x00\x00\x00\x00\x00\x00\x00\x00"
31536 "\x00\x00\x00\x00\x00\x00\x00\x00"
31537 "\x00\x00\x00\x00\x00\x00\x00\x00",
31538 .klen = 32,
31539 .iv = "\x00\x00\x00\x10\x00\x00\x00\x00",
31540 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
31541 "\x00\x00\x00\x00\x00\x00\x00\x00"
31542 "\x00\x00\x00\x00\x00\x00\x00\x00"
31543 "\x00\x00\x00\x00\x00\x00\x00\x00"
31544 "\x00\x00\x00\x00\x00\x00\x00\x00"
31545 "\x00\x00\x00\x00\x00\x00\x00\x00"
31546 "\x00\x00\x00\x00\x00\x00\x00\x00"
31547 "\x00\x00\x00\x00\x00\x00\x00\x00"
31548 "\x00\x00\x00\x00\x00\x00\x00\x00"
31549 "\x00\x00\x00\x00\x00\x00\x00\x00"
31550 "\x00\x00\x00\x00\x00\x00\x00\x00"
31551 "\x00\x00\x00\x00\x00\x00\x00\x00"
31552 "\x00\x00\x00\x00\x00\x00\x00\x00"
31553 "\x00\x00\x00\x00\x00\x00\x00\x00"
31554 "\x00\x00\x00\x00\x00\x00\x00\x00"
31555 "\x00\x00\x00\x00\x00\x00\x00\x00"
31556 "\x00",
31557 .ilen = 129,
31558 .result = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
31559 "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
31560 "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
31561 "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
31562 "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
31563 "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
31564 "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
31565 "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
31566 "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
31567 "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
31568 "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
31569 "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
31570 "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
31571 "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
31572 "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
31573 "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
31574 "\x5A",
31575 .rlen = 129,
31576 }, { /* large test vector generated using Crypto++ */
31577 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
31578 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31579 "\x10\x11\x12\x13\x14\x15\x16\x17"
31580 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
31581 .klen = 32,
31582 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
31583 "\x00\x00\x00\x00\x00\x00\x00\x00",
31584 .input =
31585 "\x00\x01\x02\x03\x04\x05\x06\x07"
31586 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31587 "\x10\x11\x12\x13\x14\x15\x16\x17"
31588 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31589 "\x20\x21\x22\x23\x24\x25\x26\x27"
31590 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31591 "\x30\x31\x32\x33\x34\x35\x36\x37"
31592 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31593 "\x40\x41\x42\x43\x44\x45\x46\x47"
31594 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
31595 "\x50\x51\x52\x53\x54\x55\x56\x57"
31596 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
31597 "\x60\x61\x62\x63\x64\x65\x66\x67"
31598 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
31599 "\x70\x71\x72\x73\x74\x75\x76\x77"
31600 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
31601 "\x80\x81\x82\x83\x84\x85\x86\x87"
31602 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
31603 "\x90\x91\x92\x93\x94\x95\x96\x97"
31604 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
31605 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31606 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31607 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31608 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31609 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31610 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31611 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31612 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
31613 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
31614 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
31615 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
31616 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
31617 "\x00\x03\x06\x09\x0c\x0f\x12\x15"
31618 "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
31619 "\x30\x33\x36\x39\x3c\x3f\x42\x45"
31620 "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
31621 "\x60\x63\x66\x69\x6c\x6f\x72\x75"
31622 "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
31623 "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
31624 "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
31625 "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
31626 "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
31627 "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
31628 "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
31629 "\x20\x23\x26\x29\x2c\x2f\x32\x35"
31630 "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
31631 "\x50\x53\x56\x59\x5c\x5f\x62\x65"
31632 "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
31633 "\x80\x83\x86\x89\x8c\x8f\x92\x95"
31634 "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
31635 "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
31636 "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
31637 "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
31638 "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
31639 "\x10\x13\x16\x19\x1c\x1f\x22\x25"
31640 "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
31641 "\x40\x43\x46\x49\x4c\x4f\x52\x55"
31642 "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
31643 "\x70\x73\x76\x79\x7c\x7f\x82\x85"
31644 "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
31645 "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
31646 "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
31647 "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
31648 "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
31649 "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
31650 "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
31651 "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
31652 "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
31653 "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
31654 "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
31655 "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
31656 "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
31657 "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
31658 "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
31659 "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
31660 "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
31661 "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
31662 "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
31663 "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
31664 "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
31665 "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
31666 "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
31667 "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
31668 "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
31669 "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
31670 "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
31671 "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
31672 "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
31673 "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
31674 "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
31675 "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
31676 "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
31677 "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
31678 "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
31679 "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
31680 "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
31681 "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
31682 "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
31683 "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
31684 "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
31685 "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
31686 "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
31687 "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
31688 "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
31689 "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
31690 "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
31691 "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
31692 "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
31693 "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
31694 "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
31695 "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
31696 "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
31697 "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
31698 "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
31699 "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
31700 "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
31701 "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
31702 "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
31703 "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
31704 "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
31705 "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
31706 "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
31707 "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
31708 "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
31709 "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
31710 "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
31711 "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
31712 "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
31713 "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
31714 "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
31715 "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
31716 "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
31717 "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
31718 "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
31719 "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
31720 "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
31721 "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
31722 "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
31723 "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
31724 "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
31725 "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
31726 "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
31727 "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
31728 "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
31729 "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
31730 "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
31731 "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
31732 "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
31733 "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
31734 "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
31735 "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
31736 "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
31737 "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
31738 "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
31739 "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
31740 "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
31741 "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
31742 "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
31743 "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
31744 "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
31745 "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
31746 "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
31747 "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
31748 "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
31749 "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
31750 "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
31751 "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
31752 "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
31753 "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
31754 "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
31755 "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
31756 "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
31757 "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
31758 "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
31759 "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
31760 "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
31761 "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
31762 "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
31763 "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
31764 "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
31765 "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
31766 "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
31767 "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
31768 "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
31769 "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
31770 "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
31771 "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
31772 "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
31773 "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
31774 "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
31775 "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
31776 "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
31777 "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
31778 "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
31779 "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
31780 "\x38\x45\x52\x5f\x6c\x79\x86\x93"
31781 "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
31782 "\x08\x15\x22\x2f\x3c\x49\x56\x63"
31783 "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
31784 "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
31785 "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
31786 "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
31787 "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
31788 "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
31789 "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
31790 "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
31791 "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
31792 "\x18\x25\x32\x3f\x4c\x59\x66\x73"
31793 "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
31794 "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
31795 "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
31796 "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
31797 "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
31798 "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
31799 "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
31800 "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
31801 "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
31802 "\x28\x35\x42\x4f\x5c\x69\x76\x83"
31803 "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
31804 "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
31805 "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
31806 "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
31807 "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
31808 "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
31809 "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
31810 "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
31811 "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
31812 "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
31813 "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
31814 "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
31815 "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
31816 "\x48\x57\x66\x75\x84\x93\xa2\xb1"
31817 "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
31818 "\x38\x47\x56\x65\x74\x83\x92\xa1"
31819 "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
31820 "\x28\x37\x46\x55\x64\x73\x82\x91"
31821 "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
31822 "\x18\x27\x36\x45\x54\x63\x72\x81"
31823 "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
31824 "\x08\x17\x26\x35\x44\x53\x62\x71"
31825 "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
31826 "\xf8\x07\x16\x25\x34\x43\x52\x61"
31827 "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
31828 "\xe8\xf7\x06\x15\x24\x33\x42\x51"
31829 "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
31830 "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
31831 "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
31832 "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
31833 "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
31834 "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
31835 "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
31836 "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
31837 "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
31838 "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
31839 "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
31840 "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
31841 "\x00\x11\x22\x33\x44\x55\x66\x77"
31842 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
31843 "\x10\x21\x32\x43\x54\x65\x76\x87"
31844 "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
31845 "\x20\x31\x42\x53\x64\x75\x86\x97"
31846 "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
31847 "\x30\x41\x52\x63\x74\x85\x96\xa7"
31848 "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
31849 "\x40\x51\x62\x73\x84\x95\xa6\xb7"
31850 "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
31851 "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
31852 "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
31853 "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
31854 "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
31855 "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
31856 "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
31857 "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
31858 "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
31859 "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
31860 "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
31861 "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
31862 "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
31863 "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
31864 "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
31865 "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
31866 "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
31867 "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
31868 "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
31869 "\xe0\xf1\x02\x13\x24\x35\x46\x57"
31870 "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
31871 "\xf0\x01\x12\x23\x34\x45\x56\x67"
31872 "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
31873 "\x00\x13\x26\x39\x4c\x5f\x72\x85"
31874 "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
31875 "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
31876 "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
31877 "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
31878 "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
31879 "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
31880 "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
31881 "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
31882 "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
31883 "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
31884 "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
31885 "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
31886 "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
31887 "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
31888 "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
31889 "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
31890 "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
31891 "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
31892 "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
31893 "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
31894 "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
31895 "\x10\x23\x36\x49\x5c\x6f\x82\x95"
31896 "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
31897 "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
31898 "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
31899 "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
31900 "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
31901 "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
31902 "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
31903 "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
31904 "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
31905 "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
31906 "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
31907 "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
31908 "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
31909 "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
31910 "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
31911 "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
31912 "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
31913 "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
31914 "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
31915 "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
31916 "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
31917 "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
31918 "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
31919 "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
31920 "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
31921 "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
31922 "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
31923 "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
31924 "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
31925 "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
31926 "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
31927 "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
31928 "\x18\x2d\x42\x57\x6c\x81\x96\xab"
31929 "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
31930 "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
31931 "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
31932 "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
31933 "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
31934 "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
31935 "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
31936 "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
31937 "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
31938 "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
31939 "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
31940 "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
31941 "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
31942 "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
31943 "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
31944 "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
31945 "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
31946 "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
31947 "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
31948 "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
31949 "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
31950 "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
31951 "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
31952 "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
31953 "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
31954 "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
31955 "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
31956 "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
31957 "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
31958 "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
31959 "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
31960 "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
31961 "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
31962 "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
31963 "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
31964 "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
31965 "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
31966 "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
31967 "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
31968 "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
31969 "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
31970 "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
31971 "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
31972 "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
31973 "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
31974 "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
31975 "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
31976 "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
31977 "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
31978 "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
31979 "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
31980 "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
31981 "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
31982 "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
31983 "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
31984 "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
31985 "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
31986 "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
31987 "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
31988 "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
31989 "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
31990 "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
31991 "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
31992 "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
31993 "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
31994 "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
31995 "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
31996 "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
31997 "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
31998 "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
31999 "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
32000 "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
32001 "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
32002 "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
32003 "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
32004 "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
32005 "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
32006 "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
32007 "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
32008 "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
32009 "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
32010 "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
32011 "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
32012 "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
32013 "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
32014 "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
32015 "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
32016 "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
32017 "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
32018 "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
32019 "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
32020 "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
32021 "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
32022 "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
32023 "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
32024 "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
32025 "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
32026 "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
32027 "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
32028 "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
32029 "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
32030 "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
32031 "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
32032 "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
32033 "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
32034 "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
32035 "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
32036 "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
32037 "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
32038 "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
32039 "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
32040 "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
32041 "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
32042 "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
32043 "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
32044 "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
32045 "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
32046 "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
32047 "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
32048 "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
32049 "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
32050 "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
32051 "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
32052 "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
32053 "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
32054 "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
32055 "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
32056 "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
32057 "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
32058 "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
32059 "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
32060 "\x78\x95\xb2\xcf\xec\x09\x26\x43"
32061 "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
32062 "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
32063 "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
32064 "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
32065 "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
32066 "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
32067 "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
32068 "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
32069 "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
32070 "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
32071 "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
32072 "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
32073 "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
32074 "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
32075 "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
32076 "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
32077 "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
32078 "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
32079 "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
32080 "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
32081 "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
32082 "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
32083 "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
32084 "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
32085 "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
32086 "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
32087 "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
32088 "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
32089 "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
32090 "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
32091 "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
32092 "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
32093 "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
32094 "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
32095 "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
32096 "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
32097 "\x00\x21\x42\x63",
32098 .ilen = 4100,
32099 .result =
32100 "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
32101 "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
32102 "\x29\x01\xce\x98\x55\x53\xf9\x0c"
32103 "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
32104 "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
32105 "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
32106 "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
32107 "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
32108 "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
32109 "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
32110 "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
32111 "\xbb\xde\x56\x86\xab\x65\x21\x30"
32112 "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
32113 "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
32114 "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
32115 "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
32116 "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
32117 "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
32118 "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
32119 "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
32120 "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
32121 "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
32122 "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
32123 "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
32124 "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
32125 "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
32126 "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
32127 "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
32128 "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
32129 "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
32130 "\x45\xff\x3f\xce\x55\xf6\x95\x10"
32131 "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
32132 "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
32133 "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
32134 "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
32135 "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
32136 "\x62\x08\x18\x7a\x25\x49\x28\xac"
32137 "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
32138 "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
32139 "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
32140 "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
32141 "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
32142 "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
32143 "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
32144 "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
32145 "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
32146 "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
32147 "\x33\xee\x14\x19\x22\x52\x89\xa7"
32148 "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
32149 "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
32150 "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
32151 "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
32152 "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
32153 "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
32154 "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
32155 "\x04\x07\x08\x52\xe6\xc0\xda\x93"
32156 "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
32157 "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
32158 "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
32159 "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
32160 "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
32161 "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
32162 "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
32163 "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
32164 "\x5a\x90\xae\x75\x0a\x74\x18\x89"
32165 "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
32166 "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
32167 "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
32168 "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
32169 "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
32170 "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
32171 "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
32172 "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
32173 "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
32174 "\x49\x97\x33\xab\x36\x14\x0a\x70"
32175 "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
32176 "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
32177 "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
32178 "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
32179 "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
32180 "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
32181 "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
32182 "\x47\x13\x28\x73\x3c\xbb\x00\x90"
32183 "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
32184 "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
32185 "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
32186 "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
32187 "\xad\x04\x07\xae\x22\x90\x4a\x93"
32188 "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
32189 "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
32190 "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
32191 "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
32192 "\x53\xf9\x80\x10\xde\x80\xa2\x41"
32193 "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
32194 "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
32195 "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
32196 "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
32197 "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
32198 "\xde\xff\x07\x44\xdd\x56\x1b\xad"
32199 "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
32200 "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
32201 "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
32202 "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
32203 "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
32204 "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
32205 "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
32206 "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
32207 "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
32208 "\x23\xf8\x66\x18\x14\x28\x34\x0f"
32209 "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
32210 "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
32211 "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
32212 "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
32213 "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
32214 "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
32215 "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
32216 "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
32217 "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
32218 "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
32219 "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
32220 "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
32221 "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
32222 "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
32223 "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
32224 "\xca\x8e\x61\x87\xde\xad\x80\xd2"
32225 "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
32226 "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
32227 "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
32228 "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
32229 "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
32230 "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
32231 "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
32232 "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
32233 "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
32234 "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
32235 "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
32236 "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
32237 "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
32238 "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
32239 "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
32240 "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
32241 "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
32242 "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
32243 "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
32244 "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
32245 "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
32246 "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
32247 "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
32248 "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
32249 "\x54\xda\x24\x6a\xc4\x41\x65\x46"
32250 "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
32251 "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
32252 "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
32253 "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
32254 "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
32255 "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
32256 "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
32257 "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
32258 "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
32259 "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
32260 "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
32261 "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
32262 "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
32263 "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
32264 "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
32265 "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
32266 "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
32267 "\xef\xcc\xa7\xec\xab\x43\x09\x18"
32268 "\xd3\xab\x68\xd1\x07\x99\x44\x47"
32269 "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
32270 "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
32271 "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
32272 "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
32273 "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
32274 "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
32275 "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
32276 "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
32277 "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
32278 "\x71\x6e\x9f\x58\x15\x67\x72\x87"
32279 "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
32280 "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
32281 "\xba\x41\x54\xac\xf0\xfc\x59\x12"
32282 "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
32283 "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
32284 "\x2e\x53\x49\x97\x94\x33\xae\x40"
32285 "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
32286 "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
32287 "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
32288 "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
32289 "\xce\x87\xad\xcc\x72\x05\x00\x29"
32290 "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
32291 "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
32292 "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
32293 "\xac\xc0\x79\x50\x69\xca\x59\x32"
32294 "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
32295 "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
32296 "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
32297 "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
32298 "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
32299 "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
32300 "\x05\x68\x6b\xab\xe3\x41\x49\xed"
32301 "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
32302 "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
32303 "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
32304 "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
32305 "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
32306 "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
32307 "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
32308 "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
32309 "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
32310 "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
32311 "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
32312 "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
32313 "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
32314 "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
32315 "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
32316 "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
32317 "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
32318 "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
32319 "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
32320 "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
32321 "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
32322 "\x85\x75\xe6\x43\xf6\x87\x08\x68"
32323 "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
32324 "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
32325 "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
32326 "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
32327 "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
32328 "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
32329 "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
32330 "\xaf\x55\xeb\x22\xac\x93\x68\x32"
32331 "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
32332 "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
32333 "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
32334 "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
32335 "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
32336 "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
32337 "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
32338 "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
32339 "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
32340 "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
32341 "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
32342 "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
32343 "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
32344 "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
32345 "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
32346 "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
32347 "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
32348 "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
32349 "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
32350 "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
32351 "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
32352 "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
32353 "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
32354 "\x38\x55\xab\x33\x26\xef\x9f\x43"
32355 "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
32356 "\x58\x09\x09\x1b\xc3\x65\x46\x46"
32357 "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
32358 "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
32359 "\x63\x86\xf2\x03\x67\x45\xd2\x72"
32360 "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
32361 "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
32362 "\x2b\x82\x39\xbd\x69\x54\xed\x62"
32363 "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
32364 "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
32365 "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
32366 "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
32367 "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
32368 "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
32369 "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
32370 "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
32371 "\x55\xad\xa4\xd1\x22\x54\x70\x94"
32372 "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
32373 "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
32374 "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
32375 "\x62\x36\x43\xb2\x82\x15\x75\x50"
32376 "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
32377 "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
32378 "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
32379 "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
32380 "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
32381 "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
32382 "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
32383 "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
32384 "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
32385 "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
32386 "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
32387 "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
32388 "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
32389 "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
32390 "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
32391 "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
32392 "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
32393 "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
32394 "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
32395 "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
32396 "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
32397 "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
32398 "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
32399 "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
32400 "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
32401 "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
32402 "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
32403 "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
32404 "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
32405 "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
32406 "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
32407 "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
32408 "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
32409 "\x42\x19\x23\x7d\xc8\x73\xee\x25"
32410 "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
32411 "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
32412 "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
32413 "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
32414 "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
32415 "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
32416 "\xdb\x87\xee\xef\x55\x89\x2a\x59"
32417 "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
32418 "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
32419 "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
32420 "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
32421 "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
32422 "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
32423 "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
32424 "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
32425 "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
32426 "\xae\xab\x86\x09\x89\xc9\xc2\x40"
32427 "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
32428 "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
32429 "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
32430 "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
32431 "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
32432 "\x95\xd9\x34\x34\x86\xc6\x41\x94"
32433 "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
32434 "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
32435 "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
32436 "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
32437 "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
32438 "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
32439 "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
32440 "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
32441 "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
32442 "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
32443 "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
32444 "\xa7\x33\x34\x86\xca\xe4\x96\x23"
32445 "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
32446 "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
32447 "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
32448 "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
32449 "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
32450 "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
32451 "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
32452 "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
32453 "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
32454 "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
32455 "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
32456 "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
32457 "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
32458 "\x68\xc8\x7f\x51\x22\x42\xef\x49"
32459 "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
32460 "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
32461 "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
32462 "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
32463 "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
32464 "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
32465 "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
32466 "\x73\x2e\x71\x79\x16\x06\x63\x28"
32467 "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
32468 "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
32469 "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
32470 "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
32471 "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
32472 "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
32473 "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
32474 "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
32475 "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
32476 "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
32477 "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
32478 "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
32479 "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
32480 "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
32481 "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
32482 "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
32483 "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
32484 "\x19\x07\xaf\x90\x62\x5c\x68\x98"
32485 "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
32486 "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
32487 "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
32488 "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
32489 "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
32490 "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
32491 "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
32492 "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
32493 "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
32494 "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
32495 "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
32496 "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
32497 "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
32498 "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
32499 "\x21\x33\x44\xfe\x7f\x35\x32\x93"
32500 "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
32501 "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
32502 "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
32503 "\x64\xf0\x48\xe5\x57\x99\xee\x75"
32504 "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
32505 "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
32506 "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
32507 "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
32508 "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
32509 "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
32510 "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
32511 "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
32512 "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
32513 "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
32514 "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
32515 "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
32516 "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
32517 "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
32518 "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
32519 "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
32520 "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
32521 "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
32522 "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
32523 "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
32524 "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
32525 "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
32526 "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
32527 "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
32528 "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
32529 "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
32530 "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
32531 "\x56\xf5\x4e\x01\x35\x27\x45\x77"
32532 "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
32533 "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
32534 "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
32535 "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
32536 "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
32537 "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
32538 "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
32539 "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
32540 "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
32541 "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
32542 "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
32543 "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
32544 "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
32545 "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
32546 "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
32547 "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
32548 "\x87\x8f\x03\x21\x28\x95\x0c\x89"
32549 "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
32550 "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
32551 "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
32552 "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
32553 "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
32554 "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
32555 "\x85\x73\x78\x45\x20\x7f\xae\x13"
32556 "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
32557 "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
32558 "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
32559 "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
32560 "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
32561 "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
32562 "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
32563 "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
32564 "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
32565 "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
32566 "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
32567 "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
32568 "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
32569 "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
32570 "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
32571 "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
32572 "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
32573 "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
32574 "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
32575 "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
32576 "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
32577 "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
32578 "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
32579 "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
32580 "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
32581 "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
32582 "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
32583 "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
32584 "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
32585 "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
32586 "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
32587 "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
32588 "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
32589 "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
32590 "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
32591 "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
32592 "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
32593 "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
32594 "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
32595 "\x6e\x12\x17\x72\x63\x57\xc7\xba"
32596 "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
32597 "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
32598 "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
32599 "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
32600 "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
32601 "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
32602 "\x0c\x24\x43\x31\x40\x57\xf1\x72"
32603 "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
32604 "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
32605 "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
32606 "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
32607 "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
32608 "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
32609 "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
32610 "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
32611 "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
32612 "\xaf\xdf\x11\x95",
32613 .rlen = 4100,
32614 .np = 2,
32615 .tap = { 4064, 36 },
32619 #define CHACHA20_ENC_TEST_VECTORS 4
32620 static struct cipher_testvec chacha20_enc_tv_template[] = {
32621 { /* RFC7539 A.2. Test Vector #1 */
32622 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
32623 "\x00\x00\x00\x00\x00\x00\x00\x00"
32624 "\x00\x00\x00\x00\x00\x00\x00\x00"
32625 "\x00\x00\x00\x00\x00\x00\x00\x00",
32626 .klen = 32,
32627 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
32628 "\x00\x00\x00\x00\x00\x00\x00\x00",
32629 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
32630 "\x00\x00\x00\x00\x00\x00\x00\x00"
32631 "\x00\x00\x00\x00\x00\x00\x00\x00"
32632 "\x00\x00\x00\x00\x00\x00\x00\x00"
32633 "\x00\x00\x00\x00\x00\x00\x00\x00"
32634 "\x00\x00\x00\x00\x00\x00\x00\x00"
32635 "\x00\x00\x00\x00\x00\x00\x00\x00"
32636 "\x00\x00\x00\x00\x00\x00\x00\x00",
32637 .ilen = 64,
32638 .result = "\x76\xb8\xe0\xad\xa0\xf1\x3d\x90"
32639 "\x40\x5d\x6a\xe5\x53\x86\xbd\x28"
32640 "\xbd\xd2\x19\xb8\xa0\x8d\xed\x1a"
32641 "\xa8\x36\xef\xcc\x8b\x77\x0d\xc7"
32642 "\xda\x41\x59\x7c\x51\x57\x48\x8d"
32643 "\x77\x24\xe0\x3f\xb8\xd8\x4a\x37"
32644 "\x6a\x43\xb8\xf4\x15\x18\xa1\x1c"
32645 "\xc3\x87\xb6\x69\xb2\xee\x65\x86",
32646 .rlen = 64,
32647 }, { /* RFC7539 A.2. Test Vector #2 */
32648 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
32649 "\x00\x00\x00\x00\x00\x00\x00\x00"
32650 "\x00\x00\x00\x00\x00\x00\x00\x00"
32651 "\x00\x00\x00\x00\x00\x00\x00\x01",
32652 .klen = 32,
32653 .iv = "\x01\x00\x00\x00\x00\x00\x00\x00"
32654 "\x00\x00\x00\x00\x00\x00\x00\x02",
32655 .input = "\x41\x6e\x79\x20\x73\x75\x62\x6d"
32656 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
32657 "\x6f\x20\x74\x68\x65\x20\x49\x45"
32658 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
32659 "\x64\x65\x64\x20\x62\x79\x20\x74"
32660 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
32661 "\x69\x62\x75\x74\x6f\x72\x20\x66"
32662 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
32663 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
32664 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
32665 "\x20\x70\x61\x72\x74\x20\x6f\x66"
32666 "\x20\x61\x6e\x20\x49\x45\x54\x46"
32667 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
32668 "\x74\x2d\x44\x72\x61\x66\x74\x20"
32669 "\x6f\x72\x20\x52\x46\x43\x20\x61"
32670 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
32671 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
32672 "\x20\x6d\x61\x64\x65\x20\x77\x69"
32673 "\x74\x68\x69\x6e\x20\x74\x68\x65"
32674 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
32675 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
32676 "\x45\x54\x46\x20\x61\x63\x74\x69"
32677 "\x76\x69\x74\x79\x20\x69\x73\x20"
32678 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
32679 "\x65\x64\x20\x61\x6e\x20\x22\x49"
32680 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
32681 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
32682 "\x22\x2e\x20\x53\x75\x63\x68\x20"
32683 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
32684 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
32685 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
32686 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
32687 "\x74\x73\x20\x69\x6e\x20\x49\x45"
32688 "\x54\x46\x20\x73\x65\x73\x73\x69"
32689 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
32690 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
32691 "\x77\x72\x69\x74\x74\x65\x6e\x20"
32692 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
32693 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
32694 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
32695 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
32696 "\x64\x65\x20\x61\x74\x20\x61\x6e"
32697 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
32698 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
32699 "\x20\x77\x68\x69\x63\x68\x20\x61"
32700 "\x72\x65\x20\x61\x64\x64\x72\x65"
32701 "\x73\x73\x65\x64\x20\x74\x6f",
32702 .ilen = 375,
32703 .result = "\xa3\xfb\xf0\x7d\xf3\xfa\x2f\xde"
32704 "\x4f\x37\x6c\xa2\x3e\x82\x73\x70"
32705 "\x41\x60\x5d\x9f\x4f\x4f\x57\xbd"
32706 "\x8c\xff\x2c\x1d\x4b\x79\x55\xec"
32707 "\x2a\x97\x94\x8b\xd3\x72\x29\x15"
32708 "\xc8\xf3\xd3\x37\xf7\xd3\x70\x05"
32709 "\x0e\x9e\x96\xd6\x47\xb7\xc3\x9f"
32710 "\x56\xe0\x31\xca\x5e\xb6\x25\x0d"
32711 "\x40\x42\xe0\x27\x85\xec\xec\xfa"
32712 "\x4b\x4b\xb5\xe8\xea\xd0\x44\x0e"
32713 "\x20\xb6\xe8\xdb\x09\xd8\x81\xa7"
32714 "\xc6\x13\x2f\x42\x0e\x52\x79\x50"
32715 "\x42\xbd\xfa\x77\x73\xd8\xa9\x05"
32716 "\x14\x47\xb3\x29\x1c\xe1\x41\x1c"
32717 "\x68\x04\x65\x55\x2a\xa6\xc4\x05"
32718 "\xb7\x76\x4d\x5e\x87\xbe\xa8\x5a"
32719 "\xd0\x0f\x84\x49\xed\x8f\x72\xd0"
32720 "\xd6\x62\xab\x05\x26\x91\xca\x66"
32721 "\x42\x4b\xc8\x6d\x2d\xf8\x0e\xa4"
32722 "\x1f\x43\xab\xf9\x37\xd3\x25\x9d"
32723 "\xc4\xb2\xd0\xdf\xb4\x8a\x6c\x91"
32724 "\x39\xdd\xd7\xf7\x69\x66\xe9\x28"
32725 "\xe6\x35\x55\x3b\xa7\x6c\x5c\x87"
32726 "\x9d\x7b\x35\xd4\x9e\xb2\xe6\x2b"
32727 "\x08\x71\xcd\xac\x63\x89\x39\xe2"
32728 "\x5e\x8a\x1e\x0e\xf9\xd5\x28\x0f"
32729 "\xa8\xca\x32\x8b\x35\x1c\x3c\x76"
32730 "\x59\x89\xcb\xcf\x3d\xaa\x8b\x6c"
32731 "\xcc\x3a\xaf\x9f\x39\x79\xc9\x2b"
32732 "\x37\x20\xfc\x88\xdc\x95\xed\x84"
32733 "\xa1\xbe\x05\x9c\x64\x99\xb9\xfd"
32734 "\xa2\x36\xe7\xe8\x18\xb0\x4b\x0b"
32735 "\xc3\x9c\x1e\x87\x6b\x19\x3b\xfe"
32736 "\x55\x69\x75\x3f\x88\x12\x8c\xc0"
32737 "\x8a\xaa\x9b\x63\xd1\xa1\x6f\x80"
32738 "\xef\x25\x54\xd7\x18\x9c\x41\x1f"
32739 "\x58\x69\xca\x52\xc5\xb8\x3f\xa3"
32740 "\x6f\xf2\x16\xb9\xc1\xd3\x00\x62"
32741 "\xbe\xbc\xfd\x2d\xc5\xbc\xe0\x91"
32742 "\x19\x34\xfd\xa7\x9a\x86\xf6\xe6"
32743 "\x98\xce\xd7\x59\xc3\xff\x9b\x64"
32744 "\x77\x33\x8f\x3d\xa4\xf9\xcd\x85"
32745 "\x14\xea\x99\x82\xcc\xaf\xb3\x41"
32746 "\xb2\x38\x4d\xd9\x02\xf3\xd1\xab"
32747 "\x7a\xc6\x1d\xd2\x9c\x6f\x21\xba"
32748 "\x5b\x86\x2f\x37\x30\xe3\x7c\xfd"
32749 "\xc4\xfd\x80\x6c\x22\xf2\x21",
32750 .rlen = 375,
32751 }, { /* RFC7539 A.2. Test Vector #3 */
32752 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
32753 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
32754 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
32755 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
32756 .klen = 32,
32757 .iv = "\x2a\x00\x00\x00\x00\x00\x00\x00"
32758 "\x00\x00\x00\x00\x00\x00\x00\x02",
32759 .input = "\x27\x54\x77\x61\x73\x20\x62\x72"
32760 "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
32761 "\x6e\x64\x20\x74\x68\x65\x20\x73"
32762 "\x6c\x69\x74\x68\x79\x20\x74\x6f"
32763 "\x76\x65\x73\x0a\x44\x69\x64\x20"
32764 "\x67\x79\x72\x65\x20\x61\x6e\x64"
32765 "\x20\x67\x69\x6d\x62\x6c\x65\x20"
32766 "\x69\x6e\x20\x74\x68\x65\x20\x77"
32767 "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
32768 "\x20\x6d\x69\x6d\x73\x79\x20\x77"
32769 "\x65\x72\x65\x20\x74\x68\x65\x20"
32770 "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
32771 "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
32772 "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
32773 "\x72\x61\x74\x68\x73\x20\x6f\x75"
32774 "\x74\x67\x72\x61\x62\x65\x2e",
32775 .ilen = 127,
32776 .result = "\x62\xe6\x34\x7f\x95\xed\x87\xa4"
32777 "\x5f\xfa\xe7\x42\x6f\x27\xa1\xdf"
32778 "\x5f\xb6\x91\x10\x04\x4c\x0d\x73"
32779 "\x11\x8e\xff\xa9\x5b\x01\xe5\xcf"
32780 "\x16\x6d\x3d\xf2\xd7\x21\xca\xf9"
32781 "\xb2\x1e\x5f\xb1\x4c\x61\x68\x71"
32782 "\xfd\x84\xc5\x4f\x9d\x65\xb2\x83"
32783 "\x19\x6c\x7f\xe4\xf6\x05\x53\xeb"
32784 "\xf3\x9c\x64\x02\xc4\x22\x34\xe3"
32785 "\x2a\x35\x6b\x3e\x76\x43\x12\xa6"
32786 "\x1a\x55\x32\x05\x57\x16\xea\xd6"
32787 "\x96\x25\x68\xf8\x7d\x3f\x3f\x77"
32788 "\x04\xc6\xa8\xd1\xbc\xd1\xbf\x4d"
32789 "\x50\xd6\x15\x4b\x6d\xa7\x31\xb1"
32790 "\x87\xb5\x8d\xfd\x72\x8a\xfa\x36"
32791 "\x75\x7a\x79\x7a\xc1\x88\xd1",
32792 .rlen = 127,
32793 }, { /* Self-made test vector for long data */
32794 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
32795 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
32796 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
32797 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
32798 .klen = 32,
32799 .iv = "\x1c\x00\x00\x00\x00\x00\x00\x00"
32800 "\x00\x00\x00\x00\x00\x00\x00\x01",
32801 .input = "\x49\xee\xe0\xdc\x24\x90\x40\xcd"
32802 "\xc5\x40\x8f\x47\x05\xbc\xdd\x81"
32803 "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb"
32804 "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8"
32805 "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4"
32806 "\x19\x4b\x01\x0f\x4e\xa4\x43\xce"
32807 "\x01\xc6\x67\xda\x03\x91\x18\x90"
32808 "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac"
32809 "\x74\x92\xd3\x53\x47\xc8\xdd\x25"
32810 "\x53\x6c\x02\x03\x87\x0d\x11\x0c"
32811 "\x58\xe3\x12\x18\xfd\x2a\x5b\x40"
32812 "\x0c\x30\xf0\xb8\x3f\x43\xce\xae"
32813 "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc"
32814 "\x33\x97\xc3\x77\xba\xc5\x70\xde"
32815 "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f"
32816 "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c"
32817 "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c"
32818 "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe"
32819 "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6"
32820 "\x79\x49\x41\xf4\x58\x18\xcb\x86"
32821 "\x7f\x30\x0e\xf8\x7d\x44\x36\xea"
32822 "\x75\xeb\x88\x84\x40\x3c\xad\x4f"
32823 "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5"
32824 "\x21\x66\xe9\xa7\xe3\xb2\x15\x88"
32825 "\x78\xf6\x79\xa1\x59\x47\x12\x4e"
32826 "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08"
32827 "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b"
32828 "\xdd\x60\x71\xf7\x47\x8c\x61\xc3"
32829 "\xda\x8a\x78\x1e\x16\xfa\x1e\x86"
32830 "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7"
32831 "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4"
32832 "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6"
32833 "\xf4\xe6\x33\x43\x84\x93\xa5\x67"
32834 "\x9b\x16\x58\x58\x80\x0f\x2b\x5c"
32835 "\x24\x74\x75\x7f\x95\x81\xb7\x30"
32836 "\x7a\x33\xa7\xf7\x94\x87\x32\x27"
32837 "\x10\x5d\x14\x4c\x43\x29\xdd\x26"
32838 "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10"
32839 "\xea\x6b\x64\xfd\x73\xc6\xed\xec"
32840 "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07"
32841 "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5"
32842 "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1"
32843 "\xec\xca\x60\x09\x4c\x6a\xd5\x09"
32844 "\x49\x46\x00\x88\x22\x8d\xce\xea"
32845 "\xb1\x17\x11\xde\x42\xd2\x23\xc1"
32846 "\x72\x11\xf5\x50\x73\x04\x40\x47"
32847 "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0"
32848 "\x3f\x58\xc1\x52\xab\x12\x67\x9d"
32849 "\x3f\x43\x4b\x68\xd4\x9c\x68\x38"
32850 "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b"
32851 "\xf9\xe5\x31\x69\x22\xf9\xa6\x69"
32852 "\xc6\x9c\x96\x9a\x12\x35\x95\x1d"
32853 "\x95\xd5\xdd\xbe\xbf\x93\x53\x24"
32854 "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00"
32855 "\x6f\x88\xc4\x37\x18\x69\x7c\xd7"
32856 "\x41\x92\x55\x4c\x03\xa1\x9a\x4b"
32857 "\x15\xe5\xdf\x7f\x37\x33\x72\xc1"
32858 "\x8b\x10\x67\xa3\x01\x57\x94\x25"
32859 "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73"
32860 "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda"
32861 "\x58\xb1\x47\x90\xfe\x42\x21\x72"
32862 "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd"
32863 "\xc6\x84\x6e\xca\xae\xe3\x68\xb4"
32864 "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b"
32865 "\x03\xa1\x31\xd9\xde\x8d\xf5\x22"
32866 "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76"
32867 "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe"
32868 "\x54\xf7\x27\x1b\xf4\xde\x02\xf5"
32869 "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e"
32870 "\x4b\x6e\xed\x46\x23\xdc\x65\xb2"
32871 "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7"
32872 "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8"
32873 "\x65\x69\x8a\x45\x29\xef\x74\x85"
32874 "\xde\x79\xc7\x08\xae\x30\xb0\xf4"
32875 "\xa3\x1d\x51\x41\xab\xce\xcb\xf6"
32876 "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3"
32877 "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7"
32878 "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9"
32879 "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a"
32880 "\x9f\xd7\xb9\x6c\x65\x14\x22\x45"
32881 "\x6e\x45\x32\x3e\x7e\x60\x1a\x12"
32882 "\x97\x82\x14\xfb\xaa\x04\x22\xfa"
32883 "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d"
32884 "\x78\x33\x5a\x7c\xad\xdb\x29\xce"
32885 "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac"
32886 "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21"
32887 "\x83\x35\x7e\xad\x73\xc2\xb5\x6c"
32888 "\x10\x26\x38\x07\xe5\xc7\x36\x80"
32889 "\xe2\x23\x12\x61\xf5\x48\x4b\x2b"
32890 "\xc5\xdf\x15\xd9\x87\x01\xaa\xac"
32891 "\x1e\x7c\xad\x73\x78\x18\x63\xe0"
32892 "\x8b\x9f\x81\xd8\x12\x6a\x28\x10"
32893 "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c"
32894 "\x83\x66\x80\x47\x80\xe8\xfd\x35"
32895 "\x1c\x97\x6f\xae\x49\x10\x66\xcc"
32896 "\xc6\xd8\xcc\x3a\x84\x91\x20\x77"
32897 "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9"
32898 "\x25\x94\x10\x5f\x40\x00\x64\x99"
32899 "\xdc\xae\xd7\x21\x09\x78\x50\x15"
32900 "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39"
32901 "\x87\x6e\x6d\xab\xde\x08\x51\x16"
32902 "\xc7\x13\xe9\xea\xed\x06\x8e\x2c"
32903 "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43"
32904 "\xb6\x98\x37\xb2\x43\xed\xde\xdf"
32905 "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b"
32906 "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9"
32907 "\x80\x55\xc9\x34\x91\xd1\x59\xe8"
32908 "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06"
32909 "\x20\xa8\x5d\xfa\xd1\xde\x70\x56"
32910 "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8"
32911 "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5"
32912 "\x44\x4b\x9f\xc2\x93\x03\xea\x2b"
32913 "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23"
32914 "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee"
32915 "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab"
32916 "\x82\x6b\x37\x04\xeb\x74\xbe\x79"
32917 "\xb9\x83\x90\xef\x20\x59\x46\xff"
32918 "\xe9\x97\x3e\x2f\xee\xb6\x64\x18"
32919 "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a"
32920 "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4"
32921 "\xce\xd3\x91\x49\x88\xc7\xb8\x4d"
32922 "\xb1\xb9\x07\x6d\x16\x72\xae\x46"
32923 "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8"
32924 "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62"
32925 "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9"
32926 "\x94\x97\xea\xdd\x58\x9e\xae\x76"
32927 "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde"
32928 "\xf7\x32\x87\xcd\x93\xbf\x11\x56"
32929 "\x11\xbe\x08\x74\xe1\x69\xad\xe2"
32930 "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe"
32931 "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76"
32932 "\x35\xea\x5d\x85\x81\xaf\x85\xeb"
32933 "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc"
32934 "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a"
32935 "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9"
32936 "\x37\x1c\xeb\x46\x54\x3f\xa5\x91"
32937 "\xc2\xb5\x8c\xfe\x53\x08\x97\x32"
32938 "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc"
32939 "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1"
32940 "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c"
32941 "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd"
32942 "\x20\x4e\x7c\x51\xb0\x60\x73\xb8"
32943 "\x9c\xac\x91\x90\x7e\x01\xb0\xe1"
32944 "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a"
32945 "\x06\x52\x95\x52\xb2\xe9\x25\x2e"
32946 "\x4c\xe2\x5a\x00\xb2\x13\x81\x03"
32947 "\x77\x66\x0d\xa5\x99\xda\x4e\x8c"
32948 "\xac\xf3\x13\x53\x27\x45\xaf\x64"
32949 "\x46\xdc\xea\x23\xda\x97\xd1\xab"
32950 "\x7d\x6c\x30\x96\x1f\xbc\x06\x34"
32951 "\x18\x0b\x5e\x21\x35\x11\x8d\x4c"
32952 "\xe0\x2d\xe9\x50\x16\x74\x81\xa8"
32953 "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc"
32954 "\xca\x34\x83\x27\x10\x5b\x68\x45"
32955 "\x8f\x52\x22\x0c\x55\x3d\x29\x7c"
32956 "\xe3\xc0\x66\x05\x42\x91\x5f\x58"
32957 "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19"
32958 "\x04\xa9\x08\x4b\x57\xfc\x67\x53"
32959 "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f"
32960 "\x92\xd6\x41\x7c\x5b\x2a\x00\x79"
32961 "\x72",
32962 .ilen = 1281,
32963 .result = "\x45\xe8\xe0\xb6\x9c\xca\xfd\x87"
32964 "\xe8\x1d\x37\x96\x8a\xe3\x40\x35"
32965 "\xcf\x5e\x3a\x46\x3d\xfb\xd0\x69"
32966 "\xde\xaf\x7a\xd5\x0d\xe9\x52\xec"
32967 "\xc2\x82\xe5\x3e\x7d\xb2\x4a\xd9"
32968 "\xbb\xc3\x9f\xc0\x5d\xac\x93\x8d"
32969 "\x0e\x6f\xd3\xd7\xfb\x6a\x0d\xce"
32970 "\x92\x2c\xf7\xbb\x93\x57\xcc\xee"
32971 "\x42\x72\x6f\xc8\x4b\xd2\x76\xbf"
32972 "\xa0\xe3\x7a\x39\xf9\x5c\x8e\xfd"
32973 "\xa1\x1d\x41\xe5\x08\xc1\x1c\x11"
32974 "\x92\xfd\x39\x5c\x51\xd0\x2f\x66"
32975 "\x33\x4a\x71\x15\xfe\xee\x12\x54"
32976 "\x8c\x8f\x34\xd8\x50\x3c\x18\xa6"
32977 "\xc5\xe1\x46\x8a\xfb\x5f\x7e\x25"
32978 "\x9b\xe2\xc3\x66\x41\x2b\xb3\xa5"
32979 "\x57\x0e\x94\x17\x26\x39\xbb\x54"
32980 "\xae\x2e\x6f\x42\xfb\x4d\x89\x6f"
32981 "\x9d\xf1\x16\x2e\xe3\xe7\xfc\xe3"
32982 "\xb2\x4b\x2b\xa6\x7c\x04\x69\x3a"
32983 "\x70\x5a\xa7\xf1\x31\x64\x19\xca"
32984 "\x45\x79\xd8\x58\x23\x61\xaf\xc2"
32985 "\x52\x05\xc3\x0b\xc1\x64\x7c\x81"
32986 "\xd9\x11\xcf\xff\x02\x3d\x51\x84"
32987 "\x01\xac\xc6\x2e\x34\x2b\x09\x3a"
32988 "\xa8\x5d\x98\x0e\x89\xd9\xef\x8f"
32989 "\xd9\xd7\x7d\xdd\x63\x47\x46\x7d"
32990 "\xa1\xda\x0b\x53\x7d\x79\xcd\xc9"
32991 "\x86\xdd\x6b\x13\xa1\x9a\x70\xdd"
32992 "\x5c\xa1\x69\x3c\xe4\x5d\xe3\x8c"
32993 "\xe5\xf4\x87\x9c\x10\xcf\x0f\x0b"
32994 "\xc8\x43\xdc\xf8\x1d\x62\x5e\x5b"
32995 "\xe2\x03\x06\xc5\x71\xb6\x48\xa5"
32996 "\xf0\x0f\x2d\xd5\xa2\x73\x55\x8f"
32997 "\x01\xa7\x59\x80\x5f\x11\x6c\x40"
32998 "\xff\xb1\xf2\xc6\x7e\x01\xbb\x1c"
32999 "\x69\x9c\xc9\x3f\x71\x5f\x07\x7e"
33000 "\xdf\x6f\x99\xca\x9c\xfd\xf9\xb9"
33001 "\x49\xe7\xcc\x91\xd5\x9b\x8f\x03"
33002 "\xae\xe7\x61\x32\xef\x41\x6c\x75"
33003 "\x84\x9b\x8c\xce\x1d\x6b\x93\x21"
33004 "\x41\xec\xc6\xad\x8e\x0c\x48\xa8"
33005 "\xe2\xf5\x57\xde\xf7\x38\xfd\x4a"
33006 "\x6f\xa7\x4a\xf9\xac\x7d\xb1\x85"
33007 "\x7d\x6c\x95\x0a\x5a\xcf\x68\xd2"
33008 "\xe0\x7a\x26\xd9\xc1\x6d\x3e\xc6"
33009 "\x37\xbd\xbe\x24\x36\x77\x9f\x1b"
33010 "\xc1\x22\xf3\x79\xae\x95\x78\x66"
33011 "\x97\x11\xc0\x1a\xf1\xe8\x0d\x38"
33012 "\x09\xc2\xee\xb7\xd3\x46\x7b\x59"
33013 "\x77\x23\xe8\xb4\x92\x3d\x78\xbe"
33014 "\xe2\x25\x63\xa5\x2a\x06\x70\x92"
33015 "\x32\x63\xf9\x19\x21\x68\xe1\x0b"
33016 "\x9a\xd0\xee\x21\xdb\x1f\xe0\xde"
33017 "\x3e\x64\x02\x4d\x0e\xe0\x0a\xa9"
33018 "\xed\x19\x8c\xa8\xbf\xe3\x2e\x75"
33019 "\x24\x2b\xb0\xe5\x82\x6a\x1e\x6f"
33020 "\x71\x2a\x3a\x60\xed\x06\x0d\x17"
33021 "\xa2\xdb\x29\x1d\xae\xb2\xc4\xfb"
33022 "\x94\x04\xd8\x58\xfc\xc4\x04\x4e"
33023 "\xee\xc7\xc1\x0f\xe9\x9b\x63\x2d"
33024 "\x02\x3e\x02\x67\xe5\xd8\xbb\x79"
33025 "\xdf\xd2\xeb\x50\xe9\x0a\x02\x46"
33026 "\xdf\x68\xcf\xe7\x2b\x0a\x56\xd6"
33027 "\xf7\xbc\x44\xad\xb8\xb5\x5f\xeb"
33028 "\xbc\x74\x6b\xe8\x7e\xb0\x60\xc6"
33029 "\x0d\x96\x09\xbb\x19\xba\xe0\x3c"
33030 "\xc4\x6c\xbf\x0f\x58\xc0\x55\x62"
33031 "\x23\xa0\xff\xb5\x1c\xfd\x18\xe1"
33032 "\xcf\x6d\xd3\x52\xb4\xce\xa6\xfa"
33033 "\xaa\xfb\x1b\x0b\x42\x6d\x79\x42"
33034 "\x48\x70\x5b\x0e\xdd\x3a\xc9\x69"
33035 "\x8b\x73\x67\xf6\x95\xdb\x8c\xfb"
33036 "\xfd\xb5\x08\x47\x42\x84\x9a\xfa"
33037 "\xcc\x67\xb2\x3c\xb6\xfd\xd8\x32"
33038 "\xd6\x04\xb6\x4a\xea\x53\x4b\xf5"
33039 "\x94\x16\xad\xf0\x10\x2e\x2d\xb4"
33040 "\x8b\xab\xe5\x89\xc7\x39\x12\xf3"
33041 "\x8d\xb5\x96\x0b\x87\x5d\xa7\x7c"
33042 "\xb0\xc2\xf6\x2e\x57\x97\x2c\xdc"
33043 "\x54\x1c\x34\x72\xde\x0c\x68\x39"
33044 "\x9d\x32\xa5\x75\x92\x13\x32\xea"
33045 "\x90\x27\xbd\x5b\x1d\xb9\x21\x02"
33046 "\x1c\xcc\xba\x97\x5e\x49\x58\xe8"
33047 "\xac\x8b\xf3\xce\x3c\xf0\x00\xe9"
33048 "\x6c\xae\xe9\x77\xdf\xf4\x02\xcd"
33049 "\x55\x25\x89\x9e\x90\xf3\x6b\x8f"
33050 "\xb7\xd6\x47\x98\x26\x2f\x31\x2f"
33051 "\x8d\xbf\x54\xcd\x99\xeb\x80\xd7"
33052 "\xac\xc3\x08\xc2\xa6\x32\xf1\x24"
33053 "\x76\x7c\x4f\x78\x53\x55\xfb\x00"
33054 "\x8a\xd6\x52\x53\x25\x45\xfb\x0a"
33055 "\x6b\xb9\xbe\x3c\x5e\x11\xcc\x6a"
33056 "\xdd\xfc\xa7\xc4\x79\x4d\xbd\xfb"
33057 "\xce\x3a\xf1\x7a\xda\xeb\xfe\x64"
33058 "\x28\x3d\x0f\xee\x80\xba\x0c\xf8"
33059 "\xe9\x5b\x3a\xd4\xae\xc9\xf3\x0e"
33060 "\xe8\x5d\xc5\x5c\x0b\x20\x20\xee"
33061 "\x40\x0d\xde\x07\xa7\x14\xb4\x90"
33062 "\xb6\xbd\x3b\xae\x7d\x2b\xa7\xc7"
33063 "\xdc\x0b\x4c\x5d\x65\xb0\xd2\xc5"
33064 "\x79\x61\x23\xe0\xa2\x99\x73\x55"
33065 "\xad\xc6\xfb\xc7\x54\xb5\x98\x1f"
33066 "\x8c\x86\xc2\x3f\xbe\x5e\xea\x64"
33067 "\xa3\x60\x18\x9f\x80\xaf\x52\x74"
33068 "\x1a\xfe\x22\xc2\x92\x67\x40\x02"
33069 "\x08\xee\x67\x5b\x67\xe0\x3d\xde"
33070 "\x7a\xaf\x8e\x28\xf3\x5e\x0e\xf4"
33071 "\x48\x56\xaa\x85\x22\xd8\x36\xed"
33072 "\x3b\x3d\x68\x69\x30\xbc\x71\x23"
33073 "\xb1\x6e\x61\x03\x89\x44\x03\xf4"
33074 "\x32\xaa\x4c\x40\x9f\x69\xfb\x70"
33075 "\x91\xcc\x1f\x11\xbd\x76\x67\xe6"
33076 "\x10\x8b\x29\x39\x68\xea\x4e\x6d"
33077 "\xae\xfb\x40\xcf\xe2\xd0\x0d\x8d"
33078 "\x6f\xed\x9b\x8d\x64\x7a\x94\x8e"
33079 "\x32\x38\x78\xeb\x7d\x5f\xf9\x4d"
33080 "\x13\xbe\x21\xea\x16\xe7\x5c\xee"
33081 "\xcd\xf6\x5f\xc6\x45\xb2\x8f\x2b"
33082 "\xb5\x93\x3e\x45\xdb\xfd\xa2\x6a"
33083 "\xec\x83\x92\x99\x87\x47\xe0\x7c"
33084 "\xa2\x7b\xc4\x2a\xcd\xc0\x81\x03"
33085 "\x98\xb0\x87\xb6\x86\x13\x64\x33"
33086 "\x4c\xd7\x99\xbf\xdb\x7b\x6e\xaa"
33087 "\x76\xcc\xa0\x74\x1b\xa3\x6e\x83"
33088 "\xd4\xba\x7a\x84\x9d\x91\x71\xcd"
33089 "\x60\x2d\x56\xfd\x26\x35\xcb\xeb"
33090 "\xac\xe9\xee\xa4\xfc\x18\x5b\x91"
33091 "\xd5\xfe\x84\x45\xe0\xc7\xfd\x11"
33092 "\xe9\x00\xb6\x54\xdf\xe1\x94\xde"
33093 "\x2b\x70\x9f\x94\x7f\x15\x0e\x83"
33094 "\x63\x10\xb3\xf5\xea\xd3\xe8\xd1"
33095 "\xa5\xfc\x17\x19\x68\x9a\xbc\x17"
33096 "\x30\x43\x0a\x1a\x33\x92\xd4\x2a"
33097 "\x2e\x68\x99\xbc\x49\xf0\x68\xe3"
33098 "\xf0\x1f\xcb\xcc\xfa\xbb\x05\x56"
33099 "\x46\x84\x8b\x69\x83\x64\xc5\xe0"
33100 "\xc5\x52\x99\x07\x3c\xa6\x5c\xaf"
33101 "\xa3\xde\xd7\xdb\x43\xe6\xb7\x76"
33102 "\x4e\x4d\xd6\x71\x60\x63\x4a\x0c"
33103 "\x5f\xae\x25\x84\x22\x90\x5f\x26"
33104 "\x61\x4d\x8f\xaf\xc9\x22\xf2\x05"
33105 "\xcf\xc1\xdc\x68\xe5\x57\x8e\x24"
33106 "\x1b\x30\x59\xca\xd7\x0d\xc3\xd3"
33107 "\x52\x9e\x09\x3e\x0e\xaf\xdb\x5f"
33108 "\xc7\x2b\xde\x3a\xfd\xad\x93\x04"
33109 "\x74\x06\x89\x0e\x90\xeb\x85\xff"
33110 "\xe6\x3c\x12\x42\xf4\xfa\x80\x75"
33111 "\x5e\x4e\xd7\x2f\x93\x0b\x34\x41"
33112 "\x02\x85\x68\xd0\x03\x12\xde\x92"
33113 "\x54\x7a\x7e\xfb\x55\xe7\x88\xfb"
33114 "\xa4\xa9\xf2\xd1\xc6\x70\x06\x37"
33115 "\x25\xee\xa7\x6e\xd9\x89\x86\x50"
33116 "\x2e\x07\xdb\xfb\x2a\x86\x45\x0e"
33117 "\x91\xf4\x7c\xbb\x12\x60\xe8\x3f"
33118 "\x71\xbe\x8f\x9d\x26\xef\xd9\x89"
33119 "\xc4\x8f\xd8\xc5\x73\xd8\x84\xaa"
33120 "\x2f\xad\x22\x1e\x7e\xcf\xa2\x08"
33121 "\x23\x45\x89\x42\xa0\x30\xeb\xbf"
33122 "\xa1\xed\xad\xd5\x76\xfa\x24\x8f"
33123 "\x98",
33124 .rlen = 1281,
33129 * CTS (Cipher Text Stealing) mode tests
33131 #define CTS_MODE_ENC_TEST_VECTORS 6
33132 #define CTS_MODE_DEC_TEST_VECTORS 6
33133 static struct cipher_testvec cts_mode_enc_tv_template[] = {
33134 { /* from rfc3962 */
33135 .klen = 16,
33136 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33137 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33138 .ilen = 17,
33139 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33140 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33141 "\x20",
33142 .rlen = 17,
33143 .result = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
33144 "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
33145 "\x97",
33146 }, {
33147 .klen = 16,
33148 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33149 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33150 .ilen = 31,
33151 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33152 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33153 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33154 "\x20\x47\x61\x75\x27\x73\x20",
33155 .rlen = 31,
33156 .result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
33157 "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
33158 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33159 "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
33160 }, {
33161 .klen = 16,
33162 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33163 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33164 .ilen = 32,
33165 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33166 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33167 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33168 "\x20\x47\x61\x75\x27\x73\x20\x43",
33169 .rlen = 32,
33170 .result = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33171 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
33172 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33173 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
33174 }, {
33175 .klen = 16,
33176 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33177 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33178 .ilen = 47,
33179 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33180 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33181 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33182 "\x20\x47\x61\x75\x27\x73\x20\x43"
33183 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
33184 "\x70\x6c\x65\x61\x73\x65\x2c",
33185 .rlen = 47,
33186 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33187 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33188 "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
33189 "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
33190 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33191 "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
33192 }, {
33193 .klen = 16,
33194 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33195 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33196 .ilen = 48,
33197 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33198 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33199 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33200 "\x20\x47\x61\x75\x27\x73\x20\x43"
33201 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
33202 "\x70\x6c\x65\x61\x73\x65\x2c\x20",
33203 .rlen = 48,
33204 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33205 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33206 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
33207 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
33208 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33209 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
33210 }, {
33211 .klen = 16,
33212 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33213 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33214 .ilen = 64,
33215 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33216 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33217 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33218 "\x20\x47\x61\x75\x27\x73\x20\x43"
33219 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
33220 "\x70\x6c\x65\x61\x73\x65\x2c\x20"
33221 "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
33222 "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
33223 .rlen = 64,
33224 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33225 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33226 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33227 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
33228 "\x48\x07\xef\xe8\x36\xee\x89\xa5"
33229 "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
33230 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
33231 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
33235 static struct cipher_testvec cts_mode_dec_tv_template[] = {
33236 { /* from rfc3962 */
33237 .klen = 16,
33238 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33239 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33240 .rlen = 17,
33241 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33242 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33243 "\x20",
33244 .ilen = 17,
33245 .input = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
33246 "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
33247 "\x97",
33248 }, {
33249 .klen = 16,
33250 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33251 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33252 .rlen = 31,
33253 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33254 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33255 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33256 "\x20\x47\x61\x75\x27\x73\x20",
33257 .ilen = 31,
33258 .input = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
33259 "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
33260 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33261 "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
33262 }, {
33263 .klen = 16,
33264 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33265 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33266 .rlen = 32,
33267 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33268 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33269 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33270 "\x20\x47\x61\x75\x27\x73\x20\x43",
33271 .ilen = 32,
33272 .input = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33273 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
33274 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33275 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
33276 }, {
33277 .klen = 16,
33278 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33279 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33280 .rlen = 47,
33281 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33282 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33283 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33284 "\x20\x47\x61\x75\x27\x73\x20\x43"
33285 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
33286 "\x70\x6c\x65\x61\x73\x65\x2c",
33287 .ilen = 47,
33288 .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33289 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33290 "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
33291 "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
33292 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33293 "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
33294 }, {
33295 .klen = 16,
33296 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33297 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33298 .rlen = 48,
33299 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33300 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33301 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33302 "\x20\x47\x61\x75\x27\x73\x20\x43"
33303 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
33304 "\x70\x6c\x65\x61\x73\x65\x2c\x20",
33305 .ilen = 48,
33306 .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33307 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33308 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
33309 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
33310 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33311 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
33312 }, {
33313 .klen = 16,
33314 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33315 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33316 .rlen = 64,
33317 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33318 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33319 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33320 "\x20\x47\x61\x75\x27\x73\x20\x43"
33321 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
33322 "\x70\x6c\x65\x61\x73\x65\x2c\x20"
33323 "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
33324 "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
33325 .ilen = 64,
33326 .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33327 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33328 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33329 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
33330 "\x48\x07\xef\xe8\x36\xee\x89\xa5"
33331 "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
33332 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
33333 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
33338 * Compression stuff.
33340 #define COMP_BUF_SIZE 512
33342 struct comp_testvec {
33343 int inlen, outlen;
33344 char input[COMP_BUF_SIZE];
33345 char output[COMP_BUF_SIZE];
33349 * Deflate test vectors (null-terminated strings).
33350 * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
33353 #define DEFLATE_COMP_TEST_VECTORS 2
33354 #define DEFLATE_DECOMP_TEST_VECTORS 2
33356 static struct comp_testvec deflate_comp_tv_template[] = {
33358 .inlen = 70,
33359 .outlen = 38,
33360 .input = "Join us now and share the software "
33361 "Join us now and share the software ",
33362 .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
33363 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
33364 "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
33365 "\x48\x55\x28\xce\x4f\x2b\x29\x07"
33366 "\x71\xbc\x08\x2b\x01\x00",
33367 }, {
33368 .inlen = 191,
33369 .outlen = 122,
33370 .input = "This document describes a compression method based on the DEFLATE"
33371 "compression algorithm. This document defines the application of "
33372 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
33373 .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
33374 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
33375 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
33376 "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
33377 "\x68\x12\x51\xae\x76\x67\xd6\x27"
33378 "\x19\x88\x1a\xde\x85\xab\x21\xf2"
33379 "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
33380 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
33381 "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
33382 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
33383 "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
33384 "\x52\x37\xed\x0e\x52\x6b\x59\x02"
33385 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
33386 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
33387 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
33388 "\xfa\x02",
33392 static struct comp_testvec deflate_decomp_tv_template[] = {
33394 .inlen = 122,
33395 .outlen = 191,
33396 .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
33397 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
33398 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
33399 "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
33400 "\x68\x12\x51\xae\x76\x67\xd6\x27"
33401 "\x19\x88\x1a\xde\x85\xab\x21\xf2"
33402 "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
33403 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
33404 "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
33405 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
33406 "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
33407 "\x52\x37\xed\x0e\x52\x6b\x59\x02"
33408 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
33409 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
33410 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
33411 "\xfa\x02",
33412 .output = "This document describes a compression method based on the DEFLATE"
33413 "compression algorithm. This document defines the application of "
33414 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
33415 }, {
33416 .inlen = 38,
33417 .outlen = 70,
33418 .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
33419 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
33420 "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
33421 "\x48\x55\x28\xce\x4f\x2b\x29\x07"
33422 "\x71\xbc\x08\x2b\x01\x00",
33423 .output = "Join us now and share the software "
33424 "Join us now and share the software ",
33429 * LZO test vectors (null-terminated strings).
33431 #define LZO_COMP_TEST_VECTORS 2
33432 #define LZO_DECOMP_TEST_VECTORS 2
33434 static struct comp_testvec lzo_comp_tv_template[] = {
33436 .inlen = 70,
33437 .outlen = 57,
33438 .input = "Join us now and share the software "
33439 "Join us now and share the software ",
33440 .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
33441 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
33442 "\x64\x20\x73\x68\x61\x72\x65\x20"
33443 "\x74\x68\x65\x20\x73\x6f\x66\x74"
33444 "\x77\x70\x01\x32\x88\x00\x0c\x65"
33445 "\x20\x74\x68\x65\x20\x73\x6f\x66"
33446 "\x74\x77\x61\x72\x65\x20\x11\x00"
33447 "\x00",
33448 }, {
33449 .inlen = 159,
33450 .outlen = 131,
33451 .input = "This document describes a compression method based on the LZO "
33452 "compression algorithm. This document defines the application of "
33453 "the LZO algorithm used in UBIFS.",
33454 .output = "\x00\x2c\x54\x68\x69\x73\x20\x64"
33455 "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
33456 "\x64\x65\x73\x63\x72\x69\x62\x65"
33457 "\x73\x20\x61\x20\x63\x6f\x6d\x70"
33458 "\x72\x65\x73\x73\x69\x6f\x6e\x20"
33459 "\x6d\x65\x74\x68\x6f\x64\x20\x62"
33460 "\x61\x73\x65\x64\x20\x6f\x6e\x20"
33461 "\x74\x68\x65\x20\x4c\x5a\x4f\x20"
33462 "\x2a\x8c\x00\x09\x61\x6c\x67\x6f"
33463 "\x72\x69\x74\x68\x6d\x2e\x20\x20"
33464 "\x2e\x54\x01\x03\x66\x69\x6e\x65"
33465 "\x73\x20\x74\x06\x05\x61\x70\x70"
33466 "\x6c\x69\x63\x61\x74\x76\x0a\x6f"
33467 "\x66\x88\x02\x60\x09\x27\xf0\x00"
33468 "\x0c\x20\x75\x73\x65\x64\x20\x69"
33469 "\x6e\x20\x55\x42\x49\x46\x53\x2e"
33470 "\x11\x00\x00",
33474 static struct comp_testvec lzo_decomp_tv_template[] = {
33476 .inlen = 133,
33477 .outlen = 159,
33478 .input = "\x00\x2b\x54\x68\x69\x73\x20\x64"
33479 "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
33480 "\x64\x65\x73\x63\x72\x69\x62\x65"
33481 "\x73\x20\x61\x20\x63\x6f\x6d\x70"
33482 "\x72\x65\x73\x73\x69\x6f\x6e\x20"
33483 "\x6d\x65\x74\x68\x6f\x64\x20\x62"
33484 "\x61\x73\x65\x64\x20\x6f\x6e\x20"
33485 "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
33486 "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
33487 "\x69\x74\x68\x6d\x2e\x20\x20\x54"
33488 "\x68\x69\x73\x2a\x54\x01\x02\x66"
33489 "\x69\x6e\x65\x73\x94\x06\x05\x61"
33490 "\x70\x70\x6c\x69\x63\x61\x74\x76"
33491 "\x0a\x6f\x66\x88\x02\x60\x09\x27"
33492 "\xf0\x00\x0c\x20\x75\x73\x65\x64"
33493 "\x20\x69\x6e\x20\x55\x42\x49\x46"
33494 "\x53\x2e\x11\x00\x00",
33495 .output = "This document describes a compression method based on the LZO "
33496 "compression algorithm. This document defines the application of "
33497 "the LZO algorithm used in UBIFS.",
33498 }, {
33499 .inlen = 46,
33500 .outlen = 70,
33501 .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
33502 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
33503 "\x64\x20\x73\x68\x61\x72\x65\x20"
33504 "\x74\x68\x65\x20\x73\x6f\x66\x74"
33505 "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
33506 "\x3d\x88\x00\x11\x00\x00",
33507 .output = "Join us now and share the software "
33508 "Join us now and share the software ",
33513 * Michael MIC test vectors from IEEE 802.11i
33515 #define MICHAEL_MIC_TEST_VECTORS 6
33517 static struct hash_testvec michael_mic_tv_template[] = {
33519 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
33520 .ksize = 8,
33521 .plaintext = zeroed_string,
33522 .psize = 0,
33523 .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
33526 .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
33527 .ksize = 8,
33528 .plaintext = "M",
33529 .psize = 1,
33530 .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
33533 .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
33534 .ksize = 8,
33535 .plaintext = "Mi",
33536 .psize = 2,
33537 .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
33540 .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
33541 .ksize = 8,
33542 .plaintext = "Mic",
33543 .psize = 3,
33544 .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
33547 .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
33548 .ksize = 8,
33549 .plaintext = "Mich",
33550 .psize = 4,
33551 .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
33554 .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
33555 .ksize = 8,
33556 .plaintext = "Michael",
33557 .psize = 7,
33558 .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
33563 * CRC32 test vectors
33565 #define CRC32_TEST_VECTORS 14
33567 static struct hash_testvec crc32_tv_template[] = {
33569 .key = "\x87\xa9\xcb\xed",
33570 .ksize = 4,
33571 .psize = 0,
33572 .digest = "\x87\xa9\xcb\xed",
33575 .key = "\xff\xff\xff\xff",
33576 .ksize = 4,
33577 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
33578 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
33579 "\x11\x12\x13\x14\x15\x16\x17\x18"
33580 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
33581 "\x21\x22\x23\x24\x25\x26\x27\x28",
33582 .psize = 40,
33583 .digest = "\x3a\xdf\x4b\xb0",
33586 .key = "\xff\xff\xff\xff",
33587 .ksize = 4,
33588 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
33589 "\x31\x32\x33\x34\x35\x36\x37\x38"
33590 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
33591 "\x41\x42\x43\x44\x45\x46\x47\x48"
33592 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
33593 .psize = 40,
33594 .digest = "\xa9\x7a\x7f\x7b",
33597 .key = "\xff\xff\xff\xff",
33598 .ksize = 4,
33599 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
33600 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
33601 "\x61\x62\x63\x64\x65\x66\x67\x68"
33602 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
33603 "\x71\x72\x73\x74\x75\x76\x77\x78",
33604 .psize = 40,
33605 .digest = "\xba\xd3\xf8\x1c",
33608 .key = "\xff\xff\xff\xff",
33609 .ksize = 4,
33610 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
33611 "\x81\x82\x83\x84\x85\x86\x87\x88"
33612 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
33613 "\x91\x92\x93\x94\x95\x96\x97\x98"
33614 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
33615 .psize = 40,
33616 .digest = "\xa8\xa9\xc2\x02",
33619 .key = "\xff\xff\xff\xff",
33620 .ksize = 4,
33621 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
33622 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
33623 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
33624 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
33625 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
33626 .psize = 40,
33627 .digest = "\x27\xf0\x57\xe2",
33630 .key = "\xff\xff\xff\xff",
33631 .ksize = 4,
33632 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
33633 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
33634 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
33635 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
33636 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
33637 .psize = 40,
33638 .digest = "\x49\x78\x10\x08",
33641 .key = "\x80\xea\xd3\xf1",
33642 .ksize = 4,
33643 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
33644 "\x31\x32\x33\x34\x35\x36\x37\x38"
33645 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
33646 "\x41\x42\x43\x44\x45\x46\x47\x48"
33647 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
33648 .psize = 40,
33649 .digest = "\x9a\xb1\xdc\xf0",
33652 .key = "\xf3\x4a\x1d\x5d",
33653 .ksize = 4,
33654 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
33655 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
33656 "\x61\x62\x63\x64\x65\x66\x67\x68"
33657 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
33658 "\x71\x72\x73\x74\x75\x76\x77\x78",
33659 .psize = 40,
33660 .digest = "\xb4\x97\xcc\xd4",
33663 .key = "\x2e\x80\x04\x59",
33664 .ksize = 4,
33665 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
33666 "\x81\x82\x83\x84\x85\x86\x87\x88"
33667 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
33668 "\x91\x92\x93\x94\x95\x96\x97\x98"
33669 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
33670 .psize = 40,
33671 .digest = "\x67\x9b\xfa\x79",
33674 .key = "\xa6\xcc\x19\x85",
33675 .ksize = 4,
33676 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
33677 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
33678 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
33679 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
33680 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
33681 .psize = 40,
33682 .digest = "\x24\xb5\x16\xef",
33685 .key = "\x41\xfc\xfe\x2d",
33686 .ksize = 4,
33687 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
33688 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
33689 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
33690 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
33691 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
33692 .psize = 40,
33693 .digest = "\x15\x94\x80\x39",
33696 .key = "\xff\xff\xff\xff",
33697 .ksize = 4,
33698 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
33699 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
33700 "\x11\x12\x13\x14\x15\x16\x17\x18"
33701 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
33702 "\x21\x22\x23\x24\x25\x26\x27\x28"
33703 "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
33704 "\x31\x32\x33\x34\x35\x36\x37\x38"
33705 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
33706 "\x41\x42\x43\x44\x45\x46\x47\x48"
33707 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
33708 "\x51\x52\x53\x54\x55\x56\x57\x58"
33709 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
33710 "\x61\x62\x63\x64\x65\x66\x67\x68"
33711 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
33712 "\x71\x72\x73\x74\x75\x76\x77\x78"
33713 "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
33714 "\x81\x82\x83\x84\x85\x86\x87\x88"
33715 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
33716 "\x91\x92\x93\x94\x95\x96\x97\x98"
33717 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
33718 "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
33719 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
33720 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
33721 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
33722 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
33723 "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
33724 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
33725 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
33726 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
33727 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
33728 .psize = 240,
33729 .digest = "\x6c\xc6\x56\xde",
33730 .np = 2,
33731 .tap = { 31, 209 }
33732 }, {
33733 .key = "\xff\xff\xff\xff",
33734 .ksize = 4,
33735 .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
33736 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
33737 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
33738 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
33739 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
33740 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
33741 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
33742 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
33743 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
33744 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
33745 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
33746 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
33747 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
33748 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
33749 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
33750 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
33751 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
33752 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
33753 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
33754 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
33755 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
33756 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
33757 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
33758 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
33759 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
33760 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
33761 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
33762 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
33763 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
33764 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
33765 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
33766 "\x47\xde\x75\x0c\x80\x17\xae\x22"
33767 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
33768 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
33769 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
33770 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
33771 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
33772 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
33773 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
33774 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
33775 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
33776 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
33777 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
33778 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
33779 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
33780 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
33781 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
33782 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
33783 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
33784 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
33785 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
33786 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
33787 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
33788 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
33789 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
33790 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
33791 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
33792 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
33793 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
33794 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
33795 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
33796 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
33797 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
33798 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
33799 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
33800 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
33801 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
33802 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
33803 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
33804 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
33805 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
33806 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
33807 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
33808 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
33809 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
33810 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
33811 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
33812 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
33813 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
33814 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
33815 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
33816 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
33817 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
33818 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
33819 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
33820 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
33821 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
33822 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
33823 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
33824 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
33825 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
33826 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
33827 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
33828 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
33829 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
33830 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
33831 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
33832 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
33833 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
33834 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
33835 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
33836 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
33837 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
33838 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
33839 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
33840 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
33841 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
33842 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
33843 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
33844 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
33845 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
33846 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
33847 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
33848 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
33849 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
33850 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
33851 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
33852 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
33853 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
33854 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
33855 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
33856 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
33857 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
33858 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
33859 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
33860 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
33861 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
33862 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
33863 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
33864 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
33865 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
33866 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
33867 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
33868 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
33869 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
33870 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
33871 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
33872 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
33873 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
33874 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
33875 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
33876 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
33877 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
33878 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
33879 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
33880 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
33881 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
33882 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
33883 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
33884 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
33885 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
33886 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
33887 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
33888 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
33889 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
33890 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
33891 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
33892 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
33893 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
33894 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
33895 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
33896 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
33897 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
33898 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
33899 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
33900 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
33901 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
33902 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
33903 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
33904 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
33905 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
33906 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
33907 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
33908 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
33909 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
33910 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
33911 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
33912 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
33913 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
33914 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
33915 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
33916 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
33917 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
33918 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
33919 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
33920 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
33921 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
33922 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
33923 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
33924 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
33925 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
33926 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
33927 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
33928 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
33929 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
33930 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
33931 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
33932 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
33933 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
33934 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
33935 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
33936 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
33937 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
33938 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
33939 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
33940 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
33941 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
33942 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
33943 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
33944 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
33945 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
33946 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
33947 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
33948 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
33949 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
33950 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
33951 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
33952 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
33953 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
33954 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
33955 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
33956 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
33957 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
33958 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
33959 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
33960 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
33961 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
33962 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
33963 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
33964 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
33965 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
33966 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
33967 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
33968 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
33969 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
33970 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
33971 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
33972 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
33973 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
33974 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
33975 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
33976 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
33977 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
33978 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
33979 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
33980 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
33981 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
33982 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
33983 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
33984 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
33985 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
33986 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
33987 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
33988 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
33989 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
33990 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
33991 .psize = 2048,
33992 .digest = "\xfb\x3a\x7a\xda",
33997 * CRC32C test vectors
33999 #define CRC32C_TEST_VECTORS 15
34001 static struct hash_testvec crc32c_tv_template[] = {
34003 .psize = 0,
34004 .digest = "\x00\x00\x00\x00",
34007 .key = "\x87\xa9\xcb\xed",
34008 .ksize = 4,
34009 .psize = 0,
34010 .digest = "\x78\x56\x34\x12",
34013 .key = "\xff\xff\xff\xff",
34014 .ksize = 4,
34015 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34016 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34017 "\x11\x12\x13\x14\x15\x16\x17\x18"
34018 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34019 "\x21\x22\x23\x24\x25\x26\x27\x28",
34020 .psize = 40,
34021 .digest = "\x7f\x15\x2c\x0e",
34024 .key = "\xff\xff\xff\xff",
34025 .ksize = 4,
34026 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
34027 "\x31\x32\x33\x34\x35\x36\x37\x38"
34028 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
34029 "\x41\x42\x43\x44\x45\x46\x47\x48"
34030 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
34031 .psize = 40,
34032 .digest = "\xf6\xeb\x80\xe9",
34035 .key = "\xff\xff\xff\xff",
34036 .ksize = 4,
34037 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
34038 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
34039 "\x61\x62\x63\x64\x65\x66\x67\x68"
34040 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
34041 "\x71\x72\x73\x74\x75\x76\x77\x78",
34042 .psize = 40,
34043 .digest = "\xed\xbd\x74\xde",
34046 .key = "\xff\xff\xff\xff",
34047 .ksize = 4,
34048 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
34049 "\x81\x82\x83\x84\x85\x86\x87\x88"
34050 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
34051 "\x91\x92\x93\x94\x95\x96\x97\x98"
34052 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
34053 .psize = 40,
34054 .digest = "\x62\xc8\x79\xd5",
34057 .key = "\xff\xff\xff\xff",
34058 .ksize = 4,
34059 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
34060 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
34061 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
34062 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
34063 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
34064 .psize = 40,
34065 .digest = "\xd0\x9a\x97\xba",
34068 .key = "\xff\xff\xff\xff",
34069 .ksize = 4,
34070 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
34071 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
34072 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
34073 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
34074 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
34075 .psize = 40,
34076 .digest = "\x13\xd9\x29\x2b",
34079 .key = "\x80\xea\xd3\xf1",
34080 .ksize = 4,
34081 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
34082 "\x31\x32\x33\x34\x35\x36\x37\x38"
34083 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
34084 "\x41\x42\x43\x44\x45\x46\x47\x48"
34085 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
34086 .psize = 40,
34087 .digest = "\x0c\xb5\xe2\xa2",
34090 .key = "\xf3\x4a\x1d\x5d",
34091 .ksize = 4,
34092 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
34093 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
34094 "\x61\x62\x63\x64\x65\x66\x67\x68"
34095 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
34096 "\x71\x72\x73\x74\x75\x76\x77\x78",
34097 .psize = 40,
34098 .digest = "\xd1\x7f\xfb\xa6",
34101 .key = "\x2e\x80\x04\x59",
34102 .ksize = 4,
34103 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
34104 "\x81\x82\x83\x84\x85\x86\x87\x88"
34105 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
34106 "\x91\x92\x93\x94\x95\x96\x97\x98"
34107 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
34108 .psize = 40,
34109 .digest = "\x59\x33\xe6\x7a",
34112 .key = "\xa6\xcc\x19\x85",
34113 .ksize = 4,
34114 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
34115 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
34116 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
34117 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
34118 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
34119 .psize = 40,
34120 .digest = "\xbe\x03\x01\xd2",
34123 .key = "\x41\xfc\xfe\x2d",
34124 .ksize = 4,
34125 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
34126 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
34127 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
34128 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
34129 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
34130 .psize = 40,
34131 .digest = "\x75\xd3\xc5\x24",
34134 .key = "\xff\xff\xff\xff",
34135 .ksize = 4,
34136 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34137 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34138 "\x11\x12\x13\x14\x15\x16\x17\x18"
34139 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34140 "\x21\x22\x23\x24\x25\x26\x27\x28"
34141 "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
34142 "\x31\x32\x33\x34\x35\x36\x37\x38"
34143 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
34144 "\x41\x42\x43\x44\x45\x46\x47\x48"
34145 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
34146 "\x51\x52\x53\x54\x55\x56\x57\x58"
34147 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
34148 "\x61\x62\x63\x64\x65\x66\x67\x68"
34149 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
34150 "\x71\x72\x73\x74\x75\x76\x77\x78"
34151 "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
34152 "\x81\x82\x83\x84\x85\x86\x87\x88"
34153 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
34154 "\x91\x92\x93\x94\x95\x96\x97\x98"
34155 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
34156 "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
34157 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
34158 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
34159 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
34160 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
34161 "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
34162 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
34163 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
34164 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
34165 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
34166 .psize = 240,
34167 .digest = "\x75\xd3\xc5\x24",
34168 .np = 2,
34169 .tap = { 31, 209 }
34170 }, {
34171 .key = "\xff\xff\xff\xff",
34172 .ksize = 4,
34173 .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
34174 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
34175 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
34176 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
34177 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
34178 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
34179 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
34180 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
34181 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
34182 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
34183 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
34184 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
34185 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
34186 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
34187 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
34188 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
34189 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
34190 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
34191 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
34192 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
34193 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
34194 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
34195 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
34196 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
34197 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
34198 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
34199 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
34200 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
34201 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
34202 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
34203 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
34204 "\x47\xde\x75\x0c\x80\x17\xae\x22"
34205 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
34206 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
34207 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
34208 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
34209 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
34210 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
34211 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
34212 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
34213 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
34214 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
34215 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
34216 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
34217 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
34218 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
34219 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
34220 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
34221 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
34222 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
34223 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
34224 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
34225 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
34226 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
34227 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
34228 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
34229 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
34230 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
34231 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
34232 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
34233 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
34234 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
34235 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
34236 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
34237 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
34238 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
34239 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
34240 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
34241 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
34242 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
34243 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
34244 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
34245 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
34246 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
34247 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
34248 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
34249 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
34250 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
34251 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
34252 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
34253 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
34254 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
34255 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
34256 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
34257 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
34258 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
34259 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
34260 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
34261 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
34262 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
34263 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
34264 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
34265 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
34266 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
34267 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
34268 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
34269 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
34270 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
34271 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
34272 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
34273 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
34274 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
34275 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
34276 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
34277 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
34278 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
34279 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
34280 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
34281 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
34282 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
34283 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
34284 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
34285 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
34286 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
34287 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
34288 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
34289 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
34290 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
34291 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
34292 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
34293 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
34294 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
34295 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
34296 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
34297 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
34298 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
34299 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
34300 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
34301 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
34302 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
34303 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
34304 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
34305 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
34306 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
34307 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
34308 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
34309 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
34310 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
34311 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
34312 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
34313 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
34314 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
34315 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
34316 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
34317 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
34318 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
34319 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
34320 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
34321 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
34322 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
34323 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
34324 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
34325 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
34326 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
34327 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
34328 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
34329 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
34330 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
34331 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
34332 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
34333 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
34334 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
34335 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
34336 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
34337 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
34338 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
34339 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
34340 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
34341 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
34342 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
34343 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
34344 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
34345 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
34346 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
34347 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
34348 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
34349 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
34350 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
34351 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
34352 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
34353 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
34354 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
34355 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
34356 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
34357 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
34358 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
34359 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
34360 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
34361 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
34362 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
34363 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
34364 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
34365 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
34366 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
34367 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
34368 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
34369 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
34370 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
34371 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
34372 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
34373 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
34374 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
34375 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
34376 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
34377 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
34378 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
34379 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
34380 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
34381 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
34382 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
34383 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
34384 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
34385 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
34386 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
34387 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
34388 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
34389 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
34390 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
34391 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
34392 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
34393 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
34394 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
34395 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
34396 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
34397 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
34398 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
34399 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
34400 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
34401 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
34402 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
34403 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
34404 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
34405 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
34406 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
34407 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
34408 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
34409 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
34410 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
34411 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
34412 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
34413 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
34414 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
34415 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
34416 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
34417 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
34418 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
34419 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
34420 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
34421 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
34422 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
34423 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
34424 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
34425 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
34426 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
34427 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
34428 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
34429 .psize = 2048,
34430 .digest = "\xec\x26\x4d\x95",
34435 * Blakcifn CRC test vectors
34437 #define BFIN_CRC_TEST_VECTORS 6
34439 static struct hash_testvec bfin_crc_tv_template[] = {
34441 .psize = 0,
34442 .digest = "\x00\x00\x00\x00",
34445 .key = "\x87\xa9\xcb\xed",
34446 .ksize = 4,
34447 .psize = 0,
34448 .digest = "\x87\xa9\xcb\xed",
34451 .key = "\xff\xff\xff\xff",
34452 .ksize = 4,
34453 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34454 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34455 "\x11\x12\x13\x14\x15\x16\x17\x18"
34456 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34457 "\x21\x22\x23\x24\x25\x26\x27\x28",
34458 .psize = 40,
34459 .digest = "\x84\x0c\x8d\xa2",
34462 .key = "\xff\xff\xff\xff",
34463 .ksize = 4,
34464 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34465 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34466 "\x11\x12\x13\x14\x15\x16\x17\x18"
34467 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34468 "\x21\x22\x23\x24\x25\x26",
34469 .psize = 38,
34470 .digest = "\x8c\x58\xec\xb7",
34473 .key = "\xff\xff\xff\xff",
34474 .ksize = 4,
34475 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34476 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34477 "\x11\x12\x13\x14\x15\x16\x17\x18"
34478 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34479 "\x21\x22\x23\x24\x25\x26\x27",
34480 .psize = 39,
34481 .digest = "\xdc\x50\x28\x7b",
34484 .key = "\xff\xff\xff\xff",
34485 .ksize = 4,
34486 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34487 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34488 "\x11\x12\x13\x14\x15\x16\x17\x18"
34489 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34490 "\x21\x22\x23\x24\x25\x26\x27\x28"
34491 "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
34492 "\x31\x32\x33\x34\x35\x36\x37\x38"
34493 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
34494 "\x41\x42\x43\x44\x45\x46\x47\x48"
34495 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
34496 "\x51\x52\x53\x54\x55\x56\x57\x58"
34497 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
34498 "\x61\x62\x63\x64\x65\x66\x67\x68"
34499 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
34500 "\x71\x72\x73\x74\x75\x76\x77\x78"
34501 "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
34502 "\x81\x82\x83\x84\x85\x86\x87\x88"
34503 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
34504 "\x91\x92\x93\x94\x95\x96\x97\x98"
34505 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
34506 "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
34507 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
34508 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
34509 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
34510 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
34511 "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
34512 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
34513 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
34514 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
34515 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
34516 .psize = 240,
34517 .digest = "\x10\x19\x4a\x5c",
34518 .np = 2,
34519 .tap = { 31, 209 }
34524 #define LZ4_COMP_TEST_VECTORS 1
34525 #define LZ4_DECOMP_TEST_VECTORS 1
34527 static struct comp_testvec lz4_comp_tv_template[] = {
34529 .inlen = 70,
34530 .outlen = 45,
34531 .input = "Join us now and share the software "
34532 "Join us now and share the software ",
34533 .output = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75"
34534 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
34535 "\x64\x20\x73\x68\x61\x72\x65\x20"
34536 "\x74\x68\x65\x20\x73\x6f\x66\x74"
34537 "\x77\x0d\x00\x0f\x23\x00\x0b\x50"
34538 "\x77\x61\x72\x65\x20",
34542 static struct comp_testvec lz4_decomp_tv_template[] = {
34544 .inlen = 45,
34545 .outlen = 70,
34546 .input = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75"
34547 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
34548 "\x64\x20\x73\x68\x61\x72\x65\x20"
34549 "\x74\x68\x65\x20\x73\x6f\x66\x74"
34550 "\x77\x0d\x00\x0f\x23\x00\x0b\x50"
34551 "\x77\x61\x72\x65\x20",
34552 .output = "Join us now and share the software "
34553 "Join us now and share the software ",
34557 #define LZ4HC_COMP_TEST_VECTORS 1
34558 #define LZ4HC_DECOMP_TEST_VECTORS 1
34560 static struct comp_testvec lz4hc_comp_tv_template[] = {
34562 .inlen = 70,
34563 .outlen = 45,
34564 .input = "Join us now and share the software "
34565 "Join us now and share the software ",
34566 .output = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75"
34567 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
34568 "\x64\x20\x73\x68\x61\x72\x65\x20"
34569 "\x74\x68\x65\x20\x73\x6f\x66\x74"
34570 "\x77\x0d\x00\x0f\x23\x00\x0b\x50"
34571 "\x77\x61\x72\x65\x20",
34575 static struct comp_testvec lz4hc_decomp_tv_template[] = {
34577 .inlen = 45,
34578 .outlen = 70,
34579 .input = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75"
34580 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
34581 "\x64\x20\x73\x68\x61\x72\x65\x20"
34582 "\x74\x68\x65\x20\x73\x6f\x66\x74"
34583 "\x77\x0d\x00\x0f\x23\x00\x0b\x50"
34584 "\x77\x61\x72\x65\x20",
34585 .output = "Join us now and share the software "
34586 "Join us now and share the software ",
34590 #endif /* _CRYPTO_TESTMGR_H */