Linux 4.8-rc8
[linux/fpc-iii.git] / crypto / testmgr.h
blobacb6bbff781a2d3be030d69109912efe5e6b865f
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
64 struct cipher_testvec {
65 char *key;
66 char *iv;
67 char *iv_out;
68 char *input;
69 char *result;
70 unsigned short tap[MAX_TAP];
71 int np;
72 unsigned char also_non_np;
73 bool fail;
74 unsigned char wk; /* weak key flag */
75 unsigned char klen;
76 unsigned short ilen;
77 unsigned short rlen;
80 struct aead_testvec {
81 char *key;
82 char *iv;
83 char *input;
84 char *assoc;
85 char *result;
86 unsigned char tap[MAX_TAP];
87 unsigned char atap[MAX_TAP];
88 int np;
89 int anp;
90 bool fail;
91 unsigned char novrfy; /* ccm dec verification failure expected */
92 unsigned char wk; /* weak key flag */
93 unsigned char klen;
94 unsigned short ilen;
95 unsigned short alen;
96 unsigned short rlen;
99 struct cprng_testvec {
100 char *key;
101 char *dt;
102 char *v;
103 char *result;
104 unsigned char klen;
105 unsigned short dtlen;
106 unsigned short vlen;
107 unsigned short rlen;
108 unsigned short loops;
111 struct drbg_testvec {
112 unsigned char *entropy;
113 size_t entropylen;
114 unsigned char *entpra;
115 unsigned char *entprb;
116 size_t entprlen;
117 unsigned char *addtla;
118 unsigned char *addtlb;
119 size_t addtllen;
120 unsigned char *pers;
121 size_t perslen;
122 unsigned char *expected;
123 size_t expectedlen;
126 struct akcipher_testvec {
127 unsigned char *key;
128 unsigned char *m;
129 unsigned char *c;
130 unsigned int key_len;
131 unsigned int m_size;
132 unsigned int c_size;
133 bool public_key_vec;
136 struct kpp_testvec {
137 unsigned char *secret;
138 unsigned char *b_public;
139 unsigned char *expected_a_public;
140 unsigned char *expected_ss;
141 unsigned short secret_size;
142 unsigned short b_public_size;
143 unsigned short expected_a_public_size;
144 unsigned short expected_ss_size;
147 static char zeroed_string[48];
150 * RSA test vectors. Borrowed from openSSL.
152 #ifdef CONFIG_CRYPTO_FIPS
153 #define RSA_TEST_VECTORS 2
154 #else
155 #define RSA_TEST_VECTORS 5
156 #endif
157 static struct akcipher_testvec rsa_tv_template[] = {
159 #ifndef CONFIG_CRYPTO_FIPS
160 .key =
161 "\x30\x81\x9A" /* sequence of 154 bytes */
162 "\x02\x01\x01" /* version - integer of 1 byte */
163 "\x02\x41" /* modulus - integer of 65 bytes */
164 "\x00\xAA\x36\xAB\xCE\x88\xAC\xFD\xFF\x55\x52\x3C\x7F\xC4\x52\x3F"
165 "\x90\xEF\xA0\x0D\xF3\x77\x4A\x25\x9F\x2E\x62\xB4\xC5\xD9\x9C\xB5"
166 "\xAD\xB3\x00\xA0\x28\x5E\x53\x01\x93\x0E\x0C\x70\xFB\x68\x76\x93"
167 "\x9C\xE6\x16\xCE\x62\x4A\x11\xE0\x08\x6D\x34\x1E\xBC\xAC\xA0\xA1"
168 "\xF5"
169 "\x02\x01\x11" /* public key - integer of 1 byte */
170 "\x02\x40" /* private key - integer of 64 bytes */
171 "\x0A\x03\x37\x48\x62\x64\x87\x69\x5F\x5F\x30\xBC\x38\xB9\x8B\x44"
172 "\xC2\xCD\x2D\xFF\x43\x40\x98\xCD\x20\xD8\xA1\x38\xD0\x90\xBF\x64"
173 "\x79\x7C\x3F\xA7\xA2\xCD\xCB\x3C\xD1\xE0\xBD\xBA\x26\x54\xB4\xF9"
174 "\xDF\x8E\x8A\xE5\x9D\x73\x3D\x9F\x33\xB3\x01\x62\x4A\xFD\x1D\x51"
175 "\x02\x01\x00" /* prime1 - integer of 1 byte */
176 "\x02\x01\x00" /* prime2 - integer of 1 byte */
177 "\x02\x01\x00" /* exponent1 - integer of 1 byte */
178 "\x02\x01\x00" /* exponent2 - integer of 1 byte */
179 "\x02\x01\x00", /* coefficient - integer of 1 byte */
180 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
181 .c =
182 "\x63\x1c\xcd\x7b\xe1\x7e\xe4\xde\xc9\xa8\x89\xa1\x74\xcb\x3c\x63"
183 "\x7d\x24\xec\x83\xc3\x15\xe4\x7f\x73\x05\x34\xd1\xec\x22\xbb\x8a"
184 "\x5e\x32\x39\x6d\xc1\x1d\x7d\x50\x3b\x9f\x7a\xad\xf0\x2e\x25\x53"
185 "\x9f\x6e\xbd\x4c\x55\x84\x0c\x9b\xcf\x1a\x4b\x51\x1e\x9e\x0c\x06",
186 .key_len = 157,
187 .m_size = 8,
188 .c_size = 64,
189 }, {
190 .key =
191 "\x30\x82\x01\x1D" /* sequence of 285 bytes */
192 "\x02\x01\x01" /* version - integer of 1 byte */
193 "\x02\x81\x81" /* modulus - integer of 129 bytes */
194 "\x00\xBB\xF8\x2F\x09\x06\x82\xCE\x9C\x23\x38\xAC\x2B\x9D\xA8\x71"
195 "\xF7\x36\x8D\x07\xEE\xD4\x10\x43\xA4\x40\xD6\xB6\xF0\x74\x54\xF5"
196 "\x1F\xB8\xDF\xBA\xAF\x03\x5C\x02\xAB\x61\xEA\x48\xCE\xEB\x6F\xCD"
197 "\x48\x76\xED\x52\x0D\x60\xE1\xEC\x46\x19\x71\x9D\x8A\x5B\x8B\x80"
198 "\x7F\xAF\xB8\xE0\xA3\xDF\xC7\x37\x72\x3E\xE6\xB4\xB7\xD9\x3A\x25"
199 "\x84\xEE\x6A\x64\x9D\x06\x09\x53\x74\x88\x34\xB2\x45\x45\x98\x39"
200 "\x4E\xE0\xAA\xB1\x2D\x7B\x61\xA5\x1F\x52\x7A\x9A\x41\xF6\xC1\x68"
201 "\x7F\xE2\x53\x72\x98\xCA\x2A\x8F\x59\x46\xF8\xE5\xFD\x09\x1D\xBD"
202 "\xCB"
203 "\x02\x01\x11" /* public key - integer of 1 byte */
204 "\x02\x81\x81" /* private key - integer of 129 bytes */
205 "\x00\xA5\xDA\xFC\x53\x41\xFA\xF2\x89\xC4\xB9\x88\xDB\x30\xC1\xCD"
206 "\xF8\x3F\x31\x25\x1E\x06\x68\xB4\x27\x84\x81\x38\x01\x57\x96\x41"
207 "\xB2\x94\x10\xB3\xC7\x99\x8D\x6B\xC4\x65\x74\x5E\x5C\x39\x26\x69"
208 "\xD6\x87\x0D\xA2\xC0\x82\xA9\x39\xE3\x7F\xDC\xB8\x2E\xC9\x3E\xDA"
209 "\xC9\x7F\xF3\xAD\x59\x50\xAC\xCF\xBC\x11\x1C\x76\xF1\xA9\x52\x94"
210 "\x44\xE5\x6A\xAF\x68\xC5\x6C\x09\x2C\xD3\x8D\xC3\xBE\xF5\xD2\x0A"
211 "\x93\x99\x26\xED\x4F\x74\xA1\x3E\xDD\xFB\xE1\xA1\xCE\xCC\x48\x94"
212 "\xAF\x94\x28\xC2\xB7\xB8\x88\x3F\xE4\x46\x3A\x4B\xC8\x5B\x1C\xB3"
213 "\xC1"
214 "\x02\x01\x00" /* prime1 - integer of 1 byte */
215 "\x02\x01\x00" /* prime2 - integer of 1 byte */
216 "\x02\x01\x00" /* exponent1 - integer of 1 byte */
217 "\x02\x01\x00" /* exponent2 - integer of 1 byte */
218 "\x02\x01\x00", /* coefficient - integer of 1 byte */
219 .key_len = 289,
220 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
221 .c =
222 "\x74\x1b\x55\xac\x47\xb5\x08\x0a\x6e\x2b\x2d\xf7\x94\xb8\x8a\x95"
223 "\xed\xa3\x6b\xc9\x29\xee\xb2\x2c\x80\xc3\x39\x3b\x8c\x62\x45\x72"
224 "\xc2\x7f\x74\x81\x91\x68\x44\x48\x5a\xdc\xa0\x7e\xa7\x0b\x05\x7f"
225 "\x0e\xa0\x6c\xe5\x8f\x19\x4d\xce\x98\x47\x5f\xbd\x5f\xfe\xe5\x34"
226 "\x59\x89\xaf\xf0\xba\x44\xd7\xf1\x1a\x50\x72\xef\x5e\x4a\xb6\xb7"
227 "\x54\x34\xd1\xc4\x83\x09\xdf\x0f\x91\x5f\x7d\x91\x70\x2f\xd4\x13"
228 "\xcc\x5e\xa4\x6c\xc3\x4d\x28\xef\xda\xaf\xec\x14\x92\xfc\xa3\x75"
229 "\x13\xb4\xc1\xa1\x11\xfc\x40\x2f\x4c\x9d\xdf\x16\x76\x11\x20\x6b",
230 .m_size = 8,
231 .c_size = 128,
232 }, {
233 #endif
234 .key =
235 "\x30\x82\x02\x1F" /* sequence of 543 bytes */
236 "\x02\x01\x01" /* version - integer of 1 byte */
237 "\x02\x82\x01\x00" /* modulus - integer of 256 bytes */
238 "\xDB\x10\x1A\xC2\xA3\xF1\xDC\xFF\x13\x6B\xED\x44\xDF\xF0\x02\x6D"
239 "\x13\xC7\x88\xDA\x70\x6B\x54\xF1\xE8\x27\xDC\xC3\x0F\x99\x6A\xFA"
240 "\xC6\x67\xFF\x1D\x1E\x3C\x1D\xC1\xB5\x5F\x6C\xC0\xB2\x07\x3A\x6D"
241 "\x41\xE4\x25\x99\xAC\xFC\xD2\x0F\x02\xD3\xD1\x54\x06\x1A\x51\x77"
242 "\xBD\xB6\xBF\xEA\xA7\x5C\x06\xA9\x5D\x69\x84\x45\xD7\xF5\x05\xBA"
243 "\x47\xF0\x1B\xD7\x2B\x24\xEC\xCB\x9B\x1B\x10\x8D\x81\xA0\xBE\xB1"
244 "\x8C\x33\xE4\x36\xB8\x43\xEB\x19\x2A\x81\x8D\xDE\x81\x0A\x99\x48"
245 "\xB6\xF6\xBC\xCD\x49\x34\x3A\x8F\x26\x94\xE3\x28\x82\x1A\x7C\x8F"
246 "\x59\x9F\x45\xE8\x5D\x1A\x45\x76\x04\x56\x05\xA1\xD0\x1B\x8C\x77"
247 "\x6D\xAF\x53\xFA\x71\xE2\x67\xE0\x9A\xFE\x03\xA9\x85\xD2\xC9\xAA"
248 "\xBA\x2A\xBC\xF4\xA0\x08\xF5\x13\x98\x13\x5D\xF0\xD9\x33\x34\x2A"
249 "\x61\xC3\x89\x55\xF0\xAE\x1A\x9C\x22\xEE\x19\x05\x8D\x32\xFE\xEC"
250 "\x9C\x84\xBA\xB7\xF9\x6C\x3A\x4F\x07\xFC\x45\xEB\x12\xE5\x7B\xFD"
251 "\x55\xE6\x29\x69\xD1\xC2\xE8\xB9\x78\x59\xF6\x79\x10\xC6\x4E\xEB"
252 "\x6A\x5E\xB9\x9A\xC7\xC4\x5B\x63\xDA\xA3\x3F\x5E\x92\x7A\x81\x5E"
253 "\xD6\xB0\xE2\x62\x8F\x74\x26\xC2\x0C\xD3\x9A\x17\x47\xE6\x8E\xAB"
254 "\x02\x03\x01\x00\x01" /* public key - integer of 3 bytes */
255 "\x02\x82\x01\x00" /* private key - integer of 256 bytes */
256 "\x52\x41\xF4\xDA\x7B\xB7\x59\x55\xCA\xD4\x2F\x0F\x3A\xCB\xA4\x0D"
257 "\x93\x6C\xCC\x9D\xC1\xB2\xFB\xFD\xAE\x40\x31\xAC\x69\x52\x21\x92"
258 "\xB3\x27\xDF\xEA\xEE\x2C\x82\xBB\xF7\x40\x32\xD5\x14\xC4\x94\x12"
259 "\xEC\xB8\x1F\xCA\x59\xE3\xC1\x78\xF3\x85\xD8\x47\xA5\xD7\x02\x1A"
260 "\x65\x79\x97\x0D\x24\xF4\xF0\x67\x6E\x75\x2D\xBF\x10\x3D\xA8\x7D"
261 "\xEF\x7F\x60\xE4\xE6\x05\x82\x89\x5D\xDF\xC6\xD2\x6C\x07\x91\x33"
262 "\x98\x42\xF0\x02\x00\x25\x38\xC5\x85\x69\x8A\x7D\x2F\x95\x6C\x43"
263 "\x9A\xB8\x81\xE2\xD0\x07\x35\xAA\x05\x41\xC9\x1E\xAF\xE4\x04\x3B"
264 "\x19\xB8\x73\xA2\xAC\x4B\x1E\x66\x48\xD8\x72\x1F\xAC\xF6\xCB\xBC"
265 "\x90\x09\xCA\xEC\x0C\xDC\xF9\x2C\xD7\xEB\xAE\xA3\xA4\x47\xD7\x33"
266 "\x2F\x8A\xCA\xBC\x5E\xF0\x77\xE4\x97\x98\x97\xC7\x10\x91\x7D\x2A"
267 "\xA6\xFF\x46\x83\x97\xDE\xE9\xE2\x17\x03\x06\x14\xE2\xD7\xB1\x1D"
268 "\x77\xAF\x51\x27\x5B\x5E\x69\xB8\x81\xE6\x11\xC5\x43\x23\x81\x04"
269 "\x62\xFF\xE9\x46\xB8\xD8\x44\xDB\xA5\xCC\x31\x54\x34\xCE\x3E\x82"
270 "\xD6\xBF\x7A\x0B\x64\x21\x6D\x88\x7E\x5B\x45\x12\x1E\x63\x8D\x49"
271 "\xA7\x1D\xD9\x1E\x06\xCD\xE8\xBA\x2C\x8C\x69\x32\xEA\xBE\x60\x71"
272 "\x02\x01\x00" /* prime1 - integer of 1 byte */
273 "\x02\x01\x00" /* prime2 - integer of 1 byte */
274 "\x02\x01\x00" /* exponent1 - integer of 1 byte */
275 "\x02\x01\x00" /* exponent2 - integer of 1 byte */
276 "\x02\x01\x00", /* coefficient - integer of 1 byte */
277 .key_len = 547,
278 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
279 .c =
280 "\xb2\x97\x76\xb4\xae\x3e\x38\x3c\x7e\x64\x1f\xcc\xa2\x7f\xf6\xbe"
281 "\xcf\x49\xbc\x48\xd3\x6c\x8f\x0a\x0e\xc1\x73\xbd\x7b\x55\x79\x36"
282 "\x0e\xa1\x87\x88\xb9\x2c\x90\xa6\x53\x5e\xe9\xef\xc4\xe2\x4d\xdd"
283 "\xf7\xa6\x69\x82\x3f\x56\xa4\x7b\xfb\x62\xe0\xae\xb8\xd3\x04\xb3"
284 "\xac\x5a\x15\x2a\xe3\x19\x9b\x03\x9a\x0b\x41\xda\x64\xec\x0a\x69"
285 "\xfc\xf2\x10\x92\xf3\xc1\xbf\x84\x7f\xfd\x2c\xae\xc8\xb5\xf6\x41"
286 "\x70\xc5\x47\x03\x8a\xf8\xff\x6f\x3f\xd2\x6f\x09\xb4\x22\xf3\x30"
287 "\xbe\xa9\x85\xcb\x9c\x8d\xf9\x8f\xeb\x32\x91\xa2\x25\x84\x8f\xf5"
288 "\xdc\xc7\x06\x9c\x2d\xe5\x11\x2c\x09\x09\x87\x09\xa9\xf6\x33\x73"
289 "\x90\xf1\x60\xf2\x65\xdd\x30\xa5\x66\xce\x62\x7b\xd0\xf8\x2d\x3d"
290 "\x19\x82\x77\xe3\x0a\x5f\x75\x2f\x8e\xb1\xe5\xe8\x91\x35\x1b\x3b"
291 "\x33\xb7\x66\x92\xd1\xf2\x8e\x6f\xe5\x75\x0c\xad\x36\xfb\x4e\xd0"
292 "\x66\x61\xbd\x49\xfe\xf4\x1a\xa2\x2b\x49\xfe\x03\x4c\x74\x47\x8d"
293 "\x9a\x66\xb2\x49\x46\x4d\x77\xea\x33\x4d\x6b\x3c\xb4\x49\x4a\xc6"
294 "\x7d\x3d\xb5\xb9\x56\x41\x15\x67\x0f\x94\x3c\x93\x65\x27\xe0\x21"
295 "\x5d\x59\xc3\x62\xd5\xa6\xda\x38\x26\x22\x5e\x34\x1c\x94\xaf\x98",
296 .m_size = 8,
297 .c_size = 256,
298 }, {
299 .key =
300 "\x30\x82\x01\x09" /* sequence of 265 bytes */
301 "\x02\x82\x01\x00" /* modulus - integer of 256 bytes */
302 "\xDB\x10\x1A\xC2\xA3\xF1\xDC\xFF\x13\x6B\xED\x44\xDF\xF0\x02\x6D"
303 "\x13\xC7\x88\xDA\x70\x6B\x54\xF1\xE8\x27\xDC\xC3\x0F\x99\x6A\xFA"
304 "\xC6\x67\xFF\x1D\x1E\x3C\x1D\xC1\xB5\x5F\x6C\xC0\xB2\x07\x3A\x6D"
305 "\x41\xE4\x25\x99\xAC\xFC\xD2\x0F\x02\xD3\xD1\x54\x06\x1A\x51\x77"
306 "\xBD\xB6\xBF\xEA\xA7\x5C\x06\xA9\x5D\x69\x84\x45\xD7\xF5\x05\xBA"
307 "\x47\xF0\x1B\xD7\x2B\x24\xEC\xCB\x9B\x1B\x10\x8D\x81\xA0\xBE\xB1"
308 "\x8C\x33\xE4\x36\xB8\x43\xEB\x19\x2A\x81\x8D\xDE\x81\x0A\x99\x48"
309 "\xB6\xF6\xBC\xCD\x49\x34\x3A\x8F\x26\x94\xE3\x28\x82\x1A\x7C\x8F"
310 "\x59\x9F\x45\xE8\x5D\x1A\x45\x76\x04\x56\x05\xA1\xD0\x1B\x8C\x77"
311 "\x6D\xAF\x53\xFA\x71\xE2\x67\xE0\x9A\xFE\x03\xA9\x85\xD2\xC9\xAA"
312 "\xBA\x2A\xBC\xF4\xA0\x08\xF5\x13\x98\x13\x5D\xF0\xD9\x33\x34\x2A"
313 "\x61\xC3\x89\x55\xF0\xAE\x1A\x9C\x22\xEE\x19\x05\x8D\x32\xFE\xEC"
314 "\x9C\x84\xBA\xB7\xF9\x6C\x3A\x4F\x07\xFC\x45\xEB\x12\xE5\x7B\xFD"
315 "\x55\xE6\x29\x69\xD1\xC2\xE8\xB9\x78\x59\xF6\x79\x10\xC6\x4E\xEB"
316 "\x6A\x5E\xB9\x9A\xC7\xC4\x5B\x63\xDA\xA3\x3F\x5E\x92\x7A\x81\x5E"
317 "\xD6\xB0\xE2\x62\x8F\x74\x26\xC2\x0C\xD3\x9A\x17\x47\xE6\x8E\xAB"
318 "\x02\x03\x01\x00\x01", /* public key - integer of 3 bytes */
319 .key_len = 269,
320 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
321 .c =
322 "\xb2\x97\x76\xb4\xae\x3e\x38\x3c\x7e\x64\x1f\xcc\xa2\x7f\xf6\xbe"
323 "\xcf\x49\xbc\x48\xd3\x6c\x8f\x0a\x0e\xc1\x73\xbd\x7b\x55\x79\x36"
324 "\x0e\xa1\x87\x88\xb9\x2c\x90\xa6\x53\x5e\xe9\xef\xc4\xe2\x4d\xdd"
325 "\xf7\xa6\x69\x82\x3f\x56\xa4\x7b\xfb\x62\xe0\xae\xb8\xd3\x04\xb3"
326 "\xac\x5a\x15\x2a\xe3\x19\x9b\x03\x9a\x0b\x41\xda\x64\xec\x0a\x69"
327 "\xfc\xf2\x10\x92\xf3\xc1\xbf\x84\x7f\xfd\x2c\xae\xc8\xb5\xf6\x41"
328 "\x70\xc5\x47\x03\x8a\xf8\xff\x6f\x3f\xd2\x6f\x09\xb4\x22\xf3\x30"
329 "\xbe\xa9\x85\xcb\x9c\x8d\xf9\x8f\xeb\x32\x91\xa2\x25\x84\x8f\xf5"
330 "\xdc\xc7\x06\x9c\x2d\xe5\x11\x2c\x09\x09\x87\x09\xa9\xf6\x33\x73"
331 "\x90\xf1\x60\xf2\x65\xdd\x30\xa5\x66\xce\x62\x7b\xd0\xf8\x2d\x3d"
332 "\x19\x82\x77\xe3\x0a\x5f\x75\x2f\x8e\xb1\xe5\xe8\x91\x35\x1b\x3b"
333 "\x33\xb7\x66\x92\xd1\xf2\x8e\x6f\xe5\x75\x0c\xad\x36\xfb\x4e\xd0"
334 "\x66\x61\xbd\x49\xfe\xf4\x1a\xa2\x2b\x49\xfe\x03\x4c\x74\x47\x8d"
335 "\x9a\x66\xb2\x49\x46\x4d\x77\xea\x33\x4d\x6b\x3c\xb4\x49\x4a\xc6"
336 "\x7d\x3d\xb5\xb9\x56\x41\x15\x67\x0f\x94\x3c\x93\x65\x27\xe0\x21"
337 "\x5d\x59\xc3\x62\xd5\xa6\xda\x38\x26\x22\x5e\x34\x1c\x94\xaf\x98",
338 .m_size = 8,
339 .c_size = 256,
340 .public_key_vec = true,
341 }, {
342 .key =
343 "\x30\x82\x09\x29" /* sequence of 2345 bytes */
344 "\x02\x01\x00" /* version integer of 1 byte */
345 "\x02\x82\x02\x01" /* modulus - integer of 513 bytes */
346 "\x00\xC3\x8B\x55\x7B\x73\x4D\xFF\xE9\x9B\xC6\xDC\x67\x3C\xB4\x8E"
347 "\xA0\x86\xED\xF2\xB9\x50\x5C\x54\x5C\xBA\xE4\xA1\xB2\xA7\xAE\x2F"
348 "\x1B\x7D\xF1\xFB\xAC\x79\xC5\xDF\x1A\x00\xC9\xB2\xC1\x61\x25\x33"
349 "\xE6\x9C\xE9\xCF\xD6\x27\xC4\x4E\x44\x30\x44\x5E\x08\xA1\x87\x52"
350 "\xCC\x6B\x97\x70\x8C\xBC\xA5\x06\x31\x0C\xD4\x2F\xD5\x7D\x26\x24"
351 "\xA2\xE2\xAC\x78\xF4\x53\x14\xCE\xF7\x19\x2E\xD7\xF7\xE6\x0C\xB9"
352 "\x56\x7F\x0B\xF1\xB1\xE2\x43\x70\xBD\x86\x1D\xA1\xCC\x2B\x19\x08"
353 "\x76\xEF\x91\xAC\xBF\x20\x24\x0D\x38\xC0\x89\xB8\x9A\x70\xB3\x64"
354 "\xD9\x8F\x80\x41\x10\x5B\x9F\xB1\xCB\x76\x43\x00\x21\x25\x36\xD4"
355 "\x19\xFC\x55\x95\x10\xE4\x26\x74\x98\x2C\xD9\xBD\x0B\x2B\x04\xC2"
356 "\xAC\x82\x38\xB4\xDD\x4C\x04\x7E\x51\x36\x40\x1E\x0B\xC4\x7C\x25"
357 "\xDD\x4B\xB2\xE7\x20\x0A\x57\xF9\xB4\x94\xC3\x08\x33\x22\x6F\x8B"
358 "\x48\xDB\x03\x68\x5A\x5B\xBA\xAE\xF3\xAD\xCF\xC3\x6D\xBA\xF1\x28"
359 "\x67\x7E\x6C\x79\x07\xDE\xFC\xED\xE7\x96\xE3\x6C\xE0\x2C\x87\xF8"
360 "\x02\x01\x28\x38\x43\x21\x53\x84\x69\x75\x78\x15\x7E\xEE\xD2\x1B"
361 "\xB9\x23\x40\xA8\x86\x1E\x38\x83\xB2\x73\x1D\x53\xFB\x9E\x2A\x8A"
362 "\xB2\x75\x35\x01\xC3\xC3\xC4\x94\xE8\x84\x86\x64\x81\xF4\x42\xAA"
363 "\x3C\x0E\xD6\x4F\xBC\x0A\x09\x2D\xE7\x1B\xD4\x10\xA8\x54\xEA\x89"
364 "\x84\x8A\xCB\xF7\x5A\x3C\xCA\x76\x08\x29\x62\xB4\x6A\x22\xDF\x14"
365 "\x95\x71\xFD\xB6\x86\x39\xB8\x8B\xF8\x91\x7F\x38\xAA\x14\xCD\xE5"
366 "\xF5\x1D\xC2\x6D\x53\x69\x52\x84\x7F\xA3\x1A\x5E\x26\x04\x83\x06"
367 "\x73\x52\x56\xCF\x76\x26\xC9\xDD\x75\xD7\xFC\xF4\x69\xD8\x7B\x55"
368 "\xB7\x68\x13\x53\xB9\xE7\x89\xC3\xE8\xD6\x6E\xA7\x6D\xEA\x81\xFD"
369 "\xC4\xB7\x05\x5A\xB7\x41\x0A\x23\x8E\x03\x8A\x1C\xAE\xD3\x1E\xCE"
370 "\xE3\x5E\xFC\x19\x4A\xEE\x61\x9B\x8E\xE5\xE5\xDD\x85\xF9\x41\xEC"
371 "\x14\x53\x92\xF7\xDD\x06\x85\x02\x91\xE3\xEB\x6C\x43\x03\xB1\x36"
372 "\x7B\x89\x5A\xA8\xEB\xFC\xD5\xA8\x35\xDC\x81\xD9\x5C\xBD\xCA\xDC"
373 "\x9B\x98\x0B\x06\x5D\x0C\x5B\xEE\xF3\xD5\xCC\x57\xC9\x71\x2F\x90"
374 "\x3B\x3C\xF0\x8E\x4E\x35\x48\xAE\x63\x74\xA9\xFC\x72\x75\x8E\x34"
375 "\xA8\xF2\x1F\xEA\xDF\x3A\x37\x2D\xE5\x39\x39\xF8\x57\x58\x3C\x04"
376 "\xFE\x87\x06\x98\xBC\x7B\xD3\x21\x36\x60\x25\x54\xA7\x3D\xFA\x91"
377 "\xCC\xA8\x0B\x92\x8E\xB4\xF7\x06\xFF\x1E\x95\xCB\x07\x76\x97\x3B"
378 "\x9D"
379 "\x02\x03\x01\x00\x01" /* public key integer of 3 bytes */
380 "\x02\x82\x02\x00" /* private key integer of 512 bytes */
381 "\x74\xA9\xE0\x6A\x32\xB4\xCA\x85\xD9\x86\x9F\x60\x88\x7B\x40\xCC"
382 "\xCD\x33\x91\xA8\xB6\x25\x1F\xBF\xE3\x51\x1C\x97\xB6\x2A\xD9\xB8"
383 "\x11\x40\x19\xE3\x21\x13\xC8\xB3\x7E\xDC\xD7\x65\x40\x4C\x2D\xD6"
384 "\xDC\xAF\x32\x6C\x96\x75\x2C\x2C\xCA\x8F\x3F\x7A\xEE\xC4\x09\xC6"
385 "\x24\x3A\xC9\xCF\x6D\x8D\x17\x50\x94\x52\xD3\xE7\x0F\x2F\x7E\x94"
386 "\x1F\xA0\xBE\xD9\x25\xE8\x38\x42\x7C\x27\xD2\x79\xF8\x2A\x87\x38"
387 "\xEF\xBB\x74\x8B\xA8\x6E\x8C\x08\xC6\xC7\x4F\x0C\xBC\x79\xC6\xEF"
388 "\x0E\xA7\x5E\xE4\xF8\x8C\x09\xC7\x5E\x37\xCC\x87\x77\xCD\xCF\xD1"
389 "\x6D\x28\x1B\xA9\x62\xC0\xB8\x16\xA7\x8B\xF9\xBB\xCC\xB4\x15\x7F"
390 "\x1B\x69\x03\xF2\x7B\xEB\xE5\x8C\x14\xD6\x23\x4F\x52\x6F\x18\xA6"
391 "\x4B\x5B\x01\xAD\x35\xF9\x48\x53\xB3\x86\x35\x66\xD7\xE7\x29\xC0"
392 "\x09\xB5\xC6\xE6\xFA\xC4\xDA\x19\xBE\xD7\x4D\x41\x14\xBE\x6F\xDF"
393 "\x1B\xAB\xC0\xCA\x88\x07\xAC\xF1\x7D\x35\x83\x67\x28\x2D\x50\xE9"
394 "\xCE\x27\x71\x5E\x1C\xCF\xD2\x30\x65\x79\x72\x2F\x9C\xE1\xD2\x39"
395 "\x7F\xEF\x3B\x01\xF2\x14\x1D\xDF\xBD\x51\xD3\xA1\x53\x62\xCF\x5F"
396 "\x79\x84\xCE\x06\x96\x69\x29\x49\x82\x1C\x71\x4A\xA1\x66\xC8\x2F"
397 "\xFD\x7B\x96\x7B\xFC\xC4\x26\x58\xC4\xFC\x7C\xAF\xB5\xE8\x95\x83"
398 "\x87\xCB\x46\xDE\x97\xA7\xB3\xA2\x54\x5B\xD7\xAF\xAB\xEB\xC8\xF3"
399 "\x55\x9D\x48\x2B\x30\x9C\xDC\x26\x4B\xC2\x89\x45\x13\xB2\x01\x9A"
400 "\xA4\x65\xC3\xEC\x24\x2D\x26\x97\xEB\x80\x8A\x9D\x03\xBC\x59\x66"
401 "\x9E\xE2\xBB\xBB\x63\x19\x64\x93\x11\x7B\x25\x65\x30\xCD\x5B\x4B"
402 "\x2C\xFF\xDC\x2D\x30\x87\x1F\x3C\x88\x07\xD0\xFC\x48\xCC\x05\x8A"
403 "\xA2\xC8\x39\x3E\xD5\x51\xBC\x0A\xBE\x6D\xA8\xA0\xF6\x88\x06\x79"
404 "\x13\xFF\x1B\x45\xDA\x54\xC9\x24\x25\x8A\x75\x0A\x26\xD1\x69\x81"
405 "\x14\x14\xD1\x79\x7D\x8E\x76\xF2\xE0\xEB\xDD\x0F\xDE\xC2\xEC\x80"
406 "\xD7\xDC\x16\x99\x92\xBE\xCB\x40\x0C\xCE\x7C\x3B\x46\xA2\x5B\x5D"
407 "\x0C\x45\xEB\xE1\x00\xDE\x72\x50\xB1\xA6\x0B\x76\xC5\x8D\xFC\x82"
408 "\x38\x6D\x99\x14\x1D\x1A\x4A\xD3\x7C\x53\xB8\x12\x46\xA2\x30\x38"
409 "\x82\xF4\x96\x6E\x8C\xCE\x47\x0D\xAF\x0A\x3B\x45\xB7\x43\x95\x43"
410 "\x9E\x02\x2C\x44\x07\x6D\x1F\x3C\x66\x89\x09\xB6\x1F\x06\x30\xCC"
411 "\xAD\xCE\x7D\x9A\xDE\x3E\xFB\x6C\xE4\x58\x43\xD2\x4F\xA5\x9E\x5E"
412 "\xA7\x7B\xAE\x3A\xF6\x7E\xD9\xDB\xD3\xF5\xC5\x41\xAF\xE6\x9C\x91"
413 "\x02\x82\x01\x01" /* prime1 - integer of 257 bytes */
414 "\x00\xE0\xA6\x6C\xF0\xA2\xF8\x81\x85\x36\x43\xD0\x13\x0B\x33\x8B"
415 "\x8F\x78\x3D\xAC\xC7\x5E\x46\x6A\x7F\x05\xAE\x3E\x26\x0A\xA6\xD0"
416 "\x51\xF3\xC8\x61\xF5\x77\x22\x48\x10\x87\x4C\xD5\xA4\xD5\xAE\x2D"
417 "\x4E\x7A\xFE\x1C\x31\xE7\x6B\xFF\xA4\x69\x20\xF9\x2A\x0B\x99\xBE"
418 "\x7C\x32\x68\xAD\xB0\xC6\x94\x81\x41\x75\xDC\x06\x78\x0A\xB4\xCF"
419 "\xCD\x1B\x2D\x31\xE4\x7B\xEA\xA8\x35\x99\x75\x57\xC6\x0E\xF6\x78"
420 "\x4F\xA0\x92\x4A\x00\x1B\xE7\x96\xF2\x5B\xFD\x2C\x0A\x0A\x13\x81"
421 "\xAF\xCB\x59\x87\x31\xD9\x83\x65\xF2\x22\x48\xD0\x03\x67\x39\xF6"
422 "\xFF\xA8\x36\x07\x3A\x68\xE3\x7B\xA9\x64\xFD\x9C\xF7\xB1\x3D\xBF"
423 "\x26\x5C\xCC\x7A\xFC\xA2\x8F\x51\xD1\xE1\xE2\x3C\xEC\x06\x75\x7C"
424 "\x34\xF9\xA9\x33\x70\x11\xAD\x5A\xDC\x5F\xCF\x50\xF6\x23\x2F\x39"
425 "\xAC\x92\x48\x53\x4D\x01\x96\x3C\xD8\xDC\x1F\x23\x23\x78\x80\x34"
426 "\x54\x14\x76\x8B\xB6\xBB\xFB\x88\x78\x31\x59\x28\xD2\xB1\x75\x17"
427 "\x88\x04\x4A\x78\x62\x18\x2E\xF5\xFB\x9B\xEF\x15\xD8\x16\x47\xC6"
428 "\x42\xB1\x02\xDA\x9E\xE3\x84\x90\xB4\x2D\xC3\xCE\x13\xC9\x12\x7D"
429 "\x3E\xCD\x39\x39\xC9\xAD\xA1\x1A\xE6\xD5\xAD\x5A\x09\x4D\x1B\x0C"
430 "\xAB"
431 "\x02\x82\x01\x01" /* prime 2 - integer of 257 bytes */
432 "\x00\xDE\xD5\x1B\xF6\xCD\x83\xB1\xC6\x47\x7E\xB9\xC0\x6B\xA9\xB8"
433 "\x02\xF3\xAE\x40\x5D\xFC\xD3\xE5\x4E\xF1\xE3\x39\x04\x52\x84\x89"
434 "\x40\x37\xBB\xC2\xCD\x7F\x71\x77\x17\xDF\x6A\x4C\x31\x24\x7F\xB9"
435 "\x7E\x7F\xC8\x43\x4A\x3C\xEB\x8D\x1B\x7F\x21\x51\x67\x45\x8F\xA0"
436 "\x36\x29\x3A\x18\x45\xA5\x32\xEC\x74\x88\x3C\x98\x5D\x67\x3B\xD7"
437 "\x51\x1F\xE9\xAE\x09\x01\xDE\xDE\x7C\xFB\x60\xD1\xA5\x6C\xE9\x6A"
438 "\x93\x04\x02\x3A\xBB\x67\x02\xB9\xFD\x23\xF0\x02\x2B\x49\x85\xC9"
439 "\x5B\xE7\x4B\xDF\xA3\xF4\xEE\x59\x4C\x45\xEF\x8B\xC1\x6B\xDE\xDE"
440 "\xBC\x1A\xFC\xD2\x76\x3F\x33\x74\xA9\x8E\xA3\x7E\x0C\xC6\xCE\x70"
441 "\xA1\x5B\xA6\x77\xEA\x76\xEB\x18\xCE\xB9\xD7\x78\x8D\xAE\x06\xBB"
442 "\xD3\x1F\x16\x0D\x05\xAB\x4F\xC6\x52\xC8\x6B\x36\x51\x7D\x1D\x27"
443 "\xAF\x88\x9A\x6F\xCC\x25\x2E\x74\x06\x72\xCE\x9E\xDB\xE0\x9D\x30"
444 "\xEF\x55\xA5\x58\x21\xA7\x42\x12\x2C\x2C\x23\x87\xC1\x0F\xE8\x51"
445 "\xDA\x53\xDA\xFC\x05\x36\xDF\x08\x0E\x08\x36\xBE\x5C\x86\x9E\xCA"
446 "\x68\x90\x33\x12\x0B\x14\x82\xAB\x90\x1A\xD4\x49\x32\x9C\xBD\xAA"
447 "\xAB\x4E\x38\xF1\xEE\xED\x3D\x3F\xE8\xBD\x48\x56\xA6\x64\xEE\xC8"
448 "\xD7"
449 "\x02\x82\x01\x01" /* exponent 1 - integer of 257 bytes */
450 "\x00\x96\x5E\x6F\x8F\x06\xD6\xE6\x03\x1F\x96\x76\x81\x38\xBF\x30"
451 "\xCC\x40\x84\xAF\xD0\xE7\x06\xA5\x24\x0E\xCE\x59\xA5\x26\xFE\x0F"
452 "\x74\xBB\x83\xC6\x26\x02\xAF\x3C\xA3\x6B\x9C\xFF\x68\x0C\xEB\x40"
453 "\x42\x46\xCB\x2E\x5E\x2C\xF4\x3A\x32\x77\x77\xED\xAF\xBA\x02\x17"
454 "\xE1\x93\xF0\x43\x4A\x8F\x31\x39\xEF\x72\x0F\x6B\x79\x10\x59\x84"
455 "\xBA\x5A\x55\x7F\x0E\xDB\xEE\xEE\xD6\xA9\xB8\x44\x9F\x3A\xC6\xB9"
456 "\x33\x3B\x5C\x90\x11\xD0\x9B\xCC\x8A\xBF\x0E\x10\x5B\x4B\xF1\x50"
457 "\x9E\x35\xB3\xE0\x6D\x7A\x95\x9C\x38\x5D\xC0\x75\x13\xC2\x15\xA7"
458 "\x81\xEA\xBA\xF7\x4D\x9E\x85\x9D\xF1\x7D\xBA\xD0\x45\x6F\x2A\xD0"
459 "\x76\xC2\x28\xD0\xAD\xA7\xB5\xDC\xE3\x6A\x99\xFF\x83\x50\xB3\x75"
460 "\x07\x14\x91\xAF\xEF\x74\xB5\x9F\x9A\xE0\xBA\xA9\x0B\x87\xF3\x85"
461 "\x5C\x40\xB2\x0E\xA7\xFD\xC6\xED\x45\x8E\xD9\x7C\xB0\xB2\x68\xC6"
462 "\x1D\xFD\x70\x78\x06\x41\x7F\x95\x12\x36\x9D\xE2\x58\x5D\x15\xEE"
463 "\x41\x49\xF5\xFA\xEC\x56\x19\xA0\xE6\xE0\xB2\x40\xE1\xD9\xD0\x03"
464 "\x22\x02\xCF\xD1\x3C\x07\x38\x65\x8F\x65\x0E\xAA\x32\xCE\x25\x05"
465 "\x16\x73\x51\xB9\x9F\x88\x0B\xCD\x30\xF3\x97\xCC\x2B\x6B\xA4\x0E"
466 "\x6F"
467 "\x02\x82\x01\x00" /* exponent 2 - integer of 256 bytes */
468 "\x2A\x5F\x3F\xB8\x08\x90\x58\x47\xA9\xE4\xB1\x11\xA3\xE7\x5B\xF4"
469 "\x43\xBE\x08\xC3\x56\x86\x3C\x7E\x6C\x84\x96\x9C\xF9\xCB\xF6\x05"
470 "\x5E\x13\xB8\x11\x37\x80\xAD\xF2\xBE\x2B\x0A\x5D\xF5\xE0\xCB\xB7"
471 "\x00\x39\x66\x82\x41\x5F\x51\x2F\xBF\x56\xE8\x91\xC8\xAA\x6C\xFE"
472 "\x9F\x8C\x4A\x7D\x43\xD2\x91\x1F\xFF\x9F\xF6\x21\x1C\xB6\x46\x55"
473 "\x48\xCA\x38\xAB\xC1\xCD\x4D\x65\x5A\xAF\xA8\x6D\xDA\x6D\xF0\x34"
474 "\x10\x79\x14\x0D\xFA\xA2\x8C\x17\x54\xB4\x18\xD5\x7E\x5F\x90\x50"
475 "\x87\x84\xE7\xFB\xD7\x61\x53\x5D\xAB\x96\xC7\x6E\x7A\x42\xA0\xFC"
476 "\x07\xED\xB7\x5F\x80\xD9\x19\xFF\xFB\xFD\x9E\xC4\x73\x31\x62\x3D"
477 "\x6C\x9E\x15\x03\x62\xA5\x85\xCC\x19\x8E\x9D\x7F\xE3\x6D\xA8\x5D"
478 "\x96\xF5\xAC\x78\x3D\x81\x27\xE7\x29\xF1\x29\x1D\x09\xBB\x77\x86"
479 "\x6B\x65\x62\x88\xE1\x31\x1A\x22\xF7\xC5\xCE\x73\x65\x1C\xBE\xE7"
480 "\x63\xD3\xD3\x14\x63\x27\xAF\x28\xF3\x23\xB6\x76\xC1\xBD\x9D\x82"
481 "\xF4\x9B\x19\x7D\x2C\x57\xF0\xC2\x2A\x51\xAE\x95\x0D\x8C\x38\x54"
482 "\xF5\xC6\xA0\x51\xB7\x0E\xB9\xEC\xE7\x0D\x22\xF6\x1A\xD3\xFE\x16"
483 "\x21\x03\xB7\x0D\x85\xD3\x35\xC9\xDD\xE4\x59\x85\xBE\x7F\xA1\x75"
484 "\x02\x82\x01\x01" /* coefficient - integer of 257 bytes */
485 "\x00\xB9\x48\xD2\x54\x2F\x19\x54\x64\xAE\x62\x80\x61\x89\x80\xB4"
486 "\x48\x0B\x8D\x7E\x1B\x0F\x50\x08\x82\x3F\xED\x75\x84\xB7\x13\xE4"
487 "\xF8\x8D\xA8\xBB\x54\x21\x4C\x5A\x54\x07\x16\x4B\xB4\xA4\x9E\x30"
488 "\xBF\x7A\x30\x1B\x39\x60\xA3\x21\x53\xFB\xB0\xDC\x0F\x7C\x2C\xFB"
489 "\xAA\x95\x7D\x51\x39\x28\x33\x1F\x25\x31\x53\xF5\xD2\x64\x2B\xF2"
490 "\x1E\xB3\xC0\x6A\x0B\xC9\xA4\x42\x64\x5C\xFB\x15\xA3\xE8\x4C\x3A"
491 "\x9C\x3C\xBE\xA3\x39\x83\x23\xE3\x6D\x18\xCC\xC2\xDC\x63\x8D\xBA"
492 "\x98\xE0\xE0\x31\x4A\x2B\x37\x9C\x4D\x6B\xF3\x9F\x51\xE4\x43\x5C"
493 "\x83\x5F\xBF\x5C\xFE\x92\x45\x01\xAF\xF5\xC2\xF4\xB7\x56\x93\xA5"
494 "\xF4\xAA\x67\x3C\x48\x37\xBD\x9A\x3C\xFE\xA5\x9A\xB0\xD1\x6B\x85"
495 "\xDD\x81\xD4\xFA\xAD\x31\x83\xA8\x22\x9B\xFD\xB4\x61\xDC\x7A\x51"
496 "\x59\x62\x10\x1B\x7E\x44\xA3\xFE\x90\x51\x5A\x3E\x02\x87\xAD\xFA"
497 "\xDD\x0B\x1F\x3D\x35\xAF\xEE\x13\x85\x51\xA7\x42\xC0\xEE\x9E\x20"
498 "\xE9\xD0\x29\xB2\xE4\x21\xE4\x6D\x62\xB9\xF4\x48\x4A\xD8\x46\x8E"
499 "\x61\xA6\x2C\x5D\xDF\x8F\x97\x2B\x3A\x75\x1D\x83\x17\x6F\xC6\xB0"
500 "\xDE\xFC\x14\x25\x06\x5A\x60\xBB\xB8\x21\x89\xD1\xEF\x57\xF1\x71"
501 "\x3D",
502 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
503 .c =
504 "\x5c\xce\x9c\xd7\x9a\x9e\xa1\xfe\x7a\x82\x3c\x68\x27\x98\xe3\x5d"
505 "\xd5\xd7\x07\x29\xf5\xfb\xc3\x1a\x7f\x63\x1e\x62\x31\x3b\x19\x87"
506 "\x79\x4f\xec\x7b\xf3\xcb\xea\x9b\x95\x52\x3a\x40\xe5\x87\x7b\x72"
507 "\xd1\x72\xc9\xfb\x54\x63\xd8\xc9\xd7\x2c\xfc\x7b\xc3\x14\x1e\xbc"
508 "\x18\xb4\x34\xa1\xbf\x14\xb1\x37\x31\x6e\xf0\x1b\x35\x19\x54\x07"
509 "\xf7\x99\xec\x3e\x63\xe2\xcd\x61\x28\x65\xc3\xcd\xb1\x38\x36\xa5"
510 "\xb2\xd7\xb0\xdc\x1f\xf5\xef\x19\xc7\x53\x32\x2d\x1c\x26\xda\xe4"
511 "\x0d\xd6\x90\x7e\x28\xd8\xdc\xe4\x61\x05\xd2\x25\x90\x01\xd3\x96"
512 "\x6d\xa6\xcf\x58\x20\xbb\x03\xf4\x01\xbc\x79\xb9\x18\xd8\xb8\xba"
513 "\xbd\x93\xfc\xf2\x62\x5d\x8c\x66\x1e\x0e\x84\x59\x93\xdd\xe2\x93"
514 "\xa2\x62\x7d\x08\x82\x7a\xdd\xfc\xb8\xbc\xc5\x4f\x9c\x4e\xbf\xb4"
515 "\xfc\xf4\xc5\x01\xe8\x00\x70\x4d\x28\x26\xcc\x2e\xfe\x0e\x58\x41"
516 "\x8b\xec\xaf\x7c\x4b\x54\xd0\xa0\x64\xf9\x32\xf4\x2e\x47\x65\x0a"
517 "\x67\x88\x39\x3a\xdb\xb2\xdb\x7b\xb5\xf6\x17\xa8\xd9\xc6\x5e\x28"
518 "\x13\x82\x8a\x99\xdb\x60\x08\xa5\x23\x37\xfa\x88\x90\x31\xc8\x9d"
519 "\x8f\xec\xfb\x85\x9f\xb1\xce\xa6\x24\x50\x46\x44\x47\xcb\x65\xd1"
520 "\xdf\xc0\xb1\x6c\x90\x1f\x99\x8e\x4d\xd5\x9e\x31\x07\x66\x87\xdf"
521 "\x01\xaa\x56\x3c\x71\xe0\x2b\x6f\x67\x3b\x23\xed\xc2\xbd\x03\x30"
522 "\x79\x76\x02\x10\x10\x98\x85\x8a\xff\xfd\x0b\xda\xa5\xd9\x32\x48"
523 "\x02\xa0\x0b\xb9\x2a\x8a\x18\xca\xc6\x8f\x3f\xbb\x16\xb2\xaa\x98"
524 "\x27\xe3\x60\x43\xed\x15\x70\xd4\x57\x15\xfe\x19\xd4\x9b\x13\x78"
525 "\x8a\xf7\x21\xf1\xa2\xa2\x2d\xb3\x09\xcf\x44\x91\x6e\x08\x3a\x30"
526 "\x81\x3e\x90\x93\x8a\x67\x33\x00\x59\x54\x9a\x25\xd3\x49\x8e\x9f"
527 "\xc1\x4b\xe5\x86\xf3\x50\x4c\xbc\xc5\xd3\xf5\x3a\x54\xe1\x36\x3f"
528 "\xe2\x5a\xb4\x37\xc0\xeb\x70\x35\xec\xf6\xb7\xe8\x44\x3b\x7b\xf3"
529 "\xf1\xf2\x1e\xdb\x60\x7d\xd5\xbe\xf0\x71\x34\x90\x4c\xcb\xd4\x35"
530 "\x51\xc7\xdd\xd8\xc9\x81\xf5\x5d\x57\x46\x2c\xb1\x7b\x9b\xaa\xcb"
531 "\xd1\x22\x25\x49\x44\xa3\xd4\x6b\x29\x7b\xd8\xb2\x07\x93\xbf\x3d"
532 "\x52\x49\x84\x79\xef\xb8\xe5\xc4\xad\xca\xa8\xc6\xf6\xa6\x76\x70"
533 "\x5b\x0b\xe5\x83\xc6\x0e\xef\x55\xf2\xe7\xff\x04\xea\xe6\x13\xbe"
534 "\x40\xe1\x40\x45\x48\x66\x75\x31\xae\x35\x64\x91\x11\x6f\xda\xee"
535 "\x26\x86\x45\x6f\x0b\xd5\x9f\x03\xb1\x65\x5b\xdb\xa4\xe4\xf9\x45",
536 .key_len = 2349,
537 .m_size = 8,
538 .c_size = 512,
542 #define DH_TEST_VECTORS 2
544 struct kpp_testvec dh_tv_template[] = {
546 .secret =
547 #ifdef __LITTLE_ENDIAN
548 "\x01\x00" /* type */
549 "\x11\x02" /* len */
550 "\x00\x01\x00\x00" /* key_size */
551 "\x00\x01\x00\x00" /* p_size */
552 "\x01\x00\x00\x00" /* g_size */
553 #else
554 "\x00\x01" /* type */
555 "\x02\x11" /* len */
556 "\x00\x00\x01\x00" /* key_size */
557 "\x00\x00\x01\x00" /* p_size */
558 "\x00\x00\x00\x01" /* g_size */
559 #endif
560 /* xa */
561 "\x44\xc1\x48\x36\xa7\x2b\x6f\x4e\x43\x03\x68\xad\x31\x00\xda\xf3"
562 "\x2a\x01\xa8\x32\x63\x5f\x89\x32\x1f\xdf\x4c\xa1\x6a\xbc\x10\x15"
563 "\x90\x35\xc9\x26\x41\xdf\x7b\xaa\x56\x56\x3d\x85\x44\xb5\xc0\x8e"
564 "\x37\x83\x06\x50\xb3\x5f\x0e\x28\x2c\xd5\x46\x15\xe3\xda\x7d\x74"
565 "\x87\x13\x91\x4f\xd4\x2d\xf6\xc7\x5e\x14\x2c\x11\xc2\x26\xb4\x3a"
566 "\xe3\xb2\x36\x20\x11\x3b\x22\xf2\x06\x65\x66\xe2\x57\x58\xf8\x22"
567 "\x1a\x94\xbd\x2b\x0e\x8c\x55\xad\x61\x23\x45\x2b\x19\x1e\x63\x3a"
568 "\x13\x61\xe3\xa0\x79\x70\x3e\x6d\x98\x32\xbc\x7f\x82\xc3\x11\xd8"
569 "\xeb\x53\xb5\xfc\xb5\xd5\x3c\x4a\xea\x92\x3e\x01\xce\x15\x65\xd4"
570 "\xaa\x85\xc1\x11\x90\x83\x31\x6e\xfe\xe7\x7f\x7d\xed\xab\xf9\x29"
571 "\xf8\xc7\xf1\x68\xc6\xb7\xe4\x1f\x2f\x28\xa0\xc9\x1a\x50\x64\x29"
572 "\x4b\x01\x6d\x1a\xda\x46\x63\x21\x07\x40\x8c\x8e\x4c\x6f\xb5\xe5"
573 "\x12\xf3\xc2\x1b\x48\x27\x5e\x27\x01\xb1\xaa\xed\x68\x9b\x83\x18"
574 "\x8f\xb1\xeb\x1f\x04\xd1\x3c\x79\xed\x4b\xf7\x0a\x33\xdc\xe0\xc6"
575 "\xd8\x02\x51\x59\x00\x74\x30\x07\x4c\x2d\xac\xe4\x13\xf1\x80\xf0"
576 "\xce\xfa\xff\xa9\xce\x29\x46\xdd\x9d\xad\xd1\xc3\xc6\x58\x1a\x63"
577 /* p */
578 "\xb9\x36\x3a\xf1\x82\x1f\x60\xd3\x22\x47\xb8\xbc\x2d\x22\x6b\x81"
579 "\x7f\xe8\x20\x06\x09\x23\x73\x49\x9a\x59\x8b\x35\x25\xf8\x31\xbc"
580 "\x7d\xa8\x1c\x9d\x56\x0d\x1a\xf7\x4b\x4f\x96\xa4\x35\x77\x6a\x89"
581 "\xab\x42\x00\x49\x21\x71\xed\x28\x16\x1d\x87\x5a\x10\xa7\x9c\x64"
582 "\x94\xd4\x87\x3d\x28\xef\x44\xfe\x4b\xe2\xb4\x15\x8c\x82\xa6\xf3"
583 "\x50\x5f\xa8\xe8\xa2\x60\xe7\x00\x86\x78\x05\xd4\x78\x19\xa1\x98"
584 "\x62\x4e\x4a\x00\x78\x56\x96\xe6\xcf\xd7\x10\x1b\x74\x5d\xd0\x26"
585 "\x61\xdb\x6b\x32\x09\x51\xd8\xa5\xfd\x54\x16\x71\x01\xb3\x39\xe6"
586 "\x4e\x69\xb1\xd7\x06\x8f\xd6\x1e\xdc\x72\x25\x26\x74\xc8\x41\x06"
587 "\x5c\xd1\x26\x5c\xb0\x2f\xf9\x59\x13\xc1\x2a\x0f\x78\xea\x7b\xf7"
588 "\xbd\x59\xa0\x90\x1d\xfc\x33\x5b\x4c\xbf\x05\x9c\x3a\x3f\x69\xa2"
589 "\x45\x61\x4e\x10\x6a\xb3\x17\xc5\x68\x30\xfb\x07\x5f\x34\xc6\xfb"
590 "\x73\x07\x3c\x70\xf6\xae\xe7\x72\x84\xc3\x18\x81\x8f\xe8\x11\x1f"
591 "\x3d\x83\x83\x01\x2a\x14\x73\xbf\x32\x32\x2e\xc9\x4d\xdb\x2a\xca"
592 "\xee\x71\xf9\xda\xad\xe8\x82\x0b\x4d\x0c\x1f\xb6\x1d\xef\x00\x67"
593 "\x74\x3d\x95\xe0\xb7\xc4\x30\x8a\x24\x87\x12\x47\x27\x70\x0d\x73"
594 /* g */
595 "\x02",
596 .b_public =
597 "\x2a\x67\x5c\xfd\x63\x5d\xc0\x97\x0a\x8b\xa2\x1f\xf8\x8a\xcb\x54"
598 "\xca\x2f\xd3\x49\x3f\x01\x8e\x87\xfe\xcc\x94\xa0\x3e\xd4\x26\x79"
599 "\x9a\x94\x3c\x11\x81\x58\x5c\x60\x3d\xf5\x98\x90\x89\x64\x62\x1f"
600 "\xbd\x05\x6d\x2b\xcd\x84\x40\x9b\x4a\x1f\xe0\x19\xf1\xca\x20\xb3"
601 "\x4e\xa0\x4f\x15\xcc\xa5\xfe\xa5\xb4\xf5\x0b\x18\x7a\x5a\x37\xaa"
602 "\x58\x00\x19\x7f\xe2\xa3\xd9\x1c\x44\x57\xcc\xde\x2e\xc1\x38\xea"
603 "\xeb\xe3\x90\x40\xc4\x6c\xf7\xcd\xe9\x22\x50\x71\xf5\x7c\xdb\x37"
604 "\x0e\x80\xc3\xed\x7e\xb1\x2b\x2f\xbe\x71\xa6\x11\xa5\x9d\xf5\x39"
605 "\xf1\xa2\xe5\x85\xbc\x25\x91\x4e\x84\x8d\x26\x9f\x4f\xe6\x0f\xa6"
606 "\x2b\x6b\xf9\x0d\xaf\x6f\xbb\xfa\x2d\x79\x15\x31\x57\xae\x19\x60"
607 "\x22\x0a\xf5\xfd\x98\x0e\xbf\x5d\x49\x75\x58\x37\xbc\x7f\xf5\x21"
608 "\x56\x1e\xd5\xb3\x50\x0b\xca\x96\xf3\xd1\x3f\xb3\x70\xa8\x6d\x63"
609 "\x48\xfb\x3d\xd7\x29\x91\x45\xb5\x48\xcd\xb6\x78\x30\xf2\x3f\x1e"
610 "\xd6\x22\xd6\x35\x9b\xf9\x1f\x85\xae\xab\x4b\xd7\xe0\xc7\x86\x67"
611 "\x3f\x05\x7f\xa6\x0d\x2f\x0d\xbf\x53\x5f\x4d\x2c\x6d\x5e\x57\x40"
612 "\x30\x3a\x23\x98\xf9\xb4\x32\xf5\x32\x83\xdd\x0b\xae\x33\x97\x2f",
613 .expected_a_public =
614 "\x5c\x24\xdf\xeb\x5b\x4b\xf8\xc5\xef\x39\x48\x82\xe0\x1e\x62\xee"
615 "\x8a\xae\xdf\x93\x6c\x2b\x16\x95\x92\x16\x3f\x16\x7b\x75\x03\x85"
616 "\xd9\xf1\x69\xc2\x14\x87\x45\xfc\xa4\x19\xf6\xf0\xa4\xf3\xec\xd4"
617 "\x6c\x5c\x03\x3b\x94\xc2\x2f\x92\xe4\xce\xb3\xe4\x72\xe8\x17\xe6"
618 "\x23\x7e\x00\x01\x09\x59\x13\xbf\xc1\x2f\x99\xa9\x07\xaa\x02\x23"
619 "\x4a\xca\x39\x4f\xbc\xec\x0f\x27\x4f\x19\x93\x6c\xb9\x30\x52\xfd"
620 "\x2b\x9d\x86\xf1\x06\x1e\xb6\x56\x27\x4a\xc9\x8a\xa7\x8a\x48\x5e"
621 "\xb5\x60\xcb\xdf\xff\x03\x26\x10\xbf\x90\x8f\x46\x60\xeb\x9b\x9a"
622 "\xd6\x6f\x44\x91\x03\x92\x18\x2c\x96\x5e\x40\x19\xfb\xf4\x4f\x3a"
623 "\x02\x7b\xaf\xcc\x22\x20\x79\xb9\xf8\x9f\x8f\x85\x6b\xec\x44\xbb"
624 "\xe6\xa8\x8e\xb1\xe8\x2c\xee\x64\xee\xf8\xbd\x00\xf3\xe2\x2b\x93"
625 "\xcd\xe7\xc4\xdf\xc9\x19\x46\xfe\xb6\x07\x73\xc1\x8a\x64\x79\x26"
626 "\xe7\x30\xad\x2a\xdf\xe6\x8f\x59\xf5\x81\xbf\x4a\x29\x91\xe7\xb7"
627 "\xcf\x48\x13\x27\x75\x79\x40\xd9\xd6\x32\x52\x4e\x6a\x86\xae\x6f"
628 "\xc2\xbf\xec\x1f\xc2\x69\xb2\xb6\x59\xe5\xa5\x17\xa4\x77\xb7\x62"
629 "\x46\xde\xe8\xd2\x89\x78\x9a\xef\xa3\xb5\x8f\x26\xec\x80\xda\x39",
630 .expected_ss =
631 "\x8f\xf3\xac\xa2\xea\x22\x11\x5c\x45\x65\x1a\x77\x75\x2e\xcf\x46"
632 "\x23\x14\x1e\x67\x53\x4d\x35\xb0\x38\x1d\x4e\xb9\x41\x9a\x21\x24"
633 "\x6e\x9f\x40\xfe\x90\x51\xb1\x06\xa4\x7b\x87\x17\x2f\xe7\x5e\x22"
634 "\xf0\x7b\x54\x84\x0a\xac\x0a\x90\xd2\xd7\xe8\x7f\xe7\xe3\x30\x75"
635 "\x01\x1f\x24\x75\x56\xbe\xcc\x8d\x1e\x68\x0c\x41\x72\xd3\xfa\xbb"
636 "\xe5\x9c\x60\xc7\x28\x77\x0c\xbe\x89\xab\x08\xd6\x21\xe7\x2e\x1a"
637 "\x58\x7a\xca\x4f\x22\xf3\x2b\x30\xfd\xf4\x98\xc1\xa3\xf8\xf6\xcc"
638 "\xa9\xe4\xdb\x5b\xee\xd5\x5c\x6f\x62\x4c\xd1\x1a\x02\x2a\x23\xe4"
639 "\xb5\x57\xf3\xf9\xec\x04\x83\x54\xfe\x08\x5e\x35\xac\xfb\xa8\x09"
640 "\x82\x32\x60\x11\xb2\x16\x62\x6b\xdf\xda\xde\x9c\xcb\x63\x44\x6c"
641 "\x59\x26\x6a\x8f\xb0\x24\xcb\xa6\x72\x48\x1e\xeb\xe0\xe1\x09\x44"
642 "\xdd\xee\x66\x6d\x84\xcf\xa5\xc1\xb8\x36\x74\xd3\x15\x96\xc3\xe4"
643 "\xc6\x5a\x4d\x23\x97\x0c\x5c\xcb\xa9\xf5\x29\xc2\x0e\xff\x93\x82"
644 "\xd3\x34\x49\xad\x64\xa6\xb1\xc0\x59\x28\x75\x60\xa7\x8a\xb0\x11"
645 "\x56\x89\x42\x74\x11\xf5\xf6\x5e\x6f\x16\x54\x6a\xb1\x76\x4d\x50"
646 "\x8a\x68\xc1\x5b\x82\xb9\x0d\x00\x32\x50\xed\x88\x87\x48\x92\x17",
647 .secret_size = 529,
648 .b_public_size = 256,
649 .expected_a_public_size = 256,
650 .expected_ss_size = 256,
653 .secret =
654 #ifdef __LITTLE_ENDIAN
655 "\x01\x00" /* type */
656 "\x11\x02" /* len */
657 "\x00\x01\x00\x00" /* key_size */
658 "\x00\x01\x00\x00" /* p_size */
659 "\x01\x00\x00\x00" /* g_size */
660 #else
661 "\x00\x01" /* type */
662 "\x02\x11" /* len */
663 "\x00\x00\x01\x00" /* key_size */
664 "\x00\x00\x01\x00" /* p_size */
665 "\x00\x00\x00\x01" /* g_size */
666 #endif
667 /* xa */
668 "\x4d\x75\xa8\x6e\xba\x23\x3a\x0c\x63\x56\xc8\xc9\x5a\xa7\xd6\x0e"
669 "\xed\xae\x40\x78\x87\x47\x5f\xe0\xa7\x7b\xba\x84\x88\x67\x4e\xe5"
670 "\x3c\xcc\x5c\x6a\xe7\x4a\x20\xec\xbe\xcb\xf5\x52\x62\x9f\x37\x80"
671 "\x0c\x72\x7b\x83\x66\xa4\xf6\x7f\x95\x97\x1c\x6a\x5c\x7e\xf1\x67"
672 "\x37\xb3\x93\x39\x3d\x0b\x55\x35\xd9\xe5\x22\x04\x9f\xf8\xc1\x04"
673 "\xce\x13\xa5\xac\xe1\x75\x05\xd1\x2b\x53\xa2\x84\xef\xb1\x18\xf4"
674 "\x66\xdd\xea\xe6\x24\x69\x5a\x49\xe0\x7a\xd8\xdf\x1b\xb7\xf1\x6d"
675 "\x9b\x50\x2c\xc8\x1c\x1c\xa3\xb4\x37\xfb\x66\x3f\x67\x71\x73\xa9"
676 "\xff\x5f\xd9\xa2\x25\x6e\x25\x1b\x26\x54\xbf\x0c\xc6\xdb\xea\x0a"
677 "\x52\x6c\x16\x7c\x27\x68\x15\x71\x58\x73\x9d\xe6\xc2\x80\xaa\x97"
678 "\x31\x66\xfb\xa6\xfb\xfd\xd0\x9c\x1d\xbe\x81\x48\xf5\x9a\x32\xf1"
679 "\x69\x62\x18\x78\xae\x72\x36\xe6\x94\x27\xd1\xff\x18\x4f\x28\x6a"
680 "\x16\xbd\x6a\x60\xee\xe5\xf9\x6d\x16\xe4\xb8\xa6\x41\x9b\x23\x7e"
681 "\xf7\x9d\xd1\x1d\x03\x15\x66\x3a\xcf\xb6\x2c\x13\x96\x2c\x52\x21"
682 "\xe4\x2d\x48\x7a\x8a\x5d\xb2\x88\xed\x98\x61\x79\x8b\x6a\x1e\x5f"
683 "\xd0\x8a\x2d\x99\x5a\x2b\x0f\xbc\xef\x53\x8f\x32\xc1\xa2\x99\x26"
684 /* p */
685 "\xb9\x36\x3a\xf1\x82\x1f\x60\xd3\x22\x47\xb8\xbc\x2d\x22\x6b\x81"
686 "\x7f\xe8\x20\x06\x09\x23\x73\x49\x9a\x59\x8b\x35\x25\xf8\x31\xbc"
687 "\x7d\xa8\x1c\x9d\x56\x0d\x1a\xf7\x4b\x4f\x96\xa4\x35\x77\x6a\x89"
688 "\xab\x42\x00\x49\x21\x71\xed\x28\x16\x1d\x87\x5a\x10\xa7\x9c\x64"
689 "\x94\xd4\x87\x3d\x28\xef\x44\xfe\x4b\xe2\xb4\x15\x8c\x82\xa6\xf3"
690 "\x50\x5f\xa8\xe8\xa2\x60\xe7\x00\x86\x78\x05\xd4\x78\x19\xa1\x98"
691 "\x62\x4e\x4a\x00\x78\x56\x96\xe6\xcf\xd7\x10\x1b\x74\x5d\xd0\x26"
692 "\x61\xdb\x6b\x32\x09\x51\xd8\xa5\xfd\x54\x16\x71\x01\xb3\x39\xe6"
693 "\x4e\x69\xb1\xd7\x06\x8f\xd6\x1e\xdc\x72\x25\x26\x74\xc8\x41\x06"
694 "\x5c\xd1\x26\x5c\xb0\x2f\xf9\x59\x13\xc1\x2a\x0f\x78\xea\x7b\xf7"
695 "\xbd\x59\xa0\x90\x1d\xfc\x33\x5b\x4c\xbf\x05\x9c\x3a\x3f\x69\xa2"
696 "\x45\x61\x4e\x10\x6a\xb3\x17\xc5\x68\x30\xfb\x07\x5f\x34\xc6\xfb"
697 "\x73\x07\x3c\x70\xf6\xae\xe7\x72\x84\xc3\x18\x81\x8f\xe8\x11\x1f"
698 "\x3d\x83\x83\x01\x2a\x14\x73\xbf\x32\x32\x2e\xc9\x4d\xdb\x2a\xca"
699 "\xee\x71\xf9\xda\xad\xe8\x82\x0b\x4d\x0c\x1f\xb6\x1d\xef\x00\x67"
700 "\x74\x3d\x95\xe0\xb7\xc4\x30\x8a\x24\x87\x12\x47\x27\x70\x0d\x73"
701 /* g */
702 "\x02",
703 .b_public =
704 "\x99\x4d\xd9\x01\x84\x8e\x4a\x5b\xb8\xa5\x64\x8c\x6c\x00\x5c\x0e"
705 "\x1e\x1b\xee\x5d\x9f\x53\xe3\x16\x70\x01\xed\xbf\x4f\x14\x36\x6e"
706 "\xe4\x43\x45\x43\x49\xcc\xb1\xb0\x2a\xc0\x6f\x22\x55\x42\x17\x94"
707 "\x18\x83\xd7\x2a\x5c\x51\x54\xf8\x4e\x7c\x10\xda\x76\x68\x57\x77"
708 "\x1e\x62\x03\x30\x04\x7b\x4c\x39\x9c\x54\x01\x54\xec\xef\xb3\x55"
709 "\xa4\xc0\x24\x6d\x3d\xbd\xcc\x46\x5b\x00\x96\xc7\xea\x93\xd1\x3f"
710 "\xf2\x6a\x72\xe3\xf2\xc1\x92\x24\x5b\xda\x48\x70\x2c\xa9\x59\x97"
711 "\x19\xb1\xd6\x54\xb3\x9c\x2e\xb0\x63\x07\x9b\x5e\xac\xb5\xf2\xb1"
712 "\x5b\xf8\xf3\xd7\x2d\x37\x9b\x68\x6c\xf8\x90\x07\xbc\x37\x9a\xa5"
713 "\xe2\x91\x12\x25\x47\x77\xe3\x3d\xb2\x95\x69\x44\x0b\x91\x1e\xaf"
714 "\x7c\x8c\x7c\x34\x41\x6a\xab\x60\x6e\xc6\x52\xec\x7e\x94\x0a\x37"
715 "\xec\x98\x90\xdf\x3f\x02\xbd\x23\x52\xdd\xd9\xe5\x31\x80\x74\x25"
716 "\xb6\xd2\xd3\xcc\xd5\xcc\x6d\xf9\x7e\x4d\x78\xab\x77\x51\xfa\x77"
717 "\x19\x94\x49\x8c\x05\xd4\x75\xed\xd2\xb3\x64\x57\xe0\x52\x99\xc0"
718 "\x83\xe3\xbb\x5e\x2b\xf1\xd2\xc0\xb1\x37\x36\x0b\x7c\xb5\x63\x96"
719 "\x8e\xde\x04\x23\x11\x95\x62\x11\x9a\xce\x6f\x63\xc8\xd5\xd1\x8f",
720 .expected_a_public =
721 "\x90\x89\xe4\x82\xd6\x0a\xcf\x1a\xae\xce\x1b\x66\xa7\x19\x71\x18"
722 "\x8f\x95\x4b\x5b\x80\x45\x4a\x5a\x43\x99\x4d\x37\xcf\xa3\xa7\x28"
723 "\x9c\xc7\x73\xf1\xb2\x17\xf6\x99\xe3\x6b\x56\xcb\x3e\x35\x60\x7d"
724 "\x65\xc7\x84\x6b\x3e\x60\xee\xcd\xd2\x70\xe7\xc9\x32\x1c\xf0\xb4"
725 "\xf9\x52\xd9\x88\x75\xfd\x40\x2c\xa7\xbe\x19\x1c\x0a\xae\x93\xe1"
726 "\x71\xc7\xcd\x4f\x33\x5c\x10\x7d\x39\x56\xfc\x73\x84\xb2\x67\xc3"
727 "\x77\x26\x20\x97\x2b\xf8\x13\x43\x93\x9c\x9a\xa4\x08\xc7\x34\x83"
728 "\xe6\x98\x61\xe7\x16\x30\x2c\xb1\xdb\x2a\xb2\xcc\xc3\x02\xa5\x3c"
729 "\x71\x50\x14\x83\xc7\xbb\xa4\xbe\x98\x1b\xfe\xcb\x43\xe9\x97\x62"
730 "\xd6\xf0\x8c\xcb\x1c\xba\x1e\xa8\xa6\xa6\x50\xfc\x85\x7d\x47\xbf"
731 "\xf4\x3e\x23\xd3\x5f\xb2\x71\x3e\x40\x94\xaa\x87\x83\x2c\x6c\x8e"
732 "\x60\xfd\xdd\xf7\xf4\x76\x03\xd3\x1d\xec\x18\x51\xa3\xf2\x44\x1a"
733 "\x3f\xb4\x7c\x18\x0d\x68\x65\x92\x54\x0d\x2d\x81\x16\xf1\x84\x66"
734 "\x89\x92\xd0\x1a\x5e\x1f\x42\x46\x5b\xe5\x83\x86\x80\xd9\xcd\x3a"
735 "\x5a\x2f\xb9\x59\x9b\xe4\x43\x84\x64\xf3\x09\x1a\x0a\xa2\x64\x0f"
736 "\x77\x4e\x8d\x8b\xe6\x88\xd1\xfc\xaf\x8f\xdf\x1d\xbc\x31\xb3\xbd",
737 .expected_ss =
738 "\x34\xc3\x35\x14\x88\x46\x26\x23\x97\xbb\xdd\x28\x5c\x94\xf6\x47"
739 "\xca\xb3\x19\xaf\xca\x44\x9b\xc2\x7d\x89\xfd\x96\x14\xfd\x6d\x58"
740 "\xd8\xc4\x6b\x61\x2a\x0d\xf2\x36\x45\xc8\xe4\xa4\xed\x81\x53\x81"
741 "\x66\x1e\xe0\x5a\xb1\x78\x2d\x0b\x5c\xb4\xd1\xfc\x90\xc6\x9c\xdb"
742 "\x5a\x30\x0b\x14\x7d\xbe\xb3\x7d\xb1\xb2\x76\x3c\x6c\xef\x74\x6b"
743 "\xe7\x1f\x64\x0c\xab\x65\xe1\x76\x5c\x3d\x83\xb5\x8a\xfb\xaf\x0f"
744 "\xf2\x06\x14\x8f\xa0\xf6\xc1\x89\x78\xf2\xba\x72\x73\x3c\xf7\x76"
745 "\x21\x67\xbc\x24\x31\xb8\x09\x65\x0f\x0c\x02\x32\x4a\x98\x14\xfc"
746 "\x72\x2c\x25\x60\x68\x5f\x2f\x30\x1e\x5b\xf0\x3b\xd1\xa2\x87\xa0"
747 "\x54\xdf\xdb\xc0\xee\x0a\x0f\x47\xc9\x90\x20\x2c\xf9\xe3\x52\xad"
748 "\x27\x65\x8d\x54\x8d\xa8\xa1\xf3\xed\x15\xd4\x94\x28\x90\x31\x93"
749 "\x1b\xc0\x51\xbb\x43\x5d\x76\x3b\x1d\x2a\x71\x50\xea\x5d\x48\x94"
750 "\x7f\x6f\xf1\x48\xdb\x30\xe5\xae\x64\x79\xd9\x7a\xdb\xc6\xff\xd8"
751 "\x5e\x5a\x64\xbd\xf6\x85\x04\xe8\x28\x6a\xac\xef\xce\x19\x8e\x9a"
752 "\xfe\x75\xc0\x27\x69\xe3\xb3\x7b\x21\xa7\xb1\x16\xa4\x85\x23\xee"
753 "\xb0\x1b\x04\x6e\xbd\xab\x16\xde\xfd\x86\x6b\xa9\x95\xd7\x0b\xfd",
754 .secret_size = 529,
755 .b_public_size = 256,
756 .expected_a_public_size = 256,
757 .expected_ss_size = 256,
761 #ifdef CONFIG_CRYPTO_FIPS
762 #define ECDH_TEST_VECTORS 1
763 #else
764 #define ECDH_TEST_VECTORS 2
765 #endif
766 struct kpp_testvec ecdh_tv_template[] = {
768 #ifndef CONFIG_CRYPTO_FIPS
769 .secret =
770 #ifdef __LITTLE_ENDIAN
771 "\x02\x00" /* type */
772 "\x20\x00" /* len */
773 "\x01\x00" /* curve_id */
774 "\x18\x00" /* key_size */
775 #else
776 "\x00\x02" /* type */
777 "\x00\x20" /* len */
778 "\x00\x01" /* curve_id */
779 "\x00\x18" /* key_size */
780 #endif
781 "\xb5\x05\xb1\x71\x1e\xbf\x8c\xda"
782 "\x4e\x19\x1e\x62\x1f\x23\x23\x31"
783 "\x36\x1e\xd3\x84\x2f\xcc\x21\x72",
784 .b_public =
785 "\xc3\xba\x67\x4b\x71\xec\xd0\x76"
786 "\x7a\x99\x75\x64\x36\x13\x9a\x94"
787 "\x5d\x8b\xdc\x60\x90\x91\xfd\x3f"
788 "\xb0\x1f\x8a\x0a\x68\xc6\x88\x6e"
789 "\x83\x87\xdd\x67\x09\xf8\x8d\x96"
790 "\x07\xd6\xbd\x1c\xe6\x8d\x9d\x67",
791 .expected_a_public =
792 "\x1a\x04\xdb\xa5\xe1\xdd\x4e\x79"
793 "\xa3\xe6\xef\x0e\x5c\x80\x49\x85"
794 "\xfa\x78\xb4\xef\x49\xbd\x4c\x7c"
795 "\x22\x90\x21\x02\xf9\x1b\x81\x5d"
796 "\x0c\x8a\xa8\x98\xd6\x27\x69\x88"
797 "\x5e\xbc\x94\xd8\x15\x9e\x21\xce",
798 .expected_ss =
799 "\xf4\x57\xcc\x4f\x1f\x4e\x31\xcc"
800 "\xe3\x40\x60\xc8\x06\x93\xc6\x2e"
801 "\x99\x80\x81\x28\xaf\xc5\x51\x74",
802 .secret_size = 32,
803 .b_public_size = 48,
804 .expected_a_public_size = 48,
805 .expected_ss_size = 24
806 }, {
807 #endif
808 .secret =
809 #ifdef __LITTLE_ENDIAN
810 "\x02\x00" /* type */
811 "\x28\x00" /* len */
812 "\x02\x00" /* curve_id */
813 "\x20\x00" /* key_size */
814 #else
815 "\x00\x02" /* type */
816 "\x00\x28" /* len */
817 "\x00\x02" /* curve_id */
818 "\x00\x20" /* key_size */
819 #endif
820 "\x24\xd1\x21\xeb\xe5\xcf\x2d\x83"
821 "\xf6\x62\x1b\x6e\x43\x84\x3a\xa3"
822 "\x8b\xe0\x86\xc3\x20\x19\xda\x92"
823 "\x50\x53\x03\xe1\xc0\xea\xb8\x82",
824 .expected_a_public =
825 "\x1a\x7f\xeb\x52\x00\xbd\x3c\x31"
826 "\x7d\xb6\x70\xc1\x86\xa6\xc7\xc4"
827 "\x3b\xc5\x5f\x6c\x6f\x58\x3c\xf5"
828 "\xb6\x63\x82\x77\x33\x24\xa1\x5f"
829 "\x6a\xca\x43\x6f\xf7\x7e\xff\x02"
830 "\x37\x08\xcc\x40\x5e\x7a\xfd\x6a"
831 "\x6a\x02\x6e\x41\x87\x68\x38\x77"
832 "\xfa\xa9\x44\x43\x2d\xef\x09\xdf",
833 .expected_ss =
834 "\xea\x17\x6f\x7e\x6e\x57\x26\x38"
835 "\x8b\xfb\x41\xeb\xba\xc8\x6d\xa5"
836 "\xa8\x72\xd1\xff\xc9\x47\x3d\xaa"
837 "\x58\x43\x9f\x34\x0f\x8c\xf3\xc9",
838 .b_public =
839 "\xcc\xb4\xda\x74\xb1\x47\x3f\xea"
840 "\x6c\x70\x9e\x38\x2d\xc7\xaa\xb7"
841 "\x29\xb2\x47\x03\x19\xab\xdd\x34"
842 "\xbd\xa8\x2c\x93\xe1\xa4\x74\xd9"
843 "\x64\x63\xf7\x70\x20\x2f\xa4\xe6"
844 "\x9f\x4a\x38\xcc\xc0\x2c\x49\x2f"
845 "\xb1\x32\xbb\xaf\x22\x61\xda\xcb"
846 "\x6f\xdb\xa9\xaa\xfc\x77\x81\xf3",
847 .secret_size = 40,
848 .b_public_size = 64,
849 .expected_a_public_size = 64,
850 .expected_ss_size = 32
855 * MD4 test vectors from RFC1320
857 #define MD4_TEST_VECTORS 7
859 static struct hash_testvec md4_tv_template [] = {
861 .plaintext = "",
862 .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31"
863 "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0",
864 }, {
865 .plaintext = "a",
866 .psize = 1,
867 .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46"
868 "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24",
869 }, {
870 .plaintext = "abc",
871 .psize = 3,
872 .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52"
873 "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d",
874 }, {
875 .plaintext = "message digest",
876 .psize = 14,
877 .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8"
878 "\x18\x87\x48\x06\xe1\xc7\x01\x4b",
879 }, {
880 .plaintext = "abcdefghijklmnopqrstuvwxyz",
881 .psize = 26,
882 .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd"
883 "\xee\xa8\xed\x63\xdf\x41\x2d\xa9",
884 .np = 2,
885 .tap = { 13, 13 },
886 }, {
887 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
888 .psize = 62,
889 .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35"
890 "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4",
891 }, {
892 .plaintext = "123456789012345678901234567890123456789012345678901234567890123"
893 "45678901234567890",
894 .psize = 80,
895 .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19"
896 "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36",
900 #define SHA3_224_TEST_VECTORS 3
901 static struct hash_testvec sha3_224_tv_template[] = {
903 .plaintext = "",
904 .digest = "\x6b\x4e\x03\x42\x36\x67\xdb\xb7"
905 "\x3b\x6e\x15\x45\x4f\x0e\xb1\xab"
906 "\xd4\x59\x7f\x9a\x1b\x07\x8e\x3f"
907 "\x5b\x5a\x6b\xc7",
908 }, {
909 .plaintext = "a",
910 .psize = 1,
911 .digest = "\x9e\x86\xff\x69\x55\x7c\xa9\x5f"
912 "\x40\x5f\x08\x12\x69\x68\x5b\x38"
913 "\xe3\xa8\x19\xb3\x09\xee\x94\x2f"
914 "\x48\x2b\x6a\x8b",
915 }, {
916 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
917 "jklmklmnlmnomnopnopq",
918 .psize = 56,
919 .digest = "\x8a\x24\x10\x8b\x15\x4a\xda\x21"
920 "\xc9\xfd\x55\x74\x49\x44\x79\xba"
921 "\x5c\x7e\x7a\xb7\x6e\xf2\x64\xea"
922 "\xd0\xfc\xce\x33",
926 #define SHA3_256_TEST_VECTORS 3
927 static struct hash_testvec sha3_256_tv_template[] = {
929 .plaintext = "",
930 .digest = "\xa7\xff\xc6\xf8\xbf\x1e\xd7\x66"
931 "\x51\xc1\x47\x56\xa0\x61\xd6\x62"
932 "\xf5\x80\xff\x4d\xe4\x3b\x49\xfa"
933 "\x82\xd8\x0a\x4b\x80\xf8\x43\x4a",
934 }, {
935 .plaintext = "a",
936 .psize = 1,
937 .digest = "\x80\x08\x4b\xf2\xfb\xa0\x24\x75"
938 "\x72\x6f\xeb\x2c\xab\x2d\x82\x15"
939 "\xea\xb1\x4b\xc6\xbd\xd8\xbf\xb2"
940 "\xc8\x15\x12\x57\x03\x2e\xcd\x8b",
941 }, {
942 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
943 "jklmklmnlmnomnopnopq",
944 .psize = 56,
945 .digest = "\x41\xc0\xdb\xa2\xa9\xd6\x24\x08"
946 "\x49\x10\x03\x76\xa8\x23\x5e\x2c"
947 "\x82\xe1\xb9\x99\x8a\x99\x9e\x21"
948 "\xdb\x32\xdd\x97\x49\x6d\x33\x76",
953 #define SHA3_384_TEST_VECTORS 3
954 static struct hash_testvec sha3_384_tv_template[] = {
956 .plaintext = "",
957 .digest = "\x0c\x63\xa7\x5b\x84\x5e\x4f\x7d"
958 "\x01\x10\x7d\x85\x2e\x4c\x24\x85"
959 "\xc5\x1a\x50\xaa\xaa\x94\xfc\x61"
960 "\x99\x5e\x71\xbb\xee\x98\x3a\x2a"
961 "\xc3\x71\x38\x31\x26\x4a\xdb\x47"
962 "\xfb\x6b\xd1\xe0\x58\xd5\xf0\x04",
963 }, {
964 .plaintext = "a",
965 .psize = 1,
966 .digest = "\x18\x15\xf7\x74\xf3\x20\x49\x1b"
967 "\x48\x56\x9e\xfe\xc7\x94\xd2\x49"
968 "\xee\xb5\x9a\xae\x46\xd2\x2b\xf7"
969 "\x7d\xaf\xe2\x5c\x5e\xdc\x28\xd7"
970 "\xea\x44\xf9\x3e\xe1\x23\x4a\xa8"
971 "\x8f\x61\xc9\x19\x12\xa4\xcc\xd9",
972 }, {
973 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
974 "jklmklmnlmnomnopnopq",
975 .psize = 56,
976 .digest = "\x99\x1c\x66\x57\x55\xeb\x3a\x4b"
977 "\x6b\xbd\xfb\x75\xc7\x8a\x49\x2e"
978 "\x8c\x56\xa2\x2c\x5c\x4d\x7e\x42"
979 "\x9b\xfd\xbc\x32\xb9\xd4\xad\x5a"
980 "\xa0\x4a\x1f\x07\x6e\x62\xfe\xa1"
981 "\x9e\xef\x51\xac\xd0\x65\x7c\x22",
986 #define SHA3_512_TEST_VECTORS 3
987 static struct hash_testvec sha3_512_tv_template[] = {
989 .plaintext = "",
990 .digest = "\xa6\x9f\x73\xcc\xa2\x3a\x9a\xc5"
991 "\xc8\xb5\x67\xdc\x18\x5a\x75\x6e"
992 "\x97\xc9\x82\x16\x4f\xe2\x58\x59"
993 "\xe0\xd1\xdc\xc1\x47\x5c\x80\xa6"
994 "\x15\xb2\x12\x3a\xf1\xf5\xf9\x4c"
995 "\x11\xe3\xe9\x40\x2c\x3a\xc5\x58"
996 "\xf5\x00\x19\x9d\x95\xb6\xd3\xe3"
997 "\x01\x75\x85\x86\x28\x1d\xcd\x26",
998 }, {
999 .plaintext = "a",
1000 .psize = 1,
1001 .digest = "\x69\x7f\x2d\x85\x61\x72\xcb\x83"
1002 "\x09\xd6\xb8\xb9\x7d\xac\x4d\xe3"
1003 "\x44\xb5\x49\xd4\xde\xe6\x1e\xdf"
1004 "\xb4\x96\x2d\x86\x98\xb7\xfa\x80"
1005 "\x3f\x4f\x93\xff\x24\x39\x35\x86"
1006 "\xe2\x8b\x5b\x95\x7a\xc3\xd1\xd3"
1007 "\x69\x42\x0c\xe5\x33\x32\x71\x2f"
1008 "\x99\x7b\xd3\x36\xd0\x9a\xb0\x2a",
1009 }, {
1010 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1011 "jklmklmnlmnomnopnopq",
1012 .psize = 56,
1013 .digest = "\x04\xa3\x71\xe8\x4e\xcf\xb5\xb8"
1014 "\xb7\x7c\xb4\x86\x10\xfc\xa8\x18"
1015 "\x2d\xd4\x57\xce\x6f\x32\x6a\x0f"
1016 "\xd3\xd7\xec\x2f\x1e\x91\x63\x6d"
1017 "\xee\x69\x1f\xbe\x0c\x98\x53\x02"
1018 "\xba\x1b\x0d\x8d\xc7\x8c\x08\x63"
1019 "\x46\xb5\x33\xb4\x9c\x03\x0d\x99"
1020 "\xa2\x7d\xaf\x11\x39\xd6\xe7\x5e",
1026 * MD5 test vectors from RFC1321
1028 #define MD5_TEST_VECTORS 7
1030 static struct hash_testvec md5_tv_template[] = {
1032 .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04"
1033 "\xe9\x80\x09\x98\xec\xf8\x42\x7e",
1034 }, {
1035 .plaintext = "a",
1036 .psize = 1,
1037 .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8"
1038 "\x31\xc3\x99\xe2\x69\x77\x26\x61",
1039 }, {
1040 .plaintext = "abc",
1041 .psize = 3,
1042 .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0"
1043 "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72",
1044 }, {
1045 .plaintext = "message digest",
1046 .psize = 14,
1047 .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d"
1048 "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0",
1049 }, {
1050 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1051 .psize = 26,
1052 .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00"
1053 "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b",
1054 .np = 2,
1055 .tap = {13, 13}
1056 }, {
1057 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
1058 .psize = 62,
1059 .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5"
1060 "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f",
1061 }, {
1062 .plaintext = "12345678901234567890123456789012345678901234567890123456789012"
1063 "345678901234567890",
1064 .psize = 80,
1065 .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55"
1066 "\xac\x49\xda\x2e\x21\x07\xb6\x7a",
1072 * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E)
1074 #define RMD128_TEST_VECTORS 10
1076 static struct hash_testvec rmd128_tv_template[] = {
1078 .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e"
1079 "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46",
1080 }, {
1081 .plaintext = "a",
1082 .psize = 1,
1083 .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7"
1084 "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33",
1085 }, {
1086 .plaintext = "abc",
1087 .psize = 3,
1088 .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba"
1089 "\x84\x63\x6b\x0f\x69\x14\x4c\x77",
1090 }, {
1091 .plaintext = "message digest",
1092 .psize = 14,
1093 .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62"
1094 "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8",
1095 }, {
1096 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1097 .psize = 26,
1098 .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5"
1099 "\x10\x71\x49\x22\xb3\x71\x83\x4e",
1100 }, {
1101 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1102 "fghijklmnopqrstuvwxyz0123456789",
1103 .psize = 62,
1104 .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f"
1105 "\xae\xa4\x62\x4c\x60\xc5\xc7\x02",
1106 }, {
1107 .plaintext = "1234567890123456789012345678901234567890"
1108 "1234567890123456789012345678901234567890",
1109 .psize = 80,
1110 .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb"
1111 "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3",
1112 }, {
1113 .plaintext = "abcdbcdecdefdefgefghfghighij"
1114 "hijkijkljklmklmnlmnomnopnopq",
1115 .psize = 56,
1116 .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d"
1117 "\xdc\x22\xe8\x8b\x49\x13\x3a\x06",
1118 .np = 2,
1119 .tap = { 28, 28 },
1120 }, {
1121 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
1122 "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
1123 "lmnopqrsmnopqrstnopqrstu",
1124 .psize = 112,
1125 .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b"
1126 "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46",
1127 }, {
1128 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1129 .psize = 32,
1130 .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d"
1131 "\xe1\x93\xff\x46\xdb\xac\xcf\xd4",
1136 * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E)
1138 #define RMD160_TEST_VECTORS 10
1140 static struct hash_testvec rmd160_tv_template[] = {
1142 .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28"
1143 "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31",
1144 }, {
1145 .plaintext = "a",
1146 .psize = 1,
1147 .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae"
1148 "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe",
1149 }, {
1150 .plaintext = "abc",
1151 .psize = 3,
1152 .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04"
1153 "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc",
1154 }, {
1155 .plaintext = "message digest",
1156 .psize = 14,
1157 .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8"
1158 "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36",
1159 }, {
1160 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1161 .psize = 26,
1162 .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb"
1163 "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc",
1164 }, {
1165 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1166 "fghijklmnopqrstuvwxyz0123456789",
1167 .psize = 62,
1168 .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed"
1169 "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89",
1170 }, {
1171 .plaintext = "1234567890123456789012345678901234567890"
1172 "1234567890123456789012345678901234567890",
1173 .psize = 80,
1174 .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb"
1175 "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb",
1176 }, {
1177 .plaintext = "abcdbcdecdefdefgefghfghighij"
1178 "hijkijkljklmklmnlmnomnopnopq",
1179 .psize = 56,
1180 .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05"
1181 "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b",
1182 .np = 2,
1183 .tap = { 28, 28 },
1184 }, {
1185 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
1186 "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
1187 "lmnopqrsmnopqrstnopqrstu",
1188 .psize = 112,
1189 .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91"
1190 "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45",
1191 }, {
1192 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1193 .psize = 32,
1194 .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d"
1195 "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f",
1200 * RIPEMD-256 test vectors
1202 #define RMD256_TEST_VECTORS 8
1204 static struct hash_testvec rmd256_tv_template[] = {
1206 .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18"
1207 "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a"
1208 "\x2d\x97\x74\xfb\x1e\x5d\x02\x63"
1209 "\x80\xae\x01\x68\xe3\xc5\x52\x2d",
1210 }, {
1211 .plaintext = "a",
1212 .psize = 1,
1213 .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9"
1214 "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c"
1215 "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf"
1216 "\xcd\x88\x3a\x91\x34\x69\x29\x25",
1217 }, {
1218 .plaintext = "abc",
1219 .psize = 3,
1220 .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb"
1221 "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1"
1222 "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e"
1223 "\x1e\x42\xd2\xe9\x75\x45\x9b\x65",
1224 }, {
1225 .plaintext = "message digest",
1226 .psize = 14,
1227 .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a"
1228 "\x51\x4d\x5c\x91\x4c\x39\x2c\x90"
1229 "\x18\xc7\xc4\x6b\xc1\x44\x65\x55"
1230 "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e",
1231 }, {
1232 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1233 .psize = 26,
1234 .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16"
1235 "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc"
1236 "\x78\x96\x11\x8a\x51\x97\x96\x87"
1237 "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33",
1238 }, {
1239 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1240 "fghijklmnopqrstuvwxyz0123456789",
1241 .psize = 62,
1242 .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20"
1243 "\xb8\x44\x24\xae\x93\x1c\xbb\x1f"
1244 "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1"
1245 "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8",
1246 }, {
1247 .plaintext = "1234567890123456789012345678901234567890"
1248 "1234567890123456789012345678901234567890",
1249 .psize = 80,
1250 .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa"
1251 "\xf9\x13\x68\xc0\x6a\x62\x75\xb5"
1252 "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed"
1253 "\xfd\x67\x78\xdf\x89\xa8\x90\xdd",
1254 }, {
1255 .plaintext = "abcdbcdecdefdefgefghfghighij"
1256 "hijkijkljklmklmnlmnomnopnopq",
1257 .psize = 56,
1258 .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8"
1259 "\xc8\xd9\x12\x85\x73\xe7\xa9\x80"
1260 "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e"
1261 "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f",
1262 .np = 2,
1263 .tap = { 28, 28 },
1268 * RIPEMD-320 test vectors
1270 #define RMD320_TEST_VECTORS 8
1272 static struct hash_testvec rmd320_tv_template[] = {
1274 .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1"
1275 "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25"
1276 "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e"
1277 "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8",
1278 }, {
1279 .plaintext = "a",
1280 .psize = 1,
1281 .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5"
1282 "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57"
1283 "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54"
1284 "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d",
1285 }, {
1286 .plaintext = "abc",
1287 .psize = 3,
1288 .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d"
1289 "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08"
1290 "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74"
1291 "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d",
1292 }, {
1293 .plaintext = "message digest",
1294 .psize = 14,
1295 .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68"
1296 "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa"
1297 "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d"
1298 "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97",
1299 }, {
1300 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1301 .psize = 26,
1302 .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93"
1303 "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4"
1304 "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed"
1305 "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09",
1306 }, {
1307 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1308 "fghijklmnopqrstuvwxyz0123456789",
1309 .psize = 62,
1310 .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2"
1311 "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c"
1312 "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9"
1313 "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4",
1314 }, {
1315 .plaintext = "1234567890123456789012345678901234567890"
1316 "1234567890123456789012345678901234567890",
1317 .psize = 80,
1318 .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6"
1319 "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41"
1320 "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f"
1321 "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42",
1322 }, {
1323 .plaintext = "abcdbcdecdefdefgefghfghighij"
1324 "hijkijkljklmklmnlmnomnopnopq",
1325 .psize = 56,
1326 .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4"
1327 "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59"
1328 "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b"
1329 "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac",
1330 .np = 2,
1331 .tap = { 28, 28 },
1335 #define CRCT10DIF_TEST_VECTORS 3
1336 static struct hash_testvec crct10dif_tv_template[] = {
1338 .plaintext = "abc",
1339 .psize = 3,
1340 #ifdef __LITTLE_ENDIAN
1341 .digest = "\x3b\x44",
1342 #else
1343 .digest = "\x44\x3b",
1344 #endif
1345 }, {
1346 .plaintext = "1234567890123456789012345678901234567890"
1347 "123456789012345678901234567890123456789",
1348 .psize = 79,
1349 #ifdef __LITTLE_ENDIAN
1350 .digest = "\x70\x4b",
1351 #else
1352 .digest = "\x4b\x70",
1353 #endif
1354 }, {
1355 .plaintext =
1356 "abcddddddddddddddddddddddddddddddddddddddddddddddddddddd",
1357 .psize = 56,
1358 #ifdef __LITTLE_ENDIAN
1359 .digest = "\xe3\x9c",
1360 #else
1361 .digest = "\x9c\xe3",
1362 #endif
1363 .np = 2,
1364 .tap = { 28, 28 }
1369 * SHA1 test vectors from from FIPS PUB 180-1
1370 * Long vector from CAVS 5.0
1372 #define SHA1_TEST_VECTORS 6
1374 static struct hash_testvec sha1_tv_template[] = {
1376 .plaintext = "",
1377 .psize = 0,
1378 .digest = "\xda\x39\xa3\xee\x5e\x6b\x4b\x0d\x32\x55"
1379 "\xbf\xef\x95\x60\x18\x90\xaf\xd8\x07\x09",
1380 }, {
1381 .plaintext = "abc",
1382 .psize = 3,
1383 .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e"
1384 "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d",
1385 }, {
1386 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1387 .psize = 56,
1388 .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae"
1389 "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1",
1390 .np = 2,
1391 .tap = { 28, 28 }
1392 }, {
1393 .plaintext = "\xec\x29\x56\x12\x44\xed\xe7\x06"
1394 "\xb6\xeb\x30\xa1\xc3\x71\xd7\x44"
1395 "\x50\xa1\x05\xc3\xf9\x73\x5f\x7f"
1396 "\xa9\xfe\x38\xcf\x67\xf3\x04\xa5"
1397 "\x73\x6a\x10\x6e\x92\xe1\x71\x39"
1398 "\xa6\x81\x3b\x1c\x81\xa4\xf3\xd3"
1399 "\xfb\x95\x46\xab\x42\x96\xfa\x9f"
1400 "\x72\x28\x26\xc0\x66\x86\x9e\xda"
1401 "\xcd\x73\xb2\x54\x80\x35\x18\x58"
1402 "\x13\xe2\x26\x34\xa9\xda\x44\x00"
1403 "\x0d\x95\xa2\x81\xff\x9f\x26\x4e"
1404 "\xcc\xe0\xa9\x31\x22\x21\x62\xd0"
1405 "\x21\xcc\xa2\x8d\xb5\xf3\xc2\xaa"
1406 "\x24\x94\x5a\xb1\xe3\x1c\xb4\x13"
1407 "\xae\x29\x81\x0f\xd7\x94\xca\xd5"
1408 "\xdf\xaf\x29\xec\x43\xcb\x38\xd1"
1409 "\x98\xfe\x4a\xe1\xda\x23\x59\x78"
1410 "\x02\x21\x40\x5b\xd6\x71\x2a\x53"
1411 "\x05\xda\x4b\x1b\x73\x7f\xce\x7c"
1412 "\xd2\x1c\x0e\xb7\x72\x8d\x08\x23"
1413 "\x5a\x90\x11",
1414 .psize = 163,
1415 .digest = "\x97\x01\x11\xc4\xe7\x7b\xcc\x88\xcc\x20"
1416 "\x45\x9c\x02\xb6\x9b\x4a\xa8\xf5\x82\x17",
1417 .np = 4,
1418 .tap = { 63, 64, 31, 5 }
1419 }, {
1420 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
1421 .psize = 64,
1422 .digest = "\xc8\x71\xf6\x9a\x63\xcc\xa9\x84\x84\x82"
1423 "\x64\xe7\x79\x95\x5d\xd7\x19\x41\x7c\x91",
1424 }, {
1425 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1426 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1427 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1428 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1429 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1430 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1431 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1432 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1433 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1434 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1435 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1436 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1437 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1438 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1439 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1440 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1441 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1442 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1443 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1444 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1445 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1446 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1447 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1448 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1449 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1450 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1451 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1452 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1453 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1454 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1455 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1456 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1457 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1458 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1459 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1460 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1461 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1462 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1463 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1464 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1465 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1466 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1467 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1468 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1469 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1470 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1471 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1472 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1473 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1474 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1475 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1476 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1477 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1478 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1479 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1480 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1481 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1482 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1483 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1484 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1485 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1486 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1487 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1488 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1489 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1490 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1491 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1492 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1493 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1494 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1495 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1496 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1497 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1498 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1499 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1500 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1501 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1502 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1503 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1504 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1505 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1506 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1507 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1508 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1509 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1510 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1511 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1512 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1513 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1514 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1515 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1516 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1517 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1518 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1519 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1520 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1521 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1522 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1523 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1524 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1525 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1526 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1527 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1528 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1529 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1530 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1531 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1532 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1533 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1534 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1535 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1536 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1537 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1538 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1539 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1540 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1541 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1542 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1543 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1544 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1545 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1546 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1547 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1548 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1549 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1550 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1551 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1552 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1553 .psize = 1023,
1554 .digest = "\xb8\xe3\x54\xed\xc5\xfc\xef\xa4"
1555 "\x55\x73\x4a\x81\x99\xe4\x47\x2a"
1556 "\x30\xd6\xc9\x85",
1562 * SHA224 test vectors from from FIPS PUB 180-2
1564 #define SHA224_TEST_VECTORS 5
1566 static struct hash_testvec sha224_tv_template[] = {
1568 .plaintext = "",
1569 .psize = 0,
1570 .digest = "\xd1\x4a\x02\x8c\x2a\x3a\x2b\xc9"
1571 "\x47\x61\x02\xbb\x28\x82\x34\xc4"
1572 "\x15\xa2\xb0\x1f\x82\x8e\xa6\x2a"
1573 "\xc5\xb3\xe4\x2f",
1574 }, {
1575 .plaintext = "abc",
1576 .psize = 3,
1577 .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22"
1578 "\x86\x42\xA4\x77\xBD\xA2\x55\xB3"
1579 "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7"
1580 "\xE3\x6C\x9D\xA7",
1581 }, {
1582 .plaintext =
1583 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1584 .psize = 56,
1585 .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC"
1586 "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50"
1587 "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19"
1588 "\x52\x52\x25\x25",
1589 .np = 2,
1590 .tap = { 28, 28 }
1591 }, {
1592 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
1593 .psize = 64,
1594 .digest = "\xc4\xdb\x2b\x3a\x58\xc3\x99\x01"
1595 "\x42\xfd\x10\x92\xaa\x4e\x04\x08"
1596 "\x58\xbb\xbb\xe8\xf8\x14\xa7\x0c"
1597 "\xef\x3b\xcb\x0e",
1598 }, {
1599 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1600 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1601 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1602 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1603 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1604 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1605 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1606 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1607 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1608 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1609 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1610 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1611 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1612 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1613 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1614 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1615 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1616 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1617 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1618 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1619 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1620 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1621 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1622 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1623 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1624 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1625 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1626 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1627 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1628 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1629 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1630 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1631 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1632 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1633 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1634 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1635 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1636 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1637 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1638 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1639 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1640 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1641 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1642 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1643 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1644 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1645 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1646 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1647 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1648 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1649 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1650 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1651 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1652 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1653 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1654 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1655 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1656 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1657 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1658 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1659 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1660 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1661 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1662 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1663 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1664 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1665 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1666 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1667 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1668 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1669 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1670 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1671 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1672 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1673 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1674 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1675 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1676 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1677 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1678 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1679 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1680 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1681 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1682 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1683 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1684 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1685 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1686 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1687 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1688 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1689 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1690 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1691 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1692 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1693 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1694 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1695 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1696 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1697 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1698 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1699 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1700 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1701 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1702 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1703 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1704 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1705 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1706 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1707 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1708 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1709 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1710 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1711 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1712 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1713 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1714 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1715 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1716 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1717 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1718 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1719 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1720 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1721 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1722 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1723 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1724 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1725 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1726 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1727 .psize = 1023,
1728 .digest = "\x98\x43\x07\x63\x75\xe0\xa7\x1c"
1729 "\x78\xb1\x8b\xfd\x04\xf5\x2d\x91"
1730 "\x20\x48\xa4\x28\xff\x55\xb1\xd3"
1731 "\xe6\xf9\x4f\xcc",
1736 * SHA256 test vectors from from NIST
1738 #define SHA256_TEST_VECTORS 5
1740 static struct hash_testvec sha256_tv_template[] = {
1742 .plaintext = "",
1743 .psize = 0,
1744 .digest = "\xe3\xb0\xc4\x42\x98\xfc\x1c\x14"
1745 "\x9a\xfb\xf4\xc8\x99\x6f\xb9\x24"
1746 "\x27\xae\x41\xe4\x64\x9b\x93\x4c"
1747 "\xa4\x95\x99\x1b\x78\x52\xb8\x55",
1748 }, {
1749 .plaintext = "abc",
1750 .psize = 3,
1751 .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea"
1752 "\x41\x41\x40\xde\x5d\xae\x22\x23"
1753 "\xb0\x03\x61\xa3\x96\x17\x7a\x9c"
1754 "\xb4\x10\xff\x61\xf2\x00\x15\xad",
1755 }, {
1756 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1757 .psize = 56,
1758 .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8"
1759 "\xe5\xc0\x26\x93\x0c\x3e\x60\x39"
1760 "\xa3\x3c\xe4\x59\x64\xff\x21\x67"
1761 "\xf6\xec\xed\xd4\x19\xdb\x06\xc1",
1762 .np = 2,
1763 .tap = { 28, 28 }
1764 }, {
1765 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
1766 .psize = 64,
1767 .digest = "\xb5\xfe\xad\x56\x7d\xff\xcb\xa4"
1768 "\x2c\x32\x29\x32\x19\xbb\xfb\xfa"
1769 "\xd6\xff\x94\xa3\x72\x91\x85\x66"
1770 "\x3b\xa7\x87\x77\x58\xa3\x40\x3a",
1771 }, {
1772 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1773 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1774 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1775 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1776 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1777 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1778 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1779 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1780 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1781 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1782 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1783 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1784 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1785 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1786 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1787 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1788 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1789 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1790 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1791 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1792 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1793 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1794 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1795 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1796 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1797 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1798 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1799 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1800 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1801 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1802 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1803 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1804 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1805 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1806 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1807 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1808 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1809 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1810 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1811 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1812 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1813 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1814 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1815 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1816 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1817 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1818 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1819 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1820 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1821 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1822 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1823 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1824 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1825 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1826 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1827 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1828 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1829 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1830 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1831 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1832 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1833 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1834 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1835 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1836 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1837 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1838 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1839 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1840 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1841 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1842 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1843 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1844 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1845 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1846 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1847 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1848 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1849 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1850 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1851 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1852 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1853 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1854 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1855 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1856 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1857 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1858 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1859 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1860 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1861 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1862 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1863 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1864 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1865 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1866 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1867 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1868 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1869 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1870 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1871 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1872 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1873 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1874 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1875 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1876 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1877 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1878 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1879 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1880 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1881 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1882 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1883 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1884 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1885 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1886 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1887 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1888 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1889 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1890 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1891 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1892 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1893 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1894 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1895 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1896 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1897 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1898 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1899 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1900 .psize = 1023,
1901 .digest = "\xc5\xce\x0c\xca\x01\x4f\x53\x3a"
1902 "\x32\x32\x17\xcc\xd4\x6a\x71\xa9"
1903 "\xf3\xed\x50\x10\x64\x8e\x06\xbe"
1904 "\x9b\x4a\xa6\xbb\x05\x89\x59\x51",
1909 * SHA384 test vectors from from NIST and kerneli
1911 #define SHA384_TEST_VECTORS 6
1913 static struct hash_testvec sha384_tv_template[] = {
1915 .plaintext = "",
1916 .psize = 0,
1917 .digest = "\x38\xb0\x60\xa7\x51\xac\x96\x38"
1918 "\x4c\xd9\x32\x7e\xb1\xb1\xe3\x6a"
1919 "\x21\xfd\xb7\x11\x14\xbe\x07\x43"
1920 "\x4c\x0c\xc7\xbf\x63\xf6\xe1\xda"
1921 "\x27\x4e\xde\xbf\xe7\x6f\x65\xfb"
1922 "\xd5\x1a\xd2\xf1\x48\x98\xb9\x5b",
1923 }, {
1924 .plaintext= "abc",
1925 .psize = 3,
1926 .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b"
1927 "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07"
1928 "\x27\x2c\x32\xab\x0e\xde\xd1\x63"
1929 "\x1a\x8b\x60\x5a\x43\xff\x5b\xed"
1930 "\x80\x86\x07\x2b\xa1\xe7\xcc\x23"
1931 "\x58\xba\xec\xa1\x34\xc8\x25\xa7",
1932 }, {
1933 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1934 .psize = 56,
1935 .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39"
1936 "\x37\x07\xa6\x5b\x1b\x47\x09\x39"
1937 "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab"
1938 "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6"
1939 "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f"
1940 "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b",
1941 }, {
1942 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
1943 "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
1944 .psize = 112,
1945 .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8"
1946 "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47"
1947 "\x53\x11\x1b\x17\x3b\x3b\x05\xd2"
1948 "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12"
1949 "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9"
1950 "\x66\xc3\xe9\xfa\x91\x74\x60\x39",
1951 }, {
1952 .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
1953 "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
1954 .psize = 104,
1955 .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb"
1956 "\xbd\x7e\x2c\x28\x62\xba\x29\x0a"
1957 "\xd3\x01\x0e\x49\x78\xc1\x98\xdc"
1958 "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a"
1959 "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a"
1960 "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4",
1961 .np = 4,
1962 .tap = { 26, 26, 26, 26 }
1963 }, {
1964 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1965 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1966 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1967 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1968 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1969 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1970 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1971 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1972 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1973 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1974 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1975 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1976 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1977 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1978 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1979 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1980 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1981 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1982 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1983 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1984 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1985 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1986 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1987 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1988 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1989 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1990 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1991 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1992 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1993 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1994 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1995 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1996 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1997 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1998 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1999 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2000 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
2001 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
2002 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
2003 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
2004 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
2005 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
2006 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
2007 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
2008 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
2009 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
2010 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
2011 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
2012 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
2013 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
2014 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
2015 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
2016 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
2017 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
2018 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
2019 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
2020 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
2021 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
2022 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
2023 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
2024 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
2025 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
2026 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
2027 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
2028 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
2029 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
2030 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
2031 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
2032 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
2033 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
2034 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
2035 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
2036 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
2037 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
2038 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
2039 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
2040 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
2041 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
2042 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
2043 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
2044 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
2045 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
2046 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
2047 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
2048 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
2049 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
2050 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
2051 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
2052 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
2053 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
2054 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
2055 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
2056 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
2057 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
2058 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
2059 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
2060 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
2061 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
2062 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
2063 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
2064 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
2065 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
2066 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
2067 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
2068 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
2069 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
2070 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
2071 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
2072 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
2073 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
2074 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
2075 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
2076 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
2077 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
2078 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
2079 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
2080 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
2081 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
2082 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
2083 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
2084 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
2085 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
2086 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
2087 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
2088 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
2089 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
2090 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
2091 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
2092 .psize = 1023,
2093 .digest = "\x4d\x97\x23\xc8\xea\x7a\x7c\x15"
2094 "\xb8\xff\x97\x9c\xf5\x13\x4f\x31"
2095 "\xde\x67\xf7\x24\x73\xcd\x70\x1c"
2096 "\x03\x4a\xba\x8a\x87\x49\xfe\xdc"
2097 "\x75\x29\x62\x83\xae\x3f\x17\xab"
2098 "\xfd\x10\x4d\x8e\x17\x1c\x1f\xca",
2103 * SHA512 test vectors from from NIST and kerneli
2105 #define SHA512_TEST_VECTORS 6
2107 static struct hash_testvec sha512_tv_template[] = {
2109 .plaintext = "",
2110 .psize = 0,
2111 .digest = "\xcf\x83\xe1\x35\x7e\xef\xb8\xbd"
2112 "\xf1\x54\x28\x50\xd6\x6d\x80\x07"
2113 "\xd6\x20\xe4\x05\x0b\x57\x15\xdc"
2114 "\x83\xf4\xa9\x21\xd3\x6c\xe9\xce"
2115 "\x47\xd0\xd1\x3c\x5d\x85\xf2\xb0"
2116 "\xff\x83\x18\xd2\x87\x7e\xec\x2f"
2117 "\x63\xb9\x31\xbd\x47\x41\x7a\x81"
2118 "\xa5\x38\x32\x7a\xf9\x27\xda\x3e",
2119 }, {
2120 .plaintext = "abc",
2121 .psize = 3,
2122 .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba"
2123 "\xcc\x41\x73\x49\xae\x20\x41\x31"
2124 "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2"
2125 "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a"
2126 "\x21\x92\x99\x2a\x27\x4f\xc1\xa8"
2127 "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd"
2128 "\x45\x4d\x44\x23\x64\x3c\xe8\x0e"
2129 "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f",
2130 }, {
2131 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2132 .psize = 56,
2133 .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a"
2134 "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16"
2135 "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8"
2136 "\x27\x9b\xe3\x31\xa7\x03\xc3\x35"
2137 "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9"
2138 "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0"
2139 "\x31\xad\x85\xc7\xa7\x1d\xd7\x03"
2140 "\x54\xec\x63\x12\x38\xca\x34\x45",
2141 }, {
2142 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
2143 "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
2144 .psize = 112,
2145 .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda"
2146 "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f"
2147 "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1"
2148 "\x72\x99\xae\xad\xb6\x88\x90\x18"
2149 "\x50\x1d\x28\x9e\x49\x00\xf7\xe4"
2150 "\x33\x1b\x99\xde\xc4\xb5\x43\x3a"
2151 "\xc7\xd3\x29\xee\xb6\xdd\x26\x54"
2152 "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09",
2153 }, {
2154 .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
2155 "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
2156 .psize = 104,
2157 .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11"
2158 "\x33\xb6\x89\x81\x21\xf1\xcf\x3d"
2159 "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c"
2160 "\x52\x57\xcf\x06\x99\x11\xf7\x5d"
2161 "\x8f\x58\x31\xb5\x6e\xbf\xda\x67"
2162 "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe"
2163 "\x2b\x28\x70\xf7\x42\xa5\x80\xd8"
2164 "\xed\xb4\x19\x87\x23\x28\x50\xc9",
2165 .np = 4,
2166 .tap = { 26, 26, 26, 26 }
2167 }, {
2168 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
2169 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
2170 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
2171 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
2172 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
2173 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
2174 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
2175 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
2176 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
2177 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
2178 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
2179 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
2180 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
2181 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
2182 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
2183 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
2184 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
2185 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
2186 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
2187 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
2188 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
2189 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
2190 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
2191 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
2192 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
2193 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
2194 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
2195 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
2196 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
2197 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
2198 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
2199 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
2200 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
2201 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
2202 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
2203 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2204 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
2205 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
2206 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
2207 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
2208 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
2209 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
2210 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
2211 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
2212 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
2213 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
2214 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
2215 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
2216 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
2217 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
2218 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
2219 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
2220 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
2221 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
2222 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
2223 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
2224 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
2225 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
2226 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
2227 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
2228 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
2229 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
2230 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
2231 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
2232 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
2233 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
2234 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
2235 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
2236 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
2237 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
2238 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
2239 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
2240 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
2241 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
2242 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
2243 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
2244 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
2245 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
2246 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
2247 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
2248 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
2249 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
2250 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
2251 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
2252 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
2253 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
2254 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
2255 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
2256 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
2257 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
2258 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
2259 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
2260 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
2261 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
2262 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
2263 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
2264 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
2265 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
2266 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
2267 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
2268 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
2269 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
2270 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
2271 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
2272 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
2273 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
2274 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
2275 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
2276 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
2277 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
2278 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
2279 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
2280 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
2281 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
2282 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
2283 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
2284 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
2285 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
2286 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
2287 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
2288 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
2289 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
2290 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
2291 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
2292 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
2293 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
2294 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
2295 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
2296 .psize = 1023,
2297 .digest = "\x76\xc9\xd4\x91\x7a\x5f\x0f\xaa"
2298 "\x13\x39\xf3\x01\x7a\xfa\xe5\x41"
2299 "\x5f\x0b\xf8\xeb\x32\xfc\xbf\xb0"
2300 "\xfa\x8c\xcd\x17\x83\xe2\xfa\xeb"
2301 "\x1c\x19\xde\xe2\x75\xdc\x34\x64"
2302 "\x5f\x35\x9c\x61\x2f\x10\xf9\xec"
2303 "\x59\xca\x9d\xcc\x25\x0c\x43\xba"
2304 "\x85\xa8\xf8\xfe\xb5\x24\xb2\xee",
2310 * WHIRLPOOL test vectors from Whirlpool package
2311 * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE
2312 * submission
2314 #define WP512_TEST_VECTORS 8
2316 static struct hash_testvec wp512_tv_template[] = {
2318 .plaintext = "",
2319 .psize = 0,
2320 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
2321 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
2322 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
2323 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
2324 "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
2325 "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57"
2326 "\xEA\x89\x64\xE5\x9B\x63\xD9\x37"
2327 "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3",
2330 }, {
2331 .plaintext = "a",
2332 .psize = 1,
2333 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
2334 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
2335 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
2336 "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
2337 "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
2338 "\x3A\x42\x39\x1A\x39\x14\x5A\x59"
2339 "\x1A\x92\x20\x0D\x56\x01\x95\xE5"
2340 "\x3B\x47\x85\x84\xFD\xAE\x23\x1A",
2341 }, {
2342 .plaintext = "abc",
2343 .psize = 3,
2344 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
2345 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
2346 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
2347 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
2348 "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
2349 "\x7D\x0E\x34\x95\x71\x14\xCB\xD6"
2350 "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82"
2351 "\xD2\x25\x29\x20\x76\xD4\xEE\xF5",
2352 }, {
2353 .plaintext = "message digest",
2354 .psize = 14,
2355 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
2356 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
2357 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
2358 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
2359 "\x84\x21\x55\x76\x59\xEF\x55\xC1"
2360 "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6"
2361 "\x92\xED\x92\x00\x52\x83\x8F\x33"
2362 "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E",
2363 }, {
2364 .plaintext = "abcdefghijklmnopqrstuvwxyz",
2365 .psize = 26,
2366 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
2367 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
2368 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
2369 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
2370 "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
2371 "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6"
2372 "\xF6\x8F\x67\x3E\x72\x07\x86\x5D"
2373 "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B",
2374 }, {
2375 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
2376 "abcdefghijklmnopqrstuvwxyz0123456789",
2377 .psize = 62,
2378 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
2379 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
2380 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
2381 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
2382 "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
2383 "\xB7\xCB\x57\x21\x1B\x92\x81\xA6"
2384 "\x55\x17\xCC\x87\x9D\x7B\x96\x21"
2385 "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67",
2386 }, {
2387 .plaintext = "1234567890123456789012345678901234567890"
2388 "1234567890123456789012345678901234567890",
2389 .psize = 80,
2390 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
2391 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
2392 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
2393 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
2394 "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
2395 "\x38\xCD\x04\x7B\x26\x81\xA5\x1A"
2396 "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B"
2397 "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B",
2398 }, {
2399 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
2400 .psize = 32,
2401 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
2402 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
2403 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
2404 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
2405 "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
2406 "\x7B\x94\x76\x39\xFE\x05\x0B\x56"
2407 "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6"
2408 "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD",
2412 #define WP384_TEST_VECTORS 8
2414 static struct hash_testvec wp384_tv_template[] = {
2416 .plaintext = "",
2417 .psize = 0,
2418 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
2419 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
2420 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
2421 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
2422 "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
2423 "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57",
2426 }, {
2427 .plaintext = "a",
2428 .psize = 1,
2429 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
2430 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
2431 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
2432 "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
2433 "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
2434 "\x3A\x42\x39\x1A\x39\x14\x5A\x59",
2435 }, {
2436 .plaintext = "abc",
2437 .psize = 3,
2438 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
2439 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
2440 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
2441 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
2442 "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
2443 "\x7D\x0E\x34\x95\x71\x14\xCB\xD6",
2444 }, {
2445 .plaintext = "message digest",
2446 .psize = 14,
2447 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
2448 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
2449 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
2450 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
2451 "\x84\x21\x55\x76\x59\xEF\x55\xC1"
2452 "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6",
2453 }, {
2454 .plaintext = "abcdefghijklmnopqrstuvwxyz",
2455 .psize = 26,
2456 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
2457 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
2458 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
2459 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
2460 "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
2461 "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6",
2462 }, {
2463 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
2464 "abcdefghijklmnopqrstuvwxyz0123456789",
2465 .psize = 62,
2466 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
2467 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
2468 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
2469 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
2470 "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
2471 "\xB7\xCB\x57\x21\x1B\x92\x81\xA6",
2472 }, {
2473 .plaintext = "1234567890123456789012345678901234567890"
2474 "1234567890123456789012345678901234567890",
2475 .psize = 80,
2476 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
2477 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
2478 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
2479 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
2480 "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
2481 "\x38\xCD\x04\x7B\x26\x81\xA5\x1A",
2482 }, {
2483 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
2484 .psize = 32,
2485 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
2486 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
2487 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
2488 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
2489 "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
2490 "\x7B\x94\x76\x39\xFE\x05\x0B\x56",
2494 #define WP256_TEST_VECTORS 8
2496 static struct hash_testvec wp256_tv_template[] = {
2498 .plaintext = "",
2499 .psize = 0,
2500 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
2501 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
2502 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
2503 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7",
2506 }, {
2507 .plaintext = "a",
2508 .psize = 1,
2509 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
2510 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
2511 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
2512 "\x73\xC4\x50\x01\xD0\x08\x7B\x42",
2513 }, {
2514 .plaintext = "abc",
2515 .psize = 3,
2516 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
2517 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
2518 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
2519 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C",
2520 }, {
2521 .plaintext = "message digest",
2522 .psize = 14,
2523 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
2524 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
2525 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
2526 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B",
2527 }, {
2528 .plaintext = "abcdefghijklmnopqrstuvwxyz",
2529 .psize = 26,
2530 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
2531 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
2532 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
2533 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B",
2534 }, {
2535 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
2536 "abcdefghijklmnopqrstuvwxyz0123456789",
2537 .psize = 62,
2538 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
2539 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
2540 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
2541 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E",
2542 }, {
2543 .plaintext = "1234567890123456789012345678901234567890"
2544 "1234567890123456789012345678901234567890",
2545 .psize = 80,
2546 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
2547 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
2548 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
2549 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29",
2550 }, {
2551 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
2552 .psize = 32,
2553 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
2554 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
2555 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
2556 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69",
2561 * TIGER test vectors from Tiger website
2563 #define TGR192_TEST_VECTORS 6
2565 static struct hash_testvec tgr192_tv_template[] = {
2567 .plaintext = "",
2568 .psize = 0,
2569 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
2570 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
2571 "\xf3\x73\xde\x2d\x49\x58\x4e\x7a",
2572 }, {
2573 .plaintext = "abc",
2574 .psize = 3,
2575 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
2576 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
2577 "\x93\x5f\x7b\x95\x1c\x13\x29\x51",
2578 }, {
2579 .plaintext = "Tiger",
2580 .psize = 5,
2581 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
2582 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
2583 "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf",
2584 }, {
2585 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2586 .psize = 64,
2587 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
2588 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
2589 "\xb5\x86\x44\x50\x34\xa5\xa3\x86",
2590 }, {
2591 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
2592 .psize = 64,
2593 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
2594 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
2595 "\x57\x89\x65\x65\x97\x5f\x91\x97",
2596 }, {
2597 .plaintext = "Tiger - A Fast New Hash Function, "
2598 "by Ross Anderson and Eli Biham, "
2599 "proceedings of Fast Software Encryption 3, "
2600 "Cambridge, 1996.",
2601 .psize = 125,
2602 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
2603 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
2604 "\xdd\x68\x15\x1d\x50\x39\x74\xfc",
2608 #define TGR160_TEST_VECTORS 6
2610 static struct hash_testvec tgr160_tv_template[] = {
2612 .plaintext = "",
2613 .psize = 0,
2614 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
2615 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
2616 "\xf3\x73\xde\x2d",
2617 }, {
2618 .plaintext = "abc",
2619 .psize = 3,
2620 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
2621 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
2622 "\x93\x5f\x7b\x95",
2623 }, {
2624 .plaintext = "Tiger",
2625 .psize = 5,
2626 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
2627 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
2628 "\x37\x79\x0c\x11",
2629 }, {
2630 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2631 .psize = 64,
2632 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
2633 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
2634 "\xb5\x86\x44\x50",
2635 }, {
2636 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
2637 .psize = 64,
2638 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
2639 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
2640 "\x57\x89\x65\x65",
2641 }, {
2642 .plaintext = "Tiger - A Fast New Hash Function, "
2643 "by Ross Anderson and Eli Biham, "
2644 "proceedings of Fast Software Encryption 3, "
2645 "Cambridge, 1996.",
2646 .psize = 125,
2647 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
2648 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
2649 "\xdd\x68\x15\x1d",
2653 #define TGR128_TEST_VECTORS 6
2655 static struct hash_testvec tgr128_tv_template[] = {
2657 .plaintext = "",
2658 .psize = 0,
2659 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
2660 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f",
2661 }, {
2662 .plaintext = "abc",
2663 .psize = 3,
2664 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
2665 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf",
2666 }, {
2667 .plaintext = "Tiger",
2668 .psize = 5,
2669 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
2670 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec",
2671 }, {
2672 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2673 .psize = 64,
2674 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
2675 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e",
2676 }, {
2677 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
2678 .psize = 64,
2679 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
2680 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9",
2681 }, {
2682 .plaintext = "Tiger - A Fast New Hash Function, "
2683 "by Ross Anderson and Eli Biham, "
2684 "proceedings of Fast Software Encryption 3, "
2685 "Cambridge, 1996.",
2686 .psize = 125,
2687 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
2688 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24",
2692 #define GHASH_TEST_VECTORS 6
2694 static struct hash_testvec ghash_tv_template[] =
2697 .key = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03"
2698 "\xff\xca\xff\x95\xf8\x30\xf0\x61",
2699 .ksize = 16,
2700 .plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0"
2701 "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
2702 .psize = 16,
2703 .digest = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
2704 "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
2705 }, {
2706 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2707 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
2708 .ksize = 16,
2709 .plaintext = "what do ya want for nothing?",
2710 .psize = 28,
2711 .digest = "\x3e\x1f\x5c\x4d\x65\xf0\xef\xce"
2712 "\x0d\x61\x06\x27\x66\x51\xd5\xe2",
2713 .np = 2,
2714 .tap = {14, 14}
2715 }, {
2716 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2717 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
2718 .ksize = 16,
2719 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2720 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2721 "\xdd\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",
2723 .psize = 50,
2724 .digest = "\xfb\x49\x8a\x36\xe1\x96\xe1\x96"
2725 "\xe1\x96\xe1\x96\xe1\x96\xe1\x96",
2726 }, {
2727 .key = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
2728 "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
2729 .ksize = 16,
2730 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2731 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2732 "\xcd\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",
2734 .psize = 50,
2735 .digest = "\x2b\x5c\x0c\x7f\x52\xd1\x60\xc2"
2736 "\x49\xed\x6e\x32\x7a\xa9\xbe\x08",
2737 }, {
2738 .key = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0"
2739 "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
2740 .ksize = 16,
2741 .plaintext = "Test With Truncation",
2742 .psize = 20,
2743 .digest = "\xf8\x94\x87\x2a\x4b\x63\x99\x28"
2744 "\x23\xf7\x93\xf7\x19\xf5\x96\xd9",
2745 }, {
2746 .key = "\x0a\x1b\x2c\x3d\x4e\x5f\x64\x71"
2747 "\x82\x93\xa4\xb5\xc6\xd7\xe8\xf9",
2748 .ksize = 16,
2749 .plaintext = "\x56\x6f\x72\x20\x6c\x61\x75\x74"
2750 "\x65\x72\x20\x4c\x61\x75\x73\x63"
2751 "\x68\x65\x6e\x20\x75\x6e\x64\x20"
2752 "\x53\x74\x61\x75\x6e\x65\x6e\x20"
2753 "\x73\x65\x69\x20\x73\x74\x69\x6c"
2754 "\x6c\x2c\x0a\x64\x75\x20\x6d\x65"
2755 "\x69\x6e\x20\x74\x69\x65\x66\x74"
2756 "\x69\x65\x66\x65\x73\x20\x4c\x65"
2757 "\x62\x65\x6e\x3b\x0a\x64\x61\x73"
2758 "\x73\x20\x64\x75\x20\x77\x65\x69"
2759 "\xc3\x9f\x74\x20\x77\x61\x73\x20"
2760 "\x64\x65\x72\x20\x57\x69\x6e\x64"
2761 "\x20\x64\x69\x72\x20\x77\x69\x6c"
2762 "\x6c\x2c\x0a\x65\x68\x20\x6e\x6f"
2763 "\x63\x68\x20\x64\x69\x65\x20\x42"
2764 "\x69\x72\x6b\x65\x6e\x20\x62\x65"
2765 "\x62\x65\x6e\x2e\x0a\x0a\x55\x6e"
2766 "\x64\x20\x77\x65\x6e\x6e\x20\x64"
2767 "\x69\x72\x20\x65\x69\x6e\x6d\x61"
2768 "\x6c\x20\x64\x61\x73\x20\x53\x63"
2769 "\x68\x77\x65\x69\x67\x65\x6e\x20"
2770 "\x73\x70\x72\x61\x63\x68\x2c\x0a"
2771 "\x6c\x61\x73\x73\x20\x64\x65\x69"
2772 "\x6e\x65\x20\x53\x69\x6e\x6e\x65"
2773 "\x20\x62\x65\x73\x69\x65\x67\x65"
2774 "\x6e\x2e\x0a\x4a\x65\x64\x65\x6d"
2775 "\x20\x48\x61\x75\x63\x68\x65\x20"
2776 "\x67\x69\x62\x74\x20\x64\x69\x63"
2777 "\x68\x2c\x20\x67\x69\x62\x20\x6e"
2778 "\x61\x63\x68\x2c\x0a\x65\x72\x20"
2779 "\x77\x69\x72\x64\x20\x64\x69\x63"
2780 "\x68\x20\x6c\x69\x65\x62\x65\x6e"
2781 "\x20\x75\x6e\x64\x20\x77\x69\x65"
2782 "\x67\x65\x6e\x2e\x0a\x0a\x55\x6e"
2783 "\x64\x20\x64\x61\x6e\x6e\x20\x6d"
2784 "\x65\x69\x6e\x65\x20\x53\x65\x65"
2785 "\x6c\x65\x20\x73\x65\x69\x74\x20"
2786 "\x77\x65\x69\x74\x2c\x20\x73\x65"
2787 "\x69\x20\x77\x65\x69\x74\x2c\x0a"
2788 "\x64\x61\x73\x73\x20\x64\x69\x72"
2789 "\x20\x64\x61\x73\x20\x4c\x65\x62"
2790 "\x65\x6e\x20\x67\x65\x6c\x69\x6e"
2791 "\x67\x65\x2c\x0a\x62\x72\x65\x69"
2792 "\x74\x65\x20\x64\x69\x63\x68\x20"
2793 "\x77\x69\x65\x20\x65\x69\x6e\x20"
2794 "\x46\x65\x69\x65\x72\x6b\x6c\x65"
2795 "\x69\x64\x0a\xc3\xbc\x62\x65\x72"
2796 "\x20\x64\x69\x65\x20\x73\x69\x6e"
2797 "\x6e\x65\x6e\x64\x65\x6e\x20\x44"
2798 "\x69\x6e\x67\x65\x2e\x2e\x2e\x0a",
2799 .psize = 400,
2800 .digest = "\xad\xb1\xc1\xe9\x56\x70\x31\x1d"
2801 "\xbb\x5b\xdf\x5e\x70\x72\x1a\x57",
2806 * HMAC-MD5 test vectors from RFC2202
2807 * (These need to be fixed to not use strlen).
2809 #define HMAC_MD5_TEST_VECTORS 7
2811 static struct hash_testvec hmac_md5_tv_template[] =
2814 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
2815 .ksize = 16,
2816 .plaintext = "Hi There",
2817 .psize = 8,
2818 .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c"
2819 "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d",
2820 }, {
2821 .key = "Jefe",
2822 .ksize = 4,
2823 .plaintext = "what do ya want for nothing?",
2824 .psize = 28,
2825 .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03"
2826 "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38",
2827 .np = 2,
2828 .tap = {14, 14}
2829 }, {
2830 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
2831 .ksize = 16,
2832 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2833 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2834 "\xdd\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",
2836 .psize = 50,
2837 .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88"
2838 "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6",
2839 }, {
2840 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
2841 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
2842 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
2843 .ksize = 25,
2844 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2845 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2846 "\xcd\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",
2848 .psize = 50,
2849 .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea"
2850 "\x3a\x75\x16\x47\x46\xff\xaa\x79",
2851 }, {
2852 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
2853 .ksize = 16,
2854 .plaintext = "Test With Truncation",
2855 .psize = 20,
2856 .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00"
2857 "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c",
2858 }, {
2859 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2860 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2861 "\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",
2866 .ksize = 80,
2867 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
2868 .psize = 54,
2869 .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f"
2870 "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd",
2871 }, {
2872 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2873 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2874 "\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",
2879 .ksize = 80,
2880 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
2881 "Block-Size Data",
2882 .psize = 73,
2883 .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee"
2884 "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e",
2889 * HMAC-RIPEMD128 test vectors from RFC2286
2891 #define HMAC_RMD128_TEST_VECTORS 7
2893 static struct hash_testvec hmac_rmd128_tv_template[] = {
2895 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
2896 .ksize = 16,
2897 .plaintext = "Hi There",
2898 .psize = 8,
2899 .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf"
2900 "\x81\xc1\x72\xe8\x4e\x07\x34\xdb",
2901 }, {
2902 .key = "Jefe",
2903 .ksize = 4,
2904 .plaintext = "what do ya want for nothing?",
2905 .psize = 28,
2906 .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34"
2907 "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b",
2908 .np = 2,
2909 .tap = { 14, 14 },
2910 }, {
2911 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
2912 .ksize = 16,
2913 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2914 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2915 "\xdd\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",
2917 .psize = 50,
2918 .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d"
2919 "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d",
2920 }, {
2921 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
2922 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
2923 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
2924 .ksize = 25,
2925 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2926 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2927 "\xcd\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",
2929 .psize = 50,
2930 .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a"
2931 "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94",
2932 }, {
2933 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
2934 .ksize = 16,
2935 .plaintext = "Test With Truncation",
2936 .psize = 20,
2937 .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03"
2938 "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a",
2939 }, {
2940 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2941 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2942 "\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",
2947 .ksize = 80,
2948 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
2949 .psize = 54,
2950 .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a"
2951 "\x1f\x59\xd3\x73\xc1\x50\xac\xbb",
2952 }, {
2953 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2954 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2955 "\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",
2960 .ksize = 80,
2961 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
2962 "Block-Size Data",
2963 .psize = 73,
2964 .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4"
2965 "\x06\x90\xc2\x37\x63\x5f\x30\xc5",
2970 * HMAC-RIPEMD160 test vectors from RFC2286
2972 #define HMAC_RMD160_TEST_VECTORS 7
2974 static struct hash_testvec hmac_rmd160_tv_template[] = {
2976 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
2977 .ksize = 20,
2978 .plaintext = "Hi There",
2979 .psize = 8,
2980 .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e"
2981 "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68",
2982 }, {
2983 .key = "Jefe",
2984 .ksize = 4,
2985 .plaintext = "what do ya want for nothing?",
2986 .psize = 28,
2987 .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4"
2988 "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69",
2989 .np = 2,
2990 .tap = { 14, 14 },
2991 }, {
2992 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
2993 .ksize = 20,
2994 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2995 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2996 "\xdd\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",
2998 .psize = 50,
2999 .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4"
3000 "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1",
3001 }, {
3002 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
3003 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3004 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
3005 .ksize = 25,
3006 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3007 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3008 "\xcd\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",
3010 .psize = 50,
3011 .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1"
3012 "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4",
3013 }, {
3014 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
3015 .ksize = 20,
3016 .plaintext = "Test With Truncation",
3017 .psize = 20,
3018 .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a"
3019 "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39",
3020 }, {
3021 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3022 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3023 "\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",
3028 .ksize = 80,
3029 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
3030 .psize = 54,
3031 .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd"
3032 "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b",
3033 }, {
3034 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3035 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3036 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3037 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3038 "\xaa\xaa\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",
3041 .ksize = 80,
3042 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
3043 "Block-Size Data",
3044 .psize = 73,
3045 .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f"
3046 "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a",
3051 * HMAC-SHA1 test vectors from RFC2202
3053 #define HMAC_SHA1_TEST_VECTORS 7
3055 static struct hash_testvec hmac_sha1_tv_template[] = {
3057 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
3058 .ksize = 20,
3059 .plaintext = "Hi There",
3060 .psize = 8,
3061 .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64"
3062 "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1"
3063 "\x46\xbe",
3064 }, {
3065 .key = "Jefe",
3066 .ksize = 4,
3067 .plaintext = "what do ya want for nothing?",
3068 .psize = 28,
3069 .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74"
3070 "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79",
3071 .np = 2,
3072 .tap = { 14, 14 }
3073 }, {
3074 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3075 .ksize = 20,
3076 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3077 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3078 "\xdd\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",
3080 .psize = 50,
3081 .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3"
3082 "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3",
3083 }, {
3084 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
3085 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3086 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
3087 .ksize = 25,
3088 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3089 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3090 "\xcd\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",
3092 .psize = 50,
3093 .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84"
3094 "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda",
3095 }, {
3096 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
3097 .ksize = 20,
3098 .plaintext = "Test With Truncation",
3099 .psize = 20,
3100 .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2"
3101 "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04",
3102 }, {
3103 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3104 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3105 "\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",
3110 .ksize = 80,
3111 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
3112 .psize = 54,
3113 .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70"
3114 "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12",
3115 }, {
3116 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3117 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3118 "\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",
3123 .ksize = 80,
3124 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
3125 "Block-Size Data",
3126 .psize = 73,
3127 .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b"
3128 "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91",
3134 * SHA224 HMAC test vectors from RFC4231
3136 #define HMAC_SHA224_TEST_VECTORS 4
3138 static struct hash_testvec hmac_sha224_tv_template[] = {
3140 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3141 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3142 "\x0b\x0b\x0b\x0b",
3143 .ksize = 20,
3144 /* ("Hi There") */
3145 .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65",
3146 .psize = 8,
3147 .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19"
3148 "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f"
3149 "\x47\xb4\xb1\x16\x99\x12\xba\x4f"
3150 "\x53\x68\x4b\x22",
3151 }, {
3152 .key = "Jefe",
3153 .ksize = 4,
3154 /* ("what do ya want for nothing?") */
3155 .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20"
3156 "\x79\x61\x20\x77\x61\x6e\x74\x20"
3157 "\x66\x6f\x72\x20\x6e\x6f\x74\x68"
3158 "\x69\x6e\x67\x3f",
3159 .psize = 28,
3160 .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf"
3161 "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f"
3162 "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00"
3163 "\x8f\xd0\x5e\x44",
3164 .np = 4,
3165 .tap = { 7, 7, 7, 7 }
3166 }, {
3167 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3168 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3169 "\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",
3184 .ksize = 131,
3185 /* ("Test Using Larger Than Block-Size Key - Hash Key First") */
3186 .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69"
3187 "\x6e\x67\x20\x4c\x61\x72\x67\x65"
3188 "\x72\x20\x54\x68\x61\x6e\x20\x42"
3189 "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a"
3190 "\x65\x20\x4b\x65\x79\x20\x2d\x20"
3191 "\x48\x61\x73\x68\x20\x4b\x65\x79"
3192 "\x20\x46\x69\x72\x73\x74",
3193 .psize = 54,
3194 .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad"
3195 "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2"
3196 "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27"
3197 "\x3f\xa6\x87\x0e",
3198 }, {
3199 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3200 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3201 "\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",
3216 .ksize = 131,
3217 /* ("This is a test using a larger than block-size key and a")
3218 (" larger than block-size data. The key needs to be")
3219 (" hashed before being used by the HMAC algorithm.") */
3220 .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20"
3221 "\x61\x20\x74\x65\x73\x74\x20\x75"
3222 "\x73\x69\x6e\x67\x20\x61\x20\x6c"
3223 "\x61\x72\x67\x65\x72\x20\x74\x68"
3224 "\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
3225 "\x2d\x73\x69\x7a\x65\x20\x6b\x65"
3226 "\x79\x20\x61\x6e\x64\x20\x61\x20"
3227 "\x6c\x61\x72\x67\x65\x72\x20\x74"
3228 "\x68\x61\x6e\x20\x62\x6c\x6f\x63"
3229 "\x6b\x2d\x73\x69\x7a\x65\x20\x64"
3230 "\x61\x74\x61\x2e\x20\x54\x68\x65"
3231 "\x20\x6b\x65\x79\x20\x6e\x65\x65"
3232 "\x64\x73\x20\x74\x6f\x20\x62\x65"
3233 "\x20\x68\x61\x73\x68\x65\x64\x20"
3234 "\x62\x65\x66\x6f\x72\x65\x20\x62"
3235 "\x65\x69\x6e\x67\x20\x75\x73\x65"
3236 "\x64\x20\x62\x79\x20\x74\x68\x65"
3237 "\x20\x48\x4d\x41\x43\x20\x61\x6c"
3238 "\x67\x6f\x72\x69\x74\x68\x6d\x2e",
3239 .psize = 152,
3240 .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02"
3241 "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd"
3242 "\x94\x67\x70\xdb\x9c\x2b\x95\xc9"
3243 "\xf6\xf5\x65\xd1",
3248 * HMAC-SHA256 test vectors from
3249 * draft-ietf-ipsec-ciph-sha-256-01.txt
3251 #define HMAC_SHA256_TEST_VECTORS 10
3253 static struct hash_testvec hmac_sha256_tv_template[] = {
3255 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
3256 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3257 "\x11\x12\x13\x14\x15\x16\x17\x18"
3258 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
3259 .ksize = 32,
3260 .plaintext = "abc",
3261 .psize = 3,
3262 .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a"
3263 "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a"
3264 "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66"
3265 "\x92\x75\x90\x21\xcf\xab\x81\x81",
3266 }, {
3267 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
3268 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3269 "\x11\x12\x13\x14\x15\x16\x17\x18"
3270 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
3271 .ksize = 32,
3272 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
3273 .psize = 56,
3274 .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08"
3275 "\x18\x4b\xa7\x31\x31\xc5\x3c\xae"
3276 "\xe6\x98\xe3\x61\x19\x42\x11\x49"
3277 "\xea\x8c\x71\x24\x56\x69\x7d\x30",
3278 }, {
3279 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
3280 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3281 "\x11\x12\x13\x14\x15\x16\x17\x18"
3282 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
3283 .ksize = 32,
3284 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
3285 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
3286 .psize = 112,
3287 .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34"
3288 "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab"
3289 "\x73\xac\xf0\xfd\x06\x04\x47\xa5"
3290 "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3",
3291 }, {
3292 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3293 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3294 "\x0b\x0b\x0b\x0b\x0b\x0b",
3295 .ksize = 32,
3296 .plaintext = "Hi There",
3297 .psize = 8,
3298 .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6"
3299 "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5"
3300 "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c"
3301 "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7",
3302 }, {
3303 .key = "Jefe",
3304 .ksize = 4,
3305 .plaintext = "what do ya want for nothing?",
3306 .psize = 28,
3307 .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e"
3308 "\x6a\x04\x24\x26\x08\x95\x75\xc7"
3309 "\x5a\x00\x3f\x08\x9d\x27\x39\x83"
3310 "\x9d\xec\x58\xb9\x64\xec\x38\x43",
3311 .np = 2,
3312 .tap = { 14, 14 }
3313 }, {
3314 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3315 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3316 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3317 .ksize = 32,
3318 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3319 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3320 "\xdd\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",
3322 .psize = 50,
3323 .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea"
3324 "\x91\xe5\x3a\xba\x30\x92\xf9\x62"
3325 "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc"
3326 "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0",
3327 }, {
3328 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
3329 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3330 "\x11\x12\x13\x14\x15\x16\x17\x18"
3331 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
3332 "\x21\x22\x23\x24\x25",
3333 .ksize = 37,
3334 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3335 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3336 "\xcd\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",
3338 .psize = 50,
3339 .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74"
3340 "\x4c\x66\xde\xe0\xf8\xf0\x74\x55"
3341 "\x6e\xc4\xaf\x55\xef\x07\x99\x85"
3342 "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17",
3343 }, {
3344 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
3345 "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
3346 "\x0c\x0c\x0c\x0c\x0c\x0c",
3347 .ksize = 32,
3348 .plaintext = "Test With Truncation",
3349 .psize = 20,
3350 .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b"
3351 "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17"
3352 "\xd4\xf5\x89\x66\x8a\x58\x7b\x27"
3353 "\x00\xa9\xc9\x7c\x11\x93\xcf\x42",
3354 }, {
3355 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3356 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3357 "\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",
3362 .ksize = 80,
3363 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
3364 .psize = 54,
3365 .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09"
3366 "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb"
3367 "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e"
3368 "\x7d\xdd\x39\x09\x1b\x32\x35\x2f",
3369 }, {
3370 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3371 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3372 "\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",
3377 .ksize = 80,
3378 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than "
3379 "One Block-Size Data",
3380 .psize = 73,
3381 .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3"
3382 "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8"
3383 "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc"
3384 "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6",
3388 #define CMAC_AES_TEST_VECTORS 6
3390 static struct hash_testvec aes_cmac128_tv_template[] = {
3391 { /* From NIST Special Publication 800-38B, AES-128 */
3392 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
3393 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
3394 .plaintext = zeroed_string,
3395 .digest = "\xbb\x1d\x69\x29\xe9\x59\x37\x28"
3396 "\x7f\xa3\x7d\x12\x9b\x75\x67\x46",
3397 .psize = 0,
3398 .ksize = 16,
3399 }, {
3400 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
3401 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
3402 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3403 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a",
3404 .digest = "\x07\x0a\x16\xb4\x6b\x4d\x41\x44"
3405 "\xf7\x9b\xdd\x9d\xd0\x4a\x28\x7c",
3406 .psize = 16,
3407 .ksize = 16,
3408 }, {
3409 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
3410 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
3411 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3412 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3413 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
3414 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
3415 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11",
3416 .digest = "\xdf\xa6\x67\x47\xde\x9a\xe6\x30"
3417 "\x30\xca\x32\x61\x14\x97\xc8\x27",
3418 .psize = 40,
3419 .ksize = 16,
3420 }, {
3421 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
3422 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
3423 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3424 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3425 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
3426 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
3427 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
3428 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
3429 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
3430 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
3431 .digest = "\x51\xf0\xbe\xbf\x7e\x3b\x9d\x92"
3432 "\xfc\x49\x74\x17\x79\x36\x3c\xfe",
3433 .psize = 64,
3434 .ksize = 16,
3435 }, { /* From NIST Special Publication 800-38B, AES-256 */
3436 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
3437 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
3438 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
3439 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
3440 .plaintext = zeroed_string,
3441 .digest = "\x02\x89\x62\xf6\x1b\x7b\xf8\x9e"
3442 "\xfc\x6b\x55\x1f\x46\x67\xd9\x83",
3443 .psize = 0,
3444 .ksize = 32,
3445 }, {
3446 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
3447 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
3448 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
3449 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
3450 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3451 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3452 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
3453 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
3454 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
3455 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
3456 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
3457 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
3458 .digest = "\xe1\x99\x21\x90\x54\x9f\x6e\xd5"
3459 "\x69\x6a\x2c\x05\x6c\x31\x54\x10",
3460 .psize = 64,
3461 .ksize = 32,
3465 #define CMAC_DES3_EDE_TEST_VECTORS 4
3467 static struct hash_testvec des3_ede_cmac64_tv_template[] = {
3469 * From NIST Special Publication 800-38B, Three Key TDEA
3470 * Corrected test vectors from:
3471 * http://csrc.nist.gov/publications/nistpubs/800-38B/Updated_CMAC_Examples.pdf
3474 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
3475 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
3476 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
3477 .plaintext = zeroed_string,
3478 .digest = "\xb7\xa6\x88\xe1\x22\xff\xaf\x95",
3479 .psize = 0,
3480 .ksize = 24,
3481 }, {
3482 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
3483 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
3484 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
3485 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96",
3486 .digest = "\x8e\x8f\x29\x31\x36\x28\x37\x97",
3487 .psize = 8,
3488 .ksize = 24,
3489 }, {
3490 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
3491 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
3492 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
3493 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3494 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3495 "\xae\x2d\x8a\x57",
3496 .digest = "\x74\x3d\xdb\xe0\xce\x2d\xc2\xed",
3497 .psize = 20,
3498 .ksize = 24,
3499 }, {
3500 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
3501 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
3502 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
3503 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3504 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3505 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
3506 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51",
3507 .digest = "\x33\xe6\xb1\x09\x24\x00\xea\xe5",
3508 .psize = 32,
3509 .ksize = 24,
3513 #define XCBC_AES_TEST_VECTORS 6
3515 static struct hash_testvec aes_xcbc128_tv_template[] = {
3517 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3518 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3519 .plaintext = zeroed_string,
3520 .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c"
3521 "\x45\x73\xdf\xd5\x84\xd7\x9f\x29",
3522 .psize = 0,
3523 .ksize = 16,
3524 }, {
3525 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3526 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3527 .plaintext = "\x00\x01\x02",
3528 .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf"
3529 "\xe7\x21\x9c\xee\xf1\x72\x75\x6f",
3530 .psize = 3,
3531 .ksize = 16,
3532 } , {
3533 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3534 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3535 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
3536 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3537 .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7"
3538 "\x99\x98\xa4\x39\x4f\xf7\xa2\x63",
3539 .psize = 16,
3540 .ksize = 16,
3541 }, {
3542 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3543 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3544 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
3545 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
3546 "\x10\x11\x12\x13",
3547 .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15"
3548 "\xb8\x98\x5c\x63\x05\x5e\xd3\x08",
3549 .tap = { 10, 10 },
3550 .psize = 20,
3551 .np = 2,
3552 .ksize = 16,
3553 }, {
3554 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3555 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3556 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
3557 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
3558 "\x10\x11\x12\x13\x14\x15\x16\x17"
3559 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
3560 .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3"
3561 "\x68\x07\x73\x4b\xd5\x28\x3f\xd4",
3562 .psize = 32,
3563 .ksize = 16,
3564 }, {
3565 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3566 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3567 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
3568 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
3569 "\x10\x11\x12\x13\x14\x15\x16\x17"
3570 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
3571 "\x20\x21",
3572 .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3"
3573 "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8",
3574 .tap = { 17, 17 },
3575 .psize = 34,
3576 .np = 2,
3577 .ksize = 16,
3581 #define VMAC_AES_TEST_VECTORS 11
3582 static char vmac_string1[128] = {'\x01', '\x01', '\x01', '\x01',
3583 '\x02', '\x03', '\x02', '\x02',
3584 '\x02', '\x04', '\x01', '\x07',
3585 '\x04', '\x01', '\x04', '\x03',};
3586 static char vmac_string2[128] = {'a', 'b', 'c',};
3587 static char vmac_string3[128] = {'a', 'b', 'c', 'a', 'b', 'c',
3588 'a', 'b', 'c', 'a', 'b', 'c',
3589 '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',
3597 static char vmac_string4[17] = {'b', 'c', 'e', 'f',
3598 'i', 'j', 'l', 'm',
3599 'o', 'p', 'r', 's',
3600 't', 'u', 'w', 'x', 'z'};
3602 static char vmac_string5[127] = {'r', 'm', 'b', 't', 'c',
3603 'o', 'l', 'k', ']', '%',
3604 '9', '2', '7', '!', 'A'};
3606 static char vmac_string6[129] = {'p', 't', '*', '7', 'l',
3607 'i', '!', '#', 'w', '0',
3608 'z', '/', '4', 'A', 'n'};
3610 static struct hash_testvec aes_vmac128_tv_template[] = {
3612 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3613 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3614 .plaintext = NULL,
3615 .digest = "\x07\x58\x80\x35\x77\xa4\x7b\x54",
3616 .psize = 0,
3617 .ksize = 16,
3618 }, {
3619 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3620 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3621 .plaintext = vmac_string1,
3622 .digest = "\xce\xf5\x3c\xd3\xae\x68\x8c\xa1",
3623 .psize = 128,
3624 .ksize = 16,
3625 }, {
3626 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3627 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3628 .plaintext = vmac_string2,
3629 .digest = "\xc9\x27\xb0\x73\x81\xbd\x14\x2d",
3630 .psize = 128,
3631 .ksize = 16,
3632 }, {
3633 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3634 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3635 .plaintext = vmac_string3,
3636 .digest = "\x8d\x1a\x95\x8c\x98\x47\x0b\x19",
3637 .psize = 128,
3638 .ksize = 16,
3639 }, {
3640 .key = "abcdefghijklmnop",
3641 .plaintext = NULL,
3642 .digest = "\x3b\x89\xa1\x26\x9e\x55\x8f\x84",
3643 .psize = 0,
3644 .ksize = 16,
3645 }, {
3646 .key = "abcdefghijklmnop",
3647 .plaintext = vmac_string1,
3648 .digest = "\xab\x5e\xab\xb0\xf6\x8d\x74\xc2",
3649 .psize = 128,
3650 .ksize = 16,
3651 }, {
3652 .key = "abcdefghijklmnop",
3653 .plaintext = vmac_string2,
3654 .digest = "\x11\x15\x68\x42\x3d\x7b\x09\xdf",
3655 .psize = 128,
3656 .ksize = 16,
3657 }, {
3658 .key = "abcdefghijklmnop",
3659 .plaintext = vmac_string3,
3660 .digest = "\x8b\x32\x8f\xe1\xed\x8f\xfa\xd4",
3661 .psize = 128,
3662 .ksize = 16,
3663 }, {
3664 .key = "a09b5cd!f#07K\x00\x00\x00",
3665 .plaintext = vmac_string4,
3666 .digest = "\xab\xa5\x0f\xea\x42\x4e\xa1\x5f",
3667 .psize = sizeof(vmac_string4),
3668 .ksize = 16,
3669 }, {
3670 .key = "a09b5cd!f#07K\x00\x00\x00",
3671 .plaintext = vmac_string5,
3672 .digest = "\x25\x31\x98\xbc\x1d\xe8\x67\x60",
3673 .psize = sizeof(vmac_string5),
3674 .ksize = 16,
3675 }, {
3676 .key = "a09b5cd!f#07K\x00\x00\x00",
3677 .plaintext = vmac_string6,
3678 .digest = "\xc4\xae\x9b\x47\x95\x65\xeb\x41",
3679 .psize = sizeof(vmac_string6),
3680 .ksize = 16,
3685 * SHA384 HMAC test vectors from RFC4231
3688 #define HMAC_SHA384_TEST_VECTORS 4
3690 static struct hash_testvec hmac_sha384_tv_template[] = {
3692 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3693 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3694 "\x0b\x0b\x0b\x0b",
3695 .ksize = 20,
3696 .plaintext = "Hi There",
3697 .psize = 8,
3698 .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62"
3699 "\x6b\x08\x25\xf4\xab\x46\x90\x7f"
3700 "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6"
3701 "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c"
3702 "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f"
3703 "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6",
3704 }, {
3705 .key = "Jefe",
3706 .ksize = 4,
3707 .plaintext = "what do ya want for nothing?",
3708 .psize = 28,
3709 .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31"
3710 "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b"
3711 "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47"
3712 "\xe4\x2e\xc3\x73\x63\x22\x44\x5e"
3713 "\x8e\x22\x40\xca\x5e\x69\xe2\xc7"
3714 "\x8b\x32\x39\xec\xfa\xb2\x16\x49",
3715 .np = 4,
3716 .tap = { 7, 7, 7, 7 }
3717 }, {
3718 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3719 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3720 "\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",
3735 .ksize = 131,
3736 .plaintext = "Test Using Larger Than Block-Siz"
3737 "e Key - Hash Key First",
3738 .psize = 54,
3739 .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90"
3740 "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4"
3741 "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f"
3742 "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6"
3743 "\x0c\x2e\xf6\xab\x40\x30\xfe\x82"
3744 "\x96\x24\x8d\xf1\x63\xf4\x49\x52",
3745 }, {
3746 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3747 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3748 "\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",
3763 .ksize = 131,
3764 .plaintext = "This is a test u"
3765 "sing a larger th"
3766 "an block-size ke"
3767 "y and a larger t"
3768 "han block-size d"
3769 "ata. The key nee"
3770 "ds to be hashed "
3771 "before being use"
3772 "d by the HMAC al"
3773 "gorithm.",
3774 .psize = 152,
3775 .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d"
3776 "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c"
3777 "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a"
3778 "\xdc\xce\xbb\x82\x46\x1e\x99\xc5"
3779 "\xa6\x78\xcc\x31\xe7\x99\x17\x6d"
3780 "\x38\x60\xe6\x11\x0c\x46\x52\x3e",
3785 * SHA512 HMAC test vectors from RFC4231
3788 #define HMAC_SHA512_TEST_VECTORS 4
3790 static struct hash_testvec hmac_sha512_tv_template[] = {
3792 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3793 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3794 "\x0b\x0b\x0b\x0b",
3795 .ksize = 20,
3796 .plaintext = "Hi There",
3797 .psize = 8,
3798 .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d"
3799 "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0"
3800 "\x23\x79\xf4\xe2\xce\x4e\xc2\x78"
3801 "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde"
3802 "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02"
3803 "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4"
3804 "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70"
3805 "\x2e\x69\x6c\x20\x3a\x12\x68\x54",
3806 }, {
3807 .key = "Jefe",
3808 .ksize = 4,
3809 .plaintext = "what do ya want for nothing?",
3810 .psize = 28,
3811 .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2"
3812 "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3"
3813 "\x87\xbd\x64\x22\x2e\x83\x1f\xd6"
3814 "\x10\x27\x0c\xd7\xea\x25\x05\x54"
3815 "\x97\x58\xbf\x75\xc0\x5a\x99\x4a"
3816 "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd"
3817 "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b"
3818 "\x63\x6e\x07\x0a\x38\xbc\xe7\x37",
3819 .np = 4,
3820 .tap = { 7, 7, 7, 7 }
3821 }, {
3822 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3823 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3824 "\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",
3839 .ksize = 131,
3840 .plaintext = "Test Using Large"
3841 "r Than Block-Siz"
3842 "e Key - Hash Key"
3843 " First",
3844 .psize = 54,
3845 .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb"
3846 "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4"
3847 "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1"
3848 "\x12\x1b\x01\x37\x83\xf8\xf3\x52"
3849 "\x6b\x56\xd0\x37\xe0\x5f\x25\x98"
3850 "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52"
3851 "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec"
3852 "\x8b\x91\x5a\x98\x5d\x78\x65\x98",
3853 }, {
3854 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3855 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3856 "\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",
3871 .ksize = 131,
3872 .plaintext =
3873 "This is a test u"
3874 "sing a larger th"
3875 "an block-size ke"
3876 "y and a larger t"
3877 "han block-size d"
3878 "ata. The key nee"
3879 "ds to be hashed "
3880 "before being use"
3881 "d by the HMAC al"
3882 "gorithm.",
3883 .psize = 152,
3884 .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba"
3885 "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd"
3886 "\xde\xbd\x71\xf8\x86\x72\x89\x86"
3887 "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44"
3888 "\xb6\x02\x2c\xac\x3c\x49\x82\xb1"
3889 "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15"
3890 "\x13\x46\x76\xfb\x6d\xe0\x44\x60"
3891 "\x65\xc9\x74\x40\xfa\x8c\x6a\x58",
3895 #define HMAC_SHA3_224_TEST_VECTORS 4
3897 static struct hash_testvec hmac_sha3_224_tv_template[] = {
3899 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3900 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3901 "\x0b\x0b\x0b\x0b",
3902 .ksize = 20,
3903 .plaintext = "Hi There",
3904 .psize = 8,
3905 .digest = "\x3b\x16\x54\x6b\xbc\x7b\xe2\x70"
3906 "\x6a\x03\x1d\xca\xfd\x56\x37\x3d"
3907 "\x98\x84\x36\x76\x41\xd8\xc5\x9a"
3908 "\xf3\xc8\x60\xf7",
3909 }, {
3910 .key = "Jefe",
3911 .ksize = 4,
3912 .plaintext = "what do ya want for nothing?",
3913 .psize = 28,
3914 .digest = "\x7f\xdb\x8d\xd8\x8b\xd2\xf6\x0d"
3915 "\x1b\x79\x86\x34\xad\x38\x68\x11"
3916 "\xc2\xcf\xc8\x5b\xfa\xf5\xd5\x2b"
3917 "\xba\xce\x5e\x66",
3918 .np = 4,
3919 .tap = { 7, 7, 7, 7 }
3920 }, {
3921 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3922 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3923 "\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",
3938 .ksize = 131,
3939 .plaintext = "Test Using Large"
3940 "r Than Block-Siz"
3941 "e Key - Hash Key"
3942 " First",
3943 .psize = 54,
3944 .digest = "\xb4\xa1\xf0\x4c\x00\x28\x7a\x9b"
3945 "\x7f\x60\x75\xb3\x13\xd2\x79\xb8"
3946 "\x33\xbc\x8f\x75\x12\x43\x52\xd0"
3947 "\x5f\xb9\x99\x5f",
3948 }, {
3949 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3950 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3951 "\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",
3966 .ksize = 131,
3967 .plaintext =
3968 "This is a test u"
3969 "sing a larger th"
3970 "an block-size ke"
3971 "y and a larger t"
3972 "han block-size d"
3973 "ata. The key nee"
3974 "ds to be hashed "
3975 "before being use"
3976 "d by the HMAC al"
3977 "gorithm.",
3978 .psize = 152,
3979 .digest = "\x05\xd8\xcd\x6d\x00\xfa\xea\x8d"
3980 "\x1e\xb6\x8a\xde\x28\x73\x0b\xbd"
3981 "\x3c\xba\xb6\x92\x9f\x0a\x08\x6b"
3982 "\x29\xcd\x62\xa0",
3986 #define HMAC_SHA3_256_TEST_VECTORS 4
3988 static struct hash_testvec hmac_sha3_256_tv_template[] = {
3990 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3991 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3992 "\x0b\x0b\x0b\x0b",
3993 .ksize = 20,
3994 .plaintext = "Hi There",
3995 .psize = 8,
3996 .digest = "\xba\x85\x19\x23\x10\xdf\xfa\x96"
3997 "\xe2\xa3\xa4\x0e\x69\x77\x43\x51"
3998 "\x14\x0b\xb7\x18\x5e\x12\x02\xcd"
3999 "\xcc\x91\x75\x89\xf9\x5e\x16\xbb",
4000 }, {
4001 .key = "Jefe",
4002 .ksize = 4,
4003 .plaintext = "what do ya want for nothing?",
4004 .psize = 28,
4005 .digest = "\xc7\xd4\x07\x2e\x78\x88\x77\xae"
4006 "\x35\x96\xbb\xb0\xda\x73\xb8\x87"
4007 "\xc9\x17\x1f\x93\x09\x5b\x29\x4a"
4008 "\xe8\x57\xfb\xe2\x64\x5e\x1b\xa5",
4009 .np = 4,
4010 .tap = { 7, 7, 7, 7 }
4011 }, {
4012 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4013 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4014 "\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",
4029 .ksize = 131,
4030 .plaintext = "Test Using Large"
4031 "r Than Block-Siz"
4032 "e Key - Hash Key"
4033 " First",
4034 .psize = 54,
4035 .digest = "\xed\x73\xa3\x74\xb9\x6c\x00\x52"
4036 "\x35\xf9\x48\x03\x2f\x09\x67\x4a"
4037 "\x58\xc0\xce\x55\x5c\xfc\x1f\x22"
4038 "\x3b\x02\x35\x65\x60\x31\x2c\x3b",
4039 }, {
4040 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4041 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4042 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4043 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4044 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4045 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4046 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4047 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4048 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4049 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4050 "\xaa\xaa\xaa\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",
4057 .ksize = 131,
4058 .plaintext =
4059 "This is a test u"
4060 "sing a larger th"
4061 "an block-size ke"
4062 "y and a larger t"
4063 "han block-size d"
4064 "ata. The key nee"
4065 "ds to be hashed "
4066 "before being use"
4067 "d by the HMAC al"
4068 "gorithm.",
4069 .psize = 152,
4070 .digest = "\x65\xc5\xb0\x6d\x4c\x3d\xe3\x2a"
4071 "\x7a\xef\x87\x63\x26\x1e\x49\xad"
4072 "\xb6\xe2\x29\x3e\xc8\xe7\xc6\x1e"
4073 "\x8d\xe6\x17\x01\xfc\x63\xe1\x23",
4077 #define HMAC_SHA3_384_TEST_VECTORS 4
4079 static struct hash_testvec hmac_sha3_384_tv_template[] = {
4081 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4082 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4083 "\x0b\x0b\x0b\x0b",
4084 .ksize = 20,
4085 .plaintext = "Hi There",
4086 .psize = 8,
4087 .digest = "\x68\xd2\xdc\xf7\xfd\x4d\xdd\x0a"
4088 "\x22\x40\xc8\xa4\x37\x30\x5f\x61"
4089 "\xfb\x73\x34\xcf\xb5\xd0\x22\x6e"
4090 "\x1b\xc2\x7d\xc1\x0a\x2e\x72\x3a"
4091 "\x20\xd3\x70\xb4\x77\x43\x13\x0e"
4092 "\x26\xac\x7e\x3d\x53\x28\x86\xbd",
4093 }, {
4094 .key = "Jefe",
4095 .ksize = 4,
4096 .plaintext = "what do ya want for nothing?",
4097 .psize = 28,
4098 .digest = "\xf1\x10\x1f\x8c\xbf\x97\x66\xfd"
4099 "\x67\x64\xd2\xed\x61\x90\x3f\x21"
4100 "\xca\x9b\x18\xf5\x7c\xf3\xe1\xa2"
4101 "\x3c\xa1\x35\x08\xa9\x32\x43\xce"
4102 "\x48\xc0\x45\xdc\x00\x7f\x26\xa2"
4103 "\x1b\x3f\x5e\x0e\x9d\xf4\xc2\x0a",
4104 .np = 4,
4105 .tap = { 7, 7, 7, 7 }
4106 }, {
4107 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4108 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4109 "\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",
4124 .ksize = 131,
4125 .plaintext = "Test Using Large"
4126 "r Than Block-Siz"
4127 "e Key - Hash Key"
4128 " First",
4129 .psize = 54,
4130 .digest = "\x0f\xc1\x95\x13\xbf\x6b\xd8\x78"
4131 "\x03\x70\x16\x70\x6a\x0e\x57\xbc"
4132 "\x52\x81\x39\x83\x6b\x9a\x42\xc3"
4133 "\xd4\x19\xe4\x98\xe0\xe1\xfb\x96"
4134 "\x16\xfd\x66\x91\x38\xd3\x3a\x11"
4135 "\x05\xe0\x7c\x72\xb6\x95\x3b\xcc",
4136 }, {
4137 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4138 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4139 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4140 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4141 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4142 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4143 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4144 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4145 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4146 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4147 "\xaa\xaa\xaa\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",
4154 .ksize = 131,
4155 .plaintext =
4156 "This is a test u"
4157 "sing a larger th"
4158 "an block-size ke"
4159 "y and a larger t"
4160 "han block-size d"
4161 "ata. The key nee"
4162 "ds to be hashed "
4163 "before being use"
4164 "d by the HMAC al"
4165 "gorithm.",
4166 .psize = 152,
4167 .digest = "\x02\x6f\xdf\x6b\x50\x74\x1e\x37"
4168 "\x38\x99\xc9\xf7\xd5\x40\x6d\x4e"
4169 "\xb0\x9f\xc6\x66\x56\x36\xfc\x1a"
4170 "\x53\x00\x29\xdd\xf5\xcf\x3c\xa5"
4171 "\xa9\x00\xed\xce\x01\xf5\xf6\x1e"
4172 "\x2f\x40\x8c\xdf\x2f\xd3\xe7\xe8",
4176 #define HMAC_SHA3_512_TEST_VECTORS 4
4178 static struct hash_testvec hmac_sha3_512_tv_template[] = {
4180 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4181 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4182 "\x0b\x0b\x0b\x0b",
4183 .ksize = 20,
4184 .plaintext = "Hi There",
4185 .psize = 8,
4186 .digest = "\xeb\x3f\xbd\x4b\x2e\xaa\xb8\xf5"
4187 "\xc5\x04\xbd\x3a\x41\x46\x5a\xac"
4188 "\xec\x15\x77\x0a\x7c\xab\xac\x53"
4189 "\x1e\x48\x2f\x86\x0b\x5e\xc7\xba"
4190 "\x47\xcc\xb2\xc6\xf2\xaf\xce\x8f"
4191 "\x88\xd2\x2b\x6d\xc6\x13\x80\xf2"
4192 "\x3a\x66\x8f\xd3\x88\x8b\xb8\x05"
4193 "\x37\xc0\xa0\xb8\x64\x07\x68\x9e",
4194 }, {
4195 .key = "Jefe",
4196 .ksize = 4,
4197 .plaintext = "what do ya want for nothing?",
4198 .psize = 28,
4199 .digest = "\x5a\x4b\xfe\xab\x61\x66\x42\x7c"
4200 "\x7a\x36\x47\xb7\x47\x29\x2b\x83"
4201 "\x84\x53\x7c\xdb\x89\xaf\xb3\xbf"
4202 "\x56\x65\xe4\xc5\xe7\x09\x35\x0b"
4203 "\x28\x7b\xae\xc9\x21\xfd\x7c\xa0"
4204 "\xee\x7a\x0c\x31\xd0\x22\xa9\x5e"
4205 "\x1f\xc9\x2b\xa9\xd7\x7d\xf8\x83"
4206 "\x96\x02\x75\xbe\xb4\xe6\x20\x24",
4207 .np = 4,
4208 .tap = { 7, 7, 7, 7 }
4209 }, {
4210 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4211 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4212 "\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",
4227 .ksize = 131,
4228 .plaintext = "Test Using Large"
4229 "r Than Block-Siz"
4230 "e Key - Hash Key"
4231 " First",
4232 .psize = 54,
4233 .digest = "\x00\xf7\x51\xa9\xe5\x06\x95\xb0"
4234 "\x90\xed\x69\x11\xa4\xb6\x55\x24"
4235 "\x95\x1c\xdc\x15\xa7\x3a\x5d\x58"
4236 "\xbb\x55\x21\x5e\xa2\xcd\x83\x9a"
4237 "\xc7\x9d\x2b\x44\xa3\x9b\xaf\xab"
4238 "\x27\xe8\x3f\xde\x9e\x11\xf6\x34"
4239 "\x0b\x11\xd9\x91\xb1\xb9\x1b\xf2"
4240 "\xee\xe7\xfc\x87\x24\x26\xc3\xa4",
4241 }, {
4242 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4243 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4244 "\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",
4259 .ksize = 131,
4260 .plaintext =
4261 "This is a test u"
4262 "sing a larger th"
4263 "an block-size ke"
4264 "y and a larger t"
4265 "han block-size d"
4266 "ata. The key nee"
4267 "ds to be hashed "
4268 "before being use"
4269 "d by the HMAC al"
4270 "gorithm.",
4271 .psize = 152,
4272 .digest = "\x38\xa4\x56\xa0\x04\xbd\x10\xd3"
4273 "\x2c\x9a\xb8\x33\x66\x84\x11\x28"
4274 "\x62\xc3\xdb\x61\xad\xcc\xa3\x18"
4275 "\x29\x35\x5e\xaf\x46\xfd\x5c\x73"
4276 "\xd0\x6a\x1f\x0d\x13\xfe\xc9\xa6"
4277 "\x52\xfb\x38\x11\xb5\x77\xb1\xb1"
4278 "\xd1\xb9\x78\x9f\x97\xae\x5b\x83"
4279 "\xc6\xf4\x4d\xfc\xf1\xd6\x7e\xba",
4284 * Poly1305 test vectors from RFC7539 A.3.
4287 #define POLY1305_TEST_VECTORS 11
4289 static struct hash_testvec poly1305_tv_template[] = {
4290 { /* Test Vector #1 */
4291 .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00"
4292 "\x00\x00\x00\x00\x00\x00\x00\x00"
4293 "\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 .psize = 96,
4304 .digest = "\x00\x00\x00\x00\x00\x00\x00\x00"
4305 "\x00\x00\x00\x00\x00\x00\x00\x00",
4306 }, { /* Test Vector #2 */
4307 .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00"
4308 "\x00\x00\x00\x00\x00\x00\x00\x00"
4309 "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
4310 "\xf0\xef\xca\x96\x22\x7a\x86\x3e"
4311 "\x41\x6e\x79\x20\x73\x75\x62\x6d"
4312 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
4313 "\x6f\x20\x74\x68\x65\x20\x49\x45"
4314 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
4315 "\x64\x65\x64\x20\x62\x79\x20\x74"
4316 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
4317 "\x69\x62\x75\x74\x6f\x72\x20\x66"
4318 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
4319 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
4320 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
4321 "\x20\x70\x61\x72\x74\x20\x6f\x66"
4322 "\x20\x61\x6e\x20\x49\x45\x54\x46"
4323 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
4324 "\x74\x2d\x44\x72\x61\x66\x74\x20"
4325 "\x6f\x72\x20\x52\x46\x43\x20\x61"
4326 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
4327 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
4328 "\x20\x6d\x61\x64\x65\x20\x77\x69"
4329 "\x74\x68\x69\x6e\x20\x74\x68\x65"
4330 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
4331 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
4332 "\x45\x54\x46\x20\x61\x63\x74\x69"
4333 "\x76\x69\x74\x79\x20\x69\x73\x20"
4334 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
4335 "\x65\x64\x20\x61\x6e\x20\x22\x49"
4336 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
4337 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
4338 "\x22\x2e\x20\x53\x75\x63\x68\x20"
4339 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
4340 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
4341 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
4342 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
4343 "\x74\x73\x20\x69\x6e\x20\x49\x45"
4344 "\x54\x46\x20\x73\x65\x73\x73\x69"
4345 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
4346 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
4347 "\x77\x72\x69\x74\x74\x65\x6e\x20"
4348 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
4349 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
4350 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
4351 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
4352 "\x64\x65\x20\x61\x74\x20\x61\x6e"
4353 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
4354 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
4355 "\x20\x77\x68\x69\x63\x68\x20\x61"
4356 "\x72\x65\x20\x61\x64\x64\x72\x65"
4357 "\x73\x73\x65\x64\x20\x74\x6f",
4358 .psize = 407,
4359 .digest = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
4360 "\xf0\xef\xca\x96\x22\x7a\x86\x3e",
4361 }, { /* Test Vector #3 */
4362 .plaintext = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
4363 "\xf0\xef\xca\x96\x22\x7a\x86\x3e"
4364 "\x00\x00\x00\x00\x00\x00\x00\x00"
4365 "\x00\x00\x00\x00\x00\x00\x00\x00"
4366 "\x41\x6e\x79\x20\x73\x75\x62\x6d"
4367 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
4368 "\x6f\x20\x74\x68\x65\x20\x49\x45"
4369 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
4370 "\x64\x65\x64\x20\x62\x79\x20\x74"
4371 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
4372 "\x69\x62\x75\x74\x6f\x72\x20\x66"
4373 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
4374 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
4375 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
4376 "\x20\x70\x61\x72\x74\x20\x6f\x66"
4377 "\x20\x61\x6e\x20\x49\x45\x54\x46"
4378 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
4379 "\x74\x2d\x44\x72\x61\x66\x74\x20"
4380 "\x6f\x72\x20\x52\x46\x43\x20\x61"
4381 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
4382 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
4383 "\x20\x6d\x61\x64\x65\x20\x77\x69"
4384 "\x74\x68\x69\x6e\x20\x74\x68\x65"
4385 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
4386 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
4387 "\x45\x54\x46\x20\x61\x63\x74\x69"
4388 "\x76\x69\x74\x79\x20\x69\x73\x20"
4389 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
4390 "\x65\x64\x20\x61\x6e\x20\x22\x49"
4391 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
4392 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
4393 "\x22\x2e\x20\x53\x75\x63\x68\x20"
4394 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
4395 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
4396 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
4397 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
4398 "\x74\x73\x20\x69\x6e\x20\x49\x45"
4399 "\x54\x46\x20\x73\x65\x73\x73\x69"
4400 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
4401 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
4402 "\x77\x72\x69\x74\x74\x65\x6e\x20"
4403 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
4404 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
4405 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
4406 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
4407 "\x64\x65\x20\x61\x74\x20\x61\x6e"
4408 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
4409 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
4410 "\x20\x77\x68\x69\x63\x68\x20\x61"
4411 "\x72\x65\x20\x61\x64\x64\x72\x65"
4412 "\x73\x73\x65\x64\x20\x74\x6f",
4413 .psize = 407,
4414 .digest = "\xf3\x47\x7e\x7c\xd9\x54\x17\xaf"
4415 "\x89\xa6\xb8\x79\x4c\x31\x0c\xf0",
4416 }, { /* Test Vector #4 */
4417 .plaintext = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
4418 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
4419 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
4420 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
4421 "\x27\x54\x77\x61\x73\x20\x62\x72"
4422 "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
4423 "\x6e\x64\x20\x74\x68\x65\x20\x73"
4424 "\x6c\x69\x74\x68\x79\x20\x74\x6f"
4425 "\x76\x65\x73\x0a\x44\x69\x64\x20"
4426 "\x67\x79\x72\x65\x20\x61\x6e\x64"
4427 "\x20\x67\x69\x6d\x62\x6c\x65\x20"
4428 "\x69\x6e\x20\x74\x68\x65\x20\x77"
4429 "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
4430 "\x20\x6d\x69\x6d\x73\x79\x20\x77"
4431 "\x65\x72\x65\x20\x74\x68\x65\x20"
4432 "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
4433 "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
4434 "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
4435 "\x72\x61\x74\x68\x73\x20\x6f\x75"
4436 "\x74\x67\x72\x61\x62\x65\x2e",
4437 .psize = 159,
4438 .digest = "\x45\x41\x66\x9a\x7e\xaa\xee\x61"
4439 "\xe7\x08\xdc\x7c\xbc\xc5\xeb\x62",
4440 }, { /* Test Vector #5 */
4441 .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00"
4442 "\x00\x00\x00\x00\x00\x00\x00\x00"
4443 "\x00\x00\x00\x00\x00\x00\x00\x00"
4444 "\x00\x00\x00\x00\x00\x00\x00\x00"
4445 "\xff\xff\xff\xff\xff\xff\xff\xff"
4446 "\xff\xff\xff\xff\xff\xff\xff\xff",
4447 .psize = 48,
4448 .digest = "\x03\x00\x00\x00\x00\x00\x00\x00"
4449 "\x00\x00\x00\x00\x00\x00\x00\x00",
4450 }, { /* Test Vector #6 */
4451 .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00"
4452 "\x00\x00\x00\x00\x00\x00\x00\x00"
4453 "\xff\xff\xff\xff\xff\xff\xff\xff"
4454 "\xff\xff\xff\xff\xff\xff\xff\xff"
4455 "\x02\x00\x00\x00\x00\x00\x00\x00"
4456 "\x00\x00\x00\x00\x00\x00\x00\x00",
4457 .psize = 48,
4458 .digest = "\x03\x00\x00\x00\x00\x00\x00\x00"
4459 "\x00\x00\x00\x00\x00\x00\x00\x00",
4460 }, { /* Test Vector #7 */
4461 .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
4462 "\x00\x00\x00\x00\x00\x00\x00\x00"
4463 "\x00\x00\x00\x00\x00\x00\x00\x00"
4464 "\x00\x00\x00\x00\x00\x00\x00\x00"
4465 "\xff\xff\xff\xff\xff\xff\xff\xff"
4466 "\xff\xff\xff\xff\xff\xff\xff\xff"
4467 "\xf0\xff\xff\xff\xff\xff\xff\xff"
4468 "\xff\xff\xff\xff\xff\xff\xff\xff"
4469 "\x11\x00\x00\x00\x00\x00\x00\x00"
4470 "\x00\x00\x00\x00\x00\x00\x00\x00",
4471 .psize = 80,
4472 .digest = "\x05\x00\x00\x00\x00\x00\x00\x00"
4473 "\x00\x00\x00\x00\x00\x00\x00\x00",
4474 }, { /* Test Vector #8 */
4475 .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
4476 "\x00\x00\x00\x00\x00\x00\x00\x00"
4477 "\x00\x00\x00\x00\x00\x00\x00\x00"
4478 "\x00\x00\x00\x00\x00\x00\x00\x00"
4479 "\xff\xff\xff\xff\xff\xff\xff\xff"
4480 "\xff\xff\xff\xff\xff\xff\xff\xff"
4481 "\xfb\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
4482 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
4483 "\x01\x01\x01\x01\x01\x01\x01\x01"
4484 "\x01\x01\x01\x01\x01\x01\x01\x01",
4485 .psize = 80,
4486 .digest = "\x00\x00\x00\x00\x00\x00\x00\x00"
4487 "\x00\x00\x00\x00\x00\x00\x00\x00",
4488 }, { /* Test Vector #9 */
4489 .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00"
4490 "\x00\x00\x00\x00\x00\x00\x00\x00"
4491 "\x00\x00\x00\x00\x00\x00\x00\x00"
4492 "\x00\x00\x00\x00\x00\x00\x00\x00"
4493 "\xfd\xff\xff\xff\xff\xff\xff\xff"
4494 "\xff\xff\xff\xff\xff\xff\xff\xff",
4495 .psize = 48,
4496 .digest = "\xfa\xff\xff\xff\xff\xff\xff\xff"
4497 "\xff\xff\xff\xff\xff\xff\xff\xff",
4498 }, { /* Test Vector #10 */
4499 .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
4500 "\x04\x00\x00\x00\x00\x00\x00\x00"
4501 "\x00\x00\x00\x00\x00\x00\x00\x00"
4502 "\x00\x00\x00\x00\x00\x00\x00\x00"
4503 "\xe3\x35\x94\xd7\x50\x5e\x43\xb9"
4504 "\x00\x00\x00\x00\x00\x00\x00\x00"
4505 "\x33\x94\xd7\x50\x5e\x43\x79\xcd"
4506 "\x01\x00\x00\x00\x00\x00\x00\x00"
4507 "\x00\x00\x00\x00\x00\x00\x00\x00"
4508 "\x00\x00\x00\x00\x00\x00\x00\x00"
4509 "\x01\x00\x00\x00\x00\x00\x00\x00"
4510 "\x00\x00\x00\x00\x00\x00\x00\x00",
4511 .psize = 96,
4512 .digest = "\x14\x00\x00\x00\x00\x00\x00\x00"
4513 "\x55\x00\x00\x00\x00\x00\x00\x00",
4514 }, { /* Test Vector #11 */
4515 .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
4516 "\x04\x00\x00\x00\x00\x00\x00\x00"
4517 "\x00\x00\x00\x00\x00\x00\x00\x00"
4518 "\x00\x00\x00\x00\x00\x00\x00\x00"
4519 "\xe3\x35\x94\xd7\x50\x5e\x43\xb9"
4520 "\x00\x00\x00\x00\x00\x00\x00\x00"
4521 "\x33\x94\xd7\x50\x5e\x43\x79\xcd"
4522 "\x01\x00\x00\x00\x00\x00\x00\x00"
4523 "\x00\x00\x00\x00\x00\x00\x00\x00"
4524 "\x00\x00\x00\x00\x00\x00\x00\x00",
4525 .psize = 80,
4526 .digest = "\x13\x00\x00\x00\x00\x00\x00\x00"
4527 "\x00\x00\x00\x00\x00\x00\x00\x00",
4532 * DES test vectors.
4534 #define DES_ENC_TEST_VECTORS 11
4535 #define DES_DEC_TEST_VECTORS 5
4536 #define DES_CBC_ENC_TEST_VECTORS 6
4537 #define DES_CBC_DEC_TEST_VECTORS 5
4538 #define DES_CTR_ENC_TEST_VECTORS 2
4539 #define DES_CTR_DEC_TEST_VECTORS 2
4540 #define DES3_EDE_ENC_TEST_VECTORS 4
4541 #define DES3_EDE_DEC_TEST_VECTORS 4
4542 #define DES3_EDE_CBC_ENC_TEST_VECTORS 2
4543 #define DES3_EDE_CBC_DEC_TEST_VECTORS 2
4544 #define DES3_EDE_CTR_ENC_TEST_VECTORS 2
4545 #define DES3_EDE_CTR_DEC_TEST_VECTORS 2
4547 static struct cipher_testvec des_enc_tv_template[] = {
4548 { /* From Applied Cryptography */
4549 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4550 .klen = 8,
4551 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
4552 .ilen = 8,
4553 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
4554 .rlen = 8,
4555 }, { /* Same key, different plaintext block */
4556 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4557 .klen = 8,
4558 .input = "\x22\x33\x44\x55\x66\x77\x88\x99",
4559 .ilen = 8,
4560 .result = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
4561 .rlen = 8,
4562 }, { /* Sbox test from NBS */
4563 .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
4564 .klen = 8,
4565 .input = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
4566 .ilen = 8,
4567 .result = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
4568 .rlen = 8,
4569 }, { /* Three blocks */
4570 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4571 .klen = 8,
4572 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4573 "\x22\x33\x44\x55\x66\x77\x88\x99"
4574 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
4575 .ilen = 24,
4576 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4577 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
4578 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
4579 .rlen = 24,
4580 }, { /* Weak key */
4581 .fail = true,
4582 .wk = 1,
4583 .key = "\x01\x01\x01\x01\x01\x01\x01\x01",
4584 .klen = 8,
4585 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
4586 .ilen = 8,
4587 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
4588 .rlen = 8,
4589 }, { /* Two blocks -- for testing encryption across pages */
4590 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4591 .klen = 8,
4592 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4593 "\x22\x33\x44\x55\x66\x77\x88\x99",
4594 .ilen = 16,
4595 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4596 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
4597 .rlen = 16,
4598 .np = 2,
4599 .tap = { 8, 8 }
4600 }, { /* Four blocks -- for testing encryption with chunking */
4601 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4602 .klen = 8,
4603 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4604 "\x22\x33\x44\x55\x66\x77\x88\x99"
4605 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
4606 "\x22\x33\x44\x55\x66\x77\x88\x99",
4607 .ilen = 32,
4608 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4609 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
4610 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
4611 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
4612 .rlen = 32,
4613 .np = 3,
4614 .tap = { 14, 10, 8 }
4615 }, {
4616 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4617 .klen = 8,
4618 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4619 "\x22\x33\x44\x55\x66\x77\x88\x99"
4620 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
4621 .ilen = 24,
4622 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4623 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
4624 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
4625 .rlen = 24,
4626 .np = 4,
4627 .tap = { 2, 1, 3, 18 }
4628 }, {
4629 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4630 .klen = 8,
4631 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4632 "\x22\x33\x44\x55\x66\x77\x88\x99",
4633 .ilen = 16,
4634 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4635 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
4636 .rlen = 16,
4637 .np = 5,
4638 .tap = { 2, 2, 2, 2, 8 }
4639 }, {
4640 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4641 .klen = 8,
4642 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
4643 .ilen = 8,
4644 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
4645 .rlen = 8,
4646 .np = 8,
4647 .tap = { 1, 1, 1, 1, 1, 1, 1, 1 }
4648 }, { /* Generated with Crypto++ */
4649 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
4650 .klen = 8,
4651 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
4652 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
4653 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
4654 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
4655 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
4656 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
4657 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
4658 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
4659 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
4660 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
4661 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
4662 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
4663 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
4664 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
4665 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
4666 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
4667 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
4668 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
4669 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
4670 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
4671 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
4672 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
4673 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
4674 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
4675 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
4676 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
4677 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
4678 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
4679 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
4680 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
4681 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
4682 .ilen = 248,
4683 .result = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
4684 "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
4685 "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
4686 "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
4687 "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
4688 "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
4689 "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
4690 "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
4691 "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
4692 "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
4693 "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
4694 "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
4695 "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
4696 "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
4697 "\x2E\x51\x16\xCA\x09\x89\x54\x62"
4698 "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
4699 "\x62\xF0\x02\x58\x83\xAF\x30\x87"
4700 "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
4701 "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
4702 "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
4703 "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
4704 "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
4705 "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
4706 "\xE9\x95\x61\x74\x12\xED\x07\xD7"
4707 "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
4708 "\x51\x96\x16\xF7\x94\x61\xB8\x87"
4709 "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
4710 "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
4711 "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
4712 "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
4713 "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
4714 .rlen = 248,
4715 .also_non_np = 1,
4716 .np = 3,
4717 .tap = { 248 - 10, 2, 8 },
4721 static struct cipher_testvec des_dec_tv_template[] = {
4722 { /* From Applied Cryptography */
4723 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4724 .klen = 8,
4725 .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
4726 .ilen = 8,
4727 .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
4728 .rlen = 8,
4729 }, { /* Sbox test from NBS */
4730 .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
4731 .klen = 8,
4732 .input = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
4733 .ilen = 8,
4734 .result = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
4735 .rlen = 8,
4736 }, { /* Two blocks, for chunking test */
4737 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4738 .klen = 8,
4739 .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4740 "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
4741 .ilen = 16,
4742 .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4743 "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
4744 .rlen = 16,
4745 .np = 2,
4746 .tap = { 8, 8 }
4747 }, {
4748 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4749 .klen = 8,
4750 .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4751 "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
4752 .ilen = 16,
4753 .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4754 "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
4755 .rlen = 16,
4756 .np = 3,
4757 .tap = { 3, 12, 1 }
4758 }, { /* Generated with Crypto++ */
4759 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
4760 .klen = 8,
4761 .input = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
4762 "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
4763 "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
4764 "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
4765 "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
4766 "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
4767 "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
4768 "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
4769 "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
4770 "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
4771 "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
4772 "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
4773 "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
4774 "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
4775 "\x2E\x51\x16\xCA\x09\x89\x54\x62"
4776 "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
4777 "\x62\xF0\x02\x58\x83\xAF\x30\x87"
4778 "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
4779 "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
4780 "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
4781 "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
4782 "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
4783 "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
4784 "\xE9\x95\x61\x74\x12\xED\x07\xD7"
4785 "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
4786 "\x51\x96\x16\xF7\x94\x61\xB8\x87"
4787 "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
4788 "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
4789 "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
4790 "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
4791 "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
4792 .ilen = 248,
4793 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
4794 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
4795 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
4796 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
4797 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
4798 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
4799 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
4800 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
4801 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
4802 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
4803 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
4804 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
4805 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
4806 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
4807 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
4808 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
4809 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
4810 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
4811 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
4812 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
4813 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
4814 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
4815 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
4816 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
4817 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
4818 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
4819 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
4820 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
4821 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
4822 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
4823 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
4824 .rlen = 248,
4825 .also_non_np = 1,
4826 .np = 3,
4827 .tap = { 248 - 10, 2, 8 },
4831 static struct cipher_testvec des_cbc_enc_tv_template[] = {
4832 { /* From OpenSSL */
4833 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4834 .klen = 8,
4835 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
4836 .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
4837 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
4838 "\x68\x65\x20\x74\x69\x6d\x65\x20",
4839 .ilen = 24,
4840 .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
4841 "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
4842 "\x46\x8e\x91\x15\x78\x88\xba\x68",
4843 .rlen = 24,
4844 }, { /* FIPS Pub 81 */
4845 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4846 .klen = 8,
4847 .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
4848 .input = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
4849 .ilen = 8,
4850 .result = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
4851 .rlen = 8,
4852 }, {
4853 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4854 .klen = 8,
4855 .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
4856 .input = "\x68\x65\x20\x74\x69\x6d\x65\x20",
4857 .ilen = 8,
4858 .result = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
4859 .rlen = 8,
4860 }, {
4861 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4862 .klen = 8,
4863 .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
4864 .input = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
4865 .ilen = 8,
4866 .result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
4867 .rlen = 8,
4868 }, { /* Copy of openssl vector for chunk testing */
4869 /* From OpenSSL */
4870 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4871 .klen = 8,
4872 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
4873 .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
4874 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
4875 "\x68\x65\x20\x74\x69\x6d\x65\x20",
4876 .ilen = 24,
4877 .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
4878 "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
4879 "\x46\x8e\x91\x15\x78\x88\xba\x68",
4880 .rlen = 24,
4881 .np = 2,
4882 .tap = { 13, 11 }
4883 }, { /* Generated with Crypto++ */
4884 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
4885 .klen = 8,
4886 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
4887 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
4888 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
4889 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
4890 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
4891 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
4892 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
4893 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
4894 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
4895 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
4896 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
4897 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
4898 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
4899 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
4900 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
4901 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
4902 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
4903 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
4904 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
4905 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
4906 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
4907 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
4908 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
4909 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
4910 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
4911 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
4912 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
4913 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
4914 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
4915 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
4916 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
4917 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
4918 .ilen = 248,
4919 .result = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
4920 "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
4921 "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
4922 "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
4923 "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
4924 "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
4925 "\x81\x72\x74\xDE\x30\x19\x69\x49"
4926 "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
4927 "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
4928 "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
4929 "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
4930 "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
4931 "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
4932 "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
4933 "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
4934 "\x49\x90\x88\x6A\x09\x8F\x76\x59"
4935 "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
4936 "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
4937 "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
4938 "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
4939 "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
4940 "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
4941 "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
4942 "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
4943 "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
4944 "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
4945 "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
4946 "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
4947 "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
4948 "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
4949 "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
4950 .rlen = 248,
4951 .also_non_np = 1,
4952 .np = 3,
4953 .tap = { 248 - 10, 2, 8 },
4957 static struct cipher_testvec des_cbc_dec_tv_template[] = {
4958 { /* FIPS Pub 81 */
4959 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4960 .klen = 8,
4961 .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
4962 .input = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
4963 .ilen = 8,
4964 .result = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
4965 .rlen = 8,
4966 }, {
4967 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4968 .klen = 8,
4969 .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
4970 .input = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
4971 .ilen = 8,
4972 .result = "\x68\x65\x20\x74\x69\x6d\x65\x20",
4973 .rlen = 8,
4974 }, {
4975 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4976 .klen = 8,
4977 .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
4978 .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
4979 .ilen = 8,
4980 .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
4981 .rlen = 8,
4982 }, { /* Copy of above, for chunk testing */
4983 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4984 .klen = 8,
4985 .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
4986 .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
4987 .ilen = 8,
4988 .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
4989 .rlen = 8,
4990 .np = 2,
4991 .tap = { 4, 4 }
4992 }, { /* Generated with Crypto++ */
4993 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
4994 .klen = 8,
4995 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
4996 .input = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
4997 "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
4998 "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
4999 "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
5000 "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
5001 "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
5002 "\x81\x72\x74\xDE\x30\x19\x69\x49"
5003 "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
5004 "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
5005 "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
5006 "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
5007 "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
5008 "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
5009 "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
5010 "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
5011 "\x49\x90\x88\x6A\x09\x8F\x76\x59"
5012 "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
5013 "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
5014 "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
5015 "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
5016 "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
5017 "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
5018 "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
5019 "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
5020 "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
5021 "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
5022 "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
5023 "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
5024 "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
5025 "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
5026 "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
5027 .ilen = 248,
5028 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5029 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5030 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5031 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5032 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5033 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5034 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5035 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5036 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5037 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5038 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5039 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5040 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5041 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5042 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5043 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5044 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5045 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5046 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5047 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5048 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5049 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5050 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5051 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5052 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5053 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5054 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5055 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5056 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5057 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5058 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5059 .rlen = 248,
5060 .also_non_np = 1,
5061 .np = 3,
5062 .tap = { 248 - 10, 2, 8 },
5066 static struct cipher_testvec des_ctr_enc_tv_template[] = {
5067 { /* Generated with Crypto++ */
5068 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5069 .klen = 8,
5070 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
5071 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5072 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5073 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5074 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5075 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5076 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5077 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5078 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5079 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5080 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5081 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5082 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5083 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5084 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5085 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5086 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5087 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5088 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5089 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5090 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5091 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5092 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5093 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5094 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5095 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5096 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5097 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5098 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5099 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5100 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5101 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5102 .ilen = 248,
5103 .result = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
5104 "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
5105 "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
5106 "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
5107 "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
5108 "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
5109 "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
5110 "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
5111 "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
5112 "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
5113 "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
5114 "\xBE\x4C\x91\x43\x22\x65\x72\x48"
5115 "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
5116 "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
5117 "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
5118 "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
5119 "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
5120 "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
5121 "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
5122 "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
5123 "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
5124 "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
5125 "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
5126 "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
5127 "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
5128 "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
5129 "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
5130 "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
5131 "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
5132 "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
5133 "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
5134 .rlen = 248,
5135 .also_non_np = 1,
5136 .np = 3,
5137 .tap = { 248 - 10, 2, 8 },
5138 }, { /* Generated with Crypto++ */
5139 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5140 .klen = 8,
5141 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
5142 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5143 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5144 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5145 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5146 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5147 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5148 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5149 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5150 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5151 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5152 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5153 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5154 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5155 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5156 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5157 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5158 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5159 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5160 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5161 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5162 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5163 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5164 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5165 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5166 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5167 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5168 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5169 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5170 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5171 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5172 "\xC6\x2F\xBB\x24\x8D\x19\x82",
5173 .ilen = 247,
5174 .result = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
5175 "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
5176 "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
5177 "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
5178 "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
5179 "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
5180 "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
5181 "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
5182 "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
5183 "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
5184 "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
5185 "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
5186 "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
5187 "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
5188 "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
5189 "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
5190 "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
5191 "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
5192 "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
5193 "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
5194 "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
5195 "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
5196 "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
5197 "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
5198 "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
5199 "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
5200 "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
5201 "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
5202 "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
5203 "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
5204 "\x91\x45\x05\x3E\x58\xBF\x32",
5205 .rlen = 247,
5206 .also_non_np = 1,
5207 .np = 2,
5208 .tap = { 247 - 8, 8 },
5212 static struct cipher_testvec des_ctr_dec_tv_template[] = {
5213 { /* Generated with Crypto++ */
5214 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5215 .klen = 8,
5216 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
5217 .input = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
5218 "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
5219 "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
5220 "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
5221 "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
5222 "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
5223 "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
5224 "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
5225 "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
5226 "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
5227 "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
5228 "\xBE\x4C\x91\x43\x22\x65\x72\x48"
5229 "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
5230 "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
5231 "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
5232 "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
5233 "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
5234 "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
5235 "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
5236 "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
5237 "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
5238 "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
5239 "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
5240 "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
5241 "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
5242 "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
5243 "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
5244 "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
5245 "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
5246 "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
5247 "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
5248 .ilen = 248,
5249 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5250 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5251 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5252 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5253 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5254 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5255 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5256 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5257 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5258 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5259 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5260 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5261 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5262 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5263 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5264 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5265 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5266 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5267 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5268 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5269 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5270 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5271 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5272 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5273 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5274 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5275 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5276 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5277 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5278 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5279 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5280 .rlen = 248,
5281 .also_non_np = 1,
5282 .np = 3,
5283 .tap = { 248 - 10, 2, 8 },
5284 }, { /* Generated with Crypto++ */
5285 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5286 .klen = 8,
5287 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
5288 .input = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
5289 "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
5290 "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
5291 "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
5292 "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
5293 "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
5294 "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
5295 "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
5296 "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
5297 "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
5298 "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
5299 "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
5300 "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
5301 "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
5302 "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
5303 "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
5304 "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
5305 "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
5306 "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
5307 "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
5308 "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
5309 "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
5310 "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
5311 "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
5312 "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
5313 "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
5314 "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
5315 "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
5316 "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
5317 "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
5318 "\x91\x45\x05\x3E\x58\xBF\x32",
5319 .ilen = 247,
5320 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5321 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5322 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5323 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5324 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5325 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5326 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5327 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5328 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5329 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5330 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5331 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5332 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5333 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5334 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5335 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5336 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5337 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5338 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5339 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5340 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5341 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5342 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5343 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5344 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5345 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5346 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5347 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5348 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5349 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5350 "\xC6\x2F\xBB\x24\x8D\x19\x82",
5351 .rlen = 247,
5352 .also_non_np = 1,
5353 .np = 2,
5354 .tap = { 247 - 8, 8 },
5358 static struct cipher_testvec des3_ede_enc_tv_template[] = {
5359 { /* These are from openssl */
5360 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
5361 "\x55\x55\x55\x55\x55\x55\x55\x55"
5362 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5363 .klen = 24,
5364 .input = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
5365 .ilen = 8,
5366 .result = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
5367 .rlen = 8,
5368 }, {
5369 .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
5370 "\x86\x02\x87\x66\x59\x08\x21\x98"
5371 "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
5372 .klen = 24,
5373 .input = "\x73\x71\x75\x69\x67\x67\x6c\x65",
5374 .ilen = 8,
5375 .result = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
5376 .rlen = 8,
5377 }, {
5378 .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
5379 "\x91\x07\xd0\x15\x89\x19\x01\x01"
5380 "\x19\x07\x92\x10\x98\x1a\x01\x01",
5381 .klen = 24,
5382 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
5383 .ilen = 8,
5384 .result = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
5385 .rlen = 8,
5386 }, { /* Generated with Crypto++ */
5387 .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
5388 "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
5389 "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
5390 .klen = 24,
5391 .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
5392 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
5393 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
5394 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
5395 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
5396 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
5397 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
5398 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
5399 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
5400 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
5401 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
5402 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
5403 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
5404 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
5405 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
5406 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
5407 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
5408 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
5409 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
5410 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
5411 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
5412 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
5413 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
5414 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
5415 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
5416 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
5417 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
5418 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
5419 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
5420 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
5421 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
5422 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
5423 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
5424 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
5425 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
5426 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
5427 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
5428 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
5429 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
5430 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
5431 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
5432 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
5433 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
5434 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
5435 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
5436 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
5437 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
5438 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
5439 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
5440 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
5441 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
5442 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
5443 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
5444 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
5445 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
5446 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
5447 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
5448 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
5449 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
5450 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
5451 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
5452 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
5453 .ilen = 496,
5454 .result = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
5455 "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
5456 "\x81\x01\x04\x00\x76\xFA\xED\xD3"
5457 "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
5458 "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
5459 "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
5460 "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
5461 "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
5462 "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
5463 "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
5464 "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
5465 "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
5466 "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
5467 "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
5468 "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
5469 "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
5470 "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
5471 "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
5472 "\x45\x86\x50\x01\x70\x35\x99\x92"
5473 "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
5474 "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
5475 "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
5476 "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
5477 "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
5478 "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
5479 "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
5480 "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
5481 "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
5482 "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
5483 "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
5484 "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
5485 "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
5486 "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
5487 "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
5488 "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
5489 "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
5490 "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
5491 "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
5492 "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
5493 "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
5494 "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
5495 "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
5496 "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
5497 "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
5498 "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
5499 "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
5500 "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
5501 "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
5502 "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
5503 "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
5504 "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
5505 "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
5506 "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
5507 "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
5508 "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
5509 "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
5510 "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
5511 "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
5512 "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
5513 "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
5514 "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
5515 "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
5516 .rlen = 496,
5517 .also_non_np = 1,
5518 .np = 3,
5519 .tap = { 496 - 20, 4, 16 },
5523 static struct cipher_testvec des3_ede_dec_tv_template[] = {
5524 { /* These are from openssl */
5525 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
5526 "\x55\x55\x55\x55\x55\x55\x55\x55"
5527 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5528 .klen = 24,
5529 .input = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
5530 .ilen = 8,
5531 .result = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
5532 .rlen = 8,
5533 }, {
5534 .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
5535 "\x86\x02\x87\x66\x59\x08\x21\x98"
5536 "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
5537 .klen = 24,
5538 .input = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
5539 .ilen = 8,
5540 .result = "\x73\x71\x75\x69\x67\x67\x6c\x65",
5541 .rlen = 8,
5542 }, {
5543 .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
5544 "\x91\x07\xd0\x15\x89\x19\x01\x01"
5545 "\x19\x07\x92\x10\x98\x1a\x01\x01",
5546 .klen = 24,
5547 .input = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
5548 .ilen = 8,
5549 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
5550 .rlen = 8,
5551 }, { /* Generated with Crypto++ */
5552 .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
5553 "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
5554 "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
5555 .klen = 24,
5556 .input = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
5557 "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
5558 "\x81\x01\x04\x00\x76\xFA\xED\xD3"
5559 "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
5560 "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
5561 "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
5562 "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
5563 "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
5564 "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
5565 "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
5566 "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
5567 "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
5568 "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
5569 "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
5570 "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
5571 "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
5572 "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
5573 "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
5574 "\x45\x86\x50\x01\x70\x35\x99\x92"
5575 "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
5576 "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
5577 "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
5578 "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
5579 "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
5580 "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
5581 "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
5582 "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
5583 "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
5584 "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
5585 "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
5586 "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
5587 "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
5588 "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
5589 "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
5590 "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
5591 "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
5592 "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
5593 "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
5594 "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
5595 "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
5596 "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
5597 "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
5598 "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
5599 "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
5600 "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
5601 "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
5602 "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
5603 "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
5604 "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
5605 "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
5606 "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
5607 "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
5608 "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
5609 "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
5610 "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
5611 "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
5612 "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
5613 "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
5614 "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
5615 "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
5616 "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
5617 "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
5618 .ilen = 496,
5619 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
5620 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
5621 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
5622 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
5623 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
5624 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
5625 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
5626 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
5627 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
5628 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
5629 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
5630 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
5631 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
5632 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
5633 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
5634 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
5635 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
5636 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
5637 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
5638 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
5639 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
5640 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
5641 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
5642 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
5643 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
5644 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
5645 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
5646 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
5647 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
5648 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
5649 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
5650 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
5651 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
5652 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
5653 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
5654 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
5655 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
5656 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
5657 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
5658 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
5659 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
5660 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
5661 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
5662 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
5663 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
5664 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
5665 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
5666 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
5667 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
5668 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
5669 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
5670 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
5671 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
5672 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
5673 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
5674 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
5675 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
5676 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
5677 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
5678 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
5679 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
5680 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
5681 .rlen = 496,
5682 .also_non_np = 1,
5683 .np = 3,
5684 .tap = { 496 - 20, 4, 16 },
5688 static struct cipher_testvec des3_ede_cbc_enc_tv_template[] = {
5689 { /* Generated from openssl */
5690 .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
5691 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
5692 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
5693 .klen = 24,
5694 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
5695 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
5696 "\x53\x20\x63\x65\x65\x72\x73\x74"
5697 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
5698 "\x20\x79\x65\x53\x72\x63\x74\x65"
5699 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
5700 "\x79\x6e\x53\x20\x63\x65\x65\x72"
5701 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
5702 "\x6e\x61\x20\x79\x65\x53\x72\x63"
5703 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
5704 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
5705 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
5706 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
5707 "\x72\x63\x74\x65\x20\x73\x6f\x54"
5708 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
5709 "\x63\x65\x65\x72\x73\x74\x54\x20"
5710 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
5711 .ilen = 128,
5712 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
5713 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
5714 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
5715 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
5716 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
5717 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
5718 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
5719 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
5720 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
5721 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
5722 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
5723 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
5724 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
5725 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
5726 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
5727 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
5728 .rlen = 128,
5729 }, { /* Generated with Crypto++ */
5730 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
5731 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
5732 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
5733 .klen = 24,
5734 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
5735 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
5736 .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
5737 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
5738 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
5739 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
5740 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
5741 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
5742 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
5743 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
5744 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
5745 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
5746 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
5747 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
5748 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
5749 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
5750 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
5751 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
5752 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
5753 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
5754 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
5755 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
5756 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
5757 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
5758 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
5759 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
5760 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
5761 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
5762 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
5763 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
5764 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
5765 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
5766 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
5767 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
5768 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
5769 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
5770 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
5771 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
5772 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
5773 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
5774 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
5775 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
5776 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
5777 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
5778 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
5779 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
5780 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
5781 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
5782 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
5783 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
5784 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
5785 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
5786 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
5787 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
5788 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
5789 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
5790 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
5791 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
5792 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
5793 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
5794 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
5795 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
5796 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
5797 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
5798 .ilen = 496,
5799 .result = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
5800 "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
5801 "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
5802 "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
5803 "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
5804 "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
5805 "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
5806 "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
5807 "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
5808 "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
5809 "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
5810 "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
5811 "\x11\x35\x61\x94\x88\x7B\x1C\x48"
5812 "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
5813 "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
5814 "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
5815 "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
5816 "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
5817 "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
5818 "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
5819 "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
5820 "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
5821 "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
5822 "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
5823 "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
5824 "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
5825 "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
5826 "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
5827 "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
5828 "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
5829 "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
5830 "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
5831 "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
5832 "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
5833 "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
5834 "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
5835 "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
5836 "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
5837 "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
5838 "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
5839 "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
5840 "\x73\x50\x08\x56\x20\x9B\x94\x23"
5841 "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
5842 "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
5843 "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
5844 "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
5845 "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
5846 "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
5847 "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
5848 "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
5849 "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
5850 "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
5851 "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
5852 "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
5853 "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
5854 "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
5855 "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
5856 "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
5857 "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
5858 "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
5859 "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
5860 "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
5861 .rlen = 496,
5862 .also_non_np = 1,
5863 .np = 3,
5864 .tap = { 496 - 20, 4, 16 },
5868 static struct cipher_testvec des3_ede_cbc_dec_tv_template[] = {
5869 { /* Generated from openssl */
5870 .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
5871 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
5872 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
5873 .klen = 24,
5874 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
5875 .input = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
5876 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
5877 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
5878 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
5879 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
5880 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
5881 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
5882 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
5883 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
5884 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
5885 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
5886 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
5887 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
5888 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
5889 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
5890 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
5891 .ilen = 128,
5892 .result = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
5893 "\x53\x20\x63\x65\x65\x72\x73\x74"
5894 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
5895 "\x20\x79\x65\x53\x72\x63\x74\x65"
5896 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
5897 "\x79\x6e\x53\x20\x63\x65\x65\x72"
5898 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
5899 "\x6e\x61\x20\x79\x65\x53\x72\x63"
5900 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
5901 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
5902 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
5903 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
5904 "\x72\x63\x74\x65\x20\x73\x6f\x54"
5905 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
5906 "\x63\x65\x65\x72\x73\x74\x54\x20"
5907 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
5908 .rlen = 128,
5909 }, { /* Generated with Crypto++ */
5910 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
5911 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
5912 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
5913 .klen = 24,
5914 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
5915 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
5916 .input = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
5917 "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
5918 "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
5919 "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
5920 "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
5921 "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
5922 "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
5923 "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
5924 "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
5925 "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
5926 "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
5927 "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
5928 "\x11\x35\x61\x94\x88\x7B\x1C\x48"
5929 "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
5930 "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
5931 "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
5932 "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
5933 "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
5934 "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
5935 "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
5936 "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
5937 "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
5938 "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
5939 "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
5940 "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
5941 "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
5942 "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
5943 "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
5944 "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
5945 "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
5946 "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
5947 "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
5948 "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
5949 "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
5950 "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
5951 "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
5952 "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
5953 "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
5954 "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
5955 "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
5956 "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
5957 "\x73\x50\x08\x56\x20\x9B\x94\x23"
5958 "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
5959 "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
5960 "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
5961 "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
5962 "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
5963 "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
5964 "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
5965 "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
5966 "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
5967 "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
5968 "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
5969 "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
5970 "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
5971 "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
5972 "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
5973 "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
5974 "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
5975 "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
5976 "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
5977 "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
5978 .ilen = 496,
5979 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
5980 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
5981 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
5982 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
5983 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
5984 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
5985 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
5986 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
5987 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
5988 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
5989 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
5990 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
5991 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
5992 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
5993 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
5994 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
5995 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
5996 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
5997 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
5998 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
5999 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6000 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6001 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6002 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6003 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6004 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6005 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6006 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6007 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6008 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6009 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6010 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6011 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6012 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6013 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6014 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6015 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6016 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6017 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6018 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6019 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6020 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6021 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6022 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6023 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6024 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6025 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6026 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6027 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6028 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6029 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6030 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6031 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6032 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6033 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6034 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6035 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6036 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6037 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6038 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6039 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6040 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6041 .rlen = 496,
6042 .also_non_np = 1,
6043 .np = 3,
6044 .tap = { 496 - 20, 4, 16 },
6048 static struct cipher_testvec des3_ede_ctr_enc_tv_template[] = {
6049 { /* Generated with Crypto++ */
6050 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6051 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6052 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6053 .klen = 24,
6054 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
6055 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
6056 .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6057 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6058 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6059 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6060 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6061 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6062 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6063 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6064 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6065 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6066 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6067 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6068 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6069 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6070 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6071 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6072 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6073 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6074 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6075 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6076 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6077 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6078 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6079 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6080 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6081 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6082 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6083 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6084 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6085 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6086 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6087 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6088 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6089 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6090 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6091 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6092 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6093 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6094 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6095 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6096 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6097 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6098 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6099 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6100 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6101 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6102 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6103 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6104 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6105 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6106 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6107 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6108 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6109 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6110 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6111 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6112 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6113 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6114 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6115 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6116 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6117 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6118 .ilen = 496,
6119 .result = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
6120 "\x19\xCD\x6F\x32\x53\x05\x22\x15"
6121 "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
6122 "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
6123 "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
6124 "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
6125 "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
6126 "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
6127 "\x13\x78\xDC\x89\x12\x12\x43\xFA"
6128 "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
6129 "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
6130 "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
6131 "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
6132 "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
6133 "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
6134 "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
6135 "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
6136 "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
6137 "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
6138 "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
6139 "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
6140 "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
6141 "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
6142 "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
6143 "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
6144 "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
6145 "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
6146 "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
6147 "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
6148 "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
6149 "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
6150 "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
6151 "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
6152 "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
6153 "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
6154 "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
6155 "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
6156 "\x83\x37\x4F\x1F\x48\x30\xED\x04"
6157 "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
6158 "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
6159 "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
6160 "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
6161 "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
6162 "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
6163 "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
6164 "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
6165 "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
6166 "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
6167 "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
6168 "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
6169 "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
6170 "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
6171 "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
6172 "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
6173 "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
6174 "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
6175 "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
6176 "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
6177 "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
6178 "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
6179 "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
6180 "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
6181 .rlen = 496,
6182 .also_non_np = 1,
6183 .np = 3,
6184 .tap = { 496 - 20, 4, 16 },
6185 }, { /* Generated with Crypto++ */
6186 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6187 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6188 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6189 .klen = 24,
6190 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
6191 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
6192 .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6193 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6194 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6195 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6196 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6197 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6198 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6199 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6200 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6201 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6202 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6203 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6204 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6205 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6206 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6207 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6208 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6209 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6210 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6211 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6212 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6213 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6214 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6215 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6216 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6217 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6218 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6219 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6220 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6221 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6222 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6223 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6224 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6225 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6226 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6227 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6228 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6229 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6230 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6231 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6232 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6233 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6234 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6235 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6236 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6237 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6238 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6239 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6240 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6241 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6242 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6243 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6244 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6245 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6246 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6247 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6248 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6249 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6250 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6251 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6252 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6253 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
6254 "\x2E\xB1\x18",
6255 .ilen = 499,
6256 .result = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
6257 "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
6258 "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
6259 "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
6260 "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
6261 "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
6262 "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
6263 "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
6264 "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
6265 "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
6266 "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
6267 "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
6268 "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
6269 "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
6270 "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
6271 "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
6272 "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
6273 "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
6274 "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
6275 "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
6276 "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
6277 "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
6278 "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
6279 "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
6280 "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
6281 "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
6282 "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
6283 "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
6284 "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
6285 "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
6286 "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
6287 "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
6288 "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
6289 "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
6290 "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
6291 "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
6292 "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
6293 "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
6294 "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
6295 "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
6296 "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
6297 "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
6298 "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
6299 "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
6300 "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
6301 "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
6302 "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
6303 "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
6304 "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
6305 "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
6306 "\x8A\x19\x08\xE1\x08\x48\x59\x51"
6307 "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
6308 "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
6309 "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
6310 "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
6311 "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
6312 "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
6313 "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
6314 "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
6315 "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
6316 "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
6317 "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
6318 "\xF2\x79\xD9",
6319 .rlen = 499,
6320 .also_non_np = 1,
6321 .np = 2,
6322 .tap = { 499 - 16, 16 },
6326 static struct cipher_testvec des3_ede_ctr_dec_tv_template[] = {
6327 { /* Generated with Crypto++ */
6328 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6329 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6330 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6331 .klen = 24,
6332 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
6333 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
6334 .input = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
6335 "\x19\xCD\x6F\x32\x53\x05\x22\x15"
6336 "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
6337 "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
6338 "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
6339 "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
6340 "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
6341 "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
6342 "\x13\x78\xDC\x89\x12\x12\x43\xFA"
6343 "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
6344 "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
6345 "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
6346 "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
6347 "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
6348 "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
6349 "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
6350 "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
6351 "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
6352 "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
6353 "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
6354 "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
6355 "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
6356 "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
6357 "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
6358 "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
6359 "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
6360 "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
6361 "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
6362 "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
6363 "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
6364 "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
6365 "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
6366 "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
6367 "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
6368 "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
6369 "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
6370 "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
6371 "\x83\x37\x4F\x1F\x48\x30\xED\x04"
6372 "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
6373 "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
6374 "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
6375 "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
6376 "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
6377 "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
6378 "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
6379 "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
6380 "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
6381 "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
6382 "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
6383 "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
6384 "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
6385 "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
6386 "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
6387 "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
6388 "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
6389 "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
6390 "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
6391 "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
6392 "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
6393 "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
6394 "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
6395 "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
6396 .ilen = 496,
6397 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6398 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6399 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6400 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6401 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6402 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6403 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6404 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6405 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6406 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6407 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6408 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6409 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6410 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6411 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6412 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6413 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6414 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6415 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6416 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6417 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6418 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6419 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6420 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6421 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6422 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6423 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6424 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6425 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6426 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6427 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6428 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6429 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6430 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6431 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6432 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6433 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6434 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6435 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6436 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6437 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6438 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6439 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6440 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6441 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6442 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6443 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6444 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6445 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6446 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6447 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6448 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6449 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6450 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6451 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6452 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6453 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6454 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6455 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6456 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6457 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6458 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6459 .rlen = 496,
6460 .also_non_np = 1,
6461 .np = 3,
6462 .tap = { 496 - 20, 4, 16 },
6463 }, { /* Generated with Crypto++ */
6464 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6465 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6466 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6467 .klen = 24,
6468 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
6469 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
6470 .input = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
6471 "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
6472 "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
6473 "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
6474 "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
6475 "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
6476 "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
6477 "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
6478 "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
6479 "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
6480 "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
6481 "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
6482 "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
6483 "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
6484 "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
6485 "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
6486 "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
6487 "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
6488 "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
6489 "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
6490 "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
6491 "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
6492 "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
6493 "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
6494 "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
6495 "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
6496 "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
6497 "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
6498 "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
6499 "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
6500 "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
6501 "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
6502 "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
6503 "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
6504 "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
6505 "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
6506 "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
6507 "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
6508 "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
6509 "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
6510 "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
6511 "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
6512 "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
6513 "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
6514 "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
6515 "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
6516 "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
6517 "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
6518 "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
6519 "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
6520 "\x8A\x19\x08\xE1\x08\x48\x59\x51"
6521 "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
6522 "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
6523 "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
6524 "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
6525 "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
6526 "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
6527 "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
6528 "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
6529 "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
6530 "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
6531 "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
6532 "\xF2\x79\xD9",
6533 .ilen = 499,
6534 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6535 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6536 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6537 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6538 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6539 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6540 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6541 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6542 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6543 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6544 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6545 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6546 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6547 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6548 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6549 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6550 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6551 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6552 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6553 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6554 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6555 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6556 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6557 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6558 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6559 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6560 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6561 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6562 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6563 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6564 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6565 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6566 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6567 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6568 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6569 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6570 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6571 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6572 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6573 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6574 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6575 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6576 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6577 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6578 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6579 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6580 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6581 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6582 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6583 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6584 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6585 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6586 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6587 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6588 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6589 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6590 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6591 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6592 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6593 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6594 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6595 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
6596 "\x2E\xB1\x18",
6597 .rlen = 499,
6598 .also_non_np = 1,
6599 .np = 2,
6600 .tap = { 499 - 16, 16 },
6605 * Blowfish test vectors.
6607 #define BF_ENC_TEST_VECTORS 7
6608 #define BF_DEC_TEST_VECTORS 7
6609 #define BF_CBC_ENC_TEST_VECTORS 2
6610 #define BF_CBC_DEC_TEST_VECTORS 2
6611 #define BF_CTR_ENC_TEST_VECTORS 2
6612 #define BF_CTR_DEC_TEST_VECTORS 2
6614 static struct cipher_testvec bf_enc_tv_template[] = {
6615 { /* DES test vectors from OpenSSL */
6616 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
6617 .klen = 8,
6618 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
6619 .ilen = 8,
6620 .result = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
6621 .rlen = 8,
6622 }, {
6623 .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
6624 .klen = 8,
6625 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
6626 .ilen = 8,
6627 .result = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
6628 .rlen = 8,
6629 }, {
6630 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
6631 .klen = 8,
6632 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6633 .ilen = 8,
6634 .result = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
6635 .rlen = 8,
6636 }, { /* Vary the keylength... */
6637 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6638 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
6639 .klen = 16,
6640 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6641 .ilen = 8,
6642 .result = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
6643 .rlen = 8,
6644 }, {
6645 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6646 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6647 "\x00\x11\x22\x33\x44",
6648 .klen = 21,
6649 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6650 .ilen = 8,
6651 .result = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
6652 .rlen = 8,
6653 }, { /* Generated with bf488 */
6654 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6655 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6656 "\x00\x11\x22\x33\x44\x55\x66\x77"
6657 "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
6658 "\x58\x40\x23\x64\x1a\xba\x61\x76"
6659 "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
6660 "\xff\xff\xff\xff\xff\xff\xff\xff",
6661 .klen = 56,
6662 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6663 .ilen = 8,
6664 .result = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
6665 .rlen = 8,
6666 }, { /* Generated with Crypto++ */
6667 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6668 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6669 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6670 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6671 .klen = 32,
6672 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6673 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6674 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6675 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6676 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6677 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6678 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6679 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6680 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6681 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6682 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6683 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6684 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6685 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6686 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6687 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6688 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6689 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6690 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6691 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6692 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6693 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6694 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6695 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6696 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6697 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6698 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6699 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6700 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6701 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6702 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6703 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6704 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6705 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6706 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6707 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6708 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6709 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6710 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6711 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6712 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6713 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6714 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6715 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6716 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6717 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6718 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6719 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6720 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6721 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6722 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6723 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6724 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6725 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6726 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6727 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6728 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6729 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6730 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6731 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6732 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6733 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6734 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
6735 .ilen = 504,
6736 .result = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
6737 "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
6738 "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
6739 "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
6740 "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
6741 "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
6742 "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
6743 "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
6744 "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
6745 "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
6746 "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
6747 "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
6748 "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
6749 "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
6750 "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
6751 "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
6752 "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
6753 "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
6754 "\x47\x82\x98\x23\x33\x36\xBC\x1B"
6755 "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
6756 "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
6757 "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
6758 "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
6759 "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
6760 "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
6761 "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
6762 "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
6763 "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
6764 "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
6765 "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
6766 "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
6767 "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
6768 "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
6769 "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
6770 "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
6771 "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
6772 "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
6773 "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
6774 "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
6775 "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
6776 "\x3E\x42\x14\x49\x88\x51\xBF\x68"
6777 "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
6778 "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
6779 "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
6780 "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
6781 "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
6782 "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
6783 "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
6784 "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
6785 "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
6786 "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
6787 "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
6788 "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
6789 "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
6790 "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
6791 "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
6792 "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
6793 "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
6794 "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
6795 "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
6796 "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
6797 "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
6798 "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
6799 .rlen = 504,
6800 .also_non_np = 1,
6801 .np = 3,
6802 .tap = { 504 - 10, 2, 8 },
6806 static struct cipher_testvec bf_dec_tv_template[] = {
6807 { /* DES test vectors from OpenSSL */
6808 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
6809 .klen = 8,
6810 .input = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
6811 .ilen = 8,
6812 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
6813 .rlen = 8,
6814 }, {
6815 .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
6816 .klen = 8,
6817 .input = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
6818 .ilen = 8,
6819 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
6820 .rlen = 8,
6821 }, {
6822 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
6823 .klen = 8,
6824 .input = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
6825 .ilen = 8,
6826 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6827 .rlen = 8,
6828 }, { /* Vary the keylength... */
6829 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6830 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
6831 .klen = 16,
6832 .input = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
6833 .ilen = 8,
6834 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6835 .rlen = 8,
6836 }, {
6837 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6838 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6839 "\x00\x11\x22\x33\x44",
6840 .klen = 21,
6841 .input = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
6842 .ilen = 8,
6843 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6844 .rlen = 8,
6845 }, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */
6846 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6847 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6848 "\x00\x11\x22\x33\x44\x55\x66\x77"
6849 "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
6850 "\x58\x40\x23\x64\x1a\xba\x61\x76"
6851 "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
6852 "\xff\xff\xff\xff\xff\xff\xff\xff",
6853 .klen = 56,
6854 .input = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
6855 .ilen = 8,
6856 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6857 .rlen = 8,
6858 }, { /* Generated with Crypto++ */
6859 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6860 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6861 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6862 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6863 .klen = 32,
6864 .input = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
6865 "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
6866 "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
6867 "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
6868 "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
6869 "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
6870 "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
6871 "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
6872 "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
6873 "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
6874 "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
6875 "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
6876 "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
6877 "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
6878 "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
6879 "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
6880 "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
6881 "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
6882 "\x47\x82\x98\x23\x33\x36\xBC\x1B"
6883 "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
6884 "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
6885 "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
6886 "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
6887 "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
6888 "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
6889 "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
6890 "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
6891 "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
6892 "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
6893 "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
6894 "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
6895 "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
6896 "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
6897 "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
6898 "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
6899 "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
6900 "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
6901 "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
6902 "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
6903 "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
6904 "\x3E\x42\x14\x49\x88\x51\xBF\x68"
6905 "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
6906 "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
6907 "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
6908 "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
6909 "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
6910 "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
6911 "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
6912 "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
6913 "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
6914 "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
6915 "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
6916 "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
6917 "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
6918 "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
6919 "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
6920 "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
6921 "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
6922 "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
6923 "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
6924 "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
6925 "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
6926 "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
6927 .ilen = 504,
6928 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6929 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6930 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6931 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
6932 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6933 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6934 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6935 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6936 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6937 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6938 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6939 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6940 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6941 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6942 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6943 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6944 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6945 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6946 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6947 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6948 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6949 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6950 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6951 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6952 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6953 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6954 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6955 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6956 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6957 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6958 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6959 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6960 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6961 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6962 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6963 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6964 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6965 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6966 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6967 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6968 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6969 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6970 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6971 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6972 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6973 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6974 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6975 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6976 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6977 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6978 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6979 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6980 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6981 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6982 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6983 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6984 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6985 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6986 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6987 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6988 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6989 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6990 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
6991 .rlen = 504,
6992 .also_non_np = 1,
6993 .np = 3,
6994 .tap = { 504 - 10, 2, 8 },
6998 static struct cipher_testvec bf_cbc_enc_tv_template[] = {
6999 { /* From OpenSSL */
7000 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
7001 "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
7002 .klen = 16,
7003 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
7004 .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
7005 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
7006 "\x68\x65\x20\x74\x69\x6d\x65\x20"
7007 "\x66\x6f\x72\x20\x00\x00\x00\x00",
7008 .ilen = 32,
7009 .result = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
7010 "\x05\xb1\x56\xe2\x74\x03\x97\x93"
7011 "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
7012 "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
7013 .rlen = 32,
7014 }, { /* Generated with Crypto++ */
7015 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7016 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7017 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7018 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7019 .klen = 32,
7020 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7021 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7022 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7023 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7024 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7025 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7026 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7027 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7028 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7029 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7030 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7031 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7032 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7033 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7034 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7035 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7036 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7037 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7038 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7039 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7040 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7041 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7042 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7043 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7044 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7045 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7046 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7047 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7048 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7049 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7050 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7051 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7052 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7053 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7054 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7055 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7056 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7057 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7058 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7059 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7060 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7061 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7062 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7063 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7064 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7065 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7066 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7067 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7068 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7069 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7070 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7071 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7072 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7073 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7074 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7075 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7076 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7077 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7078 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7079 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7080 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7081 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7082 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7083 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7084 .ilen = 504,
7085 .result = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
7086 "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
7087 "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
7088 "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
7089 "\x01\x9C\x93\x63\x51\x60\x82\xD2"
7090 "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
7091 "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
7092 "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
7093 "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
7094 "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
7095 "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
7096 "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
7097 "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
7098 "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
7099 "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
7100 "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
7101 "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
7102 "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
7103 "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
7104 "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
7105 "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
7106 "\x65\xFE\x15\x40\xD0\x62\x41\x02"
7107 "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
7108 "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
7109 "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
7110 "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
7111 "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
7112 "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
7113 "\x04\xF0\x86\x08\x78\x18\x42\xE0"
7114 "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
7115 "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
7116 "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
7117 "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
7118 "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
7119 "\x97\x18\x92\xFF\x15\x11\xCE\xED"
7120 "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
7121 "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
7122 "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
7123 "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
7124 "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
7125 "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
7126 "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
7127 "\x43\x12\x73\x77\xDB\x91\x83\x5B"
7128 "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
7129 "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
7130 "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
7131 "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
7132 "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
7133 "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
7134 "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
7135 "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
7136 "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
7137 "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
7138 "\xC5\xF8\x69\x83\x28\x84\x87\x56"
7139 "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
7140 "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
7141 "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
7142 "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
7143 "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
7144 "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
7145 "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
7146 "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
7147 "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
7148 .rlen = 504,
7149 .also_non_np = 1,
7150 .np = 3,
7151 .tap = { 504 - 10, 2, 8 },
7155 static struct cipher_testvec bf_cbc_dec_tv_template[] = {
7156 { /* From OpenSSL */
7157 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
7158 "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
7159 .klen = 16,
7160 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
7161 .input = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
7162 "\x05\xb1\x56\xe2\x74\x03\x97\x93"
7163 "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
7164 "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
7165 .ilen = 32,
7166 .result = "\x37\x36\x35\x34\x33\x32\x31\x20"
7167 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
7168 "\x68\x65\x20\x74\x69\x6d\x65\x20"
7169 "\x66\x6f\x72\x20\x00\x00\x00\x00",
7170 .rlen = 32,
7171 }, { /* Generated with Crypto++ */
7172 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7173 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7174 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7175 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7176 .klen = 32,
7177 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7178 .input = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
7179 "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
7180 "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
7181 "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
7182 "\x01\x9C\x93\x63\x51\x60\x82\xD2"
7183 "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
7184 "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
7185 "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
7186 "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
7187 "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
7188 "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
7189 "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
7190 "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
7191 "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
7192 "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
7193 "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
7194 "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
7195 "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
7196 "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
7197 "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
7198 "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
7199 "\x65\xFE\x15\x40\xD0\x62\x41\x02"
7200 "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
7201 "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
7202 "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
7203 "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
7204 "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
7205 "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
7206 "\x04\xF0\x86\x08\x78\x18\x42\xE0"
7207 "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
7208 "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
7209 "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
7210 "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
7211 "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
7212 "\x97\x18\x92\xFF\x15\x11\xCE\xED"
7213 "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
7214 "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
7215 "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
7216 "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
7217 "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
7218 "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
7219 "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
7220 "\x43\x12\x73\x77\xDB\x91\x83\x5B"
7221 "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
7222 "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
7223 "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
7224 "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
7225 "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
7226 "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
7227 "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
7228 "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
7229 "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
7230 "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
7231 "\xC5\xF8\x69\x83\x28\x84\x87\x56"
7232 "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
7233 "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
7234 "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
7235 "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
7236 "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
7237 "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
7238 "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
7239 "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
7240 "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
7241 .ilen = 504,
7242 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7243 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7244 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7245 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7246 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7247 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7248 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7249 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7250 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7251 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7252 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7253 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7254 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7255 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7256 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7257 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7258 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7259 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7260 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7261 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7262 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7263 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7264 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7265 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7266 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7267 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7268 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7269 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7270 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7271 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7272 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7273 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7274 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7275 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7276 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7277 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7278 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7279 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7280 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7281 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7282 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7283 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7284 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7285 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7286 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7287 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7288 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7289 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7290 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7291 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7292 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7293 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7294 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7295 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7296 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7297 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7298 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7299 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7300 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7301 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7302 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7303 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7304 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7305 .rlen = 504,
7306 .also_non_np = 1,
7307 .np = 3,
7308 .tap = { 504 - 10, 2, 8 },
7312 static struct cipher_testvec bf_ctr_enc_tv_template[] = {
7313 { /* Generated with Crypto++ */
7314 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7315 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7316 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7317 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7318 .klen = 32,
7319 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7320 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7321 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7322 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7323 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7324 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7325 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7326 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7327 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7328 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7329 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7330 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7331 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7332 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7333 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7334 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7335 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7336 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7337 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7338 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7339 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7340 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7341 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7342 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7343 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7344 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7345 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7346 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7347 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7348 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7349 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7350 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7351 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7352 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7353 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7354 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7355 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7356 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7357 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7358 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7359 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7360 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7361 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7362 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7363 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7364 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7365 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7366 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7367 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7368 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7369 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7370 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7371 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7372 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7373 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7374 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7375 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7376 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7377 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7378 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7379 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7380 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7381 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7382 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7383 .ilen = 504,
7384 .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7385 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7386 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7387 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
7388 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
7389 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7390 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7391 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7392 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7393 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7394 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7395 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7396 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7397 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7398 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7399 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7400 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7401 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7402 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7403 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7404 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7405 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7406 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7407 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7408 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7409 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7410 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7411 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7412 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7413 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7414 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7415 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7416 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7417 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7418 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7419 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7420 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7421 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7422 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7423 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7424 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7425 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7426 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7427 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7428 "\x82\x63\x11\xB3\x54\x49\x00\x08"
7429 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7430 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7431 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7432 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7433 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7434 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7435 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7436 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7437 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7438 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7439 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7440 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7441 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7442 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7443 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7444 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7445 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7446 "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
7447 .rlen = 504,
7448 }, { /* Generated with Crypto++ */
7449 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7450 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7451 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7452 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7453 .klen = 32,
7454 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7455 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7456 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7457 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7458 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7459 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7460 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7461 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7462 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7463 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7464 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7465 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7466 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7467 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7468 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7469 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7470 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7471 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7472 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7473 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7474 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7475 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7476 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7477 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7478 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7479 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7480 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7481 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7482 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7483 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7484 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7485 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7486 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7487 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7488 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7489 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7490 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7491 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7492 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7493 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7494 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7495 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7496 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7497 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7498 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7499 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7500 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7501 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7502 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7503 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7504 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7505 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7506 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7507 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7508 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7509 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7510 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7511 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7512 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7513 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7514 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7515 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7516 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7517 "\x2B\xC2\x59\xF0\x64\xFB\x92",
7518 .ilen = 503,
7519 .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7520 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7521 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7522 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
7523 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
7524 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7525 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7526 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7527 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7528 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7529 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7530 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7531 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7532 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7533 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7534 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7535 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7536 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7537 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7538 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7539 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7540 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7541 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7542 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7543 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7544 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7545 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7546 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7547 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7548 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7549 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7550 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7551 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7552 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7553 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7554 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7555 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7556 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7557 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7558 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7559 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7560 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7561 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7562 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7563 "\x82\x63\x11\xB3\x54\x49\x00\x08"
7564 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7565 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7566 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7567 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7568 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7569 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7570 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7571 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7572 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7573 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7574 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7575 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7576 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7577 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7578 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7579 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7580 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7581 "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
7582 .rlen = 503,
7583 .also_non_np = 1,
7584 .np = 2,
7585 .tap = { 503 - 8, 8 },
7586 }, { /* Generated with Crypto++ */
7587 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7588 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7589 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7590 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7591 .klen = 32,
7592 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
7593 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7594 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7595 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7596 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7597 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7598 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7599 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7600 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7601 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7602 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7603 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7604 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7605 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7606 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7607 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7608 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7609 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7610 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7611 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7612 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7613 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7614 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7615 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7616 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7617 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7618 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7619 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7620 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7621 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7622 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7623 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7624 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7625 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7626 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7627 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7628 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7629 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7630 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7631 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7632 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7633 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7634 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7635 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7636 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7637 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7638 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7639 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7640 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7641 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7642 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7643 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7644 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7645 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7646 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7647 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7648 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7649 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7650 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7651 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7652 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7653 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7654 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7655 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7656 .ilen = 504,
7657 .result = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
7658 "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
7659 "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
7660 "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
7661 "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
7662 "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
7663 "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
7664 "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
7665 "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
7666 "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
7667 "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
7668 "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
7669 "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
7670 "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
7671 "\x0B\x82\x59\x14\x26\x67\x08\x09"
7672 "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
7673 "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
7674 "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
7675 "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
7676 "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
7677 "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
7678 "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
7679 "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
7680 "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
7681 "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
7682 "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
7683 "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
7684 "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
7685 "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
7686 "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
7687 "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
7688 "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
7689 "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
7690 "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
7691 "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
7692 "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
7693 "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
7694 "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
7695 "\xB4\x19\xD8\x19\x45\x66\x27\x02"
7696 "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
7697 "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
7698 "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
7699 "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
7700 "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
7701 "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
7702 "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
7703 "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
7704 "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
7705 "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
7706 "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
7707 "\x91\x51\x4E\x71\xF2\x98\x85\x16"
7708 "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
7709 "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
7710 "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
7711 "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
7712 "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
7713 "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
7714 "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
7715 "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
7716 "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
7717 "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
7718 "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
7719 "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
7720 .rlen = 504,
7724 static struct cipher_testvec bf_ctr_dec_tv_template[] = {
7725 { /* Generated with Crypto++ */
7726 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7727 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7728 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7729 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7730 .klen = 32,
7731 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7732 .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7733 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7734 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7735 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
7736 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
7737 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7738 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7739 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7740 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7741 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7742 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7743 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7744 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7745 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7746 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7747 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7748 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7749 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7750 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7751 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7752 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7753 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7754 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7755 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7756 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7757 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7758 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7759 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7760 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7761 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7762 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7763 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7764 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7765 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7766 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7767 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7768 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7769 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7770 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7771 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7772 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7773 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7774 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7775 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7776 "\x82\x63\x11\xB3\x54\x49\x00\x08"
7777 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7778 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7779 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7780 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7781 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7782 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7783 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7784 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7785 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7786 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7787 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7788 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7789 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7790 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7791 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7792 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7793 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7794 "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
7795 .ilen = 504,
7796 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7797 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7798 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7799 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7800 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7801 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7802 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7803 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7804 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7805 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7806 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7807 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7808 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7809 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7810 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7811 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7812 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7813 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7814 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7815 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7816 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7817 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7818 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7819 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7820 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7821 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7822 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7823 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7824 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7825 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7826 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7827 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7828 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7829 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7830 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7831 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7832 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7833 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7834 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7835 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7836 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7837 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7838 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7839 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7840 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7841 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7842 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7843 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7844 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7845 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7846 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7847 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7848 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7849 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7850 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7851 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7852 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7853 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7854 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7855 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7856 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7857 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7858 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7859 .rlen = 504,
7860 }, { /* Generated with Crypto++ */
7861 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7862 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7863 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7864 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7865 .klen = 32,
7866 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7867 .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7868 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7869 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7870 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
7871 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
7872 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7873 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7874 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7875 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7876 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7877 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7878 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7879 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7880 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7881 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7882 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7883 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7884 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7885 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7886 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7887 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7888 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7889 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7890 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7891 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7892 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7893 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7894 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7895 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7896 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7897 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7898 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7899 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7900 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7901 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7902 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7903 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7904 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7905 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7906 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7907 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7908 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7909 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7910 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7911 "\x82\x63\x11\xB3\x54\x49\x00\x08"
7912 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7913 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7914 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7915 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7916 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7917 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7918 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7919 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7920 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7921 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7922 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7923 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7924 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7925 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7926 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7927 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7928 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7929 "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
7930 .ilen = 503,
7931 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7932 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7933 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7934 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7935 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7936 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7937 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7938 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7939 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7940 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7941 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7942 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7943 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7944 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7945 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7946 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7947 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7948 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7949 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7950 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7951 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7952 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7953 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7954 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7955 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7956 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7957 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7958 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7959 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7960 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7961 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7962 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7963 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7964 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7965 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7966 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7967 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7968 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7969 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7970 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7971 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7972 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7973 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7974 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7975 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7976 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7977 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7978 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7979 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7980 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7981 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7982 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7983 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7984 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7985 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7986 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7987 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7988 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7989 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7990 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7991 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7992 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7993 "\x2B\xC2\x59\xF0\x64\xFB\x92",
7994 .rlen = 503,
7995 .also_non_np = 1,
7996 .np = 2,
7997 .tap = { 503 - 8, 8 },
7998 }, { /* Generated with Crypto++ */
7999 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8000 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8001 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8002 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8003 .klen = 32,
8004 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
8005 .input = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
8006 "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
8007 "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
8008 "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
8009 "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
8010 "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
8011 "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
8012 "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
8013 "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
8014 "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
8015 "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
8016 "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
8017 "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
8018 "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
8019 "\x0B\x82\x59\x14\x26\x67\x08\x09"
8020 "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
8021 "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
8022 "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
8023 "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
8024 "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
8025 "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
8026 "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
8027 "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
8028 "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
8029 "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
8030 "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
8031 "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
8032 "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
8033 "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
8034 "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
8035 "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
8036 "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
8037 "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
8038 "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
8039 "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
8040 "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
8041 "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
8042 "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
8043 "\xB4\x19\xD8\x19\x45\x66\x27\x02"
8044 "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
8045 "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
8046 "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
8047 "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
8048 "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
8049 "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
8050 "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
8051 "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
8052 "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
8053 "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
8054 "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
8055 "\x91\x51\x4E\x71\xF2\x98\x85\x16"
8056 "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
8057 "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
8058 "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
8059 "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
8060 "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
8061 "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
8062 "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
8063 "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
8064 "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
8065 "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
8066 "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
8067 "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
8068 .ilen = 504,
8069 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8070 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8071 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8072 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8073 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8074 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8075 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8076 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8077 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8078 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8079 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8080 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8081 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8082 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8083 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8084 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8085 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8086 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8087 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8088 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8089 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8090 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8091 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8092 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8093 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8094 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8095 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8096 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8097 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8098 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8099 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8100 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8101 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8102 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8103 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8104 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8105 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8106 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8107 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8108 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8109 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8110 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8111 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8112 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8113 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8114 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8115 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8116 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8117 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8118 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8119 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8120 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8121 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8122 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8123 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8124 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8125 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8126 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8127 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8128 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8129 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8130 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8131 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
8132 .rlen = 504,
8137 * Twofish test vectors.
8139 #define TF_ENC_TEST_VECTORS 4
8140 #define TF_DEC_TEST_VECTORS 4
8141 #define TF_CBC_ENC_TEST_VECTORS 5
8142 #define TF_CBC_DEC_TEST_VECTORS 5
8143 #define TF_CTR_ENC_TEST_VECTORS 2
8144 #define TF_CTR_DEC_TEST_VECTORS 2
8145 #define TF_LRW_ENC_TEST_VECTORS 8
8146 #define TF_LRW_DEC_TEST_VECTORS 8
8147 #define TF_XTS_ENC_TEST_VECTORS 5
8148 #define TF_XTS_DEC_TEST_VECTORS 5
8150 static struct cipher_testvec tf_enc_tv_template[] = {
8152 .key = zeroed_string,
8153 .klen = 16,
8154 .input = zeroed_string,
8155 .ilen = 16,
8156 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8157 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8158 .rlen = 16,
8159 }, {
8160 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
8161 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
8162 "\x00\x11\x22\x33\x44\x55\x66\x77",
8163 .klen = 24,
8164 .input = zeroed_string,
8165 .ilen = 16,
8166 .result = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
8167 "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
8168 .rlen = 16,
8169 }, {
8170 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
8171 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
8172 "\x00\x11\x22\x33\x44\x55\x66\x77"
8173 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
8174 .klen = 32,
8175 .input = zeroed_string,
8176 .ilen = 16,
8177 .result = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
8178 "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
8179 .rlen = 16,
8180 }, { /* Generated with Crypto++ */
8181 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
8182 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
8183 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
8184 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
8185 .klen = 32,
8186 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8187 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8188 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8189 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8190 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8191 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8192 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8193 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8194 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8195 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8196 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8197 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8198 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8199 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8200 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8201 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8202 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8203 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8204 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8205 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8206 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8207 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8208 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8209 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8210 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8211 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8212 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8213 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8214 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8215 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8216 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8217 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8218 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8219 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8220 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8221 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8222 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8223 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8224 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8225 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8226 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8227 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8228 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8229 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8230 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8231 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8232 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8233 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8234 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8235 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8236 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8237 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8238 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8239 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8240 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8241 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8242 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8243 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8244 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8245 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8246 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8247 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8248 .ilen = 496,
8249 .result = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
8250 "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
8251 "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
8252 "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
8253 "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
8254 "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
8255 "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
8256 "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
8257 "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
8258 "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
8259 "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
8260 "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
8261 "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
8262 "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
8263 "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
8264 "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
8265 "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
8266 "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
8267 "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
8268 "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
8269 "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
8270 "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
8271 "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
8272 "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
8273 "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
8274 "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
8275 "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
8276 "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
8277 "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
8278 "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
8279 "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
8280 "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
8281 "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
8282 "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
8283 "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
8284 "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
8285 "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
8286 "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
8287 "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
8288 "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
8289 "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
8290 "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
8291 "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
8292 "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
8293 "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
8294 "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
8295 "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
8296 "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
8297 "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
8298 "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
8299 "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
8300 "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
8301 "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
8302 "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
8303 "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
8304 "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
8305 "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
8306 "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
8307 "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
8308 "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
8309 "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
8310 "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
8311 .rlen = 496,
8312 .also_non_np = 1,
8313 .np = 3,
8314 .tap = { 496 - 20, 4, 16 },
8318 static struct cipher_testvec tf_dec_tv_template[] = {
8320 .key = zeroed_string,
8321 .klen = 16,
8322 .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8323 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8324 .ilen = 16,
8325 .result = zeroed_string,
8326 .rlen = 16,
8327 }, {
8328 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
8329 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
8330 "\x00\x11\x22\x33\x44\x55\x66\x77",
8331 .klen = 24,
8332 .input = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
8333 "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
8334 .ilen = 16,
8335 .result = zeroed_string,
8336 .rlen = 16,
8337 }, {
8338 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
8339 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
8340 "\x00\x11\x22\x33\x44\x55\x66\x77"
8341 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
8342 .klen = 32,
8343 .input = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
8344 "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
8345 .ilen = 16,
8346 .result = zeroed_string,
8347 .rlen = 16,
8348 }, { /* Generated with Crypto++ */
8349 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
8350 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
8351 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
8352 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
8353 .klen = 32,
8354 .input = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
8355 "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
8356 "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
8357 "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
8358 "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
8359 "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
8360 "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
8361 "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
8362 "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
8363 "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
8364 "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
8365 "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
8366 "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
8367 "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
8368 "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
8369 "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
8370 "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
8371 "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
8372 "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
8373 "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
8374 "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
8375 "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
8376 "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
8377 "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
8378 "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
8379 "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
8380 "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
8381 "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
8382 "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
8383 "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
8384 "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
8385 "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
8386 "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
8387 "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
8388 "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
8389 "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
8390 "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
8391 "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
8392 "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
8393 "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
8394 "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
8395 "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
8396 "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
8397 "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
8398 "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
8399 "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
8400 "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
8401 "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
8402 "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
8403 "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
8404 "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
8405 "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
8406 "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
8407 "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
8408 "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
8409 "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
8410 "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
8411 "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
8412 "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
8413 "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
8414 "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
8415 "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
8416 .ilen = 496,
8417 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8418 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8419 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8420 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8421 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8422 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8423 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8424 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8425 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8426 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8427 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8428 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8429 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8430 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8431 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8432 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8433 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8434 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8435 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8436 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8437 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8438 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8439 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8440 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8441 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8442 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8443 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8444 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8445 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8446 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8447 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8448 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8449 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8450 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8451 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8452 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8453 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8454 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8455 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8456 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8457 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8458 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8459 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8460 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8461 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8462 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8463 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8464 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8465 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8466 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8467 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8468 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8469 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8470 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8471 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8472 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8473 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8474 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8475 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8476 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8477 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8478 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8479 .rlen = 496,
8480 .also_non_np = 1,
8481 .np = 3,
8482 .tap = { 496 - 20, 4, 16 },
8486 static struct cipher_testvec tf_cbc_enc_tv_template[] = {
8487 { /* Generated with Nettle */
8488 .key = zeroed_string,
8489 .klen = 16,
8490 .iv = zeroed_string,
8491 .input = zeroed_string,
8492 .ilen = 16,
8493 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8494 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8495 .rlen = 16,
8496 }, {
8497 .key = zeroed_string,
8498 .klen = 16,
8499 .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8500 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8501 .input = zeroed_string,
8502 .ilen = 16,
8503 .result = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8504 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
8505 .rlen = 16,
8506 }, {
8507 .key = zeroed_string,
8508 .klen = 16,
8509 .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8510 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
8511 .input = zeroed_string,
8512 .ilen = 16,
8513 .result = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
8514 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
8515 .rlen = 16,
8516 }, {
8517 .key = zeroed_string,
8518 .klen = 16,
8519 .iv = zeroed_string,
8520 .input = zeroed_string,
8521 .ilen = 48,
8522 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8523 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
8524 "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8525 "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
8526 "\x05\xef\x8c\x61\xa8\x11\x58\x26"
8527 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
8528 .rlen = 48,
8529 }, { /* Generated with Crypto++ */
8530 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8531 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8532 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8533 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8534 .klen = 32,
8535 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
8536 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
8537 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8538 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8539 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8540 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8541 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8542 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8543 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8544 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8545 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8546 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8547 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8548 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8549 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8550 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8551 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8552 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8553 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8554 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8555 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8556 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8557 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8558 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8559 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8560 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8561 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8562 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8563 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8564 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8565 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8566 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8567 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8568 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8569 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8570 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8571 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8572 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8573 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8574 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8575 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8576 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8577 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8578 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8579 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8580 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8581 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8582 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8583 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8584 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8585 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8586 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8587 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8588 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8589 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8590 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8591 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8592 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8593 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8594 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8595 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8596 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8597 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8598 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8599 .ilen = 496,
8600 .result = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
8601 "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
8602 "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
8603 "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
8604 "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
8605 "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
8606 "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
8607 "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
8608 "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
8609 "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
8610 "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
8611 "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
8612 "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
8613 "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
8614 "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
8615 "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
8616 "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
8617 "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
8618 "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
8619 "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
8620 "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
8621 "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
8622 "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
8623 "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
8624 "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
8625 "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
8626 "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
8627 "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
8628 "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
8629 "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
8630 "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
8631 "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
8632 "\x75\x42\x62\x04\x31\x1F\x95\x7C"
8633 "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
8634 "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
8635 "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
8636 "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
8637 "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
8638 "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
8639 "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
8640 "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
8641 "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
8642 "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
8643 "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
8644 "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
8645 "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
8646 "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
8647 "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
8648 "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
8649 "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
8650 "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
8651 "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
8652 "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
8653 "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
8654 "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
8655 "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
8656 "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
8657 "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
8658 "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
8659 "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
8660 "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
8661 "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
8662 .rlen = 496,
8663 .also_non_np = 1,
8664 .np = 3,
8665 .tap = { 496 - 20, 4, 16 },
8669 static struct cipher_testvec tf_cbc_dec_tv_template[] = {
8670 { /* Reverse of the first four above */
8671 .key = zeroed_string,
8672 .klen = 16,
8673 .iv = zeroed_string,
8674 .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8675 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8676 .ilen = 16,
8677 .result = zeroed_string,
8678 .rlen = 16,
8679 }, {
8680 .key = zeroed_string,
8681 .klen = 16,
8682 .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8683 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8684 .input = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8685 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
8686 .ilen = 16,
8687 .result = zeroed_string,
8688 .rlen = 16,
8689 }, {
8690 .key = zeroed_string,
8691 .klen = 16,
8692 .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8693 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
8694 .input = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
8695 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
8696 .ilen = 16,
8697 .result = zeroed_string,
8698 .rlen = 16,
8699 }, {
8700 .key = zeroed_string,
8701 .klen = 16,
8702 .iv = zeroed_string,
8703 .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8704 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
8705 "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8706 "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
8707 "\x05\xef\x8c\x61\xa8\x11\x58\x26"
8708 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
8709 .ilen = 48,
8710 .result = zeroed_string,
8711 .rlen = 48,
8712 }, { /* Generated with Crypto++ */
8713 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8714 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8715 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8716 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8717 .klen = 32,
8718 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
8719 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
8720 .input = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
8721 "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
8722 "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
8723 "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
8724 "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
8725 "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
8726 "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
8727 "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
8728 "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
8729 "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
8730 "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
8731 "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
8732 "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
8733 "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
8734 "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
8735 "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
8736 "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
8737 "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
8738 "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
8739 "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
8740 "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
8741 "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
8742 "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
8743 "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
8744 "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
8745 "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
8746 "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
8747 "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
8748 "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
8749 "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
8750 "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
8751 "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
8752 "\x75\x42\x62\x04\x31\x1F\x95\x7C"
8753 "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
8754 "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
8755 "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
8756 "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
8757 "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
8758 "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
8759 "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
8760 "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
8761 "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
8762 "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
8763 "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
8764 "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
8765 "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
8766 "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
8767 "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
8768 "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
8769 "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
8770 "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
8771 "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
8772 "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
8773 "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
8774 "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
8775 "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
8776 "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
8777 "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
8778 "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
8779 "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
8780 "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
8781 "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
8782 .ilen = 496,
8783 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8784 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8785 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8786 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8787 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8788 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8789 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8790 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8791 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8792 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8793 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8794 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8795 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8796 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8797 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8798 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8799 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8800 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8801 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8802 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8803 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8804 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8805 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8806 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8807 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8808 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8809 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8810 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8811 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8812 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8813 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8814 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8815 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8816 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8817 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8818 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8819 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8820 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8821 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8822 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8823 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8824 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8825 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8826 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8827 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8828 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8829 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8830 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8831 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8832 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8833 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8834 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8835 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8836 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8837 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8838 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8839 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8840 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8841 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8842 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8843 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8844 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8845 .rlen = 496,
8846 .also_non_np = 1,
8847 .np = 3,
8848 .tap = { 496 - 20, 4, 16 },
8852 static struct cipher_testvec tf_ctr_enc_tv_template[] = {
8853 { /* Generated with Crypto++ */
8854 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8855 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8856 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8857 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8858 .klen = 32,
8859 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
8860 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
8861 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8862 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8863 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8864 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8865 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8866 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8867 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8868 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8869 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8870 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8871 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8872 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8873 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8874 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8875 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8876 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8877 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8878 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8879 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8880 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8881 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8882 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8883 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8884 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8885 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8886 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8887 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8888 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8889 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8890 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8891 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8892 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8893 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8894 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8895 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8896 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8897 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8898 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8899 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8900 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8901 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8902 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8903 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8904 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8905 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8906 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8907 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8908 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8909 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8910 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8911 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8912 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8913 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8914 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8915 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8916 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8917 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8918 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8919 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8920 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8921 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8922 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8923 .ilen = 496,
8924 .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
8925 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
8926 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
8927 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
8928 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
8929 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
8930 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
8931 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
8932 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
8933 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
8934 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
8935 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
8936 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
8937 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
8938 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
8939 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
8940 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
8941 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
8942 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
8943 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
8944 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
8945 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
8946 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
8947 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
8948 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
8949 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
8950 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
8951 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
8952 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
8953 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
8954 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
8955 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
8956 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
8957 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
8958 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
8959 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
8960 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
8961 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
8962 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
8963 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
8964 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
8965 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
8966 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
8967 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
8968 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
8969 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
8970 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
8971 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
8972 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
8973 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
8974 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
8975 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
8976 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
8977 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
8978 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
8979 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
8980 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
8981 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
8982 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
8983 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
8984 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
8985 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
8986 .rlen = 496,
8987 }, { /* Generated with Crypto++ */
8988 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8989 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8990 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8991 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8992 .klen = 32,
8993 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
8994 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
8995 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8996 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8997 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8998 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8999 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9000 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9001 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9002 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9003 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9004 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9005 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9006 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9007 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9008 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9009 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9010 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9011 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9012 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9013 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9014 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9015 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9016 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9017 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9018 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9019 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9020 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9021 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9022 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9023 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9024 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9025 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9026 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9027 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9028 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9029 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9030 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9031 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9032 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9033 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9034 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9035 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9036 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9037 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9038 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9039 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9040 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9041 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9042 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9043 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9044 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9045 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9046 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9047 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9048 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9049 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9050 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9051 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9052 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9053 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9054 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9055 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9056 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9057 .ilen = 496,
9058 .result = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
9059 "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
9060 "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
9061 "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
9062 "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
9063 "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
9064 "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
9065 "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
9066 "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
9067 "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
9068 "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
9069 "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
9070 "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
9071 "\x39\x18\x09\xA4\x82\x59\x78\xE7"
9072 "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
9073 "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
9074 "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
9075 "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
9076 "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
9077 "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
9078 "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
9079 "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
9080 "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
9081 "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
9082 "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
9083 "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
9084 "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
9085 "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
9086 "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
9087 "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
9088 "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
9089 "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
9090 "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
9091 "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
9092 "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
9093 "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
9094 "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
9095 "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
9096 "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
9097 "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
9098 "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
9099 "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
9100 "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
9101 "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
9102 "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
9103 "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
9104 "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
9105 "\xDE\x55\x1B\x50\x14\x53\x44\x17"
9106 "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
9107 "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
9108 "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
9109 "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
9110 "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
9111 "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
9112 "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
9113 "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
9114 "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
9115 "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
9116 "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
9117 "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
9118 "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
9119 "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
9120 .rlen = 496,
9121 }, { /* Generated with Crypto++ */
9122 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9123 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9124 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9125 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9126 .klen = 32,
9127 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9128 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9129 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9130 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9131 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9132 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9133 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9134 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9135 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9136 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9137 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9138 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9139 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9140 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9141 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9142 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9143 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9144 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9145 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9146 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9147 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9148 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9149 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9150 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9151 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9152 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9153 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9154 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9155 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9156 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9157 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9158 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9159 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9160 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9161 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9162 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9163 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9164 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9165 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9166 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9167 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9168 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9169 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9170 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9171 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9172 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9173 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9174 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9175 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9176 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9177 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9178 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9179 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9180 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9181 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9182 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9183 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9184 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9185 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9186 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9187 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9188 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9189 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9190 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
9191 "\x2B\xC2\x59",
9192 .ilen = 499,
9193 .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
9194 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
9195 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
9196 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
9197 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
9198 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
9199 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
9200 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
9201 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
9202 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
9203 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
9204 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
9205 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
9206 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
9207 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
9208 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
9209 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
9210 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
9211 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
9212 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
9213 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
9214 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
9215 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
9216 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
9217 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
9218 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
9219 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
9220 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
9221 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
9222 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
9223 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
9224 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
9225 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
9226 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
9227 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
9228 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
9229 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
9230 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
9231 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
9232 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
9233 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
9234 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
9235 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
9236 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
9237 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
9238 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
9239 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
9240 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
9241 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
9242 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
9243 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
9244 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
9245 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
9246 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
9247 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
9248 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
9249 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
9250 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
9251 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
9252 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
9253 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
9254 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
9255 "\x6C\x82\x9D",
9256 .rlen = 499,
9257 .also_non_np = 1,
9258 .np = 2,
9259 .tap = { 499 - 16, 16 },
9263 static struct cipher_testvec tf_ctr_dec_tv_template[] = {
9264 { /* Generated with Crypto++ */
9265 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9266 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9267 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9268 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9269 .klen = 32,
9270 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9271 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9272 .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
9273 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
9274 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
9275 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
9276 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
9277 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
9278 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
9279 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
9280 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
9281 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
9282 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
9283 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
9284 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
9285 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
9286 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
9287 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
9288 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
9289 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
9290 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
9291 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
9292 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
9293 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
9294 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
9295 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
9296 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
9297 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
9298 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
9299 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
9300 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
9301 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
9302 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
9303 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
9304 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
9305 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
9306 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
9307 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
9308 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
9309 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
9310 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
9311 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
9312 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
9313 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
9314 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
9315 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
9316 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
9317 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
9318 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
9319 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
9320 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
9321 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
9322 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
9323 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
9324 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
9325 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
9326 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
9327 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
9328 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
9329 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
9330 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
9331 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
9332 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
9333 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
9334 .ilen = 496,
9335 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9336 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9337 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9338 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9339 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9340 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9341 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9342 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9343 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9344 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9345 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9346 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9347 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9348 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9349 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9350 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9351 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9352 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9353 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9354 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9355 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9356 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9357 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9358 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9359 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9360 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9361 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9362 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9363 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9364 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9365 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9366 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9367 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9368 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9369 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9370 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9371 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9372 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9373 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9374 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9375 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9376 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9377 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9378 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9379 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9380 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9381 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9382 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9383 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9384 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9385 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9386 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9387 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9388 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9389 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9390 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9391 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9392 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9393 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9394 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9395 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9396 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9397 .rlen = 496,
9398 }, { /* Generated with Crypto++ */
9399 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9400 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9401 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9402 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9403 .klen = 32,
9404 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
9405 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
9406 .input = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
9407 "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
9408 "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
9409 "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
9410 "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
9411 "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
9412 "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
9413 "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
9414 "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
9415 "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
9416 "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
9417 "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
9418 "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
9419 "\x39\x18\x09\xA4\x82\x59\x78\xE7"
9420 "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
9421 "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
9422 "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
9423 "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
9424 "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
9425 "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
9426 "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
9427 "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
9428 "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
9429 "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
9430 "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
9431 "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
9432 "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
9433 "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
9434 "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
9435 "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
9436 "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
9437 "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
9438 "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
9439 "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
9440 "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
9441 "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
9442 "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
9443 "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
9444 "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
9445 "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
9446 "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
9447 "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
9448 "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
9449 "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
9450 "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
9451 "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
9452 "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
9453 "\xDE\x55\x1B\x50\x14\x53\x44\x17"
9454 "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
9455 "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
9456 "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
9457 "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
9458 "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
9459 "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
9460 "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
9461 "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
9462 "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
9463 "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
9464 "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
9465 "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
9466 "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
9467 "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
9468 .ilen = 496,
9469 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9470 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9471 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9472 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9473 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9474 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9475 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9476 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9477 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9478 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9479 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9480 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9481 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9482 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9483 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9484 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9485 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9486 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9487 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9488 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9489 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9490 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9491 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9492 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9493 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9494 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9495 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9496 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9497 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9498 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9499 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9500 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9501 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9502 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9503 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9504 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9505 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9506 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9507 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9508 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9509 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9510 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9511 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9512 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9513 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9514 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9515 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9516 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9517 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9518 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9519 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9520 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9521 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9522 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9523 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9524 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9525 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9526 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9527 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9528 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9529 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9530 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9531 .rlen = 496,
9532 }, { /* Generated with Crypto++ */
9533 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9534 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9535 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9536 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9537 .klen = 32,
9538 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9539 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9540 .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
9541 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
9542 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
9543 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
9544 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
9545 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
9546 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
9547 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
9548 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
9549 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
9550 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
9551 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
9552 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
9553 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
9554 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
9555 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
9556 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
9557 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
9558 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
9559 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
9560 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
9561 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
9562 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
9563 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
9564 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
9565 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
9566 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
9567 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
9568 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
9569 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
9570 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
9571 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
9572 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
9573 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
9574 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
9575 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
9576 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
9577 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
9578 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
9579 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
9580 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
9581 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
9582 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
9583 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
9584 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
9585 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
9586 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
9587 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
9588 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
9589 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
9590 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
9591 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
9592 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
9593 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
9594 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
9595 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
9596 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
9597 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
9598 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
9599 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
9600 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
9601 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
9602 "\x6C\x82\x9D",
9603 .ilen = 499,
9604 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9605 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9606 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9607 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9608 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9609 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9610 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9611 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9612 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9613 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9614 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9615 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9616 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9617 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9618 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9619 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9620 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9621 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9622 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9623 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9624 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9625 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9626 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9627 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9628 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9629 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9630 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9631 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9632 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9633 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9634 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9635 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9636 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9637 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9638 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9639 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9640 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9641 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9642 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9643 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9644 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9645 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9646 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9647 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9648 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9649 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9650 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9651 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9652 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9653 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9654 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9655 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9656 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9657 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9658 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9659 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9660 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9661 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9662 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9663 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9664 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9665 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
9666 "\x2B\xC2\x59",
9667 .rlen = 499,
9668 .also_non_np = 1,
9669 .np = 2,
9670 .tap = { 499 - 16, 16 },
9674 static struct cipher_testvec tf_lrw_enc_tv_template[] = {
9675 /* Generated from AES-LRW test vectors */
9677 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
9678 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
9679 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
9680 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
9681 .klen = 32,
9682 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9683 "\x00\x00\x00\x00\x00\x00\x00\x01",
9684 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9685 "\x38\x39\x41\x42\x43\x44\x45\x46",
9686 .ilen = 16,
9687 .result = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
9688 "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
9689 .rlen = 16,
9690 }, {
9691 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
9692 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
9693 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
9694 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
9695 .klen = 32,
9696 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9697 "\x00\x00\x00\x00\x00\x00\x00\x02",
9698 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9699 "\x38\x39\x41\x42\x43\x44\x45\x46",
9700 .ilen = 16,
9701 .result = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
9702 "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
9703 .rlen = 16,
9704 }, {
9705 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
9706 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
9707 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
9708 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
9709 .klen = 32,
9710 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9711 "\x00\x00\x00\x02\x00\x00\x00\x00",
9712 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9713 "\x38\x39\x41\x42\x43\x44\x45\x46",
9714 .ilen = 16,
9715 .result = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
9716 "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
9717 .rlen = 16,
9718 }, {
9719 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
9720 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
9721 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
9722 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
9723 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
9724 .klen = 40,
9725 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9726 "\x00\x00\x00\x00\x00\x00\x00\x01",
9727 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9728 "\x38\x39\x41\x42\x43\x44\x45\x46",
9729 .ilen = 16,
9730 .result = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
9731 "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
9732 .rlen = 16,
9733 }, {
9734 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
9735 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
9736 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
9737 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
9738 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
9739 .klen = 40,
9740 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9741 "\x00\x00\x00\x02\x00\x00\x00\x00",
9742 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9743 "\x38\x39\x41\x42\x43\x44\x45\x46",
9744 .ilen = 16,
9745 .result = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
9746 "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
9747 .rlen = 16,
9748 }, {
9749 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
9750 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
9751 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
9752 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
9753 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
9754 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
9755 .klen = 48,
9756 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9757 "\x00\x00\x00\x00\x00\x00\x00\x01",
9758 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9759 "\x38\x39\x41\x42\x43\x44\x45\x46",
9760 .ilen = 16,
9761 .result = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
9762 "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
9763 .rlen = 16,
9764 }, {
9765 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
9766 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
9767 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
9768 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
9769 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
9770 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
9771 .klen = 48,
9772 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9773 "\x00\x00\x00\x02\x00\x00\x00\x00",
9774 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9775 "\x38\x39\x41\x42\x43\x44\x45\x46",
9776 .ilen = 16,
9777 .result = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
9778 "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
9779 .rlen = 16,
9780 }, {
9781 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
9782 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
9783 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
9784 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
9785 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
9786 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
9787 .klen = 48,
9788 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9789 "\x00\x00\x00\x00\x00\x00\x00\x01",
9790 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
9791 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
9792 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
9793 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
9794 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
9795 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
9796 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
9797 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
9798 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
9799 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
9800 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
9801 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
9802 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
9803 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
9804 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
9805 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
9806 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
9807 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
9808 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
9809 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
9810 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
9811 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
9812 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
9813 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
9814 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
9815 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
9816 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
9817 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
9818 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
9819 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
9820 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
9821 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
9822 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
9823 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
9824 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
9825 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
9826 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
9827 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
9828 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
9829 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
9830 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
9831 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
9832 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
9833 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
9834 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
9835 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
9836 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
9837 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
9838 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
9839 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
9840 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
9841 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
9842 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
9843 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
9844 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
9845 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
9846 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
9847 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
9848 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
9849 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
9850 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
9851 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
9852 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
9853 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
9854 .ilen = 512,
9855 .result = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
9856 "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
9857 "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
9858 "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
9859 "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
9860 "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
9861 "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
9862 "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
9863 "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
9864 "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
9865 "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
9866 "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
9867 "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
9868 "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
9869 "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
9870 "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
9871 "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
9872 "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
9873 "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
9874 "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
9875 "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
9876 "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
9877 "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
9878 "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
9879 "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
9880 "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
9881 "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
9882 "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
9883 "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
9884 "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
9885 "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
9886 "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
9887 "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
9888 "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
9889 "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
9890 "\x3e\xae\x71\x90\x07\x70\x1c\x38"
9891 "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
9892 "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
9893 "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
9894 "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
9895 "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
9896 "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
9897 "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
9898 "\x93\x51\x1d\x3d\x62\x59\x83\x82"
9899 "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
9900 "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
9901 "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
9902 "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
9903 "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
9904 "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
9905 "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
9906 "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
9907 "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
9908 "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
9909 "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
9910 "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
9911 "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
9912 "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
9913 "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
9914 "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
9915 "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
9916 "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
9917 "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
9918 "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
9919 .rlen = 512,
9920 .also_non_np = 1,
9921 .np = 3,
9922 .tap = { 512 - 20, 4, 16 },
9926 static struct cipher_testvec tf_lrw_dec_tv_template[] = {
9927 /* Generated from AES-LRW test vectors */
9928 /* same as enc vectors with input and result reversed */
9930 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
9931 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
9932 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
9933 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
9934 .klen = 32,
9935 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9936 "\x00\x00\x00\x00\x00\x00\x00\x01",
9937 .input = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
9938 "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
9939 .ilen = 16,
9940 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
9941 "\x38\x39\x41\x42\x43\x44\x45\x46",
9942 .rlen = 16,
9943 }, {
9944 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
9945 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
9946 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
9947 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
9948 .klen = 32,
9949 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9950 "\x00\x00\x00\x00\x00\x00\x00\x02",
9951 .input = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
9952 "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
9953 .ilen = 16,
9954 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
9955 "\x38\x39\x41\x42\x43\x44\x45\x46",
9956 .rlen = 16,
9957 }, {
9958 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
9959 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
9960 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
9961 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
9962 .klen = 32,
9963 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9964 "\x00\x00\x00\x02\x00\x00\x00\x00",
9965 .input = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
9966 "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
9967 .ilen = 16,
9968 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
9969 "\x38\x39\x41\x42\x43\x44\x45\x46",
9970 .rlen = 16,
9971 }, {
9972 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
9973 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
9974 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
9975 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
9976 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
9977 .klen = 40,
9978 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9979 "\x00\x00\x00\x00\x00\x00\x00\x01",
9980 .input = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
9981 "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
9982 .ilen = 16,
9983 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
9984 "\x38\x39\x41\x42\x43\x44\x45\x46",
9985 .rlen = 16,
9986 }, {
9987 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
9988 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
9989 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
9990 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
9991 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
9992 .klen = 40,
9993 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9994 "\x00\x00\x00\x02\x00\x00\x00\x00",
9995 .input = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
9996 "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
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 = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
10003 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
10004 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
10005 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
10006 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
10007 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
10008 .klen = 48,
10009 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10010 "\x00\x00\x00\x00\x00\x00\x00\x01",
10011 .input = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
10012 "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
10013 .ilen = 16,
10014 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
10015 "\x38\x39\x41\x42\x43\x44\x45\x46",
10016 .rlen = 16,
10017 }, {
10018 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
10019 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
10020 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
10021 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
10022 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
10023 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
10024 .klen = 48,
10025 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10026 "\x00\x00\x00\x02\x00\x00\x00\x00",
10027 .input = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
10028 "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
10029 .ilen = 16,
10030 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
10031 "\x38\x39\x41\x42\x43\x44\x45\x46",
10032 .rlen = 16,
10033 }, {
10034 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
10035 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
10036 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
10037 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
10038 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
10039 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
10040 .klen = 48,
10041 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10042 "\x00\x00\x00\x00\x00\x00\x00\x01",
10043 .input = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
10044 "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
10045 "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
10046 "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
10047 "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
10048 "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
10049 "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
10050 "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
10051 "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
10052 "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
10053 "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
10054 "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
10055 "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
10056 "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
10057 "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
10058 "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
10059 "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
10060 "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
10061 "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
10062 "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
10063 "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
10064 "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
10065 "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
10066 "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
10067 "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
10068 "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
10069 "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
10070 "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
10071 "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
10072 "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
10073 "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
10074 "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
10075 "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
10076 "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
10077 "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
10078 "\x3e\xae\x71\x90\x07\x70\x1c\x38"
10079 "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
10080 "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
10081 "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
10082 "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
10083 "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
10084 "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
10085 "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
10086 "\x93\x51\x1d\x3d\x62\x59\x83\x82"
10087 "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
10088 "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
10089 "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
10090 "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
10091 "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
10092 "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
10093 "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
10094 "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
10095 "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
10096 "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
10097 "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
10098 "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
10099 "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
10100 "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
10101 "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
10102 "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
10103 "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
10104 "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
10105 "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
10106 "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
10107 .ilen = 512,
10108 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
10109 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
10110 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
10111 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
10112 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
10113 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
10114 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
10115 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
10116 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
10117 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
10118 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
10119 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
10120 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
10121 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
10122 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
10123 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
10124 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
10125 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
10126 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
10127 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
10128 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
10129 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
10130 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
10131 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
10132 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
10133 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
10134 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
10135 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
10136 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
10137 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
10138 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
10139 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
10140 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
10141 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
10142 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
10143 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
10144 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
10145 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
10146 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
10147 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
10148 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
10149 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
10150 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
10151 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
10152 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
10153 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
10154 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
10155 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
10156 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
10157 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
10158 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
10159 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
10160 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
10161 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
10162 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
10163 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
10164 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
10165 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
10166 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
10167 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
10168 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
10169 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
10170 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
10171 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
10172 .rlen = 512,
10173 .also_non_np = 1,
10174 .np = 3,
10175 .tap = { 512 - 20, 4, 16 },
10179 static struct cipher_testvec tf_xts_enc_tv_template[] = {
10180 /* Generated from AES-XTS test vectors */
10182 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
10183 "\x00\x00\x00\x00\x00\x00\x00\x00"
10184 "\x00\x00\x00\x00\x00\x00\x00\x00"
10185 "\x00\x00\x00\x00\x00\x00\x00\x00",
10186 .klen = 32,
10187 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10188 "\x00\x00\x00\x00\x00\x00\x00\x00",
10189 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
10190 "\x00\x00\x00\x00\x00\x00\x00\x00"
10191 "\x00\x00\x00\x00\x00\x00\x00\x00"
10192 "\x00\x00\x00\x00\x00\x00\x00\x00",
10193 .ilen = 32,
10194 .result = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
10195 "\x30\x74\xe4\x44\x52\x77\x97\x43"
10196 "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
10197 "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
10198 .rlen = 32,
10199 }, {
10200 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
10201 "\x11\x11\x11\x11\x11\x11\x11\x11"
10202 "\x22\x22\x22\x22\x22\x22\x22\x22"
10203 "\x22\x22\x22\x22\x22\x22\x22\x22",
10204 .klen = 32,
10205 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
10206 "\x00\x00\x00\x00\x00\x00\x00\x00",
10207 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
10208 "\x44\x44\x44\x44\x44\x44\x44\x44"
10209 "\x44\x44\x44\x44\x44\x44\x44\x44"
10210 "\x44\x44\x44\x44\x44\x44\x44\x44",
10211 .ilen = 32,
10212 .result = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
10213 "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
10214 "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
10215 "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
10216 .rlen = 32,
10217 }, {
10218 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
10219 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
10220 "\x22\x22\x22\x22\x22\x22\x22\x22"
10221 "\x22\x22\x22\x22\x22\x22\x22\x22",
10222 .klen = 32,
10223 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
10224 "\x00\x00\x00\x00\x00\x00\x00\x00",
10225 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
10226 "\x44\x44\x44\x44\x44\x44\x44\x44"
10227 "\x44\x44\x44\x44\x44\x44\x44\x44"
10228 "\x44\x44\x44\x44\x44\x44\x44\x44",
10229 .ilen = 32,
10230 .result = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
10231 "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
10232 "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
10233 "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
10234 .rlen = 32,
10235 }, {
10236 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
10237 "\x23\x53\x60\x28\x74\x71\x35\x26"
10238 "\x31\x41\x59\x26\x53\x58\x97\x93"
10239 "\x23\x84\x62\x64\x33\x83\x27\x95",
10240 .klen = 32,
10241 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10242 "\x00\x00\x00\x00\x00\x00\x00\x00",
10243 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
10244 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10245 "\x10\x11\x12\x13\x14\x15\x16\x17"
10246 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10247 "\x20\x21\x22\x23\x24\x25\x26\x27"
10248 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10249 "\x30\x31\x32\x33\x34\x35\x36\x37"
10250 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10251 "\x40\x41\x42\x43\x44\x45\x46\x47"
10252 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10253 "\x50\x51\x52\x53\x54\x55\x56\x57"
10254 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10255 "\x60\x61\x62\x63\x64\x65\x66\x67"
10256 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10257 "\x70\x71\x72\x73\x74\x75\x76\x77"
10258 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10259 "\x80\x81\x82\x83\x84\x85\x86\x87"
10260 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10261 "\x90\x91\x92\x93\x94\x95\x96\x97"
10262 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10263 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10264 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10265 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10266 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10267 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10268 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10269 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10270 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10271 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10272 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10273 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10274 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10275 "\x00\x01\x02\x03\x04\x05\x06\x07"
10276 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10277 "\x10\x11\x12\x13\x14\x15\x16\x17"
10278 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10279 "\x20\x21\x22\x23\x24\x25\x26\x27"
10280 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10281 "\x30\x31\x32\x33\x34\x35\x36\x37"
10282 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10283 "\x40\x41\x42\x43\x44\x45\x46\x47"
10284 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10285 "\x50\x51\x52\x53\x54\x55\x56\x57"
10286 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10287 "\x60\x61\x62\x63\x64\x65\x66\x67"
10288 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10289 "\x70\x71\x72\x73\x74\x75\x76\x77"
10290 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10291 "\x80\x81\x82\x83\x84\x85\x86\x87"
10292 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10293 "\x90\x91\x92\x93\x94\x95\x96\x97"
10294 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10295 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10296 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10297 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10298 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10299 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10300 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10301 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10302 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10303 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10304 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10305 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10306 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10307 .ilen = 512,
10308 .result = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
10309 "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
10310 "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
10311 "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
10312 "\xea\x35\x35\x8c\xb2\x46\x61\x06"
10313 "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
10314 "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
10315 "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
10316 "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
10317 "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
10318 "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
10319 "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
10320 "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
10321 "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
10322 "\x01\x73\x68\x32\x25\x19\xfa\xfb"
10323 "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
10324 "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
10325 "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
10326 "\x39\x80\x39\x09\x97\x65\xf2\x83"
10327 "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
10328 "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
10329 "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
10330 "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
10331 "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
10332 "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
10333 "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
10334 "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
10335 "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
10336 "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
10337 "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
10338 "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
10339 "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
10340 "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
10341 "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
10342 "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
10343 "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
10344 "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
10345 "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
10346 "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
10347 "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
10348 "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
10349 "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
10350 "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
10351 "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
10352 "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
10353 "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
10354 "\x04\x39\x73\x32\xb2\x86\x79\xe7"
10355 "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
10356 "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
10357 "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
10358 "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
10359 "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
10360 "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
10361 "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
10362 "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
10363 "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
10364 "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
10365 "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
10366 "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
10367 "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
10368 "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
10369 "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
10370 "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
10371 "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
10372 .rlen = 512,
10373 }, {
10374 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
10375 "\x23\x53\x60\x28\x74\x71\x35\x26"
10376 "\x62\x49\x77\x57\x24\x70\x93\x69"
10377 "\x99\x59\x57\x49\x66\x96\x76\x27"
10378 "\x31\x41\x59\x26\x53\x58\x97\x93"
10379 "\x23\x84\x62\x64\x33\x83\x27\x95"
10380 "\x02\x88\x41\x97\x16\x93\x99\x37"
10381 "\x51\x05\x82\x09\x74\x94\x45\x92",
10382 .klen = 64,
10383 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
10384 "\x00\x00\x00\x00\x00\x00\x00\x00",
10385 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
10386 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10387 "\x10\x11\x12\x13\x14\x15\x16\x17"
10388 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10389 "\x20\x21\x22\x23\x24\x25\x26\x27"
10390 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10391 "\x30\x31\x32\x33\x34\x35\x36\x37"
10392 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10393 "\x40\x41\x42\x43\x44\x45\x46\x47"
10394 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10395 "\x50\x51\x52\x53\x54\x55\x56\x57"
10396 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10397 "\x60\x61\x62\x63\x64\x65\x66\x67"
10398 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10399 "\x70\x71\x72\x73\x74\x75\x76\x77"
10400 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10401 "\x80\x81\x82\x83\x84\x85\x86\x87"
10402 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10403 "\x90\x91\x92\x93\x94\x95\x96\x97"
10404 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10405 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10406 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10407 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10408 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10409 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10410 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10411 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10412 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10413 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10414 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10415 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10416 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10417 "\x00\x01\x02\x03\x04\x05\x06\x07"
10418 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10419 "\x10\x11\x12\x13\x14\x15\x16\x17"
10420 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10421 "\x20\x21\x22\x23\x24\x25\x26\x27"
10422 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10423 "\x30\x31\x32\x33\x34\x35\x36\x37"
10424 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10425 "\x40\x41\x42\x43\x44\x45\x46\x47"
10426 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10427 "\x50\x51\x52\x53\x54\x55\x56\x57"
10428 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10429 "\x60\x61\x62\x63\x64\x65\x66\x67"
10430 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10431 "\x70\x71\x72\x73\x74\x75\x76\x77"
10432 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10433 "\x80\x81\x82\x83\x84\x85\x86\x87"
10434 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10435 "\x90\x91\x92\x93\x94\x95\x96\x97"
10436 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10437 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10438 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10439 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10440 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10441 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10442 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10443 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10444 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10445 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10446 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10447 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10448 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10449 .ilen = 512,
10450 .result = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
10451 "\x35\x39\x71\x88\x76\x1e\xc9\xea"
10452 "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
10453 "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
10454 "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
10455 "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
10456 "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
10457 "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
10458 "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
10459 "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
10460 "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
10461 "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
10462 "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
10463 "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
10464 "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
10465 "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
10466 "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
10467 "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
10468 "\x69\x35\x61\x86\xf8\x86\xb9\x89"
10469 "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
10470 "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
10471 "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
10472 "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
10473 "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
10474 "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
10475 "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
10476 "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
10477 "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
10478 "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
10479 "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
10480 "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
10481 "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
10482 "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
10483 "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
10484 "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
10485 "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
10486 "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
10487 "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
10488 "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
10489 "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
10490 "\xad\x12\x32\x31\x03\xf7\x21\xbe"
10491 "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
10492 "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
10493 "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
10494 "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
10495 "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
10496 "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
10497 "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
10498 "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
10499 "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
10500 "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
10501 "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
10502 "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
10503 "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
10504 "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
10505 "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
10506 "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
10507 "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
10508 "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
10509 "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
10510 "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
10511 "\xf3\xea\x67\x52\x78\xc2\xce\x70"
10512 "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
10513 "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
10514 .rlen = 512,
10515 .also_non_np = 1,
10516 .np = 3,
10517 .tap = { 512 - 20, 4, 16 },
10521 static struct cipher_testvec tf_xts_dec_tv_template[] = {
10522 /* Generated from AES-XTS test vectors */
10523 /* same as enc vectors with input and result reversed */
10525 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
10526 "\x00\x00\x00\x00\x00\x00\x00\x00"
10527 "\x00\x00\x00\x00\x00\x00\x00\x00"
10528 "\x00\x00\x00\x00\x00\x00\x00\x00",
10529 .klen = 32,
10530 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10531 "\x00\x00\x00\x00\x00\x00\x00\x00",
10532 .input = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
10533 "\x30\x74\xe4\x44\x52\x77\x97\x43"
10534 "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
10535 "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
10536 .ilen = 32,
10537 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
10538 "\x00\x00\x00\x00\x00\x00\x00\x00"
10539 "\x00\x00\x00\x00\x00\x00\x00\x00"
10540 "\x00\x00\x00\x00\x00\x00\x00\x00",
10541 .rlen = 32,
10542 }, {
10543 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
10544 "\x11\x11\x11\x11\x11\x11\x11\x11"
10545 "\x22\x22\x22\x22\x22\x22\x22\x22"
10546 "\x22\x22\x22\x22\x22\x22\x22\x22",
10547 .klen = 32,
10548 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
10549 "\x00\x00\x00\x00\x00\x00\x00\x00",
10550 .input = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
10551 "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
10552 "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
10553 "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
10554 .ilen = 32,
10555 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
10556 "\x44\x44\x44\x44\x44\x44\x44\x44"
10557 "\x44\x44\x44\x44\x44\x44\x44\x44"
10558 "\x44\x44\x44\x44\x44\x44\x44\x44",
10559 .rlen = 32,
10560 }, {
10561 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
10562 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
10563 "\x22\x22\x22\x22\x22\x22\x22\x22"
10564 "\x22\x22\x22\x22\x22\x22\x22\x22",
10565 .klen = 32,
10566 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
10567 "\x00\x00\x00\x00\x00\x00\x00\x00",
10568 .input = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
10569 "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
10570 "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
10571 "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
10572 .ilen = 32,
10573 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
10574 "\x44\x44\x44\x44\x44\x44\x44\x44"
10575 "\x44\x44\x44\x44\x44\x44\x44\x44"
10576 "\x44\x44\x44\x44\x44\x44\x44\x44",
10577 .rlen = 32,
10578 }, {
10579 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
10580 "\x23\x53\x60\x28\x74\x71\x35\x26"
10581 "\x31\x41\x59\x26\x53\x58\x97\x93"
10582 "\x23\x84\x62\x64\x33\x83\x27\x95",
10583 .klen = 32,
10584 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10585 "\x00\x00\x00\x00\x00\x00\x00\x00",
10586 .input = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
10587 "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
10588 "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
10589 "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
10590 "\xea\x35\x35\x8c\xb2\x46\x61\x06"
10591 "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
10592 "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
10593 "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
10594 "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
10595 "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
10596 "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
10597 "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
10598 "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
10599 "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
10600 "\x01\x73\x68\x32\x25\x19\xfa\xfb"
10601 "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
10602 "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
10603 "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
10604 "\x39\x80\x39\x09\x97\x65\xf2\x83"
10605 "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
10606 "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
10607 "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
10608 "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
10609 "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
10610 "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
10611 "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
10612 "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
10613 "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
10614 "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
10615 "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
10616 "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
10617 "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
10618 "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
10619 "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
10620 "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
10621 "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
10622 "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
10623 "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
10624 "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
10625 "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
10626 "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
10627 "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
10628 "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
10629 "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
10630 "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
10631 "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
10632 "\x04\x39\x73\x32\xb2\x86\x79\xe7"
10633 "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
10634 "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
10635 "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
10636 "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
10637 "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
10638 "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
10639 "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
10640 "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
10641 "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
10642 "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
10643 "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
10644 "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
10645 "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
10646 "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
10647 "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
10648 "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
10649 "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
10650 .ilen = 512,
10651 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
10652 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10653 "\x10\x11\x12\x13\x14\x15\x16\x17"
10654 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10655 "\x20\x21\x22\x23\x24\x25\x26\x27"
10656 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10657 "\x30\x31\x32\x33\x34\x35\x36\x37"
10658 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10659 "\x40\x41\x42\x43\x44\x45\x46\x47"
10660 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10661 "\x50\x51\x52\x53\x54\x55\x56\x57"
10662 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10663 "\x60\x61\x62\x63\x64\x65\x66\x67"
10664 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10665 "\x70\x71\x72\x73\x74\x75\x76\x77"
10666 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10667 "\x80\x81\x82\x83\x84\x85\x86\x87"
10668 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10669 "\x90\x91\x92\x93\x94\x95\x96\x97"
10670 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10671 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10672 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10673 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10674 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10675 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10676 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10677 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10678 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10679 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10680 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10681 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10682 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10683 "\x00\x01\x02\x03\x04\x05\x06\x07"
10684 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10685 "\x10\x11\x12\x13\x14\x15\x16\x17"
10686 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10687 "\x20\x21\x22\x23\x24\x25\x26\x27"
10688 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10689 "\x30\x31\x32\x33\x34\x35\x36\x37"
10690 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10691 "\x40\x41\x42\x43\x44\x45\x46\x47"
10692 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10693 "\x50\x51\x52\x53\x54\x55\x56\x57"
10694 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10695 "\x60\x61\x62\x63\x64\x65\x66\x67"
10696 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10697 "\x70\x71\x72\x73\x74\x75\x76\x77"
10698 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10699 "\x80\x81\x82\x83\x84\x85\x86\x87"
10700 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10701 "\x90\x91\x92\x93\x94\x95\x96\x97"
10702 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10703 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10704 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10705 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10706 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10707 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10708 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10709 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10710 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10711 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10712 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10713 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10714 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10715 .rlen = 512,
10716 }, {
10717 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
10718 "\x23\x53\x60\x28\x74\x71\x35\x26"
10719 "\x62\x49\x77\x57\x24\x70\x93\x69"
10720 "\x99\x59\x57\x49\x66\x96\x76\x27"
10721 "\x31\x41\x59\x26\x53\x58\x97\x93"
10722 "\x23\x84\x62\x64\x33\x83\x27\x95"
10723 "\x02\x88\x41\x97\x16\x93\x99\x37"
10724 "\x51\x05\x82\x09\x74\x94\x45\x92",
10725 .klen = 64,
10726 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
10727 "\x00\x00\x00\x00\x00\x00\x00\x00",
10728 .input = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
10729 "\x35\x39\x71\x88\x76\x1e\xc9\xea"
10730 "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
10731 "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
10732 "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
10733 "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
10734 "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
10735 "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
10736 "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
10737 "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
10738 "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
10739 "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
10740 "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
10741 "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
10742 "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
10743 "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
10744 "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
10745 "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
10746 "\x69\x35\x61\x86\xf8\x86\xb9\x89"
10747 "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
10748 "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
10749 "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
10750 "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
10751 "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
10752 "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
10753 "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
10754 "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
10755 "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
10756 "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
10757 "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
10758 "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
10759 "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
10760 "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
10761 "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
10762 "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
10763 "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
10764 "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
10765 "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
10766 "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
10767 "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
10768 "\xad\x12\x32\x31\x03\xf7\x21\xbe"
10769 "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
10770 "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
10771 "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
10772 "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
10773 "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
10774 "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
10775 "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
10776 "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
10777 "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
10778 "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
10779 "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
10780 "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
10781 "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
10782 "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
10783 "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
10784 "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
10785 "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
10786 "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
10787 "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
10788 "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
10789 "\xf3\xea\x67\x52\x78\xc2\xce\x70"
10790 "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
10791 "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
10792 .ilen = 512,
10793 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
10794 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10795 "\x10\x11\x12\x13\x14\x15\x16\x17"
10796 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10797 "\x20\x21\x22\x23\x24\x25\x26\x27"
10798 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10799 "\x30\x31\x32\x33\x34\x35\x36\x37"
10800 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10801 "\x40\x41\x42\x43\x44\x45\x46\x47"
10802 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10803 "\x50\x51\x52\x53\x54\x55\x56\x57"
10804 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10805 "\x60\x61\x62\x63\x64\x65\x66\x67"
10806 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10807 "\x70\x71\x72\x73\x74\x75\x76\x77"
10808 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10809 "\x80\x81\x82\x83\x84\x85\x86\x87"
10810 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10811 "\x90\x91\x92\x93\x94\x95\x96\x97"
10812 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10813 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10814 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10815 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10816 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10817 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10818 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10819 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10820 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10821 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10822 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10823 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10824 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10825 "\x00\x01\x02\x03\x04\x05\x06\x07"
10826 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10827 "\x10\x11\x12\x13\x14\x15\x16\x17"
10828 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10829 "\x20\x21\x22\x23\x24\x25\x26\x27"
10830 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10831 "\x30\x31\x32\x33\x34\x35\x36\x37"
10832 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10833 "\x40\x41\x42\x43\x44\x45\x46\x47"
10834 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10835 "\x50\x51\x52\x53\x54\x55\x56\x57"
10836 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10837 "\x60\x61\x62\x63\x64\x65\x66\x67"
10838 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10839 "\x70\x71\x72\x73\x74\x75\x76\x77"
10840 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10841 "\x80\x81\x82\x83\x84\x85\x86\x87"
10842 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10843 "\x90\x91\x92\x93\x94\x95\x96\x97"
10844 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10845 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10846 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10847 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10848 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10849 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10850 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10851 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10852 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10853 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10854 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10855 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10856 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10857 .rlen = 512,
10858 .also_non_np = 1,
10859 .np = 3,
10860 .tap = { 512 - 20, 4, 16 },
10865 * Serpent test vectors. These are backwards because Serpent writes
10866 * octet sequences in right-to-left mode.
10868 #define SERPENT_ENC_TEST_VECTORS 5
10869 #define SERPENT_DEC_TEST_VECTORS 5
10871 #define TNEPRES_ENC_TEST_VECTORS 4
10872 #define TNEPRES_DEC_TEST_VECTORS 4
10874 #define SERPENT_CBC_ENC_TEST_VECTORS 1
10875 #define SERPENT_CBC_DEC_TEST_VECTORS 1
10877 #define SERPENT_CTR_ENC_TEST_VECTORS 2
10878 #define SERPENT_CTR_DEC_TEST_VECTORS 2
10880 #define SERPENT_LRW_ENC_TEST_VECTORS 8
10881 #define SERPENT_LRW_DEC_TEST_VECTORS 8
10883 #define SERPENT_XTS_ENC_TEST_VECTORS 5
10884 #define SERPENT_XTS_DEC_TEST_VECTORS 5
10886 static struct cipher_testvec serpent_enc_tv_template[] = {
10888 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
10889 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
10890 .ilen = 16,
10891 .result = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
10892 "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
10893 .rlen = 16,
10894 }, {
10895 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
10896 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
10897 .klen = 16,
10898 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
10899 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
10900 .ilen = 16,
10901 .result = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
10902 "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
10903 .rlen = 16,
10904 }, {
10905 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
10906 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10907 "\x10\x11\x12\x13\x14\x15\x16\x17"
10908 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
10909 .klen = 32,
10910 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
10911 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
10912 .ilen = 16,
10913 .result = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
10914 "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
10915 .rlen = 16,
10916 }, {
10917 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
10918 .klen = 16,
10919 .input = zeroed_string,
10920 .ilen = 16,
10921 .result = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
10922 "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
10923 .rlen = 16,
10924 }, { /* Generated with Crypto++ */
10925 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10926 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10927 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10928 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10929 .klen = 32,
10930 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10931 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10932 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10933 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10934 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10935 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10936 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10937 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10938 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10939 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10940 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10941 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10942 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10943 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10944 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10945 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10946 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10947 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10948 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10949 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10950 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10951 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10952 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10953 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10954 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10955 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10956 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10957 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10958 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10959 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10960 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10961 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10962 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10963 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10964 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10965 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10966 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10967 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10968 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10969 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10970 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10971 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10972 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10973 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10974 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10975 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10976 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10977 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10978 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10979 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10980 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10981 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10982 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10983 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10984 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10985 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10986 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10987 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10988 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10989 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10990 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10991 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
10992 .ilen = 496,
10993 .result = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
10994 "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
10995 "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
10996 "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
10997 "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
10998 "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
10999 "\x99\x34\x89\x5B\x54\xE9\x12\x13"
11000 "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
11001 "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
11002 "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
11003 "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
11004 "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
11005 "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
11006 "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
11007 "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
11008 "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
11009 "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
11010 "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
11011 "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
11012 "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
11013 "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
11014 "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
11015 "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
11016 "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
11017 "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
11018 "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
11019 "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
11020 "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
11021 "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
11022 "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
11023 "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
11024 "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
11025 "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
11026 "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
11027 "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
11028 "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
11029 "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
11030 "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
11031 "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
11032 "\x87\x70\x14\xD0\x01\x57\xCB\x42"
11033 "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
11034 "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
11035 "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
11036 "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
11037 "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
11038 "\x71\x80\x05\x35\x3F\x40\x0B\x21"
11039 "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
11040 "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
11041 "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
11042 "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
11043 "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
11044 "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
11045 "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
11046 "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
11047 "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
11048 "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
11049 "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
11050 "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
11051 "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
11052 "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
11053 "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
11054 "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
11055 .rlen = 496,
11056 .also_non_np = 1,
11057 .np = 3,
11058 .tap = { 496 - 20, 4, 16 },
11062 static struct cipher_testvec tnepres_enc_tv_template[] = {
11063 { /* KeySize=128, PT=0, I=1 */
11064 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
11065 "\x00\x00\x00\x00\x00\x00\x00\x00",
11066 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
11067 "\x00\x00\x00\x00\x00\x00\x00\x00",
11068 .klen = 16,
11069 .ilen = 16,
11070 .result = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
11071 "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
11072 .rlen = 16,
11073 }, { /* KeySize=192, PT=0, I=1 */
11074 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
11075 "\x00\x00\x00\x00\x00\x00\x00\x00"
11076 "\x00\x00\x00\x00\x00\x00\x00\x00",
11077 .klen = 24,
11078 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
11079 "\x00\x00\x00\x00\x00\x00\x00\x00",
11080 .ilen = 16,
11081 .result = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
11082 "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
11083 .rlen = 16,
11084 }, { /* KeySize=256, PT=0, I=1 */
11085 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
11086 "\x00\x00\x00\x00\x00\x00\x00\x00"
11087 "\x00\x00\x00\x00\x00\x00\x00\x00"
11088 "\x00\x00\x00\x00\x00\x00\x00\x00",
11089 .klen = 32,
11090 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
11091 "\x00\x00\x00\x00\x00\x00\x00\x00",
11092 .ilen = 16,
11093 .result = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
11094 "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
11095 .rlen = 16,
11096 }, { /* KeySize=256, I=257 */
11097 .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
11098 "\x17\x16\x15\x14\x13\x12\x11\x10"
11099 "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
11100 "\x07\x06\x05\x04\x03\x02\x01\x00",
11101 .klen = 32,
11102 .input = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
11103 "\x07\x06\x05\x04\x03\x02\x01\x00",
11104 .ilen = 16,
11105 .result = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
11106 "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
11107 .rlen = 16,
11112 static struct cipher_testvec serpent_dec_tv_template[] = {
11114 .input = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
11115 "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
11116 .ilen = 16,
11117 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11118 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11119 .rlen = 16,
11120 }, {
11121 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
11122 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11123 .klen = 16,
11124 .input = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
11125 "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
11126 .ilen = 16,
11127 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11128 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11129 .rlen = 16,
11130 }, {
11131 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
11132 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11133 "\x10\x11\x12\x13\x14\x15\x16\x17"
11134 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
11135 .klen = 32,
11136 .input = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
11137 "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
11138 .ilen = 16,
11139 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11140 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11141 .rlen = 16,
11142 }, {
11143 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
11144 .klen = 16,
11145 .input = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
11146 "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
11147 .ilen = 16,
11148 .result = zeroed_string,
11149 .rlen = 16,
11150 }, { /* Generated with Crypto++ */
11151 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11152 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11153 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11154 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11155 .klen = 32,
11156 .input = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
11157 "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
11158 "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
11159 "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
11160 "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
11161 "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
11162 "\x99\x34\x89\x5B\x54\xE9\x12\x13"
11163 "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
11164 "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
11165 "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
11166 "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
11167 "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
11168 "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
11169 "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
11170 "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
11171 "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
11172 "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
11173 "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
11174 "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
11175 "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
11176 "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
11177 "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
11178 "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
11179 "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
11180 "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
11181 "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
11182 "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
11183 "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
11184 "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
11185 "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
11186 "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
11187 "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
11188 "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
11189 "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
11190 "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
11191 "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
11192 "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
11193 "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
11194 "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
11195 "\x87\x70\x14\xD0\x01\x57\xCB\x42"
11196 "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
11197 "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
11198 "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
11199 "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
11200 "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
11201 "\x71\x80\x05\x35\x3F\x40\x0B\x21"
11202 "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
11203 "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
11204 "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
11205 "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
11206 "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
11207 "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
11208 "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
11209 "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
11210 "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
11211 "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
11212 "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
11213 "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
11214 "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
11215 "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
11216 "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
11217 "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
11218 .ilen = 496,
11219 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11220 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11221 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11222 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11223 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11224 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11225 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11226 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11227 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11228 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11229 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11230 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11231 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11232 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11233 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11234 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11235 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11236 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11237 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11238 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11239 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11240 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11241 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11242 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11243 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11244 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11245 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11246 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11247 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11248 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11249 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11250 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11251 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11252 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11253 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11254 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11255 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11256 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11257 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11258 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11259 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11260 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11261 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11262 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11263 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11264 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11265 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11266 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11267 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11268 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11269 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11270 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11271 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11272 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11273 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11274 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11275 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11276 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11277 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11278 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11279 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11280 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11281 .rlen = 496,
11282 .also_non_np = 1,
11283 .np = 3,
11284 .tap = { 496 - 20, 4, 16 },
11288 static struct cipher_testvec tnepres_dec_tv_template[] = {
11290 .input = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
11291 "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
11292 .ilen = 16,
11293 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11294 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11295 .rlen = 16,
11296 }, {
11297 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
11298 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11299 .klen = 16,
11300 .input = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
11301 "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
11302 .ilen = 16,
11303 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11304 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11305 .rlen = 16,
11306 }, {
11307 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
11308 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11309 "\x10\x11\x12\x13\x14\x15\x16\x17"
11310 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
11311 .klen = 32,
11312 .input = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
11313 "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
11314 .ilen = 16,
11315 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11316 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11317 .rlen = 16,
11318 }, { /* KeySize=128, I=121 */
11319 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
11320 .klen = 16,
11321 .input = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
11322 "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
11323 .ilen = 16,
11324 .result = zeroed_string,
11325 .rlen = 16,
11329 static struct cipher_testvec serpent_cbc_enc_tv_template[] = {
11330 { /* Generated with Crypto++ */
11331 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11332 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11333 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11334 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11335 .klen = 32,
11336 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11337 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11338 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11339 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11340 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11341 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11342 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11343 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11344 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11345 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11346 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11347 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11348 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11349 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11350 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11351 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11352 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11353 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11354 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11355 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11356 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11357 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11358 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11359 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11360 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11361 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11362 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11363 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11364 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11365 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11366 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11367 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11368 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11369 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11370 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11371 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11372 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11373 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11374 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11375 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11376 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11377 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11378 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11379 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11380 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11381 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11382 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11383 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11384 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11385 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11386 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11387 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11388 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11389 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11390 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11391 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11392 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11393 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11394 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11395 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11396 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11397 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11398 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11399 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11400 .ilen = 496,
11401 .result = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
11402 "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
11403 "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
11404 "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
11405 "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
11406 "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
11407 "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
11408 "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
11409 "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
11410 "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
11411 "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
11412 "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
11413 "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
11414 "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
11415 "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
11416 "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
11417 "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
11418 "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
11419 "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
11420 "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
11421 "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
11422 "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
11423 "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
11424 "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
11425 "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
11426 "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
11427 "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
11428 "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
11429 "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
11430 "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
11431 "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
11432 "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
11433 "\x81\x92\x66\x67\x15\x1E\x39\x98"
11434 "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
11435 "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
11436 "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
11437 "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
11438 "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
11439 "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
11440 "\x04\x05\x46\xD3\x90\x0F\x64\x64"
11441 "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
11442 "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
11443 "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
11444 "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
11445 "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
11446 "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
11447 "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
11448 "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
11449 "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
11450 "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
11451 "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
11452 "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
11453 "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
11454 "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
11455 "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
11456 "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
11457 "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
11458 "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
11459 "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
11460 "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
11461 "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
11462 "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
11463 .rlen = 496,
11464 .also_non_np = 1,
11465 .np = 3,
11466 .tap = { 496 - 20, 4, 16 },
11470 static struct cipher_testvec serpent_cbc_dec_tv_template[] = {
11471 { /* Generated with Crypto++ */
11472 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11473 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11474 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11475 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11476 .klen = 32,
11477 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11478 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11479 .input = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
11480 "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
11481 "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
11482 "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
11483 "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
11484 "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
11485 "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
11486 "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
11487 "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
11488 "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
11489 "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
11490 "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
11491 "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
11492 "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
11493 "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
11494 "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
11495 "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
11496 "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
11497 "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
11498 "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
11499 "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
11500 "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
11501 "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
11502 "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
11503 "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
11504 "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
11505 "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
11506 "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
11507 "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
11508 "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
11509 "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
11510 "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
11511 "\x81\x92\x66\x67\x15\x1E\x39\x98"
11512 "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
11513 "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
11514 "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
11515 "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
11516 "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
11517 "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
11518 "\x04\x05\x46\xD3\x90\x0F\x64\x64"
11519 "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
11520 "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
11521 "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
11522 "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
11523 "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
11524 "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
11525 "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
11526 "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
11527 "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
11528 "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
11529 "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
11530 "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
11531 "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
11532 "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
11533 "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
11534 "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
11535 "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
11536 "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
11537 "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
11538 "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
11539 "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
11540 "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
11541 .ilen = 496,
11542 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11543 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11544 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11545 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11546 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11547 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11548 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11549 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11550 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11551 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11552 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11553 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11554 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11555 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11556 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11557 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11558 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11559 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11560 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11561 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11562 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11563 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11564 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11565 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11566 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11567 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11568 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11569 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11570 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11571 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11572 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11573 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11574 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11575 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11576 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11577 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11578 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11579 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11580 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11581 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11582 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11583 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11584 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11585 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11586 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11587 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11588 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11589 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11590 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11591 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11592 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11593 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11594 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11595 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11596 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11597 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11598 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11599 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11600 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11601 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11602 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11603 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11604 .rlen = 496,
11605 .also_non_np = 1,
11606 .np = 3,
11607 .tap = { 496 - 20, 4, 16 },
11611 static struct cipher_testvec serpent_ctr_enc_tv_template[] = {
11612 { /* Generated with Crypto++ */
11613 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11614 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11615 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11616 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11617 .klen = 32,
11618 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11619 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11620 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11621 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11622 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11623 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11624 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11625 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11626 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11627 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11628 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11629 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11630 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11631 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11632 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11633 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11634 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11635 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11636 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11637 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11638 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11639 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11640 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11641 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11642 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11643 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11644 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11645 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11646 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11647 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11648 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11649 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11650 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11651 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11652 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11653 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11654 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11655 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11656 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11657 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11658 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11659 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11660 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11661 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11662 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11663 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11664 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11665 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11666 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11667 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11668 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11669 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11670 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11671 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11672 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11673 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11674 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11675 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11676 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11677 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11678 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11679 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11680 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11681 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11682 .ilen = 496,
11683 .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
11684 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
11685 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
11686 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
11687 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
11688 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
11689 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
11690 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
11691 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
11692 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
11693 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
11694 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
11695 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
11696 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
11697 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
11698 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
11699 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
11700 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
11701 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
11702 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
11703 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
11704 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
11705 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
11706 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
11707 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
11708 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
11709 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
11710 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
11711 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
11712 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
11713 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
11714 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
11715 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
11716 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
11717 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
11718 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
11719 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
11720 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
11721 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
11722 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
11723 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
11724 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
11725 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
11726 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
11727 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
11728 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
11729 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
11730 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
11731 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
11732 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
11733 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
11734 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
11735 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
11736 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
11737 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
11738 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
11739 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
11740 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
11741 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
11742 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
11743 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
11744 "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
11745 .rlen = 496,
11746 }, { /* Generated with Crypto++ */
11747 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11748 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11749 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11750 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11751 .klen = 32,
11752 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11753 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11754 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11755 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11756 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11757 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11758 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11759 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11760 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11761 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11762 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11763 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11764 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11765 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11766 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11767 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11768 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11769 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11770 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11771 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11772 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11773 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11774 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11775 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11776 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11777 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11778 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11779 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11780 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11781 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11782 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11783 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11784 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11785 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11786 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11787 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11788 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11789 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11790 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11791 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11792 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11793 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11794 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11795 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11796 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11797 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11798 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11799 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11800 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11801 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11802 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11803 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11804 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11805 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11806 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11807 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11808 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11809 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11810 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11811 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11812 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11813 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11814 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11815 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
11816 "\x2B\xC2\x59",
11817 .ilen = 499,
11818 .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
11819 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
11820 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
11821 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
11822 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
11823 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
11824 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
11825 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
11826 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
11827 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
11828 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
11829 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
11830 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
11831 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
11832 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
11833 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
11834 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
11835 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
11836 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
11837 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
11838 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
11839 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
11840 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
11841 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
11842 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
11843 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
11844 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
11845 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
11846 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
11847 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
11848 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
11849 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
11850 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
11851 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
11852 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
11853 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
11854 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
11855 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
11856 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
11857 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
11858 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
11859 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
11860 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
11861 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
11862 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
11863 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
11864 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
11865 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
11866 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
11867 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
11868 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
11869 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
11870 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
11871 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
11872 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
11873 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
11874 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
11875 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
11876 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
11877 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
11878 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
11879 "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
11880 "\x38\xE2\xE5",
11881 .rlen = 499,
11882 .also_non_np = 1,
11883 .np = 2,
11884 .tap = { 499 - 16, 16 },
11885 }, { /* Generated with Crypto++ */
11886 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11887 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11888 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11889 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11890 .klen = 32,
11891 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
11892 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
11893 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11894 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11895 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11896 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11897 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11898 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11899 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11900 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11901 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11902 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11903 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11904 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11905 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11906 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11907 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11908 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11909 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11910 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11911 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11912 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11913 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11914 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11915 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11916 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11917 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11918 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11919 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11920 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11921 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11922 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11923 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11924 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11925 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11926 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11927 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11928 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11929 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11930 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11931 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11932 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11933 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11934 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11935 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11936 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11937 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11938 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11939 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11940 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11941 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11942 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11943 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11944 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11945 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11946 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11947 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11948 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11949 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11950 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11951 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11952 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11953 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11954 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11955 .ilen = 496,
11956 .result = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
11957 "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
11958 "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
11959 "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
11960 "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
11961 "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
11962 "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
11963 "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
11964 "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
11965 "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
11966 "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
11967 "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
11968 "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
11969 "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
11970 "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
11971 "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
11972 "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
11973 "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
11974 "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
11975 "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
11976 "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
11977 "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
11978 "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
11979 "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
11980 "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
11981 "\x29\x5E\x01\x47\x13\x32\x78\xBE"
11982 "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
11983 "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
11984 "\x38\x35\x11\x26\x4A\xB4\x06\x32"
11985 "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
11986 "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
11987 "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
11988 "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
11989 "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
11990 "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
11991 "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
11992 "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
11993 "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
11994 "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
11995 "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
11996 "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
11997 "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
11998 "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
11999 "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
12000 "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
12001 "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
12002 "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
12003 "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
12004 "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
12005 "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
12006 "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
12007 "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
12008 "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
12009 "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
12010 "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
12011 "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
12012 "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
12013 "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
12014 "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
12015 "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
12016 "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
12017 "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
12018 .rlen = 496,
12022 static struct cipher_testvec serpent_ctr_dec_tv_template[] = {
12023 { /* Generated with Crypto++ */
12024 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12025 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12026 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12027 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12028 .klen = 32,
12029 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12030 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12031 .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
12032 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
12033 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
12034 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
12035 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
12036 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
12037 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
12038 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
12039 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
12040 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
12041 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
12042 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
12043 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
12044 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
12045 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
12046 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
12047 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
12048 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
12049 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
12050 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
12051 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
12052 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
12053 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
12054 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
12055 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
12056 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
12057 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
12058 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
12059 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
12060 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
12061 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
12062 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
12063 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
12064 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
12065 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
12066 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
12067 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
12068 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
12069 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
12070 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
12071 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
12072 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
12073 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
12074 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
12075 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
12076 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
12077 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
12078 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
12079 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
12080 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
12081 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
12082 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
12083 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
12084 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
12085 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
12086 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
12087 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
12088 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
12089 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
12090 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
12091 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
12092 "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
12093 .ilen = 496,
12094 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12095 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12096 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12097 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12098 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12099 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12100 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12101 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12102 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12103 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12104 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12105 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12106 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12107 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12108 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12109 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12110 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12111 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12112 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12113 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12114 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12115 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12116 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12117 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12118 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12119 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12120 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12121 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12122 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12123 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12124 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12125 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12126 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12127 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12128 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12129 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12130 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12131 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12132 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12133 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12134 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12135 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12136 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12137 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12138 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12139 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12140 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12141 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12142 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12143 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12144 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12145 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12146 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12147 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12148 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12149 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12150 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12151 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12152 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12153 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12154 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12155 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12156 .rlen = 496,
12157 }, { /* Generated with Crypto++ */
12158 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12159 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12160 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12161 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12162 .klen = 32,
12163 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12164 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12165 .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
12166 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
12167 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
12168 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
12169 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
12170 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
12171 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
12172 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
12173 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
12174 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
12175 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
12176 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
12177 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
12178 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
12179 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
12180 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
12181 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
12182 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
12183 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
12184 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
12185 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
12186 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
12187 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
12188 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
12189 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
12190 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
12191 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
12192 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
12193 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
12194 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
12195 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
12196 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
12197 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
12198 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
12199 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
12200 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
12201 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
12202 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
12203 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
12204 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
12205 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
12206 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
12207 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
12208 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
12209 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
12210 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
12211 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
12212 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
12213 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
12214 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
12215 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
12216 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
12217 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
12218 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
12219 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
12220 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
12221 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
12222 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
12223 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
12224 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
12225 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
12226 "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
12227 "\x38\xE2\xE5",
12228 .ilen = 499,
12229 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12230 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12231 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12232 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12233 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12234 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12235 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12236 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12237 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12238 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12239 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12240 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12241 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12242 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12243 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12244 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12245 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12246 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12247 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12248 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12249 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12250 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12251 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12252 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12253 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12254 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12255 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12256 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12257 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12258 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12259 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12260 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12261 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12262 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12263 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12264 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12265 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12266 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12267 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12268 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12269 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12270 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12271 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12272 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12273 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12274 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12275 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12276 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12277 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12278 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12279 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12280 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12281 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12282 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12283 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12284 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12285 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12286 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12287 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12288 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12289 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12290 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
12291 "\x2B\xC2\x59",
12292 .rlen = 499,
12293 .also_non_np = 1,
12294 .np = 2,
12295 .tap = { 499 - 16, 16 },
12296 }, { /* Generated with Crypto++ */
12297 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12298 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12299 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12300 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12301 .klen = 32,
12302 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
12303 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
12304 .input = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
12305 "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
12306 "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
12307 "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
12308 "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
12309 "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
12310 "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
12311 "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
12312 "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
12313 "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
12314 "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
12315 "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
12316 "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
12317 "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
12318 "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
12319 "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
12320 "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
12321 "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
12322 "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
12323 "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
12324 "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
12325 "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
12326 "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
12327 "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
12328 "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
12329 "\x29\x5E\x01\x47\x13\x32\x78\xBE"
12330 "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
12331 "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
12332 "\x38\x35\x11\x26\x4A\xB4\x06\x32"
12333 "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
12334 "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
12335 "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
12336 "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
12337 "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
12338 "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
12339 "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
12340 "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
12341 "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
12342 "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
12343 "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
12344 "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
12345 "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
12346 "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
12347 "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
12348 "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
12349 "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
12350 "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
12351 "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
12352 "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
12353 "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
12354 "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
12355 "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
12356 "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
12357 "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
12358 "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
12359 "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
12360 "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
12361 "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
12362 "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
12363 "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
12364 "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
12365 "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
12366 .ilen = 496,
12367 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12368 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12369 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12370 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12371 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12372 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12373 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12374 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12375 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12376 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12377 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12378 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12379 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12380 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12381 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12382 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12383 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12384 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12385 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12386 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12387 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12388 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12389 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12390 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12391 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12392 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12393 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12394 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12395 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12396 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12397 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12398 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12399 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12400 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12401 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12402 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12403 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12404 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12405 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12406 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12407 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12408 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12409 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12410 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12411 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12412 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12413 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12414 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12415 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12416 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12417 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12418 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12419 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12420 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12421 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12422 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12423 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12424 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12425 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12426 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12427 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12428 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12429 .rlen = 496,
12433 static struct cipher_testvec serpent_lrw_enc_tv_template[] = {
12434 /* Generated from AES-LRW test vectors */
12436 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
12437 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
12438 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
12439 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
12440 .klen = 32,
12441 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12442 "\x00\x00\x00\x00\x00\x00\x00\x01",
12443 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12444 "\x38\x39\x41\x42\x43\x44\x45\x46",
12445 .ilen = 16,
12446 .result = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
12447 "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
12448 .rlen = 16,
12449 }, {
12450 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
12451 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
12452 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
12453 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
12454 .klen = 32,
12455 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12456 "\x00\x00\x00\x00\x00\x00\x00\x02",
12457 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12458 "\x38\x39\x41\x42\x43\x44\x45\x46",
12459 .ilen = 16,
12460 .result = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
12461 "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
12462 .rlen = 16,
12463 }, {
12464 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
12465 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
12466 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
12467 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
12468 .klen = 32,
12469 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12470 "\x00\x00\x00\x02\x00\x00\x00\x00",
12471 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12472 "\x38\x39\x41\x42\x43\x44\x45\x46",
12473 .ilen = 16,
12474 .result = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
12475 "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
12476 .rlen = 16,
12477 }, {
12478 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
12479 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
12480 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
12481 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
12482 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
12483 .klen = 40,
12484 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12485 "\x00\x00\x00\x00\x00\x00\x00\x01",
12486 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12487 "\x38\x39\x41\x42\x43\x44\x45\x46",
12488 .ilen = 16,
12489 .result = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
12490 "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
12491 .rlen = 16,
12492 }, {
12493 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
12494 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
12495 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
12496 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
12497 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
12498 .klen = 40,
12499 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12500 "\x00\x00\x00\x02\x00\x00\x00\x00",
12501 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12502 "\x38\x39\x41\x42\x43\x44\x45\x46",
12503 .ilen = 16,
12504 .result = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
12505 "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
12506 .rlen = 16,
12507 }, {
12508 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12509 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12510 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12511 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12512 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12513 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12514 .klen = 48,
12515 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12516 "\x00\x00\x00\x00\x00\x00\x00\x01",
12517 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12518 "\x38\x39\x41\x42\x43\x44\x45\x46",
12519 .ilen = 16,
12520 .result = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
12521 "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
12522 .rlen = 16,
12523 }, {
12524 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
12525 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
12526 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
12527 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
12528 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
12529 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
12530 .klen = 48,
12531 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12532 "\x00\x00\x00\x02\x00\x00\x00\x00",
12533 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12534 "\x38\x39\x41\x42\x43\x44\x45\x46",
12535 .ilen = 16,
12536 .result = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
12537 "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
12538 .rlen = 16,
12539 }, {
12540 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12541 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12542 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12543 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12544 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12545 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12546 .klen = 48,
12547 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12548 "\x00\x00\x00\x00\x00\x00\x00\x01",
12549 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
12550 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
12551 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
12552 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
12553 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
12554 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
12555 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
12556 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
12557 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
12558 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
12559 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
12560 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
12561 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
12562 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
12563 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
12564 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
12565 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
12566 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
12567 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
12568 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
12569 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
12570 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
12571 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
12572 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
12573 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
12574 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
12575 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
12576 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
12577 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
12578 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
12579 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
12580 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
12581 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
12582 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
12583 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
12584 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
12585 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
12586 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
12587 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
12588 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
12589 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
12590 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
12591 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
12592 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
12593 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
12594 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
12595 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
12596 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
12597 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
12598 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
12599 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
12600 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
12601 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
12602 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
12603 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
12604 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
12605 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
12606 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
12607 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
12608 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
12609 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
12610 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
12611 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
12612 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
12613 .ilen = 512,
12614 .result = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
12615 "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
12616 "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
12617 "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
12618 "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
12619 "\xce\xab\xda\x33\x30\x20\x12\xfa"
12620 "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
12621 "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
12622 "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
12623 "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
12624 "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
12625 "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
12626 "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
12627 "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
12628 "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
12629 "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
12630 "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
12631 "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
12632 "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
12633 "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
12634 "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
12635 "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
12636 "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
12637 "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
12638 "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
12639 "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
12640 "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
12641 "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
12642 "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
12643 "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
12644 "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
12645 "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
12646 "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
12647 "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
12648 "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
12649 "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
12650 "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
12651 "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
12652 "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
12653 "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
12654 "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
12655 "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
12656 "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
12657 "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
12658 "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
12659 "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
12660 "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
12661 "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
12662 "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
12663 "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
12664 "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
12665 "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
12666 "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
12667 "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
12668 "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
12669 "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
12670 "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
12671 "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
12672 "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
12673 "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
12674 "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
12675 "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
12676 "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
12677 "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
12678 .rlen = 512,
12679 .also_non_np = 1,
12680 .np = 3,
12681 .tap = { 512 - 20, 4, 16 },
12685 static struct cipher_testvec serpent_lrw_dec_tv_template[] = {
12686 /* Generated from AES-LRW test vectors */
12687 /* same as enc vectors with input and result reversed */
12689 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
12690 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
12691 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
12692 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
12693 .klen = 32,
12694 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12695 "\x00\x00\x00\x00\x00\x00\x00\x01",
12696 .input = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
12697 "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
12698 .ilen = 16,
12699 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12700 "\x38\x39\x41\x42\x43\x44\x45\x46",
12701 .rlen = 16,
12702 }, {
12703 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
12704 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
12705 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
12706 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
12707 .klen = 32,
12708 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12709 "\x00\x00\x00\x00\x00\x00\x00\x02",
12710 .input = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
12711 "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
12712 .ilen = 16,
12713 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12714 "\x38\x39\x41\x42\x43\x44\x45\x46",
12715 .rlen = 16,
12716 }, {
12717 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
12718 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
12719 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
12720 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
12721 .klen = 32,
12722 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12723 "\x00\x00\x00\x02\x00\x00\x00\x00",
12724 .input = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
12725 "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
12726 .ilen = 16,
12727 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12728 "\x38\x39\x41\x42\x43\x44\x45\x46",
12729 .rlen = 16,
12730 }, {
12731 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
12732 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
12733 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
12734 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
12735 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
12736 .klen = 40,
12737 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12738 "\x00\x00\x00\x00\x00\x00\x00\x01",
12739 .input = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
12740 "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
12741 .ilen = 16,
12742 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12743 "\x38\x39\x41\x42\x43\x44\x45\x46",
12744 .rlen = 16,
12745 }, {
12746 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
12747 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
12748 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
12749 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
12750 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
12751 .klen = 40,
12752 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12753 "\x00\x00\x00\x02\x00\x00\x00\x00",
12754 .input = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
12755 "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
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 = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12762 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12763 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12764 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12765 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12766 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12767 .klen = 48,
12768 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12769 "\x00\x00\x00\x00\x00\x00\x00\x01",
12770 .input = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
12771 "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
12772 .ilen = 16,
12773 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12774 "\x38\x39\x41\x42\x43\x44\x45\x46",
12775 .rlen = 16,
12776 }, {
12777 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
12778 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
12779 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
12780 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
12781 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
12782 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
12783 .klen = 48,
12784 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12785 "\x00\x00\x00\x02\x00\x00\x00\x00",
12786 .input = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
12787 "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
12788 .ilen = 16,
12789 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12790 "\x38\x39\x41\x42\x43\x44\x45\x46",
12791 .rlen = 16,
12792 }, {
12793 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12794 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12795 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12796 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12797 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12798 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12799 .klen = 48,
12800 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12801 "\x00\x00\x00\x00\x00\x00\x00\x01",
12802 .input = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
12803 "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
12804 "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
12805 "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
12806 "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
12807 "\xce\xab\xda\x33\x30\x20\x12\xfa"
12808 "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
12809 "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
12810 "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
12811 "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
12812 "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
12813 "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
12814 "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
12815 "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
12816 "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
12817 "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
12818 "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
12819 "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
12820 "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
12821 "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
12822 "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
12823 "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
12824 "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
12825 "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
12826 "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
12827 "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
12828 "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
12829 "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
12830 "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
12831 "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
12832 "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
12833 "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
12834 "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
12835 "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
12836 "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
12837 "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
12838 "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
12839 "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
12840 "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
12841 "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
12842 "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
12843 "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
12844 "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
12845 "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
12846 "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
12847 "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
12848 "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
12849 "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
12850 "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
12851 "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
12852 "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
12853 "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
12854 "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
12855 "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
12856 "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
12857 "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
12858 "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
12859 "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
12860 "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
12861 "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
12862 "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
12863 "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
12864 "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
12865 "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
12866 .ilen = 512,
12867 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
12868 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
12869 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
12870 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
12871 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
12872 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
12873 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
12874 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
12875 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
12876 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
12877 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
12878 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
12879 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
12880 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
12881 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
12882 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
12883 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
12884 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
12885 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
12886 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
12887 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
12888 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
12889 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
12890 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
12891 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
12892 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
12893 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
12894 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
12895 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
12896 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
12897 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
12898 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
12899 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
12900 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
12901 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
12902 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
12903 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
12904 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
12905 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
12906 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
12907 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
12908 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
12909 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
12910 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
12911 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
12912 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
12913 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
12914 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
12915 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
12916 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
12917 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
12918 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
12919 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
12920 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
12921 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
12922 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
12923 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
12924 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
12925 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
12926 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
12927 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
12928 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
12929 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
12930 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
12931 .rlen = 512,
12932 .also_non_np = 1,
12933 .np = 3,
12934 .tap = { 512 - 20, 4, 16 },
12938 static struct cipher_testvec serpent_xts_enc_tv_template[] = {
12939 /* Generated from AES-XTS test vectors */
12941 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
12942 "\x00\x00\x00\x00\x00\x00\x00\x00"
12943 "\x00\x00\x00\x00\x00\x00\x00\x00"
12944 "\x00\x00\x00\x00\x00\x00\x00\x00",
12945 .klen = 32,
12946 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12947 "\x00\x00\x00\x00\x00\x00\x00\x00",
12948 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
12949 "\x00\x00\x00\x00\x00\x00\x00\x00"
12950 "\x00\x00\x00\x00\x00\x00\x00\x00"
12951 "\x00\x00\x00\x00\x00\x00\x00\x00",
12952 .ilen = 32,
12953 .result = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
12954 "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
12955 "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
12956 "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
12957 .rlen = 32,
12958 }, {
12959 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
12960 "\x11\x11\x11\x11\x11\x11\x11\x11"
12961 "\x22\x22\x22\x22\x22\x22\x22\x22"
12962 "\x22\x22\x22\x22\x22\x22\x22\x22",
12963 .klen = 32,
12964 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
12965 "\x00\x00\x00\x00\x00\x00\x00\x00",
12966 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
12967 "\x44\x44\x44\x44\x44\x44\x44\x44"
12968 "\x44\x44\x44\x44\x44\x44\x44\x44"
12969 "\x44\x44\x44\x44\x44\x44\x44\x44",
12970 .ilen = 32,
12971 .result = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
12972 "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
12973 "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
12974 "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
12975 .rlen = 32,
12976 }, {
12977 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
12978 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
12979 "\x22\x22\x22\x22\x22\x22\x22\x22"
12980 "\x22\x22\x22\x22\x22\x22\x22\x22",
12981 .klen = 32,
12982 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
12983 "\x00\x00\x00\x00\x00\x00\x00\x00",
12984 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
12985 "\x44\x44\x44\x44\x44\x44\x44\x44"
12986 "\x44\x44\x44\x44\x44\x44\x44\x44"
12987 "\x44\x44\x44\x44\x44\x44\x44\x44",
12988 .ilen = 32,
12989 .result = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
12990 "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
12991 "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
12992 "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
12993 .rlen = 32,
12994 }, {
12995 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
12996 "\x23\x53\x60\x28\x74\x71\x35\x26"
12997 "\x31\x41\x59\x26\x53\x58\x97\x93"
12998 "\x23\x84\x62\x64\x33\x83\x27\x95",
12999 .klen = 32,
13000 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13001 "\x00\x00\x00\x00\x00\x00\x00\x00",
13002 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
13003 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13004 "\x10\x11\x12\x13\x14\x15\x16\x17"
13005 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13006 "\x20\x21\x22\x23\x24\x25\x26\x27"
13007 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13008 "\x30\x31\x32\x33\x34\x35\x36\x37"
13009 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13010 "\x40\x41\x42\x43\x44\x45\x46\x47"
13011 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13012 "\x50\x51\x52\x53\x54\x55\x56\x57"
13013 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13014 "\x60\x61\x62\x63\x64\x65\x66\x67"
13015 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13016 "\x70\x71\x72\x73\x74\x75\x76\x77"
13017 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13018 "\x80\x81\x82\x83\x84\x85\x86\x87"
13019 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13020 "\x90\x91\x92\x93\x94\x95\x96\x97"
13021 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13022 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13023 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13024 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13025 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13026 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13027 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13028 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13029 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13030 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13031 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13032 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13033 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13034 "\x00\x01\x02\x03\x04\x05\x06\x07"
13035 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13036 "\x10\x11\x12\x13\x14\x15\x16\x17"
13037 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13038 "\x20\x21\x22\x23\x24\x25\x26\x27"
13039 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13040 "\x30\x31\x32\x33\x34\x35\x36\x37"
13041 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13042 "\x40\x41\x42\x43\x44\x45\x46\x47"
13043 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13044 "\x50\x51\x52\x53\x54\x55\x56\x57"
13045 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13046 "\x60\x61\x62\x63\x64\x65\x66\x67"
13047 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13048 "\x70\x71\x72\x73\x74\x75\x76\x77"
13049 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13050 "\x80\x81\x82\x83\x84\x85\x86\x87"
13051 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13052 "\x90\x91\x92\x93\x94\x95\x96\x97"
13053 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13054 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13055 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13056 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13057 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13058 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13059 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13060 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13061 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13062 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13063 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13064 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13065 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13066 .ilen = 512,
13067 .result = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
13068 "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
13069 "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
13070 "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
13071 "\x00\x5c\x75\x14\x06\xd6\x25\x82"
13072 "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
13073 "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
13074 "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
13075 "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
13076 "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
13077 "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
13078 "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
13079 "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
13080 "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
13081 "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
13082 "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
13083 "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
13084 "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
13085 "\x58\xfa\x43\x91\x16\x85\x40\xbb"
13086 "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
13087 "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
13088 "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
13089 "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
13090 "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
13091 "\x6e\x29\x60\xbd\x10\x14\x84\x82"
13092 "\x83\x82\x0c\x63\x73\x92\x02\x7c"
13093 "\x55\x37\x20\x80\x17\x51\xc8\xbc"
13094 "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
13095 "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
13096 "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
13097 "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
13098 "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
13099 "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
13100 "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
13101 "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
13102 "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
13103 "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
13104 "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
13105 "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
13106 "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
13107 "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
13108 "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
13109 "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
13110 "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
13111 "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
13112 "\x43\x42\x35\xd0\xcf\xec\x77\x67"
13113 "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
13114 "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
13115 "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
13116 "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
13117 "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
13118 "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
13119 "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
13120 "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
13121 "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
13122 "\x03\x57\xe6\x98\x52\x2f\x61\x62"
13123 "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
13124 "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
13125 "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
13126 "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
13127 "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
13128 "\xef\x91\x64\x1d\x18\x07\x4e\x31"
13129 "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
13130 "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
13131 .rlen = 512,
13132 }, {
13133 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
13134 "\x23\x53\x60\x28\x74\x71\x35\x26"
13135 "\x62\x49\x77\x57\x24\x70\x93\x69"
13136 "\x99\x59\x57\x49\x66\x96\x76\x27"
13137 "\x31\x41\x59\x26\x53\x58\x97\x93"
13138 "\x23\x84\x62\x64\x33\x83\x27\x95"
13139 "\x02\x88\x41\x97\x16\x93\x99\x37"
13140 "\x51\x05\x82\x09\x74\x94\x45\x92",
13141 .klen = 64,
13142 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
13143 "\x00\x00\x00\x00\x00\x00\x00\x00",
13144 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
13145 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13146 "\x10\x11\x12\x13\x14\x15\x16\x17"
13147 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13148 "\x20\x21\x22\x23\x24\x25\x26\x27"
13149 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13150 "\x30\x31\x32\x33\x34\x35\x36\x37"
13151 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13152 "\x40\x41\x42\x43\x44\x45\x46\x47"
13153 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13154 "\x50\x51\x52\x53\x54\x55\x56\x57"
13155 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13156 "\x60\x61\x62\x63\x64\x65\x66\x67"
13157 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13158 "\x70\x71\x72\x73\x74\x75\x76\x77"
13159 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13160 "\x80\x81\x82\x83\x84\x85\x86\x87"
13161 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13162 "\x90\x91\x92\x93\x94\x95\x96\x97"
13163 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13164 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13165 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13166 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13167 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13168 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13169 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13170 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13171 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13172 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13173 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13174 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13175 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13176 "\x00\x01\x02\x03\x04\x05\x06\x07"
13177 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13178 "\x10\x11\x12\x13\x14\x15\x16\x17"
13179 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13180 "\x20\x21\x22\x23\x24\x25\x26\x27"
13181 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13182 "\x30\x31\x32\x33\x34\x35\x36\x37"
13183 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13184 "\x40\x41\x42\x43\x44\x45\x46\x47"
13185 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13186 "\x50\x51\x52\x53\x54\x55\x56\x57"
13187 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13188 "\x60\x61\x62\x63\x64\x65\x66\x67"
13189 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13190 "\x70\x71\x72\x73\x74\x75\x76\x77"
13191 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13192 "\x80\x81\x82\x83\x84\x85\x86\x87"
13193 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13194 "\x90\x91\x92\x93\x94\x95\x96\x97"
13195 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13196 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13197 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13198 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13199 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13200 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13201 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13202 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13203 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13204 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13205 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13206 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13207 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13208 .ilen = 512,
13209 .result = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
13210 "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
13211 "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
13212 "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
13213 "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
13214 "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
13215 "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
13216 "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
13217 "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
13218 "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
13219 "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
13220 "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
13221 "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
13222 "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
13223 "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
13224 "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
13225 "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
13226 "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
13227 "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
13228 "\xec\x9a\xda\x64\x96\xb5\x61\xff"
13229 "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
13230 "\x81\x85\x14\xa8\x59\xac\x8c\x94"
13231 "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
13232 "\x82\xc6\x4d\xca\x86\xea\x53\x28"
13233 "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
13234 "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
13235 "\x05\xca\x81\x7b\xda\xa2\xde\x63"
13236 "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
13237 "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
13238 "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
13239 "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
13240 "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
13241 "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
13242 "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
13243 "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
13244 "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
13245 "\xfd\x43\x7d\xda\x42\x51\x87\x43"
13246 "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
13247 "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
13248 "\x27\x5f\x11\xac\x71\xc7\x48\x46"
13249 "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
13250 "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
13251 "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
13252 "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
13253 "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
13254 "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
13255 "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
13256 "\x50\x88\x97\x40\x69\xb1\x37\xf5"
13257 "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
13258 "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
13259 "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
13260 "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
13261 "\xc1\x16\x73\x50\x77\xba\xa6\x65"
13262 "\x20\x2d\xb0\x02\x27\x89\xda\x99"
13263 "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
13264 "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
13265 "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
13266 "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
13267 "\xa3\x0e\x33\x74\x40\x18\x39\x72"
13268 "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
13269 "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
13270 "\x30\x05\xc8\x92\x98\x80\xff\x7a"
13271 "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
13272 "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
13273 .rlen = 512,
13274 .also_non_np = 1,
13275 .np = 3,
13276 .tap = { 512 - 20, 4, 16 },
13280 static struct cipher_testvec serpent_xts_dec_tv_template[] = {
13281 /* Generated from AES-XTS test vectors */
13282 /* same as enc vectors with input and result reversed */
13284 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
13285 "\x00\x00\x00\x00\x00\x00\x00\x00"
13286 "\x00\x00\x00\x00\x00\x00\x00\x00"
13287 "\x00\x00\x00\x00\x00\x00\x00\x00",
13288 .klen = 32,
13289 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13290 "\x00\x00\x00\x00\x00\x00\x00\x00",
13291 .input = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
13292 "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
13293 "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
13294 "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
13295 .ilen = 32,
13296 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
13297 "\x00\x00\x00\x00\x00\x00\x00\x00"
13298 "\x00\x00\x00\x00\x00\x00\x00\x00"
13299 "\x00\x00\x00\x00\x00\x00\x00\x00",
13300 .rlen = 32,
13301 }, {
13302 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
13303 "\x11\x11\x11\x11\x11\x11\x11\x11"
13304 "\x22\x22\x22\x22\x22\x22\x22\x22"
13305 "\x22\x22\x22\x22\x22\x22\x22\x22",
13306 .klen = 32,
13307 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
13308 "\x00\x00\x00\x00\x00\x00\x00\x00",
13309 .input = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
13310 "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
13311 "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
13312 "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
13313 .ilen = 32,
13314 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
13315 "\x44\x44\x44\x44\x44\x44\x44\x44"
13316 "\x44\x44\x44\x44\x44\x44\x44\x44"
13317 "\x44\x44\x44\x44\x44\x44\x44\x44",
13318 .rlen = 32,
13319 }, {
13320 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
13321 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
13322 "\x22\x22\x22\x22\x22\x22\x22\x22"
13323 "\x22\x22\x22\x22\x22\x22\x22\x22",
13324 .klen = 32,
13325 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
13326 "\x00\x00\x00\x00\x00\x00\x00\x00",
13327 .input = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
13328 "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
13329 "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
13330 "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
13331 .ilen = 32,
13332 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
13333 "\x44\x44\x44\x44\x44\x44\x44\x44"
13334 "\x44\x44\x44\x44\x44\x44\x44\x44"
13335 "\x44\x44\x44\x44\x44\x44\x44\x44",
13336 .rlen = 32,
13337 }, {
13338 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
13339 "\x23\x53\x60\x28\x74\x71\x35\x26"
13340 "\x31\x41\x59\x26\x53\x58\x97\x93"
13341 "\x23\x84\x62\x64\x33\x83\x27\x95",
13342 .klen = 32,
13343 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13344 "\x00\x00\x00\x00\x00\x00\x00\x00",
13345 .input = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
13346 "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
13347 "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
13348 "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
13349 "\x00\x5c\x75\x14\x06\xd6\x25\x82"
13350 "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
13351 "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
13352 "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
13353 "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
13354 "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
13355 "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
13356 "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
13357 "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
13358 "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
13359 "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
13360 "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
13361 "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
13362 "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
13363 "\x58\xfa\x43\x91\x16\x85\x40\xbb"
13364 "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
13365 "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
13366 "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
13367 "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
13368 "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
13369 "\x6e\x29\x60\xbd\x10\x14\x84\x82"
13370 "\x83\x82\x0c\x63\x73\x92\x02\x7c"
13371 "\x55\x37\x20\x80\x17\x51\xc8\xbc"
13372 "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
13373 "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
13374 "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
13375 "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
13376 "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
13377 "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
13378 "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
13379 "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
13380 "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
13381 "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
13382 "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
13383 "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
13384 "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
13385 "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
13386 "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
13387 "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
13388 "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
13389 "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
13390 "\x43\x42\x35\xd0\xcf\xec\x77\x67"
13391 "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
13392 "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
13393 "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
13394 "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
13395 "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
13396 "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
13397 "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
13398 "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
13399 "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
13400 "\x03\x57\xe6\x98\x52\x2f\x61\x62"
13401 "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
13402 "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
13403 "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
13404 "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
13405 "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
13406 "\xef\x91\x64\x1d\x18\x07\x4e\x31"
13407 "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
13408 "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
13409 .ilen = 512,
13410 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
13411 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13412 "\x10\x11\x12\x13\x14\x15\x16\x17"
13413 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13414 "\x20\x21\x22\x23\x24\x25\x26\x27"
13415 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13416 "\x30\x31\x32\x33\x34\x35\x36\x37"
13417 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13418 "\x40\x41\x42\x43\x44\x45\x46\x47"
13419 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13420 "\x50\x51\x52\x53\x54\x55\x56\x57"
13421 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13422 "\x60\x61\x62\x63\x64\x65\x66\x67"
13423 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13424 "\x70\x71\x72\x73\x74\x75\x76\x77"
13425 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13426 "\x80\x81\x82\x83\x84\x85\x86\x87"
13427 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13428 "\x90\x91\x92\x93\x94\x95\x96\x97"
13429 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13430 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13431 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13432 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13433 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13434 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13435 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13436 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13437 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13438 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13439 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13440 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13441 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13442 "\x00\x01\x02\x03\x04\x05\x06\x07"
13443 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13444 "\x10\x11\x12\x13\x14\x15\x16\x17"
13445 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13446 "\x20\x21\x22\x23\x24\x25\x26\x27"
13447 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13448 "\x30\x31\x32\x33\x34\x35\x36\x37"
13449 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13450 "\x40\x41\x42\x43\x44\x45\x46\x47"
13451 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13452 "\x50\x51\x52\x53\x54\x55\x56\x57"
13453 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13454 "\x60\x61\x62\x63\x64\x65\x66\x67"
13455 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13456 "\x70\x71\x72\x73\x74\x75\x76\x77"
13457 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13458 "\x80\x81\x82\x83\x84\x85\x86\x87"
13459 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13460 "\x90\x91\x92\x93\x94\x95\x96\x97"
13461 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13462 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13463 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13464 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13465 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13466 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13467 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13468 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13469 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13470 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13471 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13472 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13473 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13474 .rlen = 512,
13475 }, {
13476 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
13477 "\x23\x53\x60\x28\x74\x71\x35\x26"
13478 "\x62\x49\x77\x57\x24\x70\x93\x69"
13479 "\x99\x59\x57\x49\x66\x96\x76\x27"
13480 "\x31\x41\x59\x26\x53\x58\x97\x93"
13481 "\x23\x84\x62\x64\x33\x83\x27\x95"
13482 "\x02\x88\x41\x97\x16\x93\x99\x37"
13483 "\x51\x05\x82\x09\x74\x94\x45\x92",
13484 .klen = 64,
13485 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
13486 "\x00\x00\x00\x00\x00\x00\x00\x00",
13487 .input = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
13488 "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
13489 "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
13490 "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
13491 "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
13492 "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
13493 "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
13494 "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
13495 "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
13496 "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
13497 "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
13498 "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
13499 "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
13500 "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
13501 "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
13502 "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
13503 "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
13504 "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
13505 "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
13506 "\xec\x9a\xda\x64\x96\xb5\x61\xff"
13507 "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
13508 "\x81\x85\x14\xa8\x59\xac\x8c\x94"
13509 "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
13510 "\x82\xc6\x4d\xca\x86\xea\x53\x28"
13511 "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
13512 "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
13513 "\x05\xca\x81\x7b\xda\xa2\xde\x63"
13514 "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
13515 "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
13516 "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
13517 "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
13518 "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
13519 "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
13520 "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
13521 "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
13522 "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
13523 "\xfd\x43\x7d\xda\x42\x51\x87\x43"
13524 "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
13525 "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
13526 "\x27\x5f\x11\xac\x71\xc7\x48\x46"
13527 "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
13528 "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
13529 "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
13530 "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
13531 "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
13532 "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
13533 "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
13534 "\x50\x88\x97\x40\x69\xb1\x37\xf5"
13535 "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
13536 "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
13537 "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
13538 "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
13539 "\xc1\x16\x73\x50\x77\xba\xa6\x65"
13540 "\x20\x2d\xb0\x02\x27\x89\xda\x99"
13541 "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
13542 "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
13543 "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
13544 "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
13545 "\xa3\x0e\x33\x74\x40\x18\x39\x72"
13546 "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
13547 "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
13548 "\x30\x05\xc8\x92\x98\x80\xff\x7a"
13549 "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
13550 "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
13551 .ilen = 512,
13552 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
13553 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13554 "\x10\x11\x12\x13\x14\x15\x16\x17"
13555 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13556 "\x20\x21\x22\x23\x24\x25\x26\x27"
13557 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13558 "\x30\x31\x32\x33\x34\x35\x36\x37"
13559 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13560 "\x40\x41\x42\x43\x44\x45\x46\x47"
13561 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13562 "\x50\x51\x52\x53\x54\x55\x56\x57"
13563 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13564 "\x60\x61\x62\x63\x64\x65\x66\x67"
13565 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13566 "\x70\x71\x72\x73\x74\x75\x76\x77"
13567 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13568 "\x80\x81\x82\x83\x84\x85\x86\x87"
13569 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13570 "\x90\x91\x92\x93\x94\x95\x96\x97"
13571 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13572 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13573 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13574 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13575 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13576 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13577 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13578 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13579 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13580 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13581 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13582 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13583 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13584 "\x00\x01\x02\x03\x04\x05\x06\x07"
13585 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13586 "\x10\x11\x12\x13\x14\x15\x16\x17"
13587 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13588 "\x20\x21\x22\x23\x24\x25\x26\x27"
13589 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13590 "\x30\x31\x32\x33\x34\x35\x36\x37"
13591 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13592 "\x40\x41\x42\x43\x44\x45\x46\x47"
13593 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13594 "\x50\x51\x52\x53\x54\x55\x56\x57"
13595 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13596 "\x60\x61\x62\x63\x64\x65\x66\x67"
13597 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13598 "\x70\x71\x72\x73\x74\x75\x76\x77"
13599 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13600 "\x80\x81\x82\x83\x84\x85\x86\x87"
13601 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13602 "\x90\x91\x92\x93\x94\x95\x96\x97"
13603 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13604 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13605 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13606 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13607 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13608 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13609 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13610 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13611 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13612 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13613 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13614 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13615 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13616 .rlen = 512,
13617 .also_non_np = 1,
13618 .np = 3,
13619 .tap = { 512 - 20, 4, 16 },
13623 /* Cast6 test vectors from RFC 2612 */
13624 #define CAST6_ENC_TEST_VECTORS 4
13625 #define CAST6_DEC_TEST_VECTORS 4
13626 #define CAST6_CBC_ENC_TEST_VECTORS 1
13627 #define CAST6_CBC_DEC_TEST_VECTORS 1
13628 #define CAST6_CTR_ENC_TEST_VECTORS 2
13629 #define CAST6_CTR_DEC_TEST_VECTORS 2
13630 #define CAST6_LRW_ENC_TEST_VECTORS 1
13631 #define CAST6_LRW_DEC_TEST_VECTORS 1
13632 #define CAST6_XTS_ENC_TEST_VECTORS 1
13633 #define CAST6_XTS_DEC_TEST_VECTORS 1
13635 static struct cipher_testvec cast6_enc_tv_template[] = {
13637 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13638 "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
13639 .klen = 16,
13640 .input = zeroed_string,
13641 .ilen = 16,
13642 .result = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
13643 "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
13644 .rlen = 16,
13645 }, {
13646 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13647 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
13648 "\xba\xc7\x7a\x77\x17\x94\x28\x63",
13649 .klen = 24,
13650 .input = zeroed_string,
13651 .ilen = 16,
13652 .result = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
13653 "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
13654 .rlen = 16,
13655 }, {
13656 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13657 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
13658 "\x8d\x7c\x47\xce\x26\x49\x08\x46"
13659 "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
13660 .klen = 32,
13661 .input = zeroed_string,
13662 .ilen = 16,
13663 .result = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
13664 "\xc9\x87\x01\x36\x55\x33\x17\xfa",
13665 .rlen = 16,
13666 }, { /* Generated from TF test vectors */
13667 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
13668 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
13669 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
13670 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
13671 .klen = 32,
13672 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
13673 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
13674 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
13675 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
13676 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
13677 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
13678 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
13679 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
13680 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
13681 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
13682 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
13683 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
13684 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
13685 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
13686 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
13687 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
13688 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
13689 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
13690 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
13691 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
13692 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
13693 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
13694 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
13695 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
13696 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
13697 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
13698 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
13699 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
13700 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
13701 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
13702 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
13703 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
13704 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
13705 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
13706 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
13707 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
13708 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
13709 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
13710 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
13711 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
13712 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
13713 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
13714 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
13715 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
13716 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
13717 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
13718 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
13719 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
13720 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
13721 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
13722 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
13723 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
13724 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
13725 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
13726 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
13727 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
13728 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
13729 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
13730 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
13731 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
13732 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
13733 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
13734 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
13735 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
13736 .ilen = 496,
13737 .result = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
13738 "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
13739 "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
13740 "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
13741 "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
13742 "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
13743 "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
13744 "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
13745 "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
13746 "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
13747 "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
13748 "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
13749 "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
13750 "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
13751 "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
13752 "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
13753 "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
13754 "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
13755 "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
13756 "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
13757 "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
13758 "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
13759 "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
13760 "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
13761 "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
13762 "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
13763 "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
13764 "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
13765 "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
13766 "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
13767 "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
13768 "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
13769 "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
13770 "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
13771 "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
13772 "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
13773 "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
13774 "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
13775 "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
13776 "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
13777 "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
13778 "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
13779 "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
13780 "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
13781 "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
13782 "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
13783 "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
13784 "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
13785 "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
13786 "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
13787 "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
13788 "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
13789 "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
13790 "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
13791 "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
13792 "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
13793 "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
13794 "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
13795 "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
13796 "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
13797 "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
13798 "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
13799 .rlen = 496,
13800 .also_non_np = 1,
13801 .np = 3,
13802 .tap = { 496 - 20, 4, 16 },
13806 static struct cipher_testvec cast6_dec_tv_template[] = {
13808 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13809 "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
13810 .klen = 16,
13811 .input = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
13812 "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
13813 .ilen = 16,
13814 .result = zeroed_string,
13815 .rlen = 16,
13816 }, {
13817 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13818 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
13819 "\xba\xc7\x7a\x77\x17\x94\x28\x63",
13820 .klen = 24,
13821 .input = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
13822 "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
13823 .ilen = 16,
13824 .result = zeroed_string,
13825 .rlen = 16,
13826 }, {
13827 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13828 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
13829 "\x8d\x7c\x47\xce\x26\x49\x08\x46"
13830 "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
13831 .klen = 32,
13832 .input = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
13833 "\xc9\x87\x01\x36\x55\x33\x17\xfa",
13834 .ilen = 16,
13835 .result = zeroed_string,
13836 .rlen = 16,
13837 }, { /* Generated from TF test vectors */
13838 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
13839 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
13840 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
13841 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
13842 .klen = 32,
13843 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
13844 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
13845 .input = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
13846 "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
13847 "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
13848 "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
13849 "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
13850 "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
13851 "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
13852 "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
13853 "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
13854 "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
13855 "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
13856 "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
13857 "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
13858 "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
13859 "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
13860 "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
13861 "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
13862 "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
13863 "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
13864 "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
13865 "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
13866 "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
13867 "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
13868 "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
13869 "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
13870 "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
13871 "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
13872 "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
13873 "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
13874 "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
13875 "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
13876 "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
13877 "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
13878 "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
13879 "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
13880 "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
13881 "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
13882 "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
13883 "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
13884 "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
13885 "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
13886 "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
13887 "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
13888 "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
13889 "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
13890 "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
13891 "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
13892 "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
13893 "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
13894 "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
13895 "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
13896 "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
13897 "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
13898 "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
13899 "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
13900 "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
13901 "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
13902 "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
13903 "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
13904 "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
13905 "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
13906 "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
13907 .ilen = 496,
13908 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
13909 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
13910 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
13911 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
13912 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
13913 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
13914 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
13915 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
13916 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
13917 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
13918 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
13919 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
13920 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
13921 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
13922 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
13923 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
13924 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
13925 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
13926 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
13927 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
13928 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
13929 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
13930 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
13931 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
13932 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
13933 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
13934 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
13935 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
13936 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
13937 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
13938 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
13939 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
13940 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
13941 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
13942 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
13943 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
13944 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
13945 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
13946 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
13947 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
13948 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
13949 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
13950 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
13951 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
13952 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
13953 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
13954 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
13955 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
13956 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
13957 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
13958 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
13959 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
13960 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
13961 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
13962 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
13963 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
13964 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
13965 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
13966 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
13967 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
13968 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
13969 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
13970 .rlen = 496,
13971 .also_non_np = 1,
13972 .np = 3,
13973 .tap = { 496 - 20, 4, 16 },
13977 static struct cipher_testvec cast6_cbc_enc_tv_template[] = {
13978 { /* Generated from TF test vectors */
13979 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
13980 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
13981 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
13982 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
13983 .klen = 32,
13984 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
13985 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
13986 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
13987 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
13988 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
13989 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
13990 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
13991 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
13992 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
13993 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
13994 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
13995 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
13996 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
13997 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
13998 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
13999 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
14000 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
14001 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
14002 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
14003 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
14004 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
14005 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
14006 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
14007 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
14008 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
14009 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
14010 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
14011 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
14012 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
14013 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
14014 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
14015 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
14016 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
14017 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
14018 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
14019 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
14020 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
14021 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
14022 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
14023 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
14024 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
14025 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
14026 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
14027 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
14028 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
14029 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
14030 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
14031 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
14032 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
14033 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
14034 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
14035 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
14036 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
14037 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
14038 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
14039 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
14040 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
14041 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
14042 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
14043 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
14044 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
14045 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
14046 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
14047 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
14048 .ilen = 496,
14049 .result = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
14050 "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
14051 "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
14052 "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
14053 "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
14054 "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
14055 "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
14056 "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
14057 "\x57\x95\xE1\x21\x26\x10\x9A\x21"
14058 "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
14059 "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
14060 "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
14061 "\x23\x16\x47\x72\x81\x13\x3A\x72"
14062 "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
14063 "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
14064 "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
14065 "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
14066 "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
14067 "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
14068 "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
14069 "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
14070 "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
14071 "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
14072 "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
14073 "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
14074 "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
14075 "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
14076 "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
14077 "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
14078 "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
14079 "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
14080 "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
14081 "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
14082 "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
14083 "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
14084 "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
14085 "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
14086 "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
14087 "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
14088 "\x73\x3F\x12\x91\x47\x54\xBA\x39"
14089 "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
14090 "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
14091 "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
14092 "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
14093 "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
14094 "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
14095 "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
14096 "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
14097 "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
14098 "\x80\x21\x83\x58\x3C\x76\xFD\x28"
14099 "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
14100 "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
14101 "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
14102 "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
14103 "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
14104 "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
14105 "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
14106 "\x56\x4D\x82\x62\x37\xA3\x48\x01"
14107 "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
14108 "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
14109 "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
14110 "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
14111 .rlen = 496,
14112 .also_non_np = 1,
14113 .np = 3,
14114 .tap = { 496 - 20, 4, 16 },
14118 static struct cipher_testvec cast6_cbc_dec_tv_template[] = {
14119 { /* Generated from TF test vectors */
14120 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14121 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
14122 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
14123 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
14124 .klen = 32,
14125 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14126 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14127 .input = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
14128 "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
14129 "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
14130 "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
14131 "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
14132 "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
14133 "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
14134 "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
14135 "\x57\x95\xE1\x21\x26\x10\x9A\x21"
14136 "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
14137 "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
14138 "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
14139 "\x23\x16\x47\x72\x81\x13\x3A\x72"
14140 "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
14141 "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
14142 "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
14143 "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
14144 "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
14145 "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
14146 "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
14147 "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
14148 "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
14149 "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
14150 "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
14151 "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
14152 "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
14153 "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
14154 "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
14155 "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
14156 "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
14157 "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
14158 "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
14159 "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
14160 "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
14161 "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
14162 "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
14163 "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
14164 "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
14165 "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
14166 "\x73\x3F\x12\x91\x47\x54\xBA\x39"
14167 "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
14168 "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
14169 "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
14170 "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
14171 "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
14172 "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
14173 "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
14174 "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
14175 "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
14176 "\x80\x21\x83\x58\x3C\x76\xFD\x28"
14177 "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
14178 "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
14179 "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
14180 "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
14181 "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
14182 "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
14183 "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
14184 "\x56\x4D\x82\x62\x37\xA3\x48\x01"
14185 "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
14186 "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
14187 "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
14188 "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
14189 .ilen = 496,
14190 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14191 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14192 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
14193 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
14194 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
14195 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
14196 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
14197 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
14198 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
14199 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
14200 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
14201 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
14202 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
14203 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
14204 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
14205 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
14206 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
14207 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
14208 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
14209 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
14210 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
14211 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
14212 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
14213 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
14214 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
14215 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
14216 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
14217 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
14218 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
14219 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
14220 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
14221 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
14222 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
14223 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
14224 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
14225 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
14226 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
14227 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
14228 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
14229 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
14230 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
14231 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
14232 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
14233 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
14234 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
14235 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
14236 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
14237 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
14238 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
14239 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
14240 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
14241 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
14242 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
14243 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
14244 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
14245 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
14246 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
14247 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
14248 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
14249 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
14250 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
14251 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
14252 .rlen = 496,
14253 .also_non_np = 1,
14254 .np = 3,
14255 .tap = { 496 - 20, 4, 16 },
14259 static struct cipher_testvec cast6_ctr_enc_tv_template[] = {
14260 { /* Generated from TF test vectors */
14261 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14262 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
14263 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
14264 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
14265 .klen = 32,
14266 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14267 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14268 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14269 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14270 "\x3A",
14271 .ilen = 17,
14272 .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
14273 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
14274 "\x57",
14275 .rlen = 17,
14276 }, { /* Generated from TF test vectors */
14277 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14278 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
14279 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
14280 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
14281 .klen = 32,
14282 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14283 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14284 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14285 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14286 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
14287 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
14288 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
14289 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
14290 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
14291 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
14292 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
14293 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
14294 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
14295 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
14296 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
14297 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
14298 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
14299 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
14300 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
14301 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
14302 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
14303 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
14304 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
14305 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
14306 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
14307 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
14308 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
14309 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
14310 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
14311 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
14312 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
14313 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
14314 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
14315 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
14316 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
14317 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
14318 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
14319 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
14320 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
14321 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
14322 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
14323 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
14324 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
14325 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
14326 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
14327 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
14328 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
14329 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
14330 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
14331 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
14332 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
14333 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
14334 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
14335 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
14336 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
14337 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
14338 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
14339 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
14340 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
14341 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
14342 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
14343 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
14344 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
14345 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
14346 .ilen = 496,
14347 .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
14348 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
14349 "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
14350 "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
14351 "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
14352 "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
14353 "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
14354 "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
14355 "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
14356 "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
14357 "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
14358 "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
14359 "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
14360 "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
14361 "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
14362 "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
14363 "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
14364 "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
14365 "\x49\x61\x22\x52\x64\x8C\x46\x41"
14366 "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
14367 "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
14368 "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
14369 "\x00\x14\x15\x59\xC1\x30\x64\xAF"
14370 "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
14371 "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
14372 "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
14373 "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
14374 "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
14375 "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
14376 "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
14377 "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
14378 "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
14379 "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
14380 "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
14381 "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
14382 "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
14383 "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
14384 "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
14385 "\x60\x40\x38\x90\x20\x46\xC7\xB3"
14386 "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
14387 "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
14388 "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
14389 "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
14390 "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
14391 "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
14392 "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
14393 "\x73\xFC\x91\xAB\x79\x41\x23\x14"
14394 "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
14395 "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
14396 "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
14397 "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
14398 "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
14399 "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
14400 "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
14401 "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
14402 "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
14403 "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
14404 "\x19\x35\x88\x22\x45\x59\x0E\x8F"
14405 "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
14406 "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
14407 "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
14408 "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
14409 .rlen = 496,
14410 .also_non_np = 1,
14411 .np = 3,
14412 .tap = { 496 - 20, 4, 16 },
14416 static struct cipher_testvec cast6_ctr_dec_tv_template[] = {
14417 { /* Generated from TF test vectors */
14418 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14419 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
14420 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
14421 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
14422 .klen = 32,
14423 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14424 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14425 .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
14426 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
14427 "\x57",
14428 .ilen = 17,
14429 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14430 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14431 "\x3A",
14432 .rlen = 17,
14433 }, { /* Generated from TF test vectors */
14434 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14435 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
14436 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
14437 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
14438 .klen = 32,
14439 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14440 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14441 .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
14442 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
14443 "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
14444 "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
14445 "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
14446 "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
14447 "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
14448 "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
14449 "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
14450 "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
14451 "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
14452 "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
14453 "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
14454 "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
14455 "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
14456 "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
14457 "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
14458 "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
14459 "\x49\x61\x22\x52\x64\x8C\x46\x41"
14460 "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
14461 "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
14462 "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
14463 "\x00\x14\x15\x59\xC1\x30\x64\xAF"
14464 "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
14465 "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
14466 "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
14467 "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
14468 "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
14469 "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
14470 "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
14471 "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
14472 "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
14473 "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
14474 "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
14475 "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
14476 "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
14477 "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
14478 "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
14479 "\x60\x40\x38\x90\x20\x46\xC7\xB3"
14480 "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
14481 "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
14482 "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
14483 "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
14484 "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
14485 "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
14486 "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
14487 "\x73\xFC\x91\xAB\x79\x41\x23\x14"
14488 "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
14489 "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
14490 "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
14491 "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
14492 "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
14493 "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
14494 "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
14495 "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
14496 "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
14497 "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
14498 "\x19\x35\x88\x22\x45\x59\x0E\x8F"
14499 "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
14500 "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
14501 "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
14502 "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
14503 .ilen = 496,
14504 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14505 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14506 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
14507 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
14508 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
14509 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
14510 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
14511 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
14512 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
14513 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
14514 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
14515 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
14516 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
14517 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
14518 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
14519 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
14520 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
14521 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
14522 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
14523 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
14524 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
14525 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
14526 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
14527 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
14528 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
14529 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
14530 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
14531 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
14532 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
14533 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
14534 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
14535 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
14536 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
14537 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
14538 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
14539 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
14540 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
14541 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
14542 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
14543 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
14544 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
14545 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
14546 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
14547 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
14548 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
14549 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
14550 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
14551 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
14552 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
14553 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
14554 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
14555 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
14556 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
14557 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
14558 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
14559 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
14560 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
14561 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
14562 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
14563 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
14564 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
14565 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
14566 .rlen = 496,
14567 .also_non_np = 1,
14568 .np = 3,
14569 .tap = { 496 - 20, 4, 16 },
14573 static struct cipher_testvec cast6_lrw_enc_tv_template[] = {
14574 { /* Generated from TF test vectors */
14575 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
14576 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
14577 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
14578 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
14579 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
14580 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
14581 .klen = 48,
14582 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14583 "\x00\x00\x00\x00\x00\x00\x00\x01",
14584 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
14585 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
14586 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
14587 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
14588 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
14589 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
14590 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
14591 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
14592 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
14593 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
14594 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
14595 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
14596 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
14597 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
14598 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
14599 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
14600 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
14601 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
14602 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
14603 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
14604 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
14605 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
14606 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
14607 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
14608 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
14609 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
14610 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
14611 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
14612 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
14613 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
14614 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
14615 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
14616 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
14617 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
14618 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
14619 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
14620 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
14621 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
14622 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
14623 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
14624 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
14625 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
14626 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
14627 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
14628 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
14629 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
14630 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
14631 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
14632 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
14633 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
14634 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
14635 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
14636 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
14637 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
14638 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
14639 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
14640 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
14641 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
14642 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
14643 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
14644 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
14645 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
14646 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
14647 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
14648 .ilen = 512,
14649 .result = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
14650 "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
14651 "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
14652 "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
14653 "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
14654 "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
14655 "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
14656 "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
14657 "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
14658 "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
14659 "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
14660 "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
14661 "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
14662 "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
14663 "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
14664 "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
14665 "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
14666 "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
14667 "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
14668 "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
14669 "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
14670 "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
14671 "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
14672 "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
14673 "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
14674 "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
14675 "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
14676 "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
14677 "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
14678 "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
14679 "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
14680 "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
14681 "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
14682 "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
14683 "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
14684 "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
14685 "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
14686 "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
14687 "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
14688 "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
14689 "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
14690 "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
14691 "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
14692 "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
14693 "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
14694 "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
14695 "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
14696 "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
14697 "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
14698 "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
14699 "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
14700 "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
14701 "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
14702 "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
14703 "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
14704 "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
14705 "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
14706 "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
14707 "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
14708 "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
14709 "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
14710 "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
14711 "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
14712 "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
14713 .rlen = 512,
14714 .also_non_np = 1,
14715 .np = 3,
14716 .tap = { 512 - 20, 4, 16 },
14720 static struct cipher_testvec cast6_lrw_dec_tv_template[] = {
14721 { /* Generated from TF test vectors */
14722 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
14723 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
14724 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
14725 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
14726 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
14727 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
14728 .klen = 48,
14729 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14730 "\x00\x00\x00\x00\x00\x00\x00\x01",
14731 .input = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
14732 "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
14733 "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
14734 "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
14735 "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
14736 "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
14737 "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
14738 "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
14739 "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
14740 "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
14741 "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
14742 "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
14743 "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
14744 "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
14745 "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
14746 "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
14747 "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
14748 "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
14749 "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
14750 "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
14751 "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
14752 "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
14753 "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
14754 "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
14755 "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
14756 "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
14757 "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
14758 "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
14759 "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
14760 "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
14761 "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
14762 "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
14763 "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
14764 "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
14765 "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
14766 "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
14767 "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
14768 "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
14769 "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
14770 "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
14771 "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
14772 "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
14773 "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
14774 "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
14775 "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
14776 "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
14777 "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
14778 "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
14779 "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
14780 "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
14781 "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
14782 "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
14783 "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
14784 "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
14785 "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
14786 "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
14787 "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
14788 "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
14789 "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
14790 "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
14791 "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
14792 "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
14793 "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
14794 "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
14795 .ilen = 512,
14796 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
14797 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
14798 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
14799 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
14800 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
14801 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
14802 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
14803 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
14804 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
14805 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
14806 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
14807 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
14808 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
14809 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
14810 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
14811 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
14812 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
14813 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
14814 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
14815 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
14816 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
14817 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
14818 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
14819 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
14820 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
14821 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
14822 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
14823 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
14824 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
14825 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
14826 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
14827 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
14828 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
14829 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
14830 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
14831 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
14832 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
14833 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
14834 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
14835 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
14836 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
14837 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
14838 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
14839 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
14840 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
14841 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
14842 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
14843 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
14844 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
14845 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
14846 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
14847 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
14848 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
14849 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
14850 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
14851 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
14852 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
14853 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
14854 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
14855 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
14856 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
14857 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
14858 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
14859 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
14860 .rlen = 512,
14861 .also_non_np = 1,
14862 .np = 3,
14863 .tap = { 512 - 20, 4, 16 },
14867 static struct cipher_testvec cast6_xts_enc_tv_template[] = {
14868 { /* Generated from TF test vectors */
14869 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
14870 "\x23\x53\x60\x28\x74\x71\x35\x26"
14871 "\x62\x49\x77\x57\x24\x70\x93\x69"
14872 "\x99\x59\x57\x49\x66\x96\x76\x27"
14873 "\x31\x41\x59\x26\x53\x58\x97\x93"
14874 "\x23\x84\x62\x64\x33\x83\x27\x95"
14875 "\x02\x88\x41\x97\x16\x93\x99\x37"
14876 "\x51\x05\x82\x09\x74\x94\x45\x92",
14877 .klen = 64,
14878 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
14879 "\x00\x00\x00\x00\x00\x00\x00\x00",
14880 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
14881 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14882 "\x10\x11\x12\x13\x14\x15\x16\x17"
14883 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14884 "\x20\x21\x22\x23\x24\x25\x26\x27"
14885 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14886 "\x30\x31\x32\x33\x34\x35\x36\x37"
14887 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14888 "\x40\x41\x42\x43\x44\x45\x46\x47"
14889 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14890 "\x50\x51\x52\x53\x54\x55\x56\x57"
14891 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14892 "\x60\x61\x62\x63\x64\x65\x66\x67"
14893 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14894 "\x70\x71\x72\x73\x74\x75\x76\x77"
14895 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14896 "\x80\x81\x82\x83\x84\x85\x86\x87"
14897 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14898 "\x90\x91\x92\x93\x94\x95\x96\x97"
14899 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14900 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14901 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14902 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14903 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14904 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14905 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14906 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14907 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14908 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14909 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14910 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14911 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
14912 "\x00\x01\x02\x03\x04\x05\x06\x07"
14913 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14914 "\x10\x11\x12\x13\x14\x15\x16\x17"
14915 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14916 "\x20\x21\x22\x23\x24\x25\x26\x27"
14917 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14918 "\x30\x31\x32\x33\x34\x35\x36\x37"
14919 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14920 "\x40\x41\x42\x43\x44\x45\x46\x47"
14921 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14922 "\x50\x51\x52\x53\x54\x55\x56\x57"
14923 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14924 "\x60\x61\x62\x63\x64\x65\x66\x67"
14925 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14926 "\x70\x71\x72\x73\x74\x75\x76\x77"
14927 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14928 "\x80\x81\x82\x83\x84\x85\x86\x87"
14929 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14930 "\x90\x91\x92\x93\x94\x95\x96\x97"
14931 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14932 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14933 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14934 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14935 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14936 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14937 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14938 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14939 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14940 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14941 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14942 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14943 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
14944 .ilen = 512,
14945 .result = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
14946 "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
14947 "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
14948 "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
14949 "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
14950 "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
14951 "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
14952 "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
14953 "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
14954 "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
14955 "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
14956 "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
14957 "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
14958 "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
14959 "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
14960 "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
14961 "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
14962 "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
14963 "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
14964 "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
14965 "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
14966 "\x71\x38\x17\x91\x44\xE8\xFC\x65"
14967 "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
14968 "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
14969 "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
14970 "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
14971 "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
14972 "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
14973 "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
14974 "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
14975 "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
14976 "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
14977 "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
14978 "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
14979 "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
14980 "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
14981 "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
14982 "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
14983 "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
14984 "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
14985 "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
14986 "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
14987 "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
14988 "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
14989 "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
14990 "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
14991 "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
14992 "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
14993 "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
14994 "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
14995 "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
14996 "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
14997 "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
14998 "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
14999 "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
15000 "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
15001 "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
15002 "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
15003 "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
15004 "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
15005 "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
15006 "\x45\x72\x80\x17\x81\xBD\x9D\x62"
15007 "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
15008 "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
15009 .rlen = 512,
15010 .also_non_np = 1,
15011 .np = 3,
15012 .tap = { 512 - 20, 4, 16 },
15016 static struct cipher_testvec cast6_xts_dec_tv_template[] = {
15017 { /* Generated from TF test vectors */
15018 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
15019 "\x23\x53\x60\x28\x74\x71\x35\x26"
15020 "\x62\x49\x77\x57\x24\x70\x93\x69"
15021 "\x99\x59\x57\x49\x66\x96\x76\x27"
15022 "\x31\x41\x59\x26\x53\x58\x97\x93"
15023 "\x23\x84\x62\x64\x33\x83\x27\x95"
15024 "\x02\x88\x41\x97\x16\x93\x99\x37"
15025 "\x51\x05\x82\x09\x74\x94\x45\x92",
15026 .klen = 64,
15027 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
15028 "\x00\x00\x00\x00\x00\x00\x00\x00",
15029 .input = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
15030 "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
15031 "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
15032 "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
15033 "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
15034 "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
15035 "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
15036 "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
15037 "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
15038 "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
15039 "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
15040 "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
15041 "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
15042 "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
15043 "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
15044 "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
15045 "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
15046 "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
15047 "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
15048 "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
15049 "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
15050 "\x71\x38\x17\x91\x44\xE8\xFC\x65"
15051 "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
15052 "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
15053 "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
15054 "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
15055 "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
15056 "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
15057 "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
15058 "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
15059 "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
15060 "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
15061 "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
15062 "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
15063 "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
15064 "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
15065 "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
15066 "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
15067 "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
15068 "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
15069 "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
15070 "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
15071 "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
15072 "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
15073 "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
15074 "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
15075 "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
15076 "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
15077 "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
15078 "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
15079 "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
15080 "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
15081 "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
15082 "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
15083 "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
15084 "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
15085 "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
15086 "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
15087 "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
15088 "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
15089 "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
15090 "\x45\x72\x80\x17\x81\xBD\x9D\x62"
15091 "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
15092 "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
15093 .ilen = 512,
15094 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
15095 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15096 "\x10\x11\x12\x13\x14\x15\x16\x17"
15097 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15098 "\x20\x21\x22\x23\x24\x25\x26\x27"
15099 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15100 "\x30\x31\x32\x33\x34\x35\x36\x37"
15101 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15102 "\x40\x41\x42\x43\x44\x45\x46\x47"
15103 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15104 "\x50\x51\x52\x53\x54\x55\x56\x57"
15105 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15106 "\x60\x61\x62\x63\x64\x65\x66\x67"
15107 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15108 "\x70\x71\x72\x73\x74\x75\x76\x77"
15109 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15110 "\x80\x81\x82\x83\x84\x85\x86\x87"
15111 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15112 "\x90\x91\x92\x93\x94\x95\x96\x97"
15113 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15114 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15115 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15116 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15117 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15118 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15119 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15120 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15121 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15122 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15123 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15124 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15125 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
15126 "\x00\x01\x02\x03\x04\x05\x06\x07"
15127 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15128 "\x10\x11\x12\x13\x14\x15\x16\x17"
15129 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15130 "\x20\x21\x22\x23\x24\x25\x26\x27"
15131 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15132 "\x30\x31\x32\x33\x34\x35\x36\x37"
15133 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15134 "\x40\x41\x42\x43\x44\x45\x46\x47"
15135 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15136 "\x50\x51\x52\x53\x54\x55\x56\x57"
15137 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15138 "\x60\x61\x62\x63\x64\x65\x66\x67"
15139 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15140 "\x70\x71\x72\x73\x74\x75\x76\x77"
15141 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15142 "\x80\x81\x82\x83\x84\x85\x86\x87"
15143 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15144 "\x90\x91\x92\x93\x94\x95\x96\x97"
15145 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15146 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15147 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15148 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15149 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15150 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15151 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15152 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15153 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15154 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15155 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15156 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15157 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
15158 .rlen = 512,
15159 .also_non_np = 1,
15160 .np = 3,
15161 .tap = { 512 - 20, 4, 16 },
15167 * AES test vectors.
15169 #define AES_ENC_TEST_VECTORS 4
15170 #define AES_DEC_TEST_VECTORS 4
15171 #define AES_CBC_ENC_TEST_VECTORS 5
15172 #define AES_CBC_DEC_TEST_VECTORS 5
15173 #define HMAC_MD5_ECB_CIPHER_NULL_ENC_TEST_VECTORS 2
15174 #define HMAC_MD5_ECB_CIPHER_NULL_DEC_TEST_VECTORS 2
15175 #define HMAC_SHA1_ECB_CIPHER_NULL_ENC_TEST_VEC 2
15176 #define HMAC_SHA1_ECB_CIPHER_NULL_DEC_TEST_VEC 2
15177 #define HMAC_SHA1_AES_CBC_ENC_TEST_VEC 7
15178 #define HMAC_SHA256_AES_CBC_ENC_TEST_VEC 7
15179 #define HMAC_SHA512_AES_CBC_ENC_TEST_VEC 7
15180 #define AES_LRW_ENC_TEST_VECTORS 8
15181 #define AES_LRW_DEC_TEST_VECTORS 8
15182 #define AES_XTS_ENC_TEST_VECTORS 5
15183 #define AES_XTS_DEC_TEST_VECTORS 5
15184 #define AES_CTR_ENC_TEST_VECTORS 5
15185 #define AES_CTR_DEC_TEST_VECTORS 5
15186 #define AES_OFB_ENC_TEST_VECTORS 1
15187 #define AES_OFB_DEC_TEST_VECTORS 1
15188 #define AES_CTR_3686_ENC_TEST_VECTORS 7
15189 #define AES_CTR_3686_DEC_TEST_VECTORS 6
15190 #define AES_GCM_ENC_TEST_VECTORS 9
15191 #define AES_GCM_DEC_TEST_VECTORS 8
15192 #define AES_GCM_4106_ENC_TEST_VECTORS 23
15193 #define AES_GCM_4106_DEC_TEST_VECTORS 23
15194 #define AES_GCM_4543_ENC_TEST_VECTORS 1
15195 #define AES_GCM_4543_DEC_TEST_VECTORS 2
15196 #define AES_CCM_ENC_TEST_VECTORS 8
15197 #define AES_CCM_DEC_TEST_VECTORS 7
15198 #define AES_CCM_4309_ENC_TEST_VECTORS 7
15199 #define AES_CCM_4309_DEC_TEST_VECTORS 10
15201 static struct cipher_testvec aes_enc_tv_template[] = {
15202 { /* From FIPS-197 */
15203 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15204 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15205 .klen = 16,
15206 .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
15207 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15208 .ilen = 16,
15209 .result = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
15210 "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
15211 .rlen = 16,
15212 }, {
15213 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15214 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15215 "\x10\x11\x12\x13\x14\x15\x16\x17",
15216 .klen = 24,
15217 .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
15218 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15219 .ilen = 16,
15220 .result = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
15221 "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
15222 .rlen = 16,
15223 }, {
15224 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15225 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15226 "\x10\x11\x12\x13\x14\x15\x16\x17"
15227 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
15228 .klen = 32,
15229 .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
15230 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15231 .ilen = 16,
15232 .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
15233 "\xea\xfc\x49\x90\x4b\x49\x60\x89",
15234 .rlen = 16,
15235 }, { /* Generated with Crypto++ */
15236 .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
15237 "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
15238 "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
15239 "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
15240 .klen = 32,
15241 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
15242 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15243 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15244 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15245 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15246 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15247 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15248 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15249 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15250 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15251 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15252 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15253 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15254 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15255 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15256 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15257 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15258 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15259 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15260 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15261 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15262 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15263 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15264 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15265 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15266 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15267 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15268 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15269 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15270 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15271 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15272 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15273 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15274 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15275 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15276 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
15277 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
15278 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
15279 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
15280 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
15281 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
15282 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
15283 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
15284 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
15285 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
15286 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
15287 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
15288 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
15289 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
15290 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
15291 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
15292 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
15293 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
15294 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
15295 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
15296 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
15297 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
15298 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
15299 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
15300 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
15301 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
15302 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
15303 .ilen = 496,
15304 .result = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
15305 "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
15306 "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
15307 "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
15308 "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
15309 "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
15310 "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
15311 "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
15312 "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
15313 "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
15314 "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
15315 "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
15316 "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
15317 "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
15318 "\x41\x72\x51\x97\x1D\x07\x49\xA0"
15319 "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
15320 "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
15321 "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
15322 "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
15323 "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
15324 "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
15325 "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
15326 "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
15327 "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
15328 "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
15329 "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
15330 "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
15331 "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
15332 "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
15333 "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
15334 "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
15335 "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
15336 "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
15337 "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
15338 "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
15339 "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
15340 "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
15341 "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
15342 "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
15343 "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
15344 "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
15345 "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
15346 "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
15347 "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
15348 "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
15349 "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
15350 "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
15351 "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
15352 "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
15353 "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
15354 "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
15355 "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
15356 "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
15357 "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
15358 "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
15359 "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
15360 "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
15361 "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
15362 "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
15363 "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
15364 "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
15365 "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
15366 .rlen = 496,
15367 .also_non_np = 1,
15368 .np = 3,
15369 .tap = { 496 - 20, 4, 16 },
15373 static struct cipher_testvec aes_dec_tv_template[] = {
15374 { /* From FIPS-197 */
15375 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15376 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15377 .klen = 16,
15378 .input = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
15379 "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
15380 .ilen = 16,
15381 .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
15382 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15383 .rlen = 16,
15384 }, {
15385 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15386 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15387 "\x10\x11\x12\x13\x14\x15\x16\x17",
15388 .klen = 24,
15389 .input = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
15390 "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
15391 .ilen = 16,
15392 .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
15393 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15394 .rlen = 16,
15395 }, {
15396 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15397 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15398 "\x10\x11\x12\x13\x14\x15\x16\x17"
15399 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
15400 .klen = 32,
15401 .input = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
15402 "\xea\xfc\x49\x90\x4b\x49\x60\x89",
15403 .ilen = 16,
15404 .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
15405 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15406 .rlen = 16,
15407 }, { /* Generated with Crypto++ */
15408 .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
15409 "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
15410 "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
15411 "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
15412 .klen = 32,
15413 .input = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
15414 "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
15415 "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
15416 "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
15417 "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
15418 "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
15419 "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
15420 "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
15421 "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
15422 "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
15423 "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
15424 "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
15425 "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
15426 "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
15427 "\x41\x72\x51\x97\x1D\x07\x49\xA0"
15428 "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
15429 "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
15430 "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
15431 "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
15432 "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
15433 "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
15434 "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
15435 "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
15436 "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
15437 "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
15438 "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
15439 "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
15440 "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
15441 "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
15442 "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
15443 "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
15444 "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
15445 "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
15446 "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
15447 "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
15448 "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
15449 "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
15450 "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
15451 "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
15452 "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
15453 "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
15454 "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
15455 "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
15456 "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
15457 "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
15458 "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
15459 "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
15460 "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
15461 "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
15462 "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
15463 "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
15464 "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
15465 "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
15466 "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
15467 "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
15468 "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
15469 "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
15470 "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
15471 "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
15472 "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
15473 "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
15474 "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
15475 .ilen = 496,
15476 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
15477 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15478 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15479 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15480 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15481 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15482 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15483 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15484 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15485 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15486 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15487 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15488 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15489 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15490 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15491 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15492 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15493 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15494 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15495 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15496 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15497 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15498 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15499 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15500 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15501 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15502 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15503 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15504 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15505 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15506 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15507 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15508 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15509 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15510 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15511 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
15512 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
15513 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
15514 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
15515 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
15516 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
15517 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
15518 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
15519 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
15520 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
15521 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
15522 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
15523 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
15524 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
15525 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
15526 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
15527 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
15528 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
15529 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
15530 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
15531 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
15532 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
15533 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
15534 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
15535 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
15536 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
15537 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
15538 .rlen = 496,
15539 .also_non_np = 1,
15540 .np = 3,
15541 .tap = { 496 - 20, 4, 16 },
15545 static struct cipher_testvec aes_cbc_enc_tv_template[] = {
15546 { /* From RFC 3602 */
15547 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
15548 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
15549 .klen = 16,
15550 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
15551 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
15552 .input = "Single block msg",
15553 .ilen = 16,
15554 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
15555 "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
15556 .rlen = 16,
15557 .also_non_np = 1,
15558 .np = 8,
15559 .tap = { 3, 2, 3, 2, 3, 1, 1, 1 },
15560 }, {
15561 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
15562 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
15563 .klen = 16,
15564 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
15565 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
15566 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
15567 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15568 "\x10\x11\x12\x13\x14\x15\x16\x17"
15569 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
15570 .ilen = 32,
15571 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
15572 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
15573 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
15574 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
15575 .rlen = 32,
15576 }, { /* From NIST SP800-38A */
15577 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
15578 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
15579 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
15580 .klen = 24,
15581 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
15582 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15583 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15584 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15585 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15586 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15587 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15588 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15589 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15590 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15591 .ilen = 64,
15592 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
15593 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
15594 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
15595 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
15596 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
15597 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
15598 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
15599 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
15600 .rlen = 64,
15601 }, {
15602 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
15603 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
15604 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
15605 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
15606 .klen = 32,
15607 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
15608 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15609 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15610 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15611 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15612 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15613 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15614 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15615 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15616 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15617 .ilen = 64,
15618 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
15619 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
15620 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
15621 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
15622 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
15623 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
15624 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
15625 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
15626 .rlen = 64,
15627 }, { /* Generated with Crypto++ */
15628 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
15629 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
15630 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
15631 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
15632 .klen = 32,
15633 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
15634 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
15635 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
15636 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15637 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15638 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15639 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15640 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15641 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15642 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15643 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15644 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15645 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15646 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15647 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15648 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15649 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15650 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15651 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15652 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15653 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15654 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15655 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15656 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15657 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15658 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15659 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15660 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15661 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15662 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15663 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15664 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15665 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15666 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15667 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15668 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15669 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15670 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
15671 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
15672 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
15673 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
15674 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
15675 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
15676 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
15677 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
15678 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
15679 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
15680 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
15681 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
15682 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
15683 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
15684 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
15685 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
15686 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
15687 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
15688 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
15689 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
15690 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
15691 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
15692 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
15693 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
15694 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
15695 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
15696 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
15697 .ilen = 496,
15698 .result = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
15699 "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
15700 "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
15701 "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
15702 "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
15703 "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
15704 "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
15705 "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
15706 "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
15707 "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
15708 "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
15709 "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
15710 "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
15711 "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
15712 "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
15713 "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
15714 "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
15715 "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
15716 "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
15717 "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
15718 "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
15719 "\x16\x24\x02\x07\x48\xAE\xF2\x31"
15720 "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
15721 "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
15722 "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
15723 "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
15724 "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
15725 "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
15726 "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
15727 "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
15728 "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
15729 "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
15730 "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
15731 "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
15732 "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
15733 "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
15734 "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
15735 "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
15736 "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
15737 "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
15738 "\x22\x39\x7B\x16\x03\x01\x69\xAF"
15739 "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
15740 "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
15741 "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
15742 "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
15743 "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
15744 "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
15745 "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
15746 "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
15747 "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
15748 "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
15749 "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
15750 "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
15751 "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
15752 "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
15753 "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
15754 "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
15755 "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
15756 "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
15757 "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
15758 "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
15759 "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
15760 .rlen = 496,
15761 .also_non_np = 1,
15762 .np = 3,
15763 .tap = { 496 - 20, 4, 16 },
15767 static struct cipher_testvec aes_cbc_dec_tv_template[] = {
15768 { /* From RFC 3602 */
15769 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
15770 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
15771 .klen = 16,
15772 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
15773 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
15774 .input = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
15775 "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
15776 .ilen = 16,
15777 .result = "Single block msg",
15778 .rlen = 16,
15779 .also_non_np = 1,
15780 .np = 8,
15781 .tap = { 3, 2, 3, 2, 3, 1, 1, 1 },
15782 }, {
15783 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
15784 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
15785 .klen = 16,
15786 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
15787 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
15788 .input = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
15789 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
15790 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
15791 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
15792 .ilen = 32,
15793 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
15794 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15795 "\x10\x11\x12\x13\x14\x15\x16\x17"
15796 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
15797 .rlen = 32,
15798 }, { /* From NIST SP800-38A */
15799 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
15800 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
15801 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
15802 .klen = 24,
15803 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
15804 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15805 .input = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
15806 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
15807 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
15808 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
15809 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
15810 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
15811 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
15812 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
15813 .ilen = 64,
15814 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15815 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15816 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15817 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15818 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15819 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15820 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15821 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15822 .rlen = 64,
15823 }, {
15824 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
15825 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
15826 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
15827 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
15828 .klen = 32,
15829 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
15830 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15831 .input = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
15832 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
15833 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
15834 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
15835 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
15836 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
15837 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
15838 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
15839 .ilen = 64,
15840 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15841 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15842 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15843 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15844 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15845 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15846 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15847 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15848 .rlen = 64,
15849 }, { /* Generated with Crypto++ */
15850 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
15851 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
15852 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
15853 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
15854 .klen = 32,
15855 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
15856 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
15857 .input = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
15858 "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
15859 "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
15860 "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
15861 "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
15862 "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
15863 "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
15864 "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
15865 "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
15866 "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
15867 "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
15868 "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
15869 "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
15870 "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
15871 "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
15872 "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
15873 "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
15874 "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
15875 "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
15876 "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
15877 "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
15878 "\x16\x24\x02\x07\x48\xAE\xF2\x31"
15879 "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
15880 "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
15881 "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
15882 "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
15883 "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
15884 "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
15885 "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
15886 "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
15887 "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
15888 "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
15889 "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
15890 "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
15891 "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
15892 "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
15893 "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
15894 "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
15895 "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
15896 "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
15897 "\x22\x39\x7B\x16\x03\x01\x69\xAF"
15898 "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
15899 "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
15900 "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
15901 "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
15902 "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
15903 "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
15904 "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
15905 "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
15906 "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
15907 "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
15908 "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
15909 "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
15910 "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
15911 "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
15912 "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
15913 "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
15914 "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
15915 "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
15916 "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
15917 "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
15918 "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
15919 .ilen = 496,
15920 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
15921 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15922 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15923 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15924 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15925 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15926 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15927 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15928 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15929 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15930 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15931 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15932 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15933 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15934 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15935 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15936 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15937 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15938 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15939 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15940 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15941 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15942 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15943 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15944 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15945 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15946 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15947 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15948 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15949 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15950 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15951 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15952 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15953 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15954 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15955 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
15956 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
15957 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
15958 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
15959 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
15960 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
15961 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
15962 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
15963 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
15964 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
15965 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
15966 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
15967 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
15968 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
15969 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
15970 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
15971 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
15972 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
15973 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
15974 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
15975 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
15976 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
15977 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
15978 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
15979 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
15980 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
15981 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
15982 .rlen = 496,
15983 .also_non_np = 1,
15984 .np = 3,
15985 .tap = { 496 - 20, 4, 16 },
15989 static struct aead_testvec hmac_md5_ecb_cipher_null_enc_tv_template[] = {
15990 { /* Input data from RFC 2410 Case 1 */
15991 #ifdef __LITTLE_ENDIAN
15992 .key = "\x08\x00" /* rta length */
15993 "\x01\x00" /* rta type */
15994 #else
15995 .key = "\x00\x08" /* rta length */
15996 "\x00\x01" /* rta type */
15997 #endif
15998 "\x00\x00\x00\x00" /* enc key length */
15999 "\x00\x00\x00\x00\x00\x00\x00\x00"
16000 "\x00\x00\x00\x00\x00\x00\x00\x00",
16001 .klen = 8 + 16 + 0,
16002 .iv = "",
16003 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
16004 .ilen = 8,
16005 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
16006 "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
16007 "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
16008 .rlen = 8 + 16,
16009 }, { /* Input data from RFC 2410 Case 2 */
16010 #ifdef __LITTLE_ENDIAN
16011 .key = "\x08\x00" /* rta length */
16012 "\x01\x00" /* rta type */
16013 #else
16014 .key = "\x00\x08" /* rta length */
16015 "\x00\x01" /* rta type */
16016 #endif
16017 "\x00\x00\x00\x00" /* enc key length */
16018 "\x00\x00\x00\x00\x00\x00\x00\x00"
16019 "\x00\x00\x00\x00\x00\x00\x00\x00",
16020 .klen = 8 + 16 + 0,
16021 .iv = "",
16022 .input = "Network Security People Have A Strange Sense Of Humor",
16023 .ilen = 53,
16024 .result = "Network Security People Have A Strange Sense Of Humor"
16025 "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
16026 "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
16027 .rlen = 53 + 16,
16031 static struct aead_testvec hmac_md5_ecb_cipher_null_dec_tv_template[] = {
16033 #ifdef __LITTLE_ENDIAN
16034 .key = "\x08\x00" /* rta length */
16035 "\x01\x00" /* rta type */
16036 #else
16037 .key = "\x00\x08" /* rta length */
16038 "\x00\x01" /* rta type */
16039 #endif
16040 "\x00\x00\x00\x00" /* enc key length */
16041 "\x00\x00\x00\x00\x00\x00\x00\x00"
16042 "\x00\x00\x00\x00\x00\x00\x00\x00",
16043 .klen = 8 + 16 + 0,
16044 .iv = "",
16045 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
16046 "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
16047 "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
16048 .ilen = 8 + 16,
16049 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
16050 .rlen = 8,
16051 }, {
16052 #ifdef __LITTLE_ENDIAN
16053 .key = "\x08\x00" /* rta length */
16054 "\x01\x00" /* rta type */
16055 #else
16056 .key = "\x00\x08" /* rta length */
16057 "\x00\x01" /* rta type */
16058 #endif
16059 "\x00\x00\x00\x00" /* enc key length */
16060 "\x00\x00\x00\x00\x00\x00\x00\x00"
16061 "\x00\x00\x00\x00\x00\x00\x00\x00",
16062 .klen = 8 + 16 + 0,
16063 .iv = "",
16064 .input = "Network Security People Have A Strange Sense Of Humor"
16065 "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
16066 "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
16067 .ilen = 53 + 16,
16068 .result = "Network Security People Have A Strange Sense Of Humor",
16069 .rlen = 53,
16073 static struct aead_testvec hmac_sha1_aes_cbc_enc_tv_temp[] = {
16074 { /* RFC 3602 Case 1 */
16075 #ifdef __LITTLE_ENDIAN
16076 .key = "\x08\x00" /* rta length */
16077 "\x01\x00" /* rta type */
16078 #else
16079 .key = "\x00\x08" /* rta length */
16080 "\x00\x01" /* rta type */
16081 #endif
16082 "\x00\x00\x00\x10" /* enc key length */
16083 "\x00\x00\x00\x00\x00\x00\x00\x00"
16084 "\x00\x00\x00\x00\x00\x00\x00\x00"
16085 "\x00\x00\x00\x00"
16086 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
16087 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
16088 .klen = 8 + 20 + 16,
16089 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16090 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16091 .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16092 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16093 .alen = 16,
16094 .input = "Single block msg",
16095 .ilen = 16,
16096 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
16097 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
16098 "\x1b\x13\xcb\xaf\x89\x5e\xe1\x2c"
16099 "\x13\xc5\x2e\xa3\xcc\xed\xdc\xb5"
16100 "\x03\x71\xa2\x06",
16101 .rlen = 16 + 20,
16102 }, { /* RFC 3602 Case 2 */
16103 #ifdef __LITTLE_ENDIAN
16104 .key = "\x08\x00" /* rta length */
16105 "\x01\x00" /* rta type */
16106 #else
16107 .key = "\x00\x08" /* rta length */
16108 "\x00\x01" /* rta type */
16109 #endif
16110 "\x00\x00\x00\x10" /* enc key length */
16111 "\x20\x21\x22\x23\x24\x25\x26\x27"
16112 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16113 "\x30\x31\x32\x33"
16114 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
16115 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
16116 .klen = 8 + 20 + 16,
16117 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16118 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16119 .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16120 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16121 .alen = 16,
16122 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
16123 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16124 "\x10\x11\x12\x13\x14\x15\x16\x17"
16125 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
16126 .ilen = 32,
16127 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
16128 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
16129 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
16130 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
16131 "\xad\x9b\x4c\x5c\x85\xe1\xda\xae"
16132 "\xee\x81\x4e\xd7\xdb\x74\xcf\x58"
16133 "\x65\x39\xf8\xde",
16134 .rlen = 32 + 20,
16135 }, { /* RFC 3602 Case 3 */
16136 #ifdef __LITTLE_ENDIAN
16137 .key = "\x08\x00" /* rta length */
16138 "\x01\x00" /* rta type */
16139 #else
16140 .key = "\x00\x08" /* rta length */
16141 "\x00\x01" /* rta type */
16142 #endif
16143 "\x00\x00\x00\x10" /* enc key length */
16144 "\x11\x22\x33\x44\x55\x66\x77\x88"
16145 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16146 "\x22\x33\x44\x55"
16147 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
16148 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
16149 .klen = 8 + 20 + 16,
16150 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16151 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16152 .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16153 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16154 .alen = 16,
16155 .input = "This is a 48-byte message (exactly 3 AES blocks)",
16156 .ilen = 48,
16157 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
16158 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
16159 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
16160 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
16161 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
16162 "\x85\x79\x69\x5d\x83\xba\x26\x84"
16163 "\xc2\xec\x0c\xf8\x7f\x05\xba\xca"
16164 "\xff\xee\x4c\xd0\x93\xe6\x36\x7f"
16165 "\x8d\x62\xf2\x1e",
16166 .rlen = 48 + 20,
16167 }, { /* RFC 3602 Case 4 */
16168 #ifdef __LITTLE_ENDIAN
16169 .key = "\x08\x00" /* rta length */
16170 "\x01\x00" /* rta type */
16171 #else
16172 .key = "\x00\x08" /* rta length */
16173 "\x00\x01" /* rta type */
16174 #endif
16175 "\x00\x00\x00\x10" /* enc key length */
16176 "\x11\x22\x33\x44\x55\x66\x77\x88"
16177 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16178 "\x22\x33\x44\x55"
16179 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
16180 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
16181 .klen = 8 + 20 + 16,
16182 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16183 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16184 .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16185 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16186 .alen = 16,
16187 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16188 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16189 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16190 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16191 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16192 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16193 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16194 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
16195 .ilen = 64,
16196 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
16197 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
16198 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
16199 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
16200 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
16201 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
16202 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
16203 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
16204 "\x1c\x45\x57\xa9\x56\xcb\xa9\x2d"
16205 "\x18\xac\xf1\xc7\x5d\xd1\xcd\x0d"
16206 "\x1d\xbe\xc6\xe9",
16207 .rlen = 64 + 20,
16208 }, { /* RFC 3602 Case 5 */
16209 #ifdef __LITTLE_ENDIAN
16210 .key = "\x08\x00" /* rta length */
16211 "\x01\x00" /* rta type */
16212 #else
16213 .key = "\x00\x08" /* rta length */
16214 "\x00\x01" /* rta type */
16215 #endif
16216 "\x00\x00\x00\x10" /* enc key length */
16217 "\x11\x22\x33\x44\x55\x66\x77\x88"
16218 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16219 "\x22\x33\x44\x55"
16220 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
16221 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
16222 .klen = 8 + 20 + 16,
16223 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16224 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
16225 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
16226 "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16227 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
16228 .alen = 24,
16229 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
16230 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
16231 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16232 "\x10\x11\x12\x13\x14\x15\x16\x17"
16233 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16234 "\x20\x21\x22\x23\x24\x25\x26\x27"
16235 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16236 "\x30\x31\x32\x33\x34\x35\x36\x37"
16237 "\x01\x02\x03\x04\x05\x06\x07\x08"
16238 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
16239 .ilen = 80,
16240 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
16241 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
16242 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
16243 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
16244 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
16245 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
16246 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
16247 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
16248 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
16249 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
16250 "\x58\xc6\x84\x75\xe4\xe9\x6b\x0c"
16251 "\xe1\xc5\x0b\x73\x4d\x82\x55\xa8"
16252 "\x85\xe1\x59\xf7",
16253 .rlen = 80 + 20,
16254 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
16255 #ifdef __LITTLE_ENDIAN
16256 .key = "\x08\x00" /* rta length */
16257 "\x01\x00" /* rta type */
16258 #else
16259 .key = "\x00\x08" /* rta length */
16260 "\x00\x01" /* rta type */
16261 #endif
16262 "\x00\x00\x00\x18" /* enc key length */
16263 "\x11\x22\x33\x44\x55\x66\x77\x88"
16264 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16265 "\x22\x33\x44\x55"
16266 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
16267 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
16268 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
16269 .klen = 8 + 20 + 24,
16270 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
16271 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16272 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
16273 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16274 .alen = 16,
16275 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
16276 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16277 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
16278 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
16279 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
16280 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
16281 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
16282 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
16283 .ilen = 64,
16284 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
16285 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
16286 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
16287 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
16288 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
16289 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
16290 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
16291 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
16292 "\x73\xe3\x19\x3f\x8b\xc9\xc6\xf4"
16293 "\x5a\xf1\x5b\xa8\x98\x07\xc5\x36"
16294 "\x47\x4c\xfc\x36",
16295 .rlen = 64 + 20,
16296 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
16297 #ifdef __LITTLE_ENDIAN
16298 .key = "\x08\x00" /* rta length */
16299 "\x01\x00" /* rta type */
16300 #else
16301 .key = "\x00\x08" /* rta length */
16302 "\x00\x01" /* rta type */
16303 #endif
16304 "\x00\x00\x00\x20" /* enc key length */
16305 "\x11\x22\x33\x44\x55\x66\x77\x88"
16306 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16307 "\x22\x33\x44\x55"
16308 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
16309 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
16310 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
16311 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
16312 .klen = 8 + 20 + 32,
16313 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
16314 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16315 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
16316 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16317 .alen = 16,
16318 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
16319 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16320 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
16321 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
16322 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
16323 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
16324 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
16325 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
16326 .ilen = 64,
16327 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
16328 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
16329 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
16330 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
16331 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
16332 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
16333 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
16334 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
16335 "\xa3\xe8\x9b\x17\xe3\xf4\x7f\xde"
16336 "\x1b\x9f\xc6\x81\x26\x43\x4a\x87"
16337 "\x51\xee\xd6\x4e",
16338 .rlen = 64 + 20,
16342 static struct aead_testvec hmac_sha1_ecb_cipher_null_enc_tv_temp[] = {
16343 { /* Input data from RFC 2410 Case 1 */
16344 #ifdef __LITTLE_ENDIAN
16345 .key = "\x08\x00" /* rta length */
16346 "\x01\x00" /* rta type */
16347 #else
16348 .key = "\x00\x08" /* rta length */
16349 "\x00\x01" /* rta type */
16350 #endif
16351 "\x00\x00\x00\x00" /* enc key length */
16352 "\x00\x00\x00\x00\x00\x00\x00\x00"
16353 "\x00\x00\x00\x00\x00\x00\x00\x00"
16354 "\x00\x00\x00\x00",
16355 .klen = 8 + 20 + 0,
16356 .iv = "",
16357 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
16358 .ilen = 8,
16359 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
16360 "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
16361 "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
16362 "\x8c\x5e\xe4\x08",
16363 .rlen = 8 + 20,
16364 }, { /* Input data from RFC 2410 Case 2 */
16365 #ifdef __LITTLE_ENDIAN
16366 .key = "\x08\x00" /* rta length */
16367 "\x01\x00" /* rta type */
16368 #else
16369 .key = "\x00\x08" /* rta length */
16370 "\x00\x01" /* rta type */
16371 #endif
16372 "\x00\x00\x00\x00" /* enc key length */
16373 "\x00\x00\x00\x00\x00\x00\x00\x00"
16374 "\x00\x00\x00\x00\x00\x00\x00\x00"
16375 "\x00\x00\x00\x00",
16376 .klen = 8 + 20 + 0,
16377 .iv = "",
16378 .input = "Network Security People Have A Strange Sense Of Humor",
16379 .ilen = 53,
16380 .result = "Network Security People Have A Strange Sense Of Humor"
16381 "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
16382 "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
16383 "\x91\x56\xe4\xd6",
16384 .rlen = 53 + 20,
16388 static struct aead_testvec hmac_sha1_ecb_cipher_null_dec_tv_temp[] = {
16390 #ifdef __LITTLE_ENDIAN
16391 .key = "\x08\x00" /* rta length */
16392 "\x01\x00" /* rta type */
16393 #else
16394 .key = "\x00\x08" /* rta length */
16395 "\x00\x01" /* rta type */
16396 #endif
16397 "\x00\x00\x00\x00" /* enc key length */
16398 "\x00\x00\x00\x00\x00\x00\x00\x00"
16399 "\x00\x00\x00\x00\x00\x00\x00\x00"
16400 "\x00\x00\x00\x00",
16401 .klen = 8 + 20 + 0,
16402 .iv = "",
16403 .input = "\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 .ilen = 8 + 20,
16408 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
16409 .rlen = 8,
16410 }, {
16411 #ifdef __LITTLE_ENDIAN
16412 .key = "\x08\x00" /* rta length */
16413 "\x01\x00" /* rta type */
16414 #else
16415 .key = "\x00\x08" /* rta length */
16416 "\x00\x01" /* rta type */
16417 #endif
16418 "\x00\x00\x00\x00" /* enc key length */
16419 "\x00\x00\x00\x00\x00\x00\x00\x00"
16420 "\x00\x00\x00\x00\x00\x00\x00\x00"
16421 "\x00\x00\x00\x00",
16422 .klen = 8 + 20 + 0,
16423 .iv = "",
16424 .input = "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 .ilen = 53 + 20,
16429 .result = "Network Security People Have A Strange Sense Of Humor",
16430 .rlen = 53,
16434 static struct aead_testvec hmac_sha256_aes_cbc_enc_tv_temp[] = {
16435 { /* RFC 3602 Case 1 */
16436 #ifdef __LITTLE_ENDIAN
16437 .key = "\x08\x00" /* rta length */
16438 "\x01\x00" /* rta type */
16439 #else
16440 .key = "\x00\x08" /* rta length */
16441 "\x00\x01" /* rta type */
16442 #endif
16443 "\x00\x00\x00\x10" /* enc key length */
16444 "\x00\x00\x00\x00\x00\x00\x00\x00"
16445 "\x00\x00\x00\x00\x00\x00\x00\x00"
16446 "\x00\x00\x00\x00\x00\x00\x00\x00"
16447 "\x00\x00\x00\x00\x00\x00\x00\x00"
16448 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
16449 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
16450 .klen = 8 + 32 + 16,
16451 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16452 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16453 .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16454 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16455 .alen = 16,
16456 .input = "Single block msg",
16457 .ilen = 16,
16458 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
16459 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
16460 "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc"
16461 "\x38\x06\x38\x51\xb4\xb8\xf3\x5b"
16462 "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5"
16463 "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5",
16464 .rlen = 16 + 32,
16465 }, { /* RFC 3602 Case 2 */
16466 #ifdef __LITTLE_ENDIAN
16467 .key = "\x08\x00" /* rta length */
16468 "\x01\x00" /* rta type */
16469 #else
16470 .key = "\x00\x08" /* rta length */
16471 "\x00\x01" /* rta type */
16472 #endif
16473 "\x00\x00\x00\x10" /* enc key length */
16474 "\x20\x21\x22\x23\x24\x25\x26\x27"
16475 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16476 "\x30\x31\x32\x33\x34\x35\x36\x37"
16477 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
16478 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
16479 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
16480 .klen = 8 + 32 + 16,
16481 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16482 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16483 .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16484 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16485 .alen = 16,
16486 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
16487 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16488 "\x10\x11\x12\x13\x14\x15\x16\x17"
16489 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
16490 .ilen = 32,
16491 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
16492 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
16493 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
16494 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
16495 "\xf5\x33\x53\xf3\x68\x85\x2a\x99"
16496 "\x0e\x06\x58\x8f\xba\xf6\x06\xda"
16497 "\x49\x69\x0d\x5b\xd4\x36\x06\x62"
16498 "\x35\x5e\x54\x58\x53\x4d\xdf\xbf",
16499 .rlen = 32 + 32,
16500 }, { /* RFC 3602 Case 3 */
16501 #ifdef __LITTLE_ENDIAN
16502 .key = "\x08\x00" /* rta length */
16503 "\x01\x00" /* rta type */
16504 #else
16505 .key = "\x00\x08" /* rta length */
16506 "\x00\x01" /* rta type */
16507 #endif
16508 "\x00\x00\x00\x10" /* enc key length */
16509 "\x11\x22\x33\x44\x55\x66\x77\x88"
16510 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16511 "\x22\x33\x44\x55\x66\x77\x88\x99"
16512 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16513 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
16514 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
16515 .klen = 8 + 32 + 16,
16516 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16517 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16518 .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16519 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16520 .alen = 16,
16521 .input = "This is a 48-byte message (exactly 3 AES blocks)",
16522 .ilen = 48,
16523 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
16524 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
16525 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
16526 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
16527 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
16528 "\x85\x79\x69\x5d\x83\xba\x26\x84"
16529 "\x68\xb9\x3e\x90\x38\xa0\x88\x01"
16530 "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d"
16531 "\x24\x78\xfb\xbe\x02\xe0\x4f\x40"
16532 "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a",
16533 .rlen = 48 + 32,
16534 }, { /* RFC 3602 Case 4 */
16535 #ifdef __LITTLE_ENDIAN
16536 .key = "\x08\x00" /* rta length */
16537 "\x01\x00" /* rta type */
16538 #else
16539 .key = "\x00\x08" /* rta length */
16540 "\x00\x01" /* rta type */
16541 #endif
16542 "\x00\x00\x00\x10" /* enc key length */
16543 "\x11\x22\x33\x44\x55\x66\x77\x88"
16544 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16545 "\x22\x33\x44\x55\x66\x77\x88\x99"
16546 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16547 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
16548 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
16549 .klen = 8 + 32 + 16,
16550 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16551 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16552 .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16553 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16554 .alen = 16,
16555 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16556 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16557 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16558 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16559 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16560 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16561 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16562 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
16563 .ilen = 64,
16564 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
16565 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
16566 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
16567 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
16568 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
16569 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
16570 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
16571 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
16572 "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2"
16573 "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8"
16574 "\x3f\x54\xe2\x49\x39\xe3\x71\x25"
16575 "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64",
16576 .rlen = 64 + 32,
16577 }, { /* RFC 3602 Case 5 */
16578 #ifdef __LITTLE_ENDIAN
16579 .key = "\x08\x00" /* rta length */
16580 "\x01\x00" /* rta type */
16581 #else
16582 .key = "\x00\x08" /* rta length */
16583 "\x00\x01" /* rta type */
16584 #endif
16585 "\x00\x00\x00\x10" /* enc key length */
16586 "\x11\x22\x33\x44\x55\x66\x77\x88"
16587 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16588 "\x22\x33\x44\x55\x66\x77\x88\x99"
16589 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16590 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
16591 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
16592 .klen = 8 + 32 + 16,
16593 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16594 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
16595 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
16596 "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16597 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
16598 .alen = 24,
16599 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
16600 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
16601 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16602 "\x10\x11\x12\x13\x14\x15\x16\x17"
16603 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16604 "\x20\x21\x22\x23\x24\x25\x26\x27"
16605 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16606 "\x30\x31\x32\x33\x34\x35\x36\x37"
16607 "\x01\x02\x03\x04\x05\x06\x07\x08"
16608 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
16609 .ilen = 80,
16610 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
16611 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
16612 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
16613 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
16614 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
16615 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
16616 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
16617 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
16618 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
16619 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
16620 "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8"
16621 "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7"
16622 "\x73\xc3\x46\x20\x2c\xb1\xef\x68"
16623 "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf",
16624 .rlen = 80 + 32,
16625 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
16626 #ifdef __LITTLE_ENDIAN
16627 .key = "\x08\x00" /* rta length */
16628 "\x01\x00" /* rta type */
16629 #else
16630 .key = "\x00\x08" /* rta length */
16631 "\x00\x01" /* rta type */
16632 #endif
16633 "\x00\x00\x00\x18" /* enc key length */
16634 "\x11\x22\x33\x44\x55\x66\x77\x88"
16635 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16636 "\x22\x33\x44\x55\x66\x77\x88\x99"
16637 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16638 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
16639 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
16640 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
16641 .klen = 8 + 32 + 24,
16642 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
16643 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16644 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
16645 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16646 .alen = 16,
16647 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
16648 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16649 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
16650 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
16651 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
16652 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
16653 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
16654 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
16655 .ilen = 64,
16656 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
16657 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
16658 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
16659 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
16660 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
16661 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
16662 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
16663 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
16664 "\x2f\xee\x5f\xdb\x66\xfe\x79\x09"
16665 "\x61\x81\x31\xea\x5b\x3d\x8e\xfb"
16666 "\xca\x71\x85\x93\xf7\x85\x55\x8b"
16667 "\x7a\xe4\x94\xca\x8b\xba\x19\x33",
16668 .rlen = 64 + 32,
16669 }, { /* NIST SP800-38A F.2.5 CBC-AES256.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\x20" /* 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 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
16683 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
16684 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
16685 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
16686 .klen = 8 + 32 + 32,
16687 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
16688 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16689 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
16690 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16691 .alen = 16,
16692 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
16693 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16694 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
16695 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
16696 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
16697 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
16698 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
16699 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
16700 .ilen = 64,
16701 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
16702 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
16703 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
16704 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
16705 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
16706 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
16707 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
16708 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
16709 "\x24\x29\xed\xc2\x31\x49\xdb\xb1"
16710 "\x8f\x74\xbd\x17\x92\x03\xbe\x8f"
16711 "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0"
16712 "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f",
16713 .rlen = 64 + 32,
16717 static struct aead_testvec hmac_sha512_aes_cbc_enc_tv_temp[] = {
16718 { /* RFC 3602 Case 1 */
16719 #ifdef __LITTLE_ENDIAN
16720 .key = "\x08\x00" /* rta length */
16721 "\x01\x00" /* rta type */
16722 #else
16723 .key = "\x00\x08" /* rta length */
16724 "\x00\x01" /* rta type */
16725 #endif
16726 "\x00\x00\x00\x10" /* enc key length */
16727 "\x00\x00\x00\x00\x00\x00\x00\x00"
16728 "\x00\x00\x00\x00\x00\x00\x00\x00"
16729 "\x00\x00\x00\x00\x00\x00\x00\x00"
16730 "\x00\x00\x00\x00\x00\x00\x00\x00"
16731 "\x00\x00\x00\x00\x00\x00\x00\x00"
16732 "\x00\x00\x00\x00\x00\x00\x00\x00"
16733 "\x00\x00\x00\x00\x00\x00\x00\x00"
16734 "\x00\x00\x00\x00\x00\x00\x00\x00"
16735 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
16736 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
16737 .klen = 8 + 64 + 16,
16738 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16739 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16740 .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16741 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16742 .alen = 16,
16743 .input = "Single block msg",
16744 .ilen = 16,
16745 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
16746 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
16747 "\x3f\xdc\xad\x90\x03\x63\x5e\x68"
16748 "\xc3\x13\xdd\xa4\x5c\x4d\x54\xa7"
16749 "\x19\x6e\x03\x75\x2b\xa1\x62\xce"
16750 "\xe0\xc6\x96\x75\xb2\x14\xca\x96"
16751 "\xec\xbd\x50\x08\x07\x64\x1a\x49"
16752 "\xe8\x9a\x7c\x06\x3d\xcb\xff\xb2"
16753 "\xfa\x20\x89\xdd\x9c\xac\x9e\x16"
16754 "\x18\x8a\xa0\x6d\x01\x6c\xa3\x3a",
16755 .rlen = 16 + 64,
16756 }, { /* RFC 3602 Case 2 */
16757 #ifdef __LITTLE_ENDIAN
16758 .key = "\x08\x00" /* rta length */
16759 "\x01\x00" /* rta type */
16760 #else
16761 .key = "\x00\x08" /* rta length */
16762 "\x00\x01" /* rta type */
16763 #endif
16764 "\x00\x00\x00\x10" /* enc key length */
16765 "\x20\x21\x22\x23\x24\x25\x26\x27"
16766 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16767 "\x30\x31\x32\x33\x34\x35\x36\x37"
16768 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
16769 "\x40\x41\x42\x43\x44\x45\x46\x47"
16770 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
16771 "\x50\x51\x52\x53\x54\x55\x56\x57"
16772 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
16773 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
16774 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
16775 .klen = 8 + 64 + 16,
16776 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16777 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16778 .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16779 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16780 .alen = 16,
16781 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
16782 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16783 "\x10\x11\x12\x13\x14\x15\x16\x17"
16784 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
16785 .ilen = 32,
16786 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
16787 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
16788 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
16789 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
16790 "\xda\xb2\x0c\xb2\x26\xc4\xd5\xef"
16791 "\x60\x38\xa4\x5e\x9a\x8c\x1b\x41"
16792 "\x03\x9f\xc4\x64\x7f\x01\x42\x9b"
16793 "\x0e\x1b\xea\xef\xbc\x88\x19\x5e"
16794 "\x31\x7e\xc2\x95\xfc\x09\x32\x0a"
16795 "\x46\x32\x7c\x41\x9c\x59\x3e\xe9"
16796 "\x8f\x9f\xd4\x31\xd6\x22\xbd\xf8"
16797 "\xf7\x0a\x94\xe5\xa9\xc3\xf6\x9d",
16798 .rlen = 32 + 64,
16799 }, { /* RFC 3602 Case 3 */
16800 #ifdef __LITTLE_ENDIAN
16801 .key = "\x08\x00" /* rta length */
16802 "\x01\x00" /* rta type */
16803 #else
16804 .key = "\x00\x08" /* rta length */
16805 "\x00\x01" /* rta type */
16806 #endif
16807 "\x00\x00\x00\x10" /* enc key length */
16808 "\x11\x22\x33\x44\x55\x66\x77\x88"
16809 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16810 "\x22\x33\x44\x55\x66\x77\x88\x99"
16811 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16812 "\x33\x44\x55\x66\x77\x88\x99\xaa"
16813 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
16814 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
16815 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
16816 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
16817 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
16818 .klen = 8 + 64 + 16,
16819 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16820 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16821 .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16822 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16823 .alen = 16,
16824 .input = "This is a 48-byte message (exactly 3 AES blocks)",
16825 .ilen = 48,
16826 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
16827 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
16828 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
16829 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
16830 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
16831 "\x85\x79\x69\x5d\x83\xba\x26\x84"
16832 "\x64\x19\x17\x5b\x57\xe0\x21\x0f"
16833 "\xca\xdb\xa1\x26\x38\x14\xa2\x69"
16834 "\xdb\x54\x67\x80\xc0\x54\xe0\xfd"
16835 "\x3e\x91\xe7\x91\x7f\x13\x38\x44"
16836 "\xb7\xb1\xd6\xc8\x7d\x48\x8d\x41"
16837 "\x08\xea\x29\x6c\x74\x67\x3f\xb0"
16838 "\xac\x7f\x5c\x1d\xf5\xee\x22\x66"
16839 "\x27\xa6\xb6\x13\xba\xba\xf0\xc2",
16840 .rlen = 48 + 64,
16841 }, { /* RFC 3602 Case 4 */
16842 #ifdef __LITTLE_ENDIAN
16843 .key = "\x08\x00" /* rta length */
16844 "\x01\x00" /* rta type */
16845 #else
16846 .key = "\x00\x08" /* rta length */
16847 "\x00\x01" /* rta type */
16848 #endif
16849 "\x00\x00\x00\x10" /* enc key length */
16850 "\x11\x22\x33\x44\x55\x66\x77\x88"
16851 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16852 "\x22\x33\x44\x55\x66\x77\x88\x99"
16853 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16854 "\x33\x44\x55\x66\x77\x88\x99\xaa"
16855 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
16856 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
16857 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
16858 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
16859 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
16860 .klen = 8 + 64 + 16,
16861 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16862 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16863 .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16864 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16865 .alen = 16,
16866 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16867 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16868 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16869 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16870 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16871 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16872 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16873 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
16874 .ilen = 64,
16875 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
16876 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
16877 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
16878 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
16879 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
16880 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
16881 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
16882 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
16883 "\x82\xcd\x42\x28\x21\x20\x15\xcc"
16884 "\xb7\xb2\x48\x40\xc7\x64\x41\x3a"
16885 "\x61\x32\x82\x85\xcf\x27\xed\xb4"
16886 "\xe4\x68\xa2\xf5\x79\x26\x27\xb2"
16887 "\x51\x67\x6a\xc4\xf0\x66\x55\x50"
16888 "\xbc\x6f\xed\xd5\x8d\xde\x23\x7c"
16889 "\x62\x98\x14\xd7\x2f\x37\x8d\xdf"
16890 "\xf4\x33\x80\xeb\x8e\xb4\xa4\xda",
16891 .rlen = 64 + 64,
16892 }, { /* RFC 3602 Case 5 */
16893 #ifdef __LITTLE_ENDIAN
16894 .key = "\x08\x00" /* rta length */
16895 "\x01\x00" /* rta type */
16896 #else
16897 .key = "\x00\x08" /* rta length */
16898 "\x00\x01" /* rta type */
16899 #endif
16900 "\x00\x00\x00\x10" /* enc key length */
16901 "\x11\x22\x33\x44\x55\x66\x77\x88"
16902 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16903 "\x22\x33\x44\x55\x66\x77\x88\x99"
16904 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16905 "\x33\x44\x55\x66\x77\x88\x99\xaa"
16906 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
16907 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
16908 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
16909 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
16910 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
16911 .klen = 8 + 64 + 16,
16912 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16913 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
16914 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
16915 "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16916 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
16917 .alen = 24,
16918 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
16919 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
16920 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16921 "\x10\x11\x12\x13\x14\x15\x16\x17"
16922 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16923 "\x20\x21\x22\x23\x24\x25\x26\x27"
16924 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16925 "\x30\x31\x32\x33\x34\x35\x36\x37"
16926 "\x01\x02\x03\x04\x05\x06\x07\x08"
16927 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
16928 .ilen = 80,
16929 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
16930 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
16931 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
16932 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
16933 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
16934 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
16935 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
16936 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
16937 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
16938 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
16939 "\x74\x84\x94\xe2\xd7\x7a\xf9\xbf"
16940 "\x00\x8a\xa2\xd5\xb7\xf3\x60\xcf"
16941 "\xa0\x47\xdf\x4e\x09\xf4\xb1\x7f"
16942 "\x14\xd9\x3d\x53\x8e\x12\xb3\x00"
16943 "\x4c\x0a\x4e\x32\x40\x43\x88\xce"
16944 "\x92\x26\xc1\x76\x20\x11\xeb\xba"
16945 "\x62\x4f\x9a\x62\x25\xc3\x75\x80"
16946 "\xb7\x0a\x17\xf5\xd7\x94\xb4\x14",
16947 .rlen = 80 + 64,
16948 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
16949 #ifdef __LITTLE_ENDIAN
16950 .key = "\x08\x00" /* rta length */
16951 "\x01\x00" /* rta type */
16952 #else
16953 .key = "\x00\x08" /* rta length */
16954 "\x00\x01" /* rta type */
16955 #endif
16956 "\x00\x00\x00\x18" /* enc key length */
16957 "\x11\x22\x33\x44\x55\x66\x77\x88"
16958 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16959 "\x22\x33\x44\x55\x66\x77\x88\x99"
16960 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16961 "\x33\x44\x55\x66\x77\x88\x99\xaa"
16962 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
16963 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
16964 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
16965 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
16966 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
16967 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
16968 .klen = 8 + 64 + 24,
16969 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
16970 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16971 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
16972 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16973 .alen = 16,
16974 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
16975 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16976 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
16977 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
16978 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
16979 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
16980 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
16981 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
16982 .ilen = 64,
16983 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
16984 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
16985 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
16986 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
16987 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
16988 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
16989 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
16990 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
16991 "\x77\x4b\x69\x9d\x3a\x0d\xb4\x99"
16992 "\x8f\xc6\x8e\x0e\x72\x58\xe3\x56"
16993 "\xbb\x21\xd2\x7d\x93\x11\x17\x91"
16994 "\xc4\x83\xfd\x0a\xea\x71\xfe\x77"
16995 "\xae\x6f\x0a\xa5\xf0\xcf\xe1\x35"
16996 "\xba\x03\xd5\x32\xfa\x5f\x41\x58"
16997 "\x8d\x43\x98\xa7\x94\x16\x07\x02"
16998 "\x0f\xb6\x81\x50\x28\x95\x2e\x75",
16999 .rlen = 64 + 64,
17000 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
17001 #ifdef __LITTLE_ENDIAN
17002 .key = "\x08\x00" /* rta length */
17003 "\x01\x00" /* rta type */
17004 #else
17005 .key = "\x00\x08" /* rta length */
17006 "\x00\x01" /* rta type */
17007 #endif
17008 "\x00\x00\x00\x20" /* enc key length */
17009 "\x11\x22\x33\x44\x55\x66\x77\x88"
17010 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17011 "\x22\x33\x44\x55\x66\x77\x88\x99"
17012 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17013 "\x33\x44\x55\x66\x77\x88\x99\xaa"
17014 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17015 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
17016 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
17017 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
17018 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
17019 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
17020 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
17021 .klen = 8 + 64 + 32,
17022 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
17023 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
17024 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
17025 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
17026 .alen = 16,
17027 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
17028 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
17029 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
17030 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
17031 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
17032 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
17033 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
17034 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
17035 .ilen = 64,
17036 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
17037 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
17038 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
17039 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
17040 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
17041 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
17042 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
17043 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
17044 "\xb2\x27\x69\x7f\x45\x64\x79\x2b"
17045 "\xb7\xb8\x4c\xd4\x75\x94\x68\x40"
17046 "\x2a\xea\x91\xc7\x3f\x7c\xed\x7b"
17047 "\x95\x2c\x9b\xa8\xf5\xe5\x52\x8d"
17048 "\x6b\xe1\xae\xf1\x74\xfa\x0d\x0c"
17049 "\xe3\x8d\x64\xc3\x8d\xff\x7c\x8c"
17050 "\xdb\xbf\xa0\xb4\x01\xa2\xa8\xa2"
17051 "\x2c\xb1\x62\x2c\x10\xca\xf1\x21",
17052 .rlen = 64 + 64,
17056 #define HMAC_SHA1_DES_CBC_ENC_TEST_VEC 1
17058 static struct aead_testvec hmac_sha1_des_cbc_enc_tv_temp[] = {
17059 { /*Generated with cryptopp*/
17060 #ifdef __LITTLE_ENDIAN
17061 .key = "\x08\x00" /* rta length */
17062 "\x01\x00" /* rta type */
17063 #else
17064 .key = "\x00\x08" /* rta length */
17065 "\x00\x01" /* rta type */
17066 #endif
17067 "\x00\x00\x00\x08" /* enc key length */
17068 "\x11\x22\x33\x44\x55\x66\x77\x88"
17069 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17070 "\x22\x33\x44\x55"
17071 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
17072 .klen = 8 + 20 + 8,
17073 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17074 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17075 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17076 .alen = 16,
17077 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17078 "\x53\x20\x63\x65\x65\x72\x73\x74"
17079 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17080 "\x20\x79\x65\x53\x72\x63\x74\x65"
17081 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17082 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17083 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17084 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17085 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17086 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17087 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17088 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17089 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17090 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17091 "\x63\x65\x65\x72\x73\x74\x54\x20"
17092 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17093 .ilen = 128,
17094 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
17095 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
17096 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
17097 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
17098 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
17099 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
17100 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
17101 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
17102 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
17103 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
17104 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
17105 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
17106 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
17107 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
17108 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
17109 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
17110 "\x95\x16\x20\x09\xf5\x95\x19\xfd"
17111 "\x3c\xc7\xe0\x42\xc0\x14\x69\xfa"
17112 "\x5c\x44\xa9\x37",
17113 .rlen = 128 + 20,
17117 #define HMAC_SHA224_DES_CBC_ENC_TEST_VEC 1
17119 static struct aead_testvec hmac_sha224_des_cbc_enc_tv_temp[] = {
17120 { /*Generated with cryptopp*/
17121 #ifdef __LITTLE_ENDIAN
17122 .key = "\x08\x00" /* rta length */
17123 "\x01\x00" /* rta type */
17124 #else
17125 .key = "\x00\x08" /* rta length */
17126 "\x00\x01" /* rta type */
17127 #endif
17128 "\x00\x00\x00\x08" /* enc key length */
17129 "\x11\x22\x33\x44\x55\x66\x77\x88"
17130 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17131 "\x22\x33\x44\x55\x66\x77\x88\x99"
17132 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
17133 .klen = 8 + 24 + 8,
17134 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17135 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17136 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17137 .alen = 16,
17138 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17139 "\x53\x20\x63\x65\x65\x72\x73\x74"
17140 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17141 "\x20\x79\x65\x53\x72\x63\x74\x65"
17142 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17143 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17144 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17145 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17146 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17147 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17148 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17149 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17150 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17151 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17152 "\x63\x65\x65\x72\x73\x74\x54\x20"
17153 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17154 .ilen = 128,
17155 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
17156 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
17157 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
17158 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
17159 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
17160 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
17161 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
17162 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
17163 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
17164 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
17165 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
17166 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
17167 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
17168 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
17169 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
17170 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
17171 "\x9c\x2d\x7e\xee\x20\x34\x55\x0a"
17172 "\xce\xb5\x4e\x64\x53\xe7\xbf\x91"
17173 "\xab\xd4\xd9\xda\xc9\x12\xae\xf7",
17174 .rlen = 128 + 24,
17178 #define HMAC_SHA256_DES_CBC_ENC_TEST_VEC 1
17180 static struct aead_testvec hmac_sha256_des_cbc_enc_tv_temp[] = {
17181 { /*Generated with cryptopp*/
17182 #ifdef __LITTLE_ENDIAN
17183 .key = "\x08\x00" /* rta length */
17184 "\x01\x00" /* rta type */
17185 #else
17186 .key = "\x00\x08" /* rta length */
17187 "\x00\x01" /* rta type */
17188 #endif
17189 "\x00\x00\x00\x08" /* enc key length */
17190 "\x11\x22\x33\x44\x55\x66\x77\x88"
17191 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17192 "\x22\x33\x44\x55\x66\x77\x88\x99"
17193 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17194 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
17195 .klen = 8 + 32 + 8,
17196 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17197 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17198 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17199 .alen = 16,
17200 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17201 "\x53\x20\x63\x65\x65\x72\x73\x74"
17202 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17203 "\x20\x79\x65\x53\x72\x63\x74\x65"
17204 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17205 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17206 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17207 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17208 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17209 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17210 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17211 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17212 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17213 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17214 "\x63\x65\x65\x72\x73\x74\x54\x20"
17215 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17216 .ilen = 128,
17217 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
17218 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
17219 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
17220 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
17221 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
17222 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
17223 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
17224 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
17225 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
17226 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
17227 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
17228 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
17229 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
17230 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
17231 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
17232 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
17233 "\xc6\x58\xa1\x60\x70\x91\x39\x36"
17234 "\x50\xf6\x5d\xab\x4b\x51\x4e\x5e"
17235 "\xde\x63\xde\x76\x52\xde\x9f\xba"
17236 "\x90\xcf\x15\xf2\xbb\x6e\x84\x00",
17237 .rlen = 128 + 32,
17241 #define HMAC_SHA384_DES_CBC_ENC_TEST_VEC 1
17243 static struct aead_testvec hmac_sha384_des_cbc_enc_tv_temp[] = {
17244 { /*Generated with cryptopp*/
17245 #ifdef __LITTLE_ENDIAN
17246 .key = "\x08\x00" /* rta length */
17247 "\x01\x00" /* rta type */
17248 #else
17249 .key = "\x00\x08" /* rta length */
17250 "\x00\x01" /* rta type */
17251 #endif
17252 "\x00\x00\x00\x08" /* enc key length */
17253 "\x11\x22\x33\x44\x55\x66\x77\x88"
17254 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17255 "\x22\x33\x44\x55\x66\x77\x88\x99"
17256 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17257 "\x33\x44\x55\x66\x77\x88\x99\xaa"
17258 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17259 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
17260 .klen = 8 + 48 + 8,
17261 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17262 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17263 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17264 .alen = 16,
17265 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17266 "\x53\x20\x63\x65\x65\x72\x73\x74"
17267 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17268 "\x20\x79\x65\x53\x72\x63\x74\x65"
17269 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17270 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17271 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17272 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17273 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17274 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17275 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17276 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17277 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17278 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17279 "\x63\x65\x65\x72\x73\x74\x54\x20"
17280 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17281 .ilen = 128,
17282 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
17283 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
17284 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
17285 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
17286 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
17287 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
17288 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
17289 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
17290 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
17291 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
17292 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
17293 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
17294 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
17295 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
17296 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
17297 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
17298 "\xa8\x8e\x9c\x74\x8c\x2b\x99\xa0"
17299 "\xc8\x8c\xef\x25\x07\x83\x11\x3a"
17300 "\x31\x8d\xbe\x3b\x6a\xd7\x96\xfe"
17301 "\x5e\x67\xb5\x74\xe7\xe7\x85\x61"
17302 "\x6a\x95\x26\x75\xcc\x53\x89\xf3"
17303 "\x74\xc9\x2a\x76\x20\xa2\x64\x62",
17304 .rlen = 128 + 48,
17308 #define HMAC_SHA512_DES_CBC_ENC_TEST_VEC 1
17310 static struct aead_testvec hmac_sha512_des_cbc_enc_tv_temp[] = {
17311 { /*Generated with cryptopp*/
17312 #ifdef __LITTLE_ENDIAN
17313 .key = "\x08\x00" /* rta length */
17314 "\x01\x00" /* rta type */
17315 #else
17316 .key = "\x00\x08" /* rta length */
17317 "\x00\x01" /* rta type */
17318 #endif
17319 "\x00\x00\x00\x08" /* enc key length */
17320 "\x11\x22\x33\x44\x55\x66\x77\x88"
17321 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17322 "\x22\x33\x44\x55\x66\x77\x88\x99"
17323 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17324 "\x33\x44\x55\x66\x77\x88\x99\xaa"
17325 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17326 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
17327 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
17328 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
17329 .klen = 8 + 64 + 8,
17330 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17331 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17332 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17333 .alen = 16,
17334 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17335 "\x53\x20\x63\x65\x65\x72\x73\x74"
17336 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17337 "\x20\x79\x65\x53\x72\x63\x74\x65"
17338 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17339 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17340 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17341 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17342 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17343 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17344 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17345 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17346 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17347 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17348 "\x63\x65\x65\x72\x73\x74\x54\x20"
17349 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17350 .ilen = 128,
17351 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
17352 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
17353 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
17354 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
17355 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
17356 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
17357 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
17358 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
17359 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
17360 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
17361 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
17362 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
17363 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
17364 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
17365 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
17366 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
17367 "\xc6\x2c\x73\x88\xb0\x9d\x5f\x3e"
17368 "\x5b\x78\xca\x0e\xab\x8a\xa3\xbb"
17369 "\xd9\x1d\xc3\xe3\x05\xac\x76\xfb"
17370 "\x58\x83\xda\x67\xfb\x21\x24\xa2"
17371 "\xb1\xa7\xd7\x66\xa6\x8d\xa6\x93"
17372 "\x97\xe2\xe3\xb8\xaa\x48\x85\xee"
17373 "\x8c\xf6\x07\x95\x1f\xa6\x6c\x96"
17374 "\x99\xc7\x5c\x8d\xd8\xb5\x68\x7b",
17375 .rlen = 128 + 64,
17379 #define HMAC_SHA1_DES3_EDE_CBC_ENC_TEST_VEC 1
17381 static struct aead_testvec hmac_sha1_des3_ede_cbc_enc_tv_temp[] = {
17382 { /*Generated with cryptopp*/
17383 #ifdef __LITTLE_ENDIAN
17384 .key = "\x08\x00" /* rta length */
17385 "\x01\x00" /* rta type */
17386 #else
17387 .key = "\x00\x08" /* rta length */
17388 "\x00\x01" /* rta type */
17389 #endif
17390 "\x00\x00\x00\x18" /* enc key length */
17391 "\x11\x22\x33\x44\x55\x66\x77\x88"
17392 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17393 "\x22\x33\x44\x55"
17394 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
17395 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
17396 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
17397 .klen = 8 + 20 + 24,
17398 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17399 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17400 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17401 .alen = 16,
17402 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17403 "\x53\x20\x63\x65\x65\x72\x73\x74"
17404 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17405 "\x20\x79\x65\x53\x72\x63\x74\x65"
17406 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17407 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17408 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17409 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17410 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17411 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17412 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17413 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17414 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17415 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17416 "\x63\x65\x65\x72\x73\x74\x54\x20"
17417 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17418 .ilen = 128,
17419 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
17420 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
17421 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
17422 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
17423 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
17424 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
17425 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
17426 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
17427 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
17428 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
17429 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
17430 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
17431 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
17432 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
17433 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
17434 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
17435 "\x67\x6d\xb1\xf5\xb8\x10\xdc\xc6"
17436 "\x75\x86\x96\x6b\xb1\xc5\xe4\xcf"
17437 "\xd1\x60\x91\xb3",
17438 .rlen = 128 + 20,
17442 #define HMAC_SHA224_DES3_EDE_CBC_ENC_TEST_VEC 1
17444 static struct aead_testvec hmac_sha224_des3_ede_cbc_enc_tv_temp[] = {
17445 { /*Generated with cryptopp*/
17446 #ifdef __LITTLE_ENDIAN
17447 .key = "\x08\x00" /* rta length */
17448 "\x01\x00" /* rta type */
17449 #else
17450 .key = "\x00\x08" /* rta length */
17451 "\x00\x01" /* rta type */
17452 #endif
17453 "\x00\x00\x00\x18" /* enc key length */
17454 "\x11\x22\x33\x44\x55\x66\x77\x88"
17455 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17456 "\x22\x33\x44\x55\x66\x77\x88\x99"
17457 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
17458 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
17459 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
17460 .klen = 8 + 24 + 24,
17461 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17462 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17463 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17464 .alen = 16,
17465 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17466 "\x53\x20\x63\x65\x65\x72\x73\x74"
17467 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17468 "\x20\x79\x65\x53\x72\x63\x74\x65"
17469 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17470 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17471 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17472 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17473 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17474 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17475 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17476 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17477 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17478 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17479 "\x63\x65\x65\x72\x73\x74\x54\x20"
17480 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17481 .ilen = 128,
17482 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
17483 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
17484 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
17485 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
17486 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
17487 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
17488 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
17489 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
17490 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
17491 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
17492 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
17493 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
17494 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
17495 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
17496 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
17497 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
17498 "\x15\x24\x7f\x5a\x45\x4a\x66\xce"
17499 "\x2b\x0b\x93\x99\x2f\x9d\x0c\x6c"
17500 "\x56\x1f\xe1\xa6\x41\xb2\x4c\xd0",
17501 .rlen = 128 + 24,
17505 #define HMAC_SHA256_DES3_EDE_CBC_ENC_TEST_VEC 1
17507 static struct aead_testvec hmac_sha256_des3_ede_cbc_enc_tv_temp[] = {
17508 { /*Generated with cryptopp*/
17509 #ifdef __LITTLE_ENDIAN
17510 .key = "\x08\x00" /* rta length */
17511 "\x01\x00" /* rta type */
17512 #else
17513 .key = "\x00\x08" /* rta length */
17514 "\x00\x01" /* rta type */
17515 #endif
17516 "\x00\x00\x00\x18" /* enc key length */
17517 "\x11\x22\x33\x44\x55\x66\x77\x88"
17518 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17519 "\x22\x33\x44\x55\x66\x77\x88\x99"
17520 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17521 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
17522 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
17523 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
17524 .klen = 8 + 32 + 24,
17525 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17526 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17527 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17528 .alen = 16,
17529 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17530 "\x53\x20\x63\x65\x65\x72\x73\x74"
17531 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17532 "\x20\x79\x65\x53\x72\x63\x74\x65"
17533 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17534 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17535 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17536 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17537 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17538 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17539 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17540 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17541 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17542 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17543 "\x63\x65\x65\x72\x73\x74\x54\x20"
17544 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17545 .ilen = 128,
17546 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
17547 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
17548 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
17549 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
17550 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
17551 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
17552 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
17553 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
17554 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
17555 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
17556 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
17557 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
17558 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
17559 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
17560 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
17561 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
17562 "\x73\xb0\xea\x9f\xe8\x18\x80\xd6"
17563 "\x56\x38\x44\xc0\xdb\xe3\x4f\x71"
17564 "\xf7\xce\xd1\xd3\xf8\xbd\x3e\x4f"
17565 "\xca\x43\x95\xdf\x80\x61\x81\xa9",
17566 .rlen = 128 + 32,
17570 #define HMAC_SHA384_DES3_EDE_CBC_ENC_TEST_VEC 1
17572 static struct aead_testvec hmac_sha384_des3_ede_cbc_enc_tv_temp[] = {
17573 { /*Generated with cryptopp*/
17574 #ifdef __LITTLE_ENDIAN
17575 .key = "\x08\x00" /* rta length */
17576 "\x01\x00" /* rta type */
17577 #else
17578 .key = "\x00\x08" /* rta length */
17579 "\x00\x01" /* rta type */
17580 #endif
17581 "\x00\x00\x00\x18" /* enc key length */
17582 "\x11\x22\x33\x44\x55\x66\x77\x88"
17583 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17584 "\x22\x33\x44\x55\x66\x77\x88\x99"
17585 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17586 "\x33\x44\x55\x66\x77\x88\x99\xaa"
17587 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17588 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
17589 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
17590 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
17591 .klen = 8 + 48 + 24,
17592 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17593 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17594 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17595 .alen = 16,
17596 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17597 "\x53\x20\x63\x65\x65\x72\x73\x74"
17598 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17599 "\x20\x79\x65\x53\x72\x63\x74\x65"
17600 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17601 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17602 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17603 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17604 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17605 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17606 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17607 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17608 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17609 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17610 "\x63\x65\x65\x72\x73\x74\x54\x20"
17611 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17612 .ilen = 128,
17613 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
17614 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
17615 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
17616 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
17617 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
17618 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
17619 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
17620 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
17621 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
17622 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
17623 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
17624 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
17625 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
17626 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
17627 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
17628 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
17629 "\x6d\x77\xfc\x80\x9d\x8a\x9c\xb7"
17630 "\x70\xe7\x93\xbf\x73\xe6\x9f\x83"
17631 "\x99\x62\x23\xe6\x5b\xd0\xda\x18"
17632 "\xa4\x32\x8a\x0b\x46\xd7\xf0\x39"
17633 "\x36\x5d\x13\x2f\x86\x10\x78\xd6"
17634 "\xd6\xbe\x5c\xb9\x15\x89\xf9\x1b",
17635 .rlen = 128 + 48,
17639 #define HMAC_SHA512_DES3_EDE_CBC_ENC_TEST_VEC 1
17641 static struct aead_testvec hmac_sha512_des3_ede_cbc_enc_tv_temp[] = {
17642 { /*Generated with cryptopp*/
17643 #ifdef __LITTLE_ENDIAN
17644 .key = "\x08\x00" /* rta length */
17645 "\x01\x00" /* rta type */
17646 #else
17647 .key = "\x00\x08" /* rta length */
17648 "\x00\x01" /* rta type */
17649 #endif
17650 "\x00\x00\x00\x18" /* enc key length */
17651 "\x11\x22\x33\x44\x55\x66\x77\x88"
17652 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17653 "\x22\x33\x44\x55\x66\x77\x88\x99"
17654 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17655 "\x33\x44\x55\x66\x77\x88\x99\xaa"
17656 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17657 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
17658 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
17659 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
17660 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
17661 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
17662 .klen = 8 + 64 + 24,
17663 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17664 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17665 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17666 .alen = 16,
17667 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17668 "\x53\x20\x63\x65\x65\x72\x73\x74"
17669 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17670 "\x20\x79\x65\x53\x72\x63\x74\x65"
17671 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17672 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17673 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17674 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17675 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17676 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17677 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17678 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17679 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17680 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17681 "\x63\x65\x65\x72\x73\x74\x54\x20"
17682 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17683 .ilen = 128,
17684 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
17685 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
17686 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
17687 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
17688 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
17689 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
17690 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
17691 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
17692 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
17693 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
17694 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
17695 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
17696 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
17697 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
17698 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
17699 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
17700 "\x41\xb5\x1f\xbb\xbd\x4e\xb8\x32"
17701 "\x22\x86\x4e\x57\x1b\x2a\xd8\x6e"
17702 "\xa9\xfb\xc8\xf3\xbf\x2d\xae\x2b"
17703 "\x3b\xbc\x41\xe8\x38\xbb\xf1\x60"
17704 "\x4c\x68\xa9\x4e\x8c\x73\xa7\xc0"
17705 "\x2a\x74\xd4\x65\x12\xcb\x55\xf2"
17706 "\xd5\x02\x6d\xe6\xaf\xc9\x2f\xf2"
17707 "\x57\xaa\x85\xf7\xf3\x6a\xcb\xdb",
17708 .rlen = 128 + 64,
17712 static struct cipher_testvec aes_lrw_enc_tv_template[] = {
17713 /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
17714 { /* LRW-32-AES 1 */
17715 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
17716 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
17717 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
17718 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
17719 .klen = 32,
17720 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17721 "\x00\x00\x00\x00\x00\x00\x00\x01",
17722 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17723 "\x38\x39\x41\x42\x43\x44\x45\x46",
17724 .ilen = 16,
17725 .result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
17726 "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
17727 .rlen = 16,
17728 }, { /* LRW-32-AES 2 */
17729 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
17730 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
17731 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
17732 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
17733 .klen = 32,
17734 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17735 "\x00\x00\x00\x00\x00\x00\x00\x02",
17736 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17737 "\x38\x39\x41\x42\x43\x44\x45\x46",
17738 .ilen = 16,
17739 .result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
17740 "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
17741 .rlen = 16,
17742 }, { /* LRW-32-AES 3 */
17743 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
17744 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
17745 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
17746 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
17747 .klen = 32,
17748 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17749 "\x00\x00\x00\x02\x00\x00\x00\x00",
17750 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17751 "\x38\x39\x41\x42\x43\x44\x45\x46",
17752 .ilen = 16,
17753 .result = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
17754 "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
17755 .rlen = 16,
17756 }, { /* LRW-32-AES 4 */
17757 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
17758 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
17759 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
17760 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
17761 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
17762 .klen = 40,
17763 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17764 "\x00\x00\x00\x00\x00\x00\x00\x01",
17765 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17766 "\x38\x39\x41\x42\x43\x44\x45\x46",
17767 .ilen = 16,
17768 .result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
17769 "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
17770 .rlen = 16,
17771 }, { /* LRW-32-AES 5 */
17772 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
17773 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
17774 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
17775 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
17776 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
17777 .klen = 40,
17778 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17779 "\x00\x00\x00\x02\x00\x00\x00\x00",
17780 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17781 "\x38\x39\x41\x42\x43\x44\x45\x46",
17782 .ilen = 16,
17783 .result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
17784 "\xc8\x60\x48\x02\x87\xe3\x34\x06",
17785 .rlen = 16,
17786 }, { /* LRW-32-AES 6 */
17787 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
17788 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
17789 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
17790 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
17791 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
17792 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
17793 .klen = 48,
17794 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17795 "\x00\x00\x00\x00\x00\x00\x00\x01",
17796 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17797 "\x38\x39\x41\x42\x43\x44\x45\x46",
17798 .ilen = 16,
17799 .result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
17800 "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
17801 .rlen = 16,
17802 }, { /* LRW-32-AES 7 */
17803 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
17804 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
17805 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
17806 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
17807 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
17808 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
17809 .klen = 48,
17810 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17811 "\x00\x00\x00\x02\x00\x00\x00\x00",
17812 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17813 "\x38\x39\x41\x42\x43\x44\x45\x46",
17814 .ilen = 16,
17815 .result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
17816 "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
17817 .rlen = 16,
17818 }, {
17819 /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
17820 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
17821 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
17822 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
17823 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
17824 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
17825 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
17826 .klen = 48,
17827 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17828 "\x00\x00\x00\x00\x00\x00\x00\x01",
17829 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
17830 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
17831 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
17832 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
17833 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
17834 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
17835 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
17836 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
17837 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
17838 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
17839 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
17840 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
17841 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
17842 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
17843 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
17844 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
17845 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
17846 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
17847 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
17848 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
17849 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
17850 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
17851 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
17852 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
17853 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
17854 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
17855 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
17856 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
17857 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
17858 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
17859 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
17860 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
17861 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
17862 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
17863 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
17864 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
17865 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
17866 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
17867 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
17868 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
17869 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
17870 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
17871 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
17872 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
17873 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
17874 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
17875 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
17876 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
17877 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
17878 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
17879 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
17880 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
17881 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
17882 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
17883 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
17884 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
17885 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
17886 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
17887 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
17888 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
17889 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
17890 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
17891 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
17892 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
17893 .ilen = 512,
17894 .result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
17895 "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
17896 "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
17897 "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
17898 "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
17899 "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
17900 "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
17901 "\xe8\x58\x46\x97\x39\x51\x07\xde"
17902 "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
17903 "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
17904 "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
17905 "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
17906 "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
17907 "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
17908 "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
17909 "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
17910 "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
17911 "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
17912 "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
17913 "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
17914 "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
17915 "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
17916 "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
17917 "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
17918 "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
17919 "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
17920 "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
17921 "\x41\x30\x58\xc5\x62\x74\x52\x1d"
17922 "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
17923 "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
17924 "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
17925 "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
17926 "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
17927 "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
17928 "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
17929 "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
17930 "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
17931 "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
17932 "\xb8\x79\x78\x97\x94\xff\x72\x13"
17933 "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
17934 "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
17935 "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
17936 "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
17937 "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
17938 "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
17939 "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
17940 "\x1e\x86\x53\x11\x53\x94\x00\xee"
17941 "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
17942 "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
17943 "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
17944 "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
17945 "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
17946 "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
17947 "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
17948 "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
17949 "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
17950 "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
17951 "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
17952 "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
17953 "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
17954 "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
17955 "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
17956 "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
17957 "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
17958 .rlen = 512,
17959 .also_non_np = 1,
17960 .np = 3,
17961 .tap = { 512 - 20, 4, 16 },
17965 static struct cipher_testvec aes_lrw_dec_tv_template[] = {
17966 /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
17967 /* same as enc vectors with input and result reversed */
17968 { /* LRW-32-AES 1 */
17969 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
17970 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
17971 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
17972 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
17973 .klen = 32,
17974 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17975 "\x00\x00\x00\x00\x00\x00\x00\x01",
17976 .input = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
17977 "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
17978 .ilen = 16,
17979 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
17980 "\x38\x39\x41\x42\x43\x44\x45\x46",
17981 .rlen = 16,
17982 }, { /* LRW-32-AES 2 */
17983 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
17984 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
17985 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
17986 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
17987 .klen = 32,
17988 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17989 "\x00\x00\x00\x00\x00\x00\x00\x02",
17990 .input = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
17991 "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
17992 .ilen = 16,
17993 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
17994 "\x38\x39\x41\x42\x43\x44\x45\x46",
17995 .rlen = 16,
17996 }, { /* LRW-32-AES 3 */
17997 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
17998 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
17999 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
18000 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
18001 .klen = 32,
18002 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18003 "\x00\x00\x00\x02\x00\x00\x00\x00",
18004 .input = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
18005 "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
18006 .ilen = 16,
18007 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18008 "\x38\x39\x41\x42\x43\x44\x45\x46",
18009 .rlen = 16,
18010 }, { /* LRW-32-AES 4 */
18011 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
18012 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
18013 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
18014 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
18015 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
18016 .klen = 40,
18017 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18018 "\x00\x00\x00\x00\x00\x00\x00\x01",
18019 .input = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
18020 "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
18021 .ilen = 16,
18022 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18023 "\x38\x39\x41\x42\x43\x44\x45\x46",
18024 .rlen = 16,
18025 }, { /* LRW-32-AES 5 */
18026 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
18027 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
18028 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
18029 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
18030 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
18031 .klen = 40,
18032 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18033 "\x00\x00\x00\x02\x00\x00\x00\x00",
18034 .input = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
18035 "\xc8\x60\x48\x02\x87\xe3\x34\x06",
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 6 */
18041 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
18042 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
18043 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
18044 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
18045 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
18046 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
18047 .klen = 48,
18048 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18049 "\x00\x00\x00\x00\x00\x00\x00\x01",
18050 .input = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
18051 "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
18052 .ilen = 16,
18053 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18054 "\x38\x39\x41\x42\x43\x44\x45\x46",
18055 .rlen = 16,
18056 }, { /* LRW-32-AES 7 */
18057 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
18058 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
18059 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
18060 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
18061 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
18062 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
18063 .klen = 48,
18064 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18065 "\x00\x00\x00\x02\x00\x00\x00\x00",
18066 .input = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
18067 "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
18068 .ilen = 16,
18069 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18070 "\x38\x39\x41\x42\x43\x44\x45\x46",
18071 .rlen = 16,
18072 }, {
18073 /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
18074 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
18075 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
18076 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
18077 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
18078 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
18079 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
18080 .klen = 48,
18081 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18082 "\x00\x00\x00\x00\x00\x00\x00\x01",
18083 .input = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
18084 "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
18085 "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
18086 "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
18087 "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
18088 "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
18089 "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
18090 "\xe8\x58\x46\x97\x39\x51\x07\xde"
18091 "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
18092 "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
18093 "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
18094 "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
18095 "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
18096 "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
18097 "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
18098 "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
18099 "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
18100 "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
18101 "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
18102 "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
18103 "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
18104 "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
18105 "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
18106 "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
18107 "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
18108 "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
18109 "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
18110 "\x41\x30\x58\xc5\x62\x74\x52\x1d"
18111 "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
18112 "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
18113 "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
18114 "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
18115 "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
18116 "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
18117 "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
18118 "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
18119 "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
18120 "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
18121 "\xb8\x79\x78\x97\x94\xff\x72\x13"
18122 "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
18123 "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
18124 "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
18125 "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
18126 "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
18127 "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
18128 "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
18129 "\x1e\x86\x53\x11\x53\x94\x00\xee"
18130 "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
18131 "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
18132 "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
18133 "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
18134 "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
18135 "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
18136 "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
18137 "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
18138 "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
18139 "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
18140 "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
18141 "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
18142 "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
18143 "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
18144 "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
18145 "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
18146 "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
18147 .ilen = 512,
18148 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
18149 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
18150 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
18151 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
18152 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
18153 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
18154 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
18155 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
18156 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
18157 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
18158 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
18159 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
18160 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
18161 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
18162 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
18163 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
18164 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
18165 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
18166 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
18167 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
18168 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
18169 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
18170 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
18171 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
18172 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
18173 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
18174 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
18175 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
18176 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
18177 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
18178 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
18179 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
18180 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
18181 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
18182 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
18183 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
18184 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
18185 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
18186 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
18187 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
18188 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
18189 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
18190 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
18191 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
18192 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
18193 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
18194 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
18195 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
18196 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
18197 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
18198 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
18199 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
18200 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
18201 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
18202 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
18203 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
18204 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
18205 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
18206 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
18207 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
18208 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
18209 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
18210 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
18211 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
18212 .rlen = 512,
18213 .also_non_np = 1,
18214 .np = 3,
18215 .tap = { 512 - 20, 4, 16 },
18219 static struct cipher_testvec aes_xts_enc_tv_template[] = {
18220 /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
18221 { /* XTS-AES 1 */
18222 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
18223 "\x00\x00\x00\x00\x00\x00\x00\x00"
18224 "\x00\x00\x00\x00\x00\x00\x00\x00"
18225 "\x00\x00\x00\x00\x00\x00\x00\x00",
18226 .klen = 32,
18227 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18228 "\x00\x00\x00\x00\x00\x00\x00\x00",
18229 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
18230 "\x00\x00\x00\x00\x00\x00\x00\x00"
18231 "\x00\x00\x00\x00\x00\x00\x00\x00"
18232 "\x00\x00\x00\x00\x00\x00\x00\x00",
18233 .ilen = 32,
18234 .result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
18235 "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
18236 "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
18237 "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
18238 .rlen = 32,
18239 }, { /* XTS-AES 2 */
18240 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
18241 "\x11\x11\x11\x11\x11\x11\x11\x11"
18242 "\x22\x22\x22\x22\x22\x22\x22\x22"
18243 "\x22\x22\x22\x22\x22\x22\x22\x22",
18244 .klen = 32,
18245 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
18246 "\x00\x00\x00\x00\x00\x00\x00\x00",
18247 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
18248 "\x44\x44\x44\x44\x44\x44\x44\x44"
18249 "\x44\x44\x44\x44\x44\x44\x44\x44"
18250 "\x44\x44\x44\x44\x44\x44\x44\x44",
18251 .ilen = 32,
18252 .result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
18253 "\x39\x33\x40\x38\xac\xef\x83\x8b"
18254 "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
18255 "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
18256 .rlen = 32,
18257 }, { /* XTS-AES 3 */
18258 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
18259 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
18260 "\x22\x22\x22\x22\x22\x22\x22\x22"
18261 "\x22\x22\x22\x22\x22\x22\x22\x22",
18262 .klen = 32,
18263 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
18264 "\x00\x00\x00\x00\x00\x00\x00\x00",
18265 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
18266 "\x44\x44\x44\x44\x44\x44\x44\x44"
18267 "\x44\x44\x44\x44\x44\x44\x44\x44"
18268 "\x44\x44\x44\x44\x44\x44\x44\x44",
18269 .ilen = 32,
18270 .result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
18271 "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
18272 "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
18273 "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
18274 .rlen = 32,
18275 }, { /* XTS-AES 4 */
18276 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
18277 "\x23\x53\x60\x28\x74\x71\x35\x26"
18278 "\x31\x41\x59\x26\x53\x58\x97\x93"
18279 "\x23\x84\x62\x64\x33\x83\x27\x95",
18280 .klen = 32,
18281 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18282 "\x00\x00\x00\x00\x00\x00\x00\x00",
18283 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
18284 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18285 "\x10\x11\x12\x13\x14\x15\x16\x17"
18286 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18287 "\x20\x21\x22\x23\x24\x25\x26\x27"
18288 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18289 "\x30\x31\x32\x33\x34\x35\x36\x37"
18290 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18291 "\x40\x41\x42\x43\x44\x45\x46\x47"
18292 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18293 "\x50\x51\x52\x53\x54\x55\x56\x57"
18294 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18295 "\x60\x61\x62\x63\x64\x65\x66\x67"
18296 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18297 "\x70\x71\x72\x73\x74\x75\x76\x77"
18298 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18299 "\x80\x81\x82\x83\x84\x85\x86\x87"
18300 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18301 "\x90\x91\x92\x93\x94\x95\x96\x97"
18302 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18303 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18304 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18305 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18306 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18307 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18308 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18309 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18310 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18311 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18312 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18313 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18314 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
18315 "\x00\x01\x02\x03\x04\x05\x06\x07"
18316 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18317 "\x10\x11\x12\x13\x14\x15\x16\x17"
18318 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18319 "\x20\x21\x22\x23\x24\x25\x26\x27"
18320 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18321 "\x30\x31\x32\x33\x34\x35\x36\x37"
18322 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18323 "\x40\x41\x42\x43\x44\x45\x46\x47"
18324 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18325 "\x50\x51\x52\x53\x54\x55\x56\x57"
18326 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18327 "\x60\x61\x62\x63\x64\x65\x66\x67"
18328 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18329 "\x70\x71\x72\x73\x74\x75\x76\x77"
18330 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18331 "\x80\x81\x82\x83\x84\x85\x86\x87"
18332 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18333 "\x90\x91\x92\x93\x94\x95\x96\x97"
18334 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18335 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18336 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18337 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18338 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18339 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18340 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18341 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18342 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18343 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18344 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18345 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18346 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18347 .ilen = 512,
18348 .result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
18349 "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
18350 "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
18351 "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
18352 "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
18353 "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
18354 "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
18355 "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
18356 "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
18357 "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
18358 "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
18359 "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
18360 "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
18361 "\x22\x97\x61\x46\xae\x20\xce\x84"
18362 "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
18363 "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
18364 "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
18365 "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
18366 "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
18367 "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
18368 "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
18369 "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
18370 "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
18371 "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
18372 "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
18373 "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
18374 "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
18375 "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
18376 "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
18377 "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
18378 "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
18379 "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
18380 "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
18381 "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
18382 "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
18383 "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
18384 "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
18385 "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
18386 "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
18387 "\x55\xef\x52\x97\xca\x67\xe9\xf3"
18388 "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
18389 "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
18390 "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
18391 "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
18392 "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
18393 "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
18394 "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
18395 "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
18396 "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
18397 "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
18398 "\x18\x84\x69\x77\xae\x11\x9f\x7a"
18399 "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
18400 "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
18401 "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
18402 "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
18403 "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
18404 "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
18405 "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
18406 "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
18407 "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
18408 "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
18409 "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
18410 "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
18411 "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
18412 .rlen = 512,
18413 }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
18414 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
18415 "\x23\x53\x60\x28\x74\x71\x35\x26"
18416 "\x62\x49\x77\x57\x24\x70\x93\x69"
18417 "\x99\x59\x57\x49\x66\x96\x76\x27"
18418 "\x31\x41\x59\x26\x53\x58\x97\x93"
18419 "\x23\x84\x62\x64\x33\x83\x27\x95"
18420 "\x02\x88\x41\x97\x16\x93\x99\x37"
18421 "\x51\x05\x82\x09\x74\x94\x45\x92",
18422 .klen = 64,
18423 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
18424 "\x00\x00\x00\x00\x00\x00\x00\x00",
18425 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
18426 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18427 "\x10\x11\x12\x13\x14\x15\x16\x17"
18428 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18429 "\x20\x21\x22\x23\x24\x25\x26\x27"
18430 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18431 "\x30\x31\x32\x33\x34\x35\x36\x37"
18432 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18433 "\x40\x41\x42\x43\x44\x45\x46\x47"
18434 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18435 "\x50\x51\x52\x53\x54\x55\x56\x57"
18436 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18437 "\x60\x61\x62\x63\x64\x65\x66\x67"
18438 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18439 "\x70\x71\x72\x73\x74\x75\x76\x77"
18440 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18441 "\x80\x81\x82\x83\x84\x85\x86\x87"
18442 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18443 "\x90\x91\x92\x93\x94\x95\x96\x97"
18444 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18445 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18446 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18447 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18448 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18449 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18450 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18451 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18452 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18453 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18454 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18455 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18456 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
18457 "\x00\x01\x02\x03\x04\x05\x06\x07"
18458 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18459 "\x10\x11\x12\x13\x14\x15\x16\x17"
18460 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18461 "\x20\x21\x22\x23\x24\x25\x26\x27"
18462 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18463 "\x30\x31\x32\x33\x34\x35\x36\x37"
18464 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18465 "\x40\x41\x42\x43\x44\x45\x46\x47"
18466 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18467 "\x50\x51\x52\x53\x54\x55\x56\x57"
18468 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18469 "\x60\x61\x62\x63\x64\x65\x66\x67"
18470 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18471 "\x70\x71\x72\x73\x74\x75\x76\x77"
18472 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18473 "\x80\x81\x82\x83\x84\x85\x86\x87"
18474 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18475 "\x90\x91\x92\x93\x94\x95\x96\x97"
18476 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18477 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18478 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18479 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18480 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18481 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18482 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18483 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18484 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18485 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18486 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18487 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18488 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18489 .ilen = 512,
18490 .result = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
18491 "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
18492 "\xea\x00\x80\x3f\x5e\x48\x23\x57"
18493 "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
18494 "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
18495 "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
18496 "\x68\x0a\x86\xac\x35\xad\xfc\x33"
18497 "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
18498 "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
18499 "\xb1\x08\xfd\x10\x98\xba\xec\x70"
18500 "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
18501 "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
18502 "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
18503 "\xae\xba\x12\x29\x61\xd0\x3a\x75"
18504 "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
18505 "\x00\x02\x08\x87\x89\x14\x29\xca"
18506 "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
18507 "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
18508 "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
18509 "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
18510 "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
18511 "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
18512 "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
18513 "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
18514 "\x93\xec\x05\xc5\x2e\x04\x93\xef"
18515 "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
18516 "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
18517 "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
18518 "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
18519 "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
18520 "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
18521 "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
18522 "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
18523 "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
18524 "\xbc\x48\x14\x57\x77\x8f\x61\x60"
18525 "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
18526 "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
18527 "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
18528 "\xf4\xc3\x33\xec\x44\x23\x88\x51"
18529 "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
18530 "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
18531 "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
18532 "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
18533 "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
18534 "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
18535 "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
18536 "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
18537 "\x92\x5f\xed\xc4\xae\x74\xff\xac"
18538 "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
18539 "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
18540 "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
18541 "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
18542 "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
18543 "\x94\x30\x54\xff\x84\x01\x14\x93"
18544 "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
18545 "\x53\x76\x44\x1a\x77\xed\x43\x85"
18546 "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
18547 "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
18548 "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
18549 "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
18550 "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
18551 "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
18552 "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
18553 "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
18554 .rlen = 512,
18555 .also_non_np = 1,
18556 .np = 3,
18557 .tap = { 512 - 20, 4, 16 },
18561 static struct cipher_testvec aes_xts_dec_tv_template[] = {
18562 /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
18563 { /* XTS-AES 1 */
18564 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
18565 "\x00\x00\x00\x00\x00\x00\x00\x00"
18566 "\x00\x00\x00\x00\x00\x00\x00\x00"
18567 "\x00\x00\x00\x00\x00\x00\x00\x00",
18568 .klen = 32,
18569 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18570 "\x00\x00\x00\x00\x00\x00\x00\x00",
18571 .input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
18572 "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
18573 "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
18574 "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
18575 .ilen = 32,
18576 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
18577 "\x00\x00\x00\x00\x00\x00\x00\x00"
18578 "\x00\x00\x00\x00\x00\x00\x00\x00"
18579 "\x00\x00\x00\x00\x00\x00\x00\x00",
18580 .rlen = 32,
18581 }, { /* XTS-AES 2 */
18582 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
18583 "\x11\x11\x11\x11\x11\x11\x11\x11"
18584 "\x22\x22\x22\x22\x22\x22\x22\x22"
18585 "\x22\x22\x22\x22\x22\x22\x22\x22",
18586 .klen = 32,
18587 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
18588 "\x00\x00\x00\x00\x00\x00\x00\x00",
18589 .input = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
18590 "\x39\x33\x40\x38\xac\xef\x83\x8b"
18591 "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
18592 "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
18593 .ilen = 32,
18594 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
18595 "\x44\x44\x44\x44\x44\x44\x44\x44"
18596 "\x44\x44\x44\x44\x44\x44\x44\x44"
18597 "\x44\x44\x44\x44\x44\x44\x44\x44",
18598 .rlen = 32,
18599 }, { /* XTS-AES 3 */
18600 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
18601 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
18602 "\x22\x22\x22\x22\x22\x22\x22\x22"
18603 "\x22\x22\x22\x22\x22\x22\x22\x22",
18604 .klen = 32,
18605 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
18606 "\x00\x00\x00\x00\x00\x00\x00\x00",
18607 .input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
18608 "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
18609 "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
18610 "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
18611 .ilen = 32,
18612 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
18613 "\x44\x44\x44\x44\x44\x44\x44\x44"
18614 "\x44\x44\x44\x44\x44\x44\x44\x44"
18615 "\x44\x44\x44\x44\x44\x44\x44\x44",
18616 .rlen = 32,
18617 }, { /* XTS-AES 4 */
18618 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
18619 "\x23\x53\x60\x28\x74\x71\x35\x26"
18620 "\x31\x41\x59\x26\x53\x58\x97\x93"
18621 "\x23\x84\x62\x64\x33\x83\x27\x95",
18622 .klen = 32,
18623 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18624 "\x00\x00\x00\x00\x00\x00\x00\x00",
18625 .input = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
18626 "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
18627 "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
18628 "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
18629 "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
18630 "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
18631 "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
18632 "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
18633 "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
18634 "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
18635 "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
18636 "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
18637 "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
18638 "\x22\x97\x61\x46\xae\x20\xce\x84"
18639 "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
18640 "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
18641 "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
18642 "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
18643 "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
18644 "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
18645 "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
18646 "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
18647 "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
18648 "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
18649 "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
18650 "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
18651 "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
18652 "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
18653 "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
18654 "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
18655 "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
18656 "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
18657 "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
18658 "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
18659 "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
18660 "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
18661 "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
18662 "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
18663 "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
18664 "\x55\xef\x52\x97\xca\x67\xe9\xf3"
18665 "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
18666 "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
18667 "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
18668 "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
18669 "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
18670 "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
18671 "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
18672 "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
18673 "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
18674 "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
18675 "\x18\x84\x69\x77\xae\x11\x9f\x7a"
18676 "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
18677 "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
18678 "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
18679 "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
18680 "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
18681 "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
18682 "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
18683 "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
18684 "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
18685 "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
18686 "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
18687 "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
18688 "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
18689 .ilen = 512,
18690 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
18691 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18692 "\x10\x11\x12\x13\x14\x15\x16\x17"
18693 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18694 "\x20\x21\x22\x23\x24\x25\x26\x27"
18695 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18696 "\x30\x31\x32\x33\x34\x35\x36\x37"
18697 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18698 "\x40\x41\x42\x43\x44\x45\x46\x47"
18699 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18700 "\x50\x51\x52\x53\x54\x55\x56\x57"
18701 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18702 "\x60\x61\x62\x63\x64\x65\x66\x67"
18703 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18704 "\x70\x71\x72\x73\x74\x75\x76\x77"
18705 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18706 "\x80\x81\x82\x83\x84\x85\x86\x87"
18707 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18708 "\x90\x91\x92\x93\x94\x95\x96\x97"
18709 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18710 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18711 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18712 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18713 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18714 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18715 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18716 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18717 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18718 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18719 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18720 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18721 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
18722 "\x00\x01\x02\x03\x04\x05\x06\x07"
18723 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18724 "\x10\x11\x12\x13\x14\x15\x16\x17"
18725 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18726 "\x20\x21\x22\x23\x24\x25\x26\x27"
18727 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18728 "\x30\x31\x32\x33\x34\x35\x36\x37"
18729 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18730 "\x40\x41\x42\x43\x44\x45\x46\x47"
18731 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18732 "\x50\x51\x52\x53\x54\x55\x56\x57"
18733 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18734 "\x60\x61\x62\x63\x64\x65\x66\x67"
18735 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18736 "\x70\x71\x72\x73\x74\x75\x76\x77"
18737 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18738 "\x80\x81\x82\x83\x84\x85\x86\x87"
18739 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18740 "\x90\x91\x92\x93\x94\x95\x96\x97"
18741 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18742 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18743 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18744 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18745 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18746 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18747 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18748 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18749 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18750 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18751 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18752 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18753 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18754 .rlen = 512,
18755 }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
18756 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
18757 "\x23\x53\x60\x28\x74\x71\x35\x26"
18758 "\x62\x49\x77\x57\x24\x70\x93\x69"
18759 "\x99\x59\x57\x49\x66\x96\x76\x27"
18760 "\x31\x41\x59\x26\x53\x58\x97\x93"
18761 "\x23\x84\x62\x64\x33\x83\x27\x95"
18762 "\x02\x88\x41\x97\x16\x93\x99\x37"
18763 "\x51\x05\x82\x09\x74\x94\x45\x92",
18764 .klen = 64,
18765 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
18766 "\x00\x00\x00\x00\x00\x00\x00\x00",
18767 .input = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
18768 "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
18769 "\xea\x00\x80\x3f\x5e\x48\x23\x57"
18770 "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
18771 "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
18772 "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
18773 "\x68\x0a\x86\xac\x35\xad\xfc\x33"
18774 "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
18775 "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
18776 "\xb1\x08\xfd\x10\x98\xba\xec\x70"
18777 "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
18778 "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
18779 "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
18780 "\xae\xba\x12\x29\x61\xd0\x3a\x75"
18781 "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
18782 "\x00\x02\x08\x87\x89\x14\x29\xca"
18783 "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
18784 "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
18785 "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
18786 "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
18787 "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
18788 "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
18789 "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
18790 "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
18791 "\x93\xec\x05\xc5\x2e\x04\x93\xef"
18792 "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
18793 "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
18794 "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
18795 "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
18796 "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
18797 "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
18798 "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
18799 "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
18800 "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
18801 "\xbc\x48\x14\x57\x77\x8f\x61\x60"
18802 "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
18803 "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
18804 "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
18805 "\xf4\xc3\x33\xec\x44\x23\x88\x51"
18806 "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
18807 "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
18808 "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
18809 "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
18810 "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
18811 "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
18812 "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
18813 "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
18814 "\x92\x5f\xed\xc4\xae\x74\xff\xac"
18815 "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
18816 "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
18817 "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
18818 "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
18819 "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
18820 "\x94\x30\x54\xff\x84\x01\x14\x93"
18821 "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
18822 "\x53\x76\x44\x1a\x77\xed\x43\x85"
18823 "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
18824 "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
18825 "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
18826 "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
18827 "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
18828 "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
18829 "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
18830 "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
18831 .ilen = 512,
18832 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
18833 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18834 "\x10\x11\x12\x13\x14\x15\x16\x17"
18835 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18836 "\x20\x21\x22\x23\x24\x25\x26\x27"
18837 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18838 "\x30\x31\x32\x33\x34\x35\x36\x37"
18839 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18840 "\x40\x41\x42\x43\x44\x45\x46\x47"
18841 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18842 "\x50\x51\x52\x53\x54\x55\x56\x57"
18843 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18844 "\x60\x61\x62\x63\x64\x65\x66\x67"
18845 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18846 "\x70\x71\x72\x73\x74\x75\x76\x77"
18847 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18848 "\x80\x81\x82\x83\x84\x85\x86\x87"
18849 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18850 "\x90\x91\x92\x93\x94\x95\x96\x97"
18851 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18852 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18853 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18854 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18855 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18856 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18857 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18858 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18859 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18860 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18861 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18862 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18863 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
18864 "\x00\x01\x02\x03\x04\x05\x06\x07"
18865 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18866 "\x10\x11\x12\x13\x14\x15\x16\x17"
18867 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18868 "\x20\x21\x22\x23\x24\x25\x26\x27"
18869 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18870 "\x30\x31\x32\x33\x34\x35\x36\x37"
18871 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18872 "\x40\x41\x42\x43\x44\x45\x46\x47"
18873 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18874 "\x50\x51\x52\x53\x54\x55\x56\x57"
18875 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18876 "\x60\x61\x62\x63\x64\x65\x66\x67"
18877 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18878 "\x70\x71\x72\x73\x74\x75\x76\x77"
18879 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18880 "\x80\x81\x82\x83\x84\x85\x86\x87"
18881 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18882 "\x90\x91\x92\x93\x94\x95\x96\x97"
18883 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18884 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18885 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18886 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18887 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18888 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18889 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18890 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18891 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18892 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18893 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18894 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18895 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18896 .rlen = 512,
18897 .also_non_np = 1,
18898 .np = 3,
18899 .tap = { 512 - 20, 4, 16 },
18904 static struct cipher_testvec aes_ctr_enc_tv_template[] = {
18905 { /* From NIST Special Publication 800-38A, Appendix F.5 */
18906 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
18907 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
18908 .klen = 16,
18909 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18910 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18911 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
18912 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
18913 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
18914 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
18915 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
18916 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
18917 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
18918 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
18919 .ilen = 64,
18920 .result = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
18921 "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
18922 "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
18923 "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
18924 "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
18925 "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
18926 "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
18927 "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
18928 .rlen = 64,
18929 }, {
18930 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
18931 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
18932 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
18933 .klen = 24,
18934 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18935 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18936 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
18937 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
18938 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
18939 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
18940 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
18941 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
18942 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
18943 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
18944 .ilen = 64,
18945 .result = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
18946 "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
18947 "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
18948 "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
18949 "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
18950 "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
18951 "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
18952 "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
18953 .rlen = 64,
18954 }, {
18955 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
18956 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
18957 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
18958 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
18959 .klen = 32,
18960 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18961 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18962 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
18963 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
18964 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
18965 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
18966 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
18967 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
18968 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
18969 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
18970 .ilen = 64,
18971 .result = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
18972 "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
18973 "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
18974 "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
18975 "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
18976 "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
18977 "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
18978 "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
18979 .rlen = 64,
18980 }, { /* Generated with Crypto++ */
18981 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
18982 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
18983 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
18984 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
18985 .klen = 32,
18986 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
18987 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
18988 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
18989 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
18990 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
18991 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
18992 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
18993 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
18994 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
18995 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
18996 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
18997 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
18998 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
18999 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
19000 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
19001 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
19002 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
19003 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
19004 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
19005 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
19006 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
19007 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
19008 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
19009 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
19010 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
19011 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
19012 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
19013 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
19014 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
19015 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
19016 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
19017 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
19018 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
19019 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
19020 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
19021 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
19022 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
19023 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
19024 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
19025 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
19026 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
19027 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
19028 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
19029 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
19030 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
19031 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
19032 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
19033 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
19034 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
19035 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
19036 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
19037 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
19038 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
19039 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
19040 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
19041 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
19042 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
19043 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
19044 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
19045 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
19046 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
19047 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
19048 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
19049 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
19050 .ilen = 496,
19051 .result = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
19052 "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
19053 "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
19054 "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
19055 "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
19056 "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
19057 "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
19058 "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
19059 "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
19060 "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
19061 "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
19062 "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
19063 "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
19064 "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
19065 "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
19066 "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
19067 "\x34\x4B\x31\x69\x84\x66\x96\x44"
19068 "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
19069 "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
19070 "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
19071 "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
19072 "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
19073 "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
19074 "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
19075 "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
19076 "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
19077 "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
19078 "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
19079 "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
19080 "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
19081 "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
19082 "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
19083 "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
19084 "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
19085 "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
19086 "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
19087 "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
19088 "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
19089 "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
19090 "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
19091 "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
19092 "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
19093 "\x85\x99\x22\xE8\x91\x38\x70\x83"
19094 "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
19095 "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
19096 "\x2F\x69\xEE\x84\x36\x44\x76\x98"
19097 "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
19098 "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
19099 "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
19100 "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
19101 "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
19102 "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
19103 "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
19104 "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
19105 "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
19106 "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
19107 "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
19108 "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
19109 "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
19110 "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
19111 "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
19112 "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
19113 .rlen = 496,
19114 .also_non_np = 1,
19115 .np = 3,
19116 .tap = { 496 - 20, 4, 16 },
19117 }, { /* Generated with Crypto++ */
19118 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
19119 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
19120 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
19121 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
19122 .klen = 32,
19123 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
19124 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
19125 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
19126 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
19127 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
19128 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
19129 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
19130 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
19131 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
19132 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
19133 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
19134 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
19135 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
19136 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
19137 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
19138 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
19139 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
19140 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
19141 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
19142 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
19143 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
19144 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
19145 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
19146 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
19147 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
19148 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
19149 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
19150 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
19151 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
19152 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
19153 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
19154 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
19155 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
19156 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
19157 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
19158 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
19159 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
19160 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
19161 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
19162 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
19163 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
19164 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
19165 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
19166 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
19167 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
19168 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
19169 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
19170 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
19171 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
19172 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
19173 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
19174 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
19175 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
19176 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
19177 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
19178 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
19179 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
19180 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
19181 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
19182 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
19183 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
19184 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
19185 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
19186 "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
19187 "\x7B\xE4\x4D",
19188 .ilen = 499,
19189 .result = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
19190 "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
19191 "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
19192 "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
19193 "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
19194 "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
19195 "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
19196 "\x75\xDE\x71\x86\x3C\x98\x23\x44"
19197 "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
19198 "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
19199 "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
19200 "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
19201 "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
19202 "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
19203 "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
19204 "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
19205 "\xA8\x28\x69\x65\x31\xE1\x45\x83"
19206 "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
19207 "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
19208 "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
19209 "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
19210 "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
19211 "\x45\x18\x18\x74\x19\xAD\x71\x01"
19212 "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
19213 "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
19214 "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
19215 "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
19216 "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
19217 "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
19218 "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
19219 "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
19220 "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
19221 "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
19222 "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
19223 "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
19224 "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
19225 "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
19226 "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
19227 "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
19228 "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
19229 "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
19230 "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
19231 "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
19232 "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
19233 "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
19234 "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
19235 "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
19236 "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
19237 "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
19238 "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
19239 "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
19240 "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
19241 "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
19242 "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
19243 "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
19244 "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
19245 "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
19246 "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
19247 "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
19248 "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
19249 "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
19250 "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
19251 "\xFB\xF2\x3F",
19252 .rlen = 499,
19253 .also_non_np = 1,
19254 .np = 2,
19255 .tap = { 499 - 16, 16 },
19259 static struct cipher_testvec aes_ctr_dec_tv_template[] = {
19260 { /* From NIST Special Publication 800-38A, Appendix F.5 */
19261 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
19262 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
19263 .klen = 16,
19264 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
19265 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
19266 .input = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
19267 "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
19268 "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
19269 "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
19270 "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
19271 "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
19272 "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
19273 "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
19274 .ilen = 64,
19275 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
19276 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
19277 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
19278 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
19279 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
19280 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
19281 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
19282 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
19283 .rlen = 64,
19284 }, {
19285 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
19286 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
19287 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
19288 .klen = 24,
19289 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
19290 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
19291 .input = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
19292 "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
19293 "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
19294 "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
19295 "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
19296 "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
19297 "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
19298 "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
19299 .ilen = 64,
19300 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
19301 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
19302 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
19303 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
19304 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
19305 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
19306 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
19307 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
19308 .rlen = 64,
19309 }, {
19310 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
19311 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
19312 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
19313 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
19314 .klen = 32,
19315 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
19316 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
19317 .input = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
19318 "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
19319 "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
19320 "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
19321 "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
19322 "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
19323 "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
19324 "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
19325 .ilen = 64,
19326 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
19327 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
19328 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
19329 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
19330 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
19331 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
19332 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
19333 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
19334 .rlen = 64,
19335 }, { /* Generated with Crypto++ */
19336 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
19337 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
19338 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
19339 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
19340 .klen = 32,
19341 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
19342 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
19343 .input = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
19344 "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
19345 "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
19346 "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
19347 "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
19348 "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
19349 "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
19350 "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
19351 "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
19352 "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
19353 "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
19354 "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
19355 "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
19356 "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
19357 "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
19358 "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
19359 "\x34\x4B\x31\x69\x84\x66\x96\x44"
19360 "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
19361 "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
19362 "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
19363 "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
19364 "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
19365 "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
19366 "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
19367 "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
19368 "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
19369 "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
19370 "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
19371 "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
19372 "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
19373 "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
19374 "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
19375 "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
19376 "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
19377 "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
19378 "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
19379 "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
19380 "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
19381 "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
19382 "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
19383 "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
19384 "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
19385 "\x85\x99\x22\xE8\x91\x38\x70\x83"
19386 "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
19387 "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
19388 "\x2F\x69\xEE\x84\x36\x44\x76\x98"
19389 "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
19390 "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
19391 "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
19392 "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
19393 "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
19394 "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
19395 "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
19396 "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
19397 "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
19398 "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
19399 "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
19400 "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
19401 "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
19402 "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
19403 "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
19404 "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
19405 .ilen = 496,
19406 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
19407 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
19408 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
19409 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
19410 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
19411 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
19412 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
19413 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
19414 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
19415 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
19416 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
19417 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
19418 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
19419 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
19420 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
19421 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
19422 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
19423 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
19424 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
19425 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
19426 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
19427 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
19428 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
19429 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
19430 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
19431 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
19432 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
19433 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
19434 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
19435 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
19436 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
19437 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
19438 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
19439 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
19440 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
19441 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
19442 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
19443 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
19444 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
19445 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
19446 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
19447 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
19448 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
19449 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
19450 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
19451 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
19452 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
19453 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
19454 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
19455 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
19456 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
19457 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
19458 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
19459 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
19460 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
19461 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
19462 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
19463 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
19464 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
19465 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
19466 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
19467 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
19468 .rlen = 496,
19469 .also_non_np = 1,
19470 .np = 3,
19471 .tap = { 496 - 20, 4, 16 },
19472 }, { /* Generated with Crypto++ */
19473 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
19474 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
19475 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
19476 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
19477 .klen = 32,
19478 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
19479 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
19480 .input = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
19481 "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
19482 "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
19483 "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
19484 "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
19485 "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
19486 "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
19487 "\x75\xDE\x71\x86\x3C\x98\x23\x44"
19488 "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
19489 "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
19490 "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
19491 "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
19492 "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
19493 "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
19494 "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
19495 "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
19496 "\xA8\x28\x69\x65\x31\xE1\x45\x83"
19497 "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
19498 "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
19499 "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
19500 "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
19501 "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
19502 "\x45\x18\x18\x74\x19\xAD\x71\x01"
19503 "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
19504 "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
19505 "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
19506 "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
19507 "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
19508 "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
19509 "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
19510 "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
19511 "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
19512 "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
19513 "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
19514 "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
19515 "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
19516 "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
19517 "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
19518 "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
19519 "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
19520 "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
19521 "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
19522 "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
19523 "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
19524 "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
19525 "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
19526 "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
19527 "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
19528 "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
19529 "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
19530 "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
19531 "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
19532 "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
19533 "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
19534 "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
19535 "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
19536 "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
19537 "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
19538 "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
19539 "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
19540 "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
19541 "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
19542 "\xFB\xF2\x3F",
19543 .ilen = 499,
19544 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
19545 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
19546 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
19547 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
19548 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
19549 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
19550 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
19551 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
19552 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
19553 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
19554 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
19555 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
19556 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
19557 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
19558 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
19559 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
19560 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
19561 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
19562 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
19563 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
19564 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
19565 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
19566 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
19567 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
19568 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
19569 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
19570 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
19571 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
19572 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
19573 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
19574 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
19575 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
19576 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
19577 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
19578 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
19579 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
19580 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
19581 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
19582 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
19583 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
19584 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
19585 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
19586 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
19587 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
19588 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
19589 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
19590 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
19591 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
19592 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
19593 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
19594 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
19595 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
19596 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
19597 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
19598 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
19599 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
19600 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
19601 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
19602 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
19603 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
19604 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
19605 "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
19606 "\x7B\xE4\x4D",
19607 .rlen = 499,
19608 .also_non_np = 1,
19609 .np = 2,
19610 .tap = { 499 - 16, 16 },
19614 static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = {
19615 { /* From RFC 3686 */
19616 .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
19617 "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
19618 "\x00\x00\x00\x30",
19619 .klen = 20,
19620 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
19621 .input = "Single block msg",
19622 .ilen = 16,
19623 .result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
19624 "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
19625 .rlen = 16,
19626 }, {
19627 .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
19628 "\x43\xd6\xce\x1f\x32\x53\x91\x63"
19629 "\x00\x6c\xb6\xdb",
19630 .klen = 20,
19631 .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
19632 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
19633 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19634 "\x10\x11\x12\x13\x14\x15\x16\x17"
19635 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
19636 .ilen = 32,
19637 .result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
19638 "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
19639 "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
19640 "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
19641 .rlen = 32,
19642 }, {
19643 .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
19644 "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
19645 "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
19646 "\x00\x00\x00\x48",
19647 .klen = 28,
19648 .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
19649 .input = "Single block msg",
19650 .ilen = 16,
19651 .result = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
19652 "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
19653 .rlen = 16,
19654 }, {
19655 .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
19656 "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
19657 "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
19658 "\x00\x96\xb0\x3b",
19659 .klen = 28,
19660 .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
19661 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
19662 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19663 "\x10\x11\x12\x13\x14\x15\x16\x17"
19664 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
19665 .ilen = 32,
19666 .result = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
19667 "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
19668 "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
19669 "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
19670 .rlen = 32,
19671 }, {
19672 .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
19673 "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
19674 "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
19675 "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
19676 "\x00\x00\x00\x60",
19677 .klen = 36,
19678 .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
19679 .input = "Single block msg",
19680 .ilen = 16,
19681 .result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
19682 "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
19683 .rlen = 16,
19684 }, {
19685 .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
19686 "\x07\x96\x36\x58\x79\xef\xf8\x86"
19687 "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
19688 "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
19689 "\x00\xfa\xac\x24",
19690 .klen = 36,
19691 .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
19692 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
19693 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19694 "\x10\x11\x12\x13\x14\x15\x16\x17"
19695 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
19696 .ilen = 32,
19697 .result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
19698 "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
19699 "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
19700 "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
19701 .rlen = 32,
19702 }, {
19703 // generated using Crypto++
19704 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
19705 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19706 "\x10\x11\x12\x13\x14\x15\x16\x17"
19707 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
19708 "\x00\x00\x00\x00",
19709 .klen = 32 + 4,
19710 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
19711 .input =
19712 "\x00\x01\x02\x03\x04\x05\x06\x07"
19713 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19714 "\x10\x11\x12\x13\x14\x15\x16\x17"
19715 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
19716 "\x20\x21\x22\x23\x24\x25\x26\x27"
19717 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
19718 "\x30\x31\x32\x33\x34\x35\x36\x37"
19719 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
19720 "\x40\x41\x42\x43\x44\x45\x46\x47"
19721 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
19722 "\x50\x51\x52\x53\x54\x55\x56\x57"
19723 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
19724 "\x60\x61\x62\x63\x64\x65\x66\x67"
19725 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
19726 "\x70\x71\x72\x73\x74\x75\x76\x77"
19727 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
19728 "\x80\x81\x82\x83\x84\x85\x86\x87"
19729 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
19730 "\x90\x91\x92\x93\x94\x95\x96\x97"
19731 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
19732 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
19733 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
19734 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
19735 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
19736 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
19737 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
19738 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
19739 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
19740 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
19741 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
19742 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
19743 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
19744 "\x00\x03\x06\x09\x0c\x0f\x12\x15"
19745 "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
19746 "\x30\x33\x36\x39\x3c\x3f\x42\x45"
19747 "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
19748 "\x60\x63\x66\x69\x6c\x6f\x72\x75"
19749 "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
19750 "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
19751 "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
19752 "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
19753 "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
19754 "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
19755 "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
19756 "\x20\x23\x26\x29\x2c\x2f\x32\x35"
19757 "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
19758 "\x50\x53\x56\x59\x5c\x5f\x62\x65"
19759 "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
19760 "\x80\x83\x86\x89\x8c\x8f\x92\x95"
19761 "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
19762 "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
19763 "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
19764 "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
19765 "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
19766 "\x10\x13\x16\x19\x1c\x1f\x22\x25"
19767 "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
19768 "\x40\x43\x46\x49\x4c\x4f\x52\x55"
19769 "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
19770 "\x70\x73\x76\x79\x7c\x7f\x82\x85"
19771 "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
19772 "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
19773 "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
19774 "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
19775 "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
19776 "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
19777 "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
19778 "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
19779 "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
19780 "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
19781 "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
19782 "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
19783 "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
19784 "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
19785 "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
19786 "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
19787 "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
19788 "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
19789 "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
19790 "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
19791 "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
19792 "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
19793 "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
19794 "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
19795 "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
19796 "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
19797 "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
19798 "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
19799 "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
19800 "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
19801 "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
19802 "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
19803 "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
19804 "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
19805 "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
19806 "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
19807 "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
19808 "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
19809 "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
19810 "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
19811 "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
19812 "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
19813 "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
19814 "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
19815 "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
19816 "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
19817 "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
19818 "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
19819 "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
19820 "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
19821 "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
19822 "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
19823 "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
19824 "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
19825 "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
19826 "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
19827 "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
19828 "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
19829 "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
19830 "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
19831 "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
19832 "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
19833 "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
19834 "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
19835 "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
19836 "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
19837 "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
19838 "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
19839 "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
19840 "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
19841 "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
19842 "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
19843 "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
19844 "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
19845 "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
19846 "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
19847 "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
19848 "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
19849 "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
19850 "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
19851 "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
19852 "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
19853 "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
19854 "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
19855 "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
19856 "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
19857 "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
19858 "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
19859 "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
19860 "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
19861 "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
19862 "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
19863 "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
19864 "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
19865 "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
19866 "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
19867 "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
19868 "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
19869 "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
19870 "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
19871 "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
19872 "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
19873 "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
19874 "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
19875 "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
19876 "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
19877 "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
19878 "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
19879 "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
19880 "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
19881 "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
19882 "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
19883 "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
19884 "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
19885 "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
19886 "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
19887 "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
19888 "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
19889 "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
19890 "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
19891 "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
19892 "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
19893 "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
19894 "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
19895 "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
19896 "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
19897 "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
19898 "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
19899 "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
19900 "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
19901 "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
19902 "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
19903 "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
19904 "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
19905 "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
19906 "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
19907 "\x38\x45\x52\x5f\x6c\x79\x86\x93"
19908 "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
19909 "\x08\x15\x22\x2f\x3c\x49\x56\x63"
19910 "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
19911 "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
19912 "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
19913 "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
19914 "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
19915 "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
19916 "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
19917 "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
19918 "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
19919 "\x18\x25\x32\x3f\x4c\x59\x66\x73"
19920 "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
19921 "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
19922 "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
19923 "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
19924 "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
19925 "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
19926 "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
19927 "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
19928 "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
19929 "\x28\x35\x42\x4f\x5c\x69\x76\x83"
19930 "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
19931 "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
19932 "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
19933 "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
19934 "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
19935 "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
19936 "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
19937 "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
19938 "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
19939 "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
19940 "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
19941 "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
19942 "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
19943 "\x48\x57\x66\x75\x84\x93\xa2\xb1"
19944 "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
19945 "\x38\x47\x56\x65\x74\x83\x92\xa1"
19946 "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
19947 "\x28\x37\x46\x55\x64\x73\x82\x91"
19948 "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
19949 "\x18\x27\x36\x45\x54\x63\x72\x81"
19950 "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
19951 "\x08\x17\x26\x35\x44\x53\x62\x71"
19952 "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
19953 "\xf8\x07\x16\x25\x34\x43\x52\x61"
19954 "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
19955 "\xe8\xf7\x06\x15\x24\x33\x42\x51"
19956 "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
19957 "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
19958 "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
19959 "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
19960 "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
19961 "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
19962 "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
19963 "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
19964 "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
19965 "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
19966 "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
19967 "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
19968 "\x00\x11\x22\x33\x44\x55\x66\x77"
19969 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
19970 "\x10\x21\x32\x43\x54\x65\x76\x87"
19971 "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
19972 "\x20\x31\x42\x53\x64\x75\x86\x97"
19973 "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
19974 "\x30\x41\x52\x63\x74\x85\x96\xa7"
19975 "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
19976 "\x40\x51\x62\x73\x84\x95\xa6\xb7"
19977 "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
19978 "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
19979 "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
19980 "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
19981 "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
19982 "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
19983 "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
19984 "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
19985 "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
19986 "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
19987 "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
19988 "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
19989 "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
19990 "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
19991 "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
19992 "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
19993 "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
19994 "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
19995 "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
19996 "\xe0\xf1\x02\x13\x24\x35\x46\x57"
19997 "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
19998 "\xf0\x01\x12\x23\x34\x45\x56\x67"
19999 "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
20000 "\x00\x13\x26\x39\x4c\x5f\x72\x85"
20001 "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
20002 "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
20003 "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
20004 "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
20005 "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
20006 "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
20007 "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
20008 "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
20009 "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
20010 "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
20011 "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
20012 "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
20013 "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
20014 "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
20015 "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
20016 "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
20017 "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
20018 "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
20019 "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
20020 "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
20021 "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
20022 "\x10\x23\x36\x49\x5c\x6f\x82\x95"
20023 "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
20024 "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
20025 "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
20026 "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
20027 "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
20028 "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
20029 "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
20030 "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
20031 "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
20032 "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
20033 "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
20034 "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
20035 "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
20036 "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
20037 "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
20038 "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
20039 "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
20040 "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
20041 "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
20042 "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
20043 "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
20044 "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
20045 "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
20046 "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
20047 "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
20048 "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
20049 "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
20050 "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
20051 "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
20052 "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
20053 "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
20054 "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
20055 "\x18\x2d\x42\x57\x6c\x81\x96\xab"
20056 "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
20057 "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
20058 "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
20059 "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
20060 "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
20061 "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
20062 "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
20063 "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
20064 "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
20065 "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
20066 "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
20067 "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
20068 "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
20069 "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
20070 "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
20071 "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
20072 "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
20073 "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
20074 "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
20075 "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
20076 "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
20077 "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
20078 "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
20079 "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
20080 "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
20081 "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
20082 "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
20083 "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
20084 "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
20085 "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
20086 "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
20087 "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
20088 "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
20089 "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
20090 "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
20091 "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
20092 "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
20093 "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
20094 "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
20095 "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
20096 "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
20097 "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
20098 "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
20099 "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
20100 "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
20101 "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
20102 "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
20103 "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
20104 "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
20105 "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
20106 "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
20107 "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
20108 "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
20109 "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
20110 "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
20111 "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
20112 "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
20113 "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
20114 "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
20115 "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
20116 "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
20117 "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
20118 "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
20119 "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
20120 "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
20121 "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
20122 "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
20123 "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
20124 "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
20125 "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
20126 "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
20127 "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
20128 "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
20129 "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
20130 "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
20131 "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
20132 "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
20133 "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
20134 "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
20135 "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
20136 "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
20137 "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
20138 "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
20139 "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
20140 "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
20141 "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
20142 "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
20143 "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
20144 "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
20145 "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
20146 "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
20147 "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
20148 "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
20149 "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
20150 "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
20151 "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
20152 "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
20153 "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
20154 "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
20155 "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
20156 "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
20157 "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
20158 "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
20159 "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
20160 "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
20161 "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
20162 "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
20163 "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
20164 "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
20165 "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
20166 "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
20167 "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
20168 "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
20169 "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
20170 "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
20171 "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
20172 "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
20173 "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
20174 "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
20175 "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
20176 "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
20177 "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
20178 "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
20179 "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
20180 "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
20181 "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
20182 "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
20183 "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
20184 "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
20185 "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
20186 "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
20187 "\x78\x95\xb2\xcf\xec\x09\x26\x43"
20188 "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
20189 "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
20190 "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
20191 "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
20192 "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
20193 "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
20194 "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
20195 "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
20196 "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
20197 "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
20198 "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
20199 "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
20200 "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
20201 "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
20202 "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
20203 "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
20204 "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
20205 "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
20206 "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
20207 "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
20208 "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
20209 "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
20210 "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
20211 "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
20212 "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
20213 "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
20214 "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
20215 "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
20216 "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
20217 "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
20218 "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
20219 "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
20220 "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
20221 "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
20222 "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
20223 "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
20224 "\x00\x21\x42\x63",
20225 .ilen = 4100,
20226 .result =
20227 "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
20228 "\xae\xff\x91\x3a\x44\xcf\x38\x32"
20229 "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
20230 "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
20231 "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
20232 "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
20233 "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
20234 "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
20235 "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
20236 "\x18\xff\x75\x6d\x06\x2d\x00\xab"
20237 "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
20238 "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
20239 "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
20240 "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
20241 "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
20242 "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
20243 "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
20244 "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
20245 "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
20246 "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
20247 "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
20248 "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
20249 "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
20250 "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
20251 "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
20252 "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
20253 "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
20254 "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
20255 "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
20256 "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
20257 "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
20258 "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
20259 "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
20260 "\x6a\x25\x15\x33\x4e\x45\x08\xec"
20261 "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
20262 "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
20263 "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
20264 "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
20265 "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
20266 "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
20267 "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
20268 "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
20269 "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
20270 "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
20271 "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
20272 "\x04\x02\xef\xd3\x44\xde\x76\x31"
20273 "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
20274 "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
20275 "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
20276 "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
20277 "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
20278 "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
20279 "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
20280 "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
20281 "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
20282 "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
20283 "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
20284 "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
20285 "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
20286 "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
20287 "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
20288 "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
20289 "\x32\x03\xed\xf0\x50\x1c\x56\x39"
20290 "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
20291 "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
20292 "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
20293 "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
20294 "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
20295 "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
20296 "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
20297 "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
20298 "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
20299 "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
20300 "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
20301 "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
20302 "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
20303 "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
20304 "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
20305 "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
20306 "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
20307 "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
20308 "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
20309 "\x69\x3a\x29\x23\xac\x86\x32\xa5"
20310 "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
20311 "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
20312 "\x59\x6a\xd3\x50\x59\x43\x59\xde"
20313 "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
20314 "\x18\x34\x0d\x1a\x63\x33\xed\x10"
20315 "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
20316 "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
20317 "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
20318 "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
20319 "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
20320 "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
20321 "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
20322 "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
20323 "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
20324 "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
20325 "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
20326 "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
20327 "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
20328 "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
20329 "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
20330 "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
20331 "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
20332 "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
20333 "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
20334 "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
20335 "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
20336 "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
20337 "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
20338 "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
20339 "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
20340 "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
20341 "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
20342 "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
20343 "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
20344 "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
20345 "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
20346 "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
20347 "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
20348 "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
20349 "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
20350 "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
20351 "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
20352 "\x26\x39\x83\x94\xef\x27\xd8\x53"
20353 "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
20354 "\x43\x7c\x95\x0a\x53\xef\x66\xda"
20355 "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
20356 "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
20357 "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
20358 "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
20359 "\x88\xee\x73\xcf\x66\x2f\x52\x56"
20360 "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
20361 "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
20362 "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
20363 "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
20364 "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
20365 "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
20366 "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
20367 "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
20368 "\xba\x61\x34\x38\x7c\xda\x48\x3e"
20369 "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
20370 "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
20371 "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
20372 "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
20373 "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
20374 "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
20375 "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
20376 "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
20377 "\x35\x12\xe3\x36\x28\x27\x36\x58"
20378 "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
20379 "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
20380 "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
20381 "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
20382 "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
20383 "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
20384 "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
20385 "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
20386 "\x89\xf3\x78\x35\x44\x62\x78\x72"
20387 "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
20388 "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
20389 "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
20390 "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
20391 "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
20392 "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
20393 "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
20394 "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
20395 "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
20396 "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
20397 "\xd2\x49\x77\x81\x6d\x90\x70\xae"
20398 "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
20399 "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
20400 "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
20401 "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
20402 "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
20403 "\x45\x42\x27\x75\x50\xe5\xee\xb8"
20404 "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
20405 "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
20406 "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
20407 "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
20408 "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
20409 "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
20410 "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
20411 "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
20412 "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
20413 "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
20414 "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
20415 "\xa9\x21\x2b\x92\x94\x87\x62\x57"
20416 "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
20417 "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
20418 "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
20419 "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
20420 "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
20421 "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
20422 "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
20423 "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
20424 "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
20425 "\x69\x34\x78\x61\x24\x21\x9c\x8a"
20426 "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
20427 "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
20428 "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
20429 "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
20430 "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
20431 "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
20432 "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
20433 "\xb1\x95\x28\x86\x20\xe9\x17\x49"
20434 "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
20435 "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
20436 "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
20437 "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
20438 "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
20439 "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
20440 "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
20441 "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
20442 "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
20443 "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
20444 "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
20445 "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
20446 "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
20447 "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
20448 "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
20449 "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
20450 "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
20451 "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
20452 "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
20453 "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
20454 "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
20455 "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
20456 "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
20457 "\x29\x90\x46\x30\x92\x69\x7d\x13"
20458 "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
20459 "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
20460 "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
20461 "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
20462 "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
20463 "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
20464 "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
20465 "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
20466 "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
20467 "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
20468 "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
20469 "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
20470 "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
20471 "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
20472 "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
20473 "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
20474 "\x77\x65\x08\x60\x11\x76\x4c\x8d"
20475 "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
20476 "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
20477 "\x03\xd1\x24\x95\xec\x6d\xab\x38"
20478 "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
20479 "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
20480 "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
20481 "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
20482 "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
20483 "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
20484 "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
20485 "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
20486 "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
20487 "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
20488 "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
20489 "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
20490 "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
20491 "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
20492 "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
20493 "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
20494 "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
20495 "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
20496 "\xe5\x79\x81\x73\xcd\x43\x59\x68"
20497 "\x73\x02\x3b\x78\x21\x72\x43\x00"
20498 "\x49\x17\xf7\x00\xaf\x68\x24\x53"
20499 "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
20500 "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
20501 "\x11\x94\x13\x69\x51\x09\x28\xde"
20502 "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
20503 "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
20504 "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
20505 "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
20506 "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
20507 "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
20508 "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
20509 "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
20510 "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
20511 "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
20512 "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
20513 "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
20514 "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
20515 "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
20516 "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
20517 "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
20518 "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
20519 "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
20520 "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
20521 "\x69\xdc\xab\x24\x57\x60\x47\xc1"
20522 "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
20523 "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
20524 "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
20525 "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
20526 "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
20527 "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
20528 "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
20529 "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
20530 "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
20531 "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
20532 "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
20533 "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
20534 "\x85\x62\x82\x70\x18\xe2\x9a\x78"
20535 "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
20536 "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
20537 "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
20538 "\x35\xf3\x61\x06\x72\x84\xc4\x32"
20539 "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
20540 "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
20541 "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
20542 "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
20543 "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
20544 "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
20545 "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
20546 "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
20547 "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
20548 "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
20549 "\x4f\x73\x38\x09\x75\x64\x48\xe0"
20550 "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
20551 "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
20552 "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
20553 "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
20554 "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
20555 "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
20556 "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
20557 "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
20558 "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
20559 "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
20560 "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
20561 "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
20562 "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
20563 "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
20564 "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
20565 "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
20566 "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
20567 "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
20568 "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
20569 "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
20570 "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
20571 "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
20572 "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
20573 "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
20574 "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
20575 "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
20576 "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
20577 "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
20578 "\xce\x4d\x5f\x18\x60\xce\x87\x22"
20579 "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
20580 "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
20581 "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
20582 "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
20583 "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
20584 "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
20585 "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
20586 "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
20587 "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
20588 "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
20589 "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
20590 "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
20591 "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
20592 "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
20593 "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
20594 "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
20595 "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
20596 "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
20597 "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
20598 "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
20599 "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
20600 "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
20601 "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
20602 "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
20603 "\xce\x54\xf9\x18\x58\xb5\xff\x44"
20604 "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
20605 "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
20606 "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
20607 "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
20608 "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
20609 "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
20610 "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
20611 "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
20612 "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
20613 "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
20614 "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
20615 "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
20616 "\x0c\xd6\x04\x14\xde\x51\x74\x75"
20617 "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
20618 "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
20619 "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
20620 "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
20621 "\x75\x46\x65\x4e\x07\x34\x37\xa3"
20622 "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
20623 "\x69\x24\x0e\x38\x67\x43\x8c\xde"
20624 "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
20625 "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
20626 "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
20627 "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
20628 "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
20629 "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
20630 "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
20631 "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
20632 "\x91\x7d\x62\x64\x96\x72\xde\xfc"
20633 "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
20634 "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
20635 "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
20636 "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
20637 "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
20638 "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
20639 "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
20640 "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
20641 "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
20642 "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
20643 "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
20644 "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
20645 "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
20646 "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
20647 "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
20648 "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
20649 "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
20650 "\xae\xed\x39\x88\x42\x11\x3c\xed"
20651 "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
20652 "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
20653 "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
20654 "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
20655 "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
20656 "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
20657 "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
20658 "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
20659 "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
20660 "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
20661 "\x34\x17\xde\xba\x47\xf1\x06\x18"
20662 "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
20663 "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
20664 "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
20665 "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
20666 "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
20667 "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
20668 "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
20669 "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
20670 "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
20671 "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
20672 "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
20673 "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
20674 "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
20675 "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
20676 "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
20677 "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
20678 "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
20679 "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
20680 "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
20681 "\x2c\x56\x39\x79\x0f\x69\x44\x75"
20682 "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
20683 "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
20684 "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
20685 "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
20686 "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
20687 "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
20688 "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
20689 "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
20690 "\x63\x9b\xce\x61\x24\x79\xc0\x70"
20691 "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
20692 "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
20693 "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
20694 "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
20695 "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
20696 "\x74\x56\x58\x40\x02\x37\x52\x2c"
20697 "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
20698 "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
20699 "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
20700 "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
20701 "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
20702 "\xed\x38\x80\x36\x72\x43\x27\x49"
20703 "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
20704 "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
20705 "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
20706 "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
20707 "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
20708 "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
20709 "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
20710 "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
20711 "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
20712 "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
20713 "\x12\xee\x30\xfe\xd8\x30\xef\x34"
20714 "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
20715 "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
20716 "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
20717 "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
20718 "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
20719 "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
20720 "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
20721 "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
20722 "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
20723 "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
20724 "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
20725 "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
20726 "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
20727 "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
20728 "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
20729 "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
20730 "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
20731 "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
20732 "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
20733 "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
20734 "\x44\x12\xfb\x73\x77\xd4\x13\x39"
20735 "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
20736 "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
20737 "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
20738 "\x4b\xef\x31\x18\xea\xac\xb1\x84"
20739 "\x21\xed\xda\x86",
20740 .rlen = 4100,
20741 .np = 2,
20742 .tap = { 4064, 36 },
20746 static struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = {
20747 { /* From RFC 3686 */
20748 .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
20749 "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
20750 "\x00\x00\x00\x30",
20751 .klen = 20,
20752 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
20753 .input = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
20754 "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
20755 .ilen = 16,
20756 .result = "Single block msg",
20757 .rlen = 16,
20758 }, {
20759 .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
20760 "\x43\xd6\xce\x1f\x32\x53\x91\x63"
20761 "\x00\x6c\xb6\xdb",
20762 .klen = 20,
20763 .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
20764 .input = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
20765 "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
20766 "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
20767 "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
20768 .ilen = 32,
20769 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
20770 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
20771 "\x10\x11\x12\x13\x14\x15\x16\x17"
20772 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
20773 .rlen = 32,
20774 }, {
20775 .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
20776 "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
20777 "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
20778 "\x00\x00\x00\x48",
20779 .klen = 28,
20780 .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
20781 .input = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
20782 "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
20783 .ilen = 16,
20784 .result = "Single block msg",
20785 .rlen = 16,
20786 }, {
20787 .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
20788 "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
20789 "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
20790 "\x00\x96\xb0\x3b",
20791 .klen = 28,
20792 .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
20793 .input = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
20794 "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
20795 "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
20796 "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
20797 .ilen = 32,
20798 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
20799 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
20800 "\x10\x11\x12\x13\x14\x15\x16\x17"
20801 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
20802 .rlen = 32,
20803 }, {
20804 .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
20805 "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
20806 "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
20807 "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
20808 "\x00\x00\x00\x60",
20809 .klen = 36,
20810 .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
20811 .input = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
20812 "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
20813 .ilen = 16,
20814 .result = "Single block msg",
20815 .rlen = 16,
20816 }, {
20817 .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
20818 "\x07\x96\x36\x58\x79\xef\xf8\x86"
20819 "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
20820 "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
20821 "\x00\xfa\xac\x24",
20822 .klen = 36,
20823 .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
20824 .input = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
20825 "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
20826 "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
20827 "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
20828 .ilen = 32,
20829 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
20830 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
20831 "\x10\x11\x12\x13\x14\x15\x16\x17"
20832 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
20833 .rlen = 32,
20837 static struct cipher_testvec aes_ofb_enc_tv_template[] = {
20838 /* From NIST Special Publication 800-38A, Appendix F.5 */
20840 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
20841 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
20842 .klen = 16,
20843 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
20844 "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
20845 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
20846 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
20847 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
20848 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
20849 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
20850 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
20851 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
20852 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
20853 .ilen = 64,
20854 .result = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
20855 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
20856 "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
20857 "\x3c\x52\xda\xc5\x4e\xd8\x25"
20858 "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
20859 "\x44\xf7\xa8\x22\x60\xed\xcc"
20860 "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
20861 "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
20862 .rlen = 64,
20866 static struct cipher_testvec aes_ofb_dec_tv_template[] = {
20867 /* From NIST Special Publication 800-38A, Appendix F.5 */
20869 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
20870 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
20871 .klen = 16,
20872 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
20873 "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
20874 .input = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
20875 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
20876 "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
20877 "\x3c\x52\xda\xc5\x4e\xd8\x25"
20878 "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
20879 "\x44\xf7\xa8\x22\x60\xed\xcc"
20880 "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
20881 "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
20882 .ilen = 64,
20883 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
20884 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
20885 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
20886 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
20887 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
20888 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
20889 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
20890 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
20891 .rlen = 64,
20895 static struct aead_testvec aes_gcm_enc_tv_template[] = {
20896 { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
20897 .key = zeroed_string,
20898 .klen = 16,
20899 .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
20900 "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
20901 .rlen = 16,
20902 }, {
20903 .key = zeroed_string,
20904 .klen = 16,
20905 .input = zeroed_string,
20906 .ilen = 16,
20907 .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
20908 "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
20909 "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
20910 "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
20911 .rlen = 32,
20912 }, {
20913 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
20914 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
20915 .klen = 16,
20916 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
20917 "\xde\xca\xf8\x88",
20918 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
20919 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
20920 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
20921 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
20922 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
20923 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
20924 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
20925 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
20926 .ilen = 64,
20927 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
20928 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
20929 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
20930 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
20931 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
20932 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
20933 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
20934 "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
20935 "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
20936 "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
20937 .rlen = 80,
20938 }, {
20939 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
20940 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
20941 .klen = 16,
20942 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
20943 "\xde\xca\xf8\x88",
20944 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
20945 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
20946 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
20947 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
20948 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
20949 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
20950 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
20951 "\xba\x63\x7b\x39",
20952 .ilen = 60,
20953 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
20954 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
20955 "\xab\xad\xda\xd2",
20956 .alen = 20,
20957 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
20958 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
20959 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
20960 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
20961 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
20962 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
20963 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
20964 "\x3d\x58\xe0\x91"
20965 "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
20966 "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
20967 .rlen = 76,
20968 }, {
20969 .key = zeroed_string,
20970 .klen = 24,
20971 .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
20972 "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
20973 .rlen = 16,
20974 }, {
20975 .key = zeroed_string,
20976 .klen = 24,
20977 .input = zeroed_string,
20978 .ilen = 16,
20979 .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
20980 "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
20981 "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
20982 "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
20983 .rlen = 32,
20984 }, {
20985 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
20986 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
20987 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
20988 .klen = 24,
20989 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
20990 "\xde\xca\xf8\x88",
20991 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
20992 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
20993 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
20994 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
20995 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
20996 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
20997 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
20998 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
20999 .ilen = 64,
21000 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
21001 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
21002 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
21003 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
21004 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
21005 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
21006 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
21007 "\xcc\xda\x27\x10\xac\xad\xe2\x56"
21008 "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
21009 "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
21010 .rlen = 80,
21011 }, {
21012 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21013 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21014 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
21015 .klen = 24,
21016 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21017 "\xde\xca\xf8\x88",
21018 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21019 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21020 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21021 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21022 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21023 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21024 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21025 "\xba\x63\x7b\x39",
21026 .ilen = 60,
21027 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21028 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21029 "\xab\xad\xda\xd2",
21030 .alen = 20,
21031 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
21032 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
21033 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
21034 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
21035 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
21036 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
21037 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
21038 "\xcc\xda\x27\x10"
21039 "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
21040 "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
21041 .rlen = 76,
21042 .np = 2,
21043 .tap = { 32, 28 },
21044 .anp = 2,
21045 .atap = { 8, 12 }
21046 }, {
21047 .key = zeroed_string,
21048 .klen = 32,
21049 .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
21050 "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
21051 .rlen = 16,
21055 static struct aead_testvec aes_gcm_dec_tv_template[] = {
21056 { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
21057 .key = zeroed_string,
21058 .klen = 32,
21059 .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
21060 "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
21061 "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
21062 "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
21063 .ilen = 32,
21064 .result = zeroed_string,
21065 .rlen = 16,
21066 }, {
21067 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21068 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21069 "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21070 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
21071 .klen = 32,
21072 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21073 "\xde\xca\xf8\x88",
21074 .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
21075 "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
21076 "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
21077 "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
21078 "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
21079 "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
21080 "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
21081 "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
21082 "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
21083 "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
21084 .ilen = 80,
21085 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21086 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21087 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21088 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21089 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21090 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21091 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21092 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
21093 .rlen = 64,
21094 }, {
21095 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21096 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21097 "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21098 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
21099 .klen = 32,
21100 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21101 "\xde\xca\xf8\x88",
21102 .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
21103 "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
21104 "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
21105 "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
21106 "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
21107 "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
21108 "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
21109 "\xbc\xc9\xf6\x62"
21110 "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
21111 "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
21112 .ilen = 76,
21113 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21114 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21115 "\xab\xad\xda\xd2",
21116 .alen = 20,
21117 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21118 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21119 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21120 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21121 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21122 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21123 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21124 "\xba\x63\x7b\x39",
21125 .rlen = 60,
21126 .np = 2,
21127 .tap = { 48, 28 },
21128 .anp = 3,
21129 .atap = { 8, 8, 4 }
21130 }, {
21131 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21132 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
21133 .klen = 16,
21134 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21135 "\xde\xca\xf8\x88",
21136 .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
21137 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
21138 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
21139 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
21140 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
21141 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
21142 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
21143 "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
21144 "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
21145 "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
21146 .ilen = 80,
21147 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21148 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21149 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21150 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21151 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21152 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21153 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21154 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
21155 .rlen = 64,
21156 }, {
21157 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21158 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
21159 .klen = 16,
21160 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21161 "\xde\xca\xf8\x88",
21162 .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
21163 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
21164 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
21165 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
21166 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
21167 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
21168 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
21169 "\x3d\x58\xe0\x91"
21170 "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
21171 "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
21172 .ilen = 76,
21173 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21174 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21175 "\xab\xad\xda\xd2",
21176 .alen = 20,
21177 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21178 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21179 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21180 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21181 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21182 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21183 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21184 "\xba\x63\x7b\x39",
21185 .rlen = 60,
21186 }, {
21187 .key = zeroed_string,
21188 .klen = 24,
21189 .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
21190 "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
21191 "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
21192 "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
21193 .ilen = 32,
21194 .result = zeroed_string,
21195 .rlen = 16,
21196 }, {
21197 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21198 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21199 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
21200 .klen = 24,
21201 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21202 "\xde\xca\xf8\x88",
21203 .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
21204 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
21205 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
21206 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
21207 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
21208 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
21209 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
21210 "\xcc\xda\x27\x10\xac\xad\xe2\x56"
21211 "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
21212 "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
21213 .ilen = 80,
21214 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21215 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21216 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21217 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21218 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21219 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21220 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21221 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
21222 .rlen = 64,
21223 }, {
21224 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21225 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21226 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
21227 .klen = 24,
21228 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21229 "\xde\xca\xf8\x88",
21230 .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
21231 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
21232 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
21233 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
21234 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
21235 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
21236 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
21237 "\xcc\xda\x27\x10"
21238 "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
21239 "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
21240 .ilen = 76,
21241 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21242 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21243 "\xab\xad\xda\xd2",
21244 .alen = 20,
21245 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21246 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21247 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21248 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21249 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21250 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21251 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21252 "\xba\x63\x7b\x39",
21253 .rlen = 60,
21257 static struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = {
21258 { /* Generated using Crypto++ */
21259 .key = zeroed_string,
21260 .klen = 20,
21261 .iv = zeroed_string,
21262 .input = zeroed_string,
21263 .ilen = 16,
21264 .assoc = zeroed_string,
21265 .alen = 16,
21266 .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
21267 "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
21268 "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
21269 "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
21270 .rlen = 32,
21272 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21273 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21274 "\x00\x00\x00\x00",
21275 .klen = 20,
21276 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
21277 .input = zeroed_string,
21278 .ilen = 16,
21279 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
21280 "\x00\x00\x00\x00\x00\x00\x00\x01",
21281 .alen = 16,
21282 .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
21283 "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
21284 "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
21285 "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
21286 .rlen = 32,
21288 }, {
21289 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21290 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21291 "\x00\x00\x00\x00",
21292 .klen = 20,
21293 .iv = zeroed_string,
21294 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
21295 "\x01\x01\x01\x01\x01\x01\x01\x01",
21296 .ilen = 16,
21297 .assoc = zeroed_string,
21298 .alen = 16,
21299 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
21300 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
21301 "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
21302 "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
21303 .rlen = 32,
21304 }, {
21305 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21306 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21307 "\x00\x00\x00\x00",
21308 .klen = 20,
21309 .iv = zeroed_string,
21310 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
21311 "\x01\x01\x01\x01\x01\x01\x01\x01",
21312 .ilen = 16,
21313 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
21314 "\x00\x00\x00\x00\x00\x00\x00\x00",
21315 .alen = 16,
21316 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
21317 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
21318 "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
21319 "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
21320 .rlen = 32,
21321 }, {
21322 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21323 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21324 "\x00\x00\x00\x00",
21325 .klen = 20,
21326 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
21327 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
21328 "\x01\x01\x01\x01\x01\x01\x01\x01",
21329 .ilen = 16,
21330 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
21331 "\x00\x00\x00\x00\x00\x00\x00\x01",
21332 .alen = 16,
21333 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
21334 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
21335 "\x64\x50\xF9\x32\x13\xFB\x74\x61"
21336 "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
21337 .rlen = 32,
21338 }, {
21339 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21340 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21341 "\x00\x00\x00\x00",
21342 .klen = 20,
21343 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
21344 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
21345 "\x01\x01\x01\x01\x01\x01\x01\x01"
21346 "\x01\x01\x01\x01\x01\x01\x01\x01"
21347 "\x01\x01\x01\x01\x01\x01\x01\x01"
21348 "\x01\x01\x01\x01\x01\x01\x01\x01"
21349 "\x01\x01\x01\x01\x01\x01\x01\x01"
21350 "\x01\x01\x01\x01\x01\x01\x01\x01"
21351 "\x01\x01\x01\x01\x01\x01\x01\x01",
21352 .ilen = 64,
21353 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
21354 "\x00\x00\x00\x00\x00\x00\x00\x01",
21355 .alen = 16,
21356 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
21357 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
21358 "\x98\x14\xA1\x42\x37\x80\xFD\x90"
21359 "\x68\x12\x01\xA8\x91\x89\xB9\x83"
21360 "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
21361 "\x94\x5F\x18\x12\xBA\x27\x09\x39"
21362 "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
21363 "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
21364 "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
21365 "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
21366 .rlen = 80,
21367 }, {
21368 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
21369 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
21370 "\x00\x00\x00\x00",
21371 .klen = 20,
21372 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
21373 .input = "\xff\xff\xff\xff\xff\xff\xff\xff"
21374 "\xff\xff\xff\xff\xff\xff\xff\xff"
21375 "\xff\xff\xff\xff\xff\xff\xff\xff"
21376 "\xff\xff\xff\xff\xff\xff\xff\xff"
21377 "\xff\xff\xff\xff\xff\xff\xff\xff"
21378 "\xff\xff\xff\xff\xff\xff\xff\xff"
21379 "\xff\xff\xff\xff\xff\xff\xff\xff"
21380 "\xff\xff\xff\xff\xff\xff\xff\xff"
21381 "\xff\xff\xff\xff\xff\xff\xff\xff"
21382 "\xff\xff\xff\xff\xff\xff\xff\xff"
21383 "\xff\xff\xff\xff\xff\xff\xff\xff"
21384 "\xff\xff\xff\xff\xff\xff\xff\xff"
21385 "\xff\xff\xff\xff\xff\xff\xff\xff"
21386 "\xff\xff\xff\xff\xff\xff\xff\xff"
21387 "\xff\xff\xff\xff\xff\xff\xff\xff"
21388 "\xff\xff\xff\xff\xff\xff\xff\xff"
21389 "\xff\xff\xff\xff\xff\xff\xff\xff"
21390 "\xff\xff\xff\xff\xff\xff\xff\xff"
21391 "\xff\xff\xff\xff\xff\xff\xff\xff"
21392 "\xff\xff\xff\xff\xff\xff\xff\xff"
21393 "\xff\xff\xff\xff\xff\xff\xff\xff"
21394 "\xff\xff\xff\xff\xff\xff\xff\xff"
21395 "\xff\xff\xff\xff\xff\xff\xff\xff"
21396 "\xff\xff\xff\xff\xff\xff\xff\xff",
21397 .ilen = 192,
21398 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
21399 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
21400 "\x89\xab\xcd\xef",
21401 .alen = 20,
21402 .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
21403 "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
21404 "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
21405 "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
21406 "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
21407 "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
21408 "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
21409 "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
21410 "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
21411 "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
21412 "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
21413 "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
21414 "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
21415 "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
21416 "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
21417 "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
21418 "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
21419 "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
21420 "\x7E\x13\x06\x82\x08\x17\xA4\x35"
21421 "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
21422 "\xA3\x05\x38\x95\x20\x1A\x47\x04"
21423 "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
21424 "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
21425 "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
21426 "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
21427 "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
21428 .rlen = 208,
21429 }, { /* From draft-mcgrew-gcm-test-01 */
21430 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
21431 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
21432 "\x2E\x44\x3B\x68",
21433 .klen = 20,
21434 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
21435 .input = "\x45\x00\x00\x48\x69\x9A\x00\x00"
21436 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
21437 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
21438 "\x38\xD3\x01\x00\x00\x01\x00\x00"
21439 "\x00\x00\x00\x00\x04\x5F\x73\x69"
21440 "\x70\x04\x5F\x75\x64\x70\x03\x73"
21441 "\x69\x70\x09\x63\x79\x62\x65\x72"
21442 "\x63\x69\x74\x79\x02\x64\x6B\x00"
21443 "\x00\x21\x00\x01\x01\x02\x02\x01",
21444 .ilen = 72,
21445 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
21446 "\x00\x00\x00\x00\x49\x56\xED\x7E"
21447 "\x3B\x24\x4C\xFE",
21448 .alen = 20,
21449 .result = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
21450 "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
21451 "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
21452 "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
21453 "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
21454 "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
21455 "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
21456 "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
21457 "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
21458 "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
21459 "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
21460 .rlen = 88,
21461 }, {
21462 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
21463 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
21464 "\xCA\xFE\xBA\xBE",
21465 .klen = 20,
21466 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
21467 .input = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
21468 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
21469 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
21470 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
21471 "\x00\x01\x00\x00\x00\x00\x00\x00"
21472 "\x03\x73\x69\x70\x09\x63\x79\x62"
21473 "\x65\x72\x63\x69\x74\x79\x02\x64"
21474 "\x6B\x00\x00\x01\x00\x01\x00\x01",
21475 .ilen = 64,
21476 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
21477 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
21478 .alen = 16,
21479 .result = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
21480 "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
21481 "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
21482 "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
21483 "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
21484 "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
21485 "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
21486 "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
21487 "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
21488 "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
21489 .rlen = 80,
21490 }, {
21491 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21492 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21493 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21494 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21495 "\x11\x22\x33\x44",
21496 .klen = 36,
21497 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
21498 .input = "\x45\x00\x00\x30\x69\xA6\x40\x00"
21499 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
21500 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
21501 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
21502 "\x70\x02\x40\x00\x20\xBF\x00\x00"
21503 "\x02\x04\x05\xB4\x01\x01\x04\x02"
21504 "\x01\x02\x02\x01",
21505 .ilen = 52,
21506 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
21507 "\x01\x02\x03\x04\x05\x06\x07\x08",
21508 .alen = 16,
21509 .result = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
21510 "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
21511 "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
21512 "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
21513 "\x74\x8A\x63\x79\x85\x77\x1D\x34"
21514 "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
21515 "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
21516 "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
21517 "\x15\x95\x6C\x96",
21518 .rlen = 68,
21519 }, {
21520 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
21521 "\x00\x00\x00\x00\x00\x00\x00\x00"
21522 "\x00\x00\x00\x00",
21523 .klen = 20,
21524 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
21525 .input = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
21526 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
21527 "\x01\x01\x01\x01\x08\x00\x07\x5C"
21528 "\x02\x00\x44\x00\x61\x62\x63\x64"
21529 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
21530 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
21531 "\x75\x76\x77\x61\x62\x63\x64\x65"
21532 "\x66\x67\x68\x69\x01\x02\x02\x01",
21533 .ilen = 64,
21534 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
21535 "\x00\x00\x00\x00\x00\x00\x00\x00",
21536 .alen = 16,
21537 .result = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
21538 "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
21539 "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
21540 "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
21541 "\x45\x64\x76\x49\x27\x19\xFF\xB6"
21542 "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
21543 "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
21544 "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
21545 "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
21546 "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
21547 .rlen = 80,
21548 }, {
21549 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
21550 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
21551 "\x57\x69\x0E\x43",
21552 .klen = 20,
21553 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
21554 .input = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
21555 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
21556 "\x01\x01\x01\x01\x08\x00\x08\x5C"
21557 "\x02\x00\x43\x00\x61\x62\x63\x64"
21558 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
21559 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
21560 "\x75\x76\x77\x61\x62\x63\x64\x65"
21561 "\x66\x67\x68\x69\x01\x02\x02\x01",
21562 .ilen = 64,
21563 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
21564 "\x10\x10\x10\x10\x4E\x28\x00\x00"
21565 "\xA2\xFC\xA1\xA3",
21566 .alen = 20,
21567 .result = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
21568 "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
21569 "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
21570 "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
21571 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
21572 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
21573 "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
21574 "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
21575 "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
21576 "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
21577 .rlen = 80,
21578 }, {
21579 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
21580 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
21581 "\x57\x69\x0E\x43",
21582 .klen = 20,
21583 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
21584 .input = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
21585 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
21586 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
21587 "\x01\x02\x02\x01",
21588 .ilen = 28,
21589 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
21590 "\x10\x10\x10\x10\x4E\x28\x00\x00"
21591 "\xA2\xFC\xA1\xA3",
21592 .alen = 20,
21593 .result = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
21594 "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
21595 "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
21596 "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
21597 "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
21598 "\xE7\xD0\x5D\x35",
21599 .rlen = 44,
21600 }, {
21601 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
21602 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
21603 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
21604 "\xCA\xFE\xBA\xBE",
21605 .klen = 28,
21606 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
21607 .input = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
21608 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
21609 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
21610 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
21611 "\x50\x10\x16\xD0\x75\x68\x00\x01",
21612 .ilen = 40,
21613 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
21614 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
21615 .alen = 16,
21616 .result = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
21617 "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
21618 "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
21619 "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
21620 "\x31\x5B\x27\x45\x21\x44\xCC\x77"
21621 "\x95\x45\x7B\x96\x52\x03\x7F\x53"
21622 "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
21623 .rlen = 56,
21624 }, {
21625 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21626 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21627 "\xDE\xCA\xF8\x88",
21628 .klen = 20,
21629 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
21630 .input = "\x45\x00\x00\x49\x33\xBA\x00\x00"
21631 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
21632 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
21633 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
21634 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
21635 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
21636 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
21637 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
21638 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
21639 "\x23\x01\x01\x01",
21640 .ilen = 76,
21641 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
21642 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
21643 "\xCE\xFA\xCE\x74",
21644 .alen = 20,
21645 .result = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
21646 "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
21647 "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
21648 "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
21649 "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
21650 "\x84\xE6\x58\x63\x96\x5D\x74\x72"
21651 "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
21652 "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
21653 "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
21654 "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
21655 "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
21656 "\x69\x62\x34\x36",
21657 .rlen = 92,
21658 }, {
21659 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21660 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21661 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21662 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21663 "\x73\x61\x6C\x74",
21664 .klen = 36,
21665 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
21666 .input = "\x45\x08\x00\x28\x73\x2C\x00\x00"
21667 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
21668 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
21669 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
21670 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
21671 .ilen = 40,
21672 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
21673 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
21674 "\x69\x76\x65\x63",
21675 .alen = 20,
21676 .result = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
21677 "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
21678 "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
21679 "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
21680 "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
21681 "\x45\x16\x26\xC2\x41\x57\x71\xE3"
21682 "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
21683 .rlen = 56,
21684 }, {
21685 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
21686 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
21687 "\x57\x69\x0E\x43",
21688 .klen = 20,
21689 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
21690 .input = "\x45\x00\x00\x49\x33\x3E\x00\x00"
21691 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
21692 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
21693 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
21694 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
21695 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
21696 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
21697 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
21698 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
21699 "\x15\x01\x01\x01",
21700 .ilen = 76,
21701 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
21702 "\x10\x10\x10\x10\x4E\x28\x00\x00"
21703 "\xA2\xFC\xA1\xA3",
21704 .alen = 20,
21705 .result = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
21706 "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
21707 "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
21708 "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
21709 "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
21710 "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
21711 "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
21712 "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
21713 "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
21714 "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
21715 "\x76\x91\x89\x60\x97\x63\xB8\xE1"
21716 "\x8C\xAA\x81\xE2",
21717 .rlen = 92,
21718 }, {
21719 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21720 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21721 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21722 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21723 "\x73\x61\x6C\x74",
21724 .klen = 36,
21725 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
21726 .input = "\x63\x69\x73\x63\x6F\x01\x72\x75"
21727 "\x6C\x65\x73\x01\x74\x68\x65\x01"
21728 "\x6E\x65\x74\x77\x65\x01\x64\x65"
21729 "\x66\x69\x6E\x65\x01\x74\x68\x65"
21730 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
21731 "\x67\x69\x65\x73\x01\x74\x68\x61"
21732 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
21733 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
21734 "\x72\x72\x6F\x77\x01\x02\x02\x01",
21735 .ilen = 72,
21736 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
21737 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
21738 "\x69\x76\x65\x63",
21739 .alen = 20,
21740 .result = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
21741 "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
21742 "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
21743 "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
21744 "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
21745 "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
21746 "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
21747 "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
21748 "\x12\xA4\x93\x63\x41\x23\x64\xF8"
21749 "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
21750 "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
21751 .rlen = 88,
21752 }, {
21753 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
21754 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
21755 "\xD9\x66\x42\x67",
21756 .klen = 20,
21757 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
21758 .input = "\x01\x02\x02\x01",
21759 .ilen = 4,
21760 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
21761 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
21762 .alen = 16,
21763 .result = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
21764 "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
21765 "\x04\xBE\xF2\x70",
21766 .rlen = 20,
21767 }, {
21768 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21769 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21770 "\xDE\xCA\xF8\x88",
21771 .klen = 20,
21772 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
21773 .input = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
21774 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
21775 "\x62\x65\x00\x01",
21776 .ilen = 20,
21777 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
21778 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
21779 "\xCE\xFA\xCE\x74",
21780 .alen = 20,
21781 .result = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
21782 "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
21783 "\x43\x33\x21\x64\x41\x25\x03\x52"
21784 "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
21785 "\x43\xAF\x8C\x3E",
21786 .rlen = 36,
21787 }, {
21788 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
21789 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
21790 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
21791 "\x62\x65\x66\x6F\x72\x65\x69\x61"
21792 "\x74\x75\x72\x6E",
21793 .klen = 36,
21794 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
21795 .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
21796 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
21797 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
21798 "\x02\x00\x07\x00\x61\x62\x63\x64"
21799 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
21800 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
21801 "\x01\x02\x02\x01",
21802 .ilen = 52,
21803 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
21804 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
21805 "\x67\x65\x74\x6D",
21806 .alen = 20,
21807 .result = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
21808 "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
21809 "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
21810 "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
21811 "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
21812 "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
21813 "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
21814 "\x94\x5F\x66\x93\x68\x66\x1A\x32"
21815 "\x9F\xB4\xC0\x53",
21816 .rlen = 68,
21817 }, {
21818 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
21819 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
21820 "\x57\x69\x0E\x43",
21821 .klen = 20,
21822 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
21823 .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
21824 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
21825 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
21826 "\x02\x00\x07\x00\x61\x62\x63\x64"
21827 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
21828 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
21829 "\x01\x02\x02\x01",
21830 .ilen = 52,
21831 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
21832 "\x10\x10\x10\x10\x4E\x28\x00\x00"
21833 "\xA2\xFC\xA1\xA3",
21834 .alen = 20,
21835 .result = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
21836 "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
21837 "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
21838 "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
21839 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
21840 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
21841 "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
21842 "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
21843 "\x40\xD7\xCB\x05",
21844 .rlen = 68,
21845 }, {
21846 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
21847 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
21848 "\x22\x43\x3C\x64",
21849 .klen = 20,
21850 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
21851 .input = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
21852 "\x61\x62\x63\x64\x65\x66\x67\x68"
21853 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
21854 "\x71\x72\x73\x74\x01\x02\x02\x01",
21855 .ilen = 32,
21856 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
21857 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
21858 "\x3A\x23\x4B\xFD",
21859 .alen = 20,
21860 .result = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
21861 "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
21862 "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
21863 "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
21864 "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
21865 "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
21866 .rlen = 48,
21870 static struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = {
21871 { /* Generated using Crypto++ */
21872 .key = zeroed_string,
21873 .klen = 20,
21874 .iv = zeroed_string,
21875 .input = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
21876 "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
21877 "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
21878 "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
21879 .ilen = 32,
21880 .assoc = zeroed_string,
21881 .alen = 16,
21882 .result = zeroed_string,
21883 .rlen = 16,
21886 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21887 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21888 "\x00\x00\x00\x00",
21889 .klen = 20,
21890 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
21891 .input = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
21892 "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
21893 "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
21894 "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
21895 .ilen = 32,
21896 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
21897 "\x00\x00\x00\x00\x00\x00\x00\x01",
21898 .alen = 16,
21899 .result = zeroed_string,
21900 .rlen = 16,
21901 }, {
21902 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21903 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21904 "\x00\x00\x00\x00",
21905 .klen = 20,
21906 .iv = zeroed_string,
21907 .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
21908 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
21909 "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
21910 "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
21911 .ilen = 32,
21912 .assoc = zeroed_string,
21913 .alen = 16,
21914 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
21915 "\x01\x01\x01\x01\x01\x01\x01\x01",
21916 .rlen = 16,
21917 }, {
21918 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21919 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21920 "\x00\x00\x00\x00",
21921 .klen = 20,
21922 .iv = zeroed_string,
21923 .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
21924 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
21925 "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
21926 "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
21927 .ilen = 32,
21928 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
21929 "\x00\x00\x00\x00\x00\x00\x00\x00",
21930 .alen = 16,
21931 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
21932 "\x01\x01\x01\x01\x01\x01\x01\x01",
21933 .rlen = 16,
21935 }, {
21936 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21937 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21938 "\x00\x00\x00\x00",
21939 .klen = 20,
21940 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
21941 .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
21942 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
21943 "\x64\x50\xF9\x32\x13\xFB\x74\x61"
21944 "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
21945 .ilen = 32,
21946 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
21947 "\x00\x00\x00\x00\x00\x00\x00\x01",
21948 .alen = 16,
21949 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
21950 "\x01\x01\x01\x01\x01\x01\x01\x01",
21951 .rlen = 16,
21952 }, {
21953 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21954 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21955 "\x00\x00\x00\x00",
21956 .klen = 20,
21957 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
21958 .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
21959 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
21960 "\x98\x14\xA1\x42\x37\x80\xFD\x90"
21961 "\x68\x12\x01\xA8\x91\x89\xB9\x83"
21962 "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
21963 "\x94\x5F\x18\x12\xBA\x27\x09\x39"
21964 "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
21965 "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
21966 "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
21967 "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
21968 .ilen = 80,
21969 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
21970 "\x00\x00\x00\x00\x00\x00\x00\x01",
21971 .alen = 16,
21972 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
21973 "\x01\x01\x01\x01\x01\x01\x01\x01"
21974 "\x01\x01\x01\x01\x01\x01\x01\x01"
21975 "\x01\x01\x01\x01\x01\x01\x01\x01"
21976 "\x01\x01\x01\x01\x01\x01\x01\x01"
21977 "\x01\x01\x01\x01\x01\x01\x01\x01"
21978 "\x01\x01\x01\x01\x01\x01\x01\x01"
21979 "\x01\x01\x01\x01\x01\x01\x01\x01",
21980 .rlen = 64,
21981 }, {
21982 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
21983 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
21984 "\x00\x00\x00\x00",
21985 .klen = 20,
21986 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
21987 .input = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
21988 "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
21989 "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
21990 "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
21991 "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
21992 "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
21993 "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
21994 "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
21995 "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
21996 "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
21997 "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
21998 "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
21999 "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
22000 "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
22001 "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
22002 "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
22003 "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
22004 "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
22005 "\x7E\x13\x06\x82\x08\x17\xA4\x35"
22006 "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
22007 "\xA3\x05\x38\x95\x20\x1A\x47\x04"
22008 "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
22009 "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
22010 "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
22011 "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
22012 "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
22013 .ilen = 208,
22014 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
22015 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
22016 "\x89\xab\xcd\xef",
22017 .alen = 20,
22018 .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
22019 "\xff\xff\xff\xff\xff\xff\xff\xff"
22020 "\xff\xff\xff\xff\xff\xff\xff\xff"
22021 "\xff\xff\xff\xff\xff\xff\xff\xff"
22022 "\xff\xff\xff\xff\xff\xff\xff\xff"
22023 "\xff\xff\xff\xff\xff\xff\xff\xff"
22024 "\xff\xff\xff\xff\xff\xff\xff\xff"
22025 "\xff\xff\xff\xff\xff\xff\xff\xff"
22026 "\xff\xff\xff\xff\xff\xff\xff\xff"
22027 "\xff\xff\xff\xff\xff\xff\xff\xff"
22028 "\xff\xff\xff\xff\xff\xff\xff\xff"
22029 "\xff\xff\xff\xff\xff\xff\xff\xff"
22030 "\xff\xff\xff\xff\xff\xff\xff\xff"
22031 "\xff\xff\xff\xff\xff\xff\xff\xff"
22032 "\xff\xff\xff\xff\xff\xff\xff\xff"
22033 "\xff\xff\xff\xff\xff\xff\xff\xff"
22034 "\xff\xff\xff\xff\xff\xff\xff\xff"
22035 "\xff\xff\xff\xff\xff\xff\xff\xff"
22036 "\xff\xff\xff\xff\xff\xff\xff\xff"
22037 "\xff\xff\xff\xff\xff\xff\xff\xff"
22038 "\xff\xff\xff\xff\xff\xff\xff\xff"
22039 "\xff\xff\xff\xff\xff\xff\xff\xff"
22040 "\xff\xff\xff\xff\xff\xff\xff\xff"
22041 "\xff\xff\xff\xff\xff\xff\xff\xff",
22042 .rlen = 192,
22043 }, {
22044 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
22045 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
22046 "\x2E\x44\x3B\x68",
22047 .klen = 20,
22048 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
22049 .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
22050 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
22051 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
22052 "\x38\xD3\x01\x00\x00\x01\x00\x00"
22053 "\x00\x00\x00\x00\x04\x5F\x73\x69"
22054 "\x70\x04\x5F\x75\x64\x70\x03\x73"
22055 "\x69\x70\x09\x63\x79\x62\x65\x72"
22056 "\x63\x69\x74\x79\x02\x64\x6B\x00"
22057 "\x00\x21\x00\x01\x01\x02\x02\x01",
22058 .rlen = 72,
22059 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
22060 "\x00\x00\x00\x00\x49\x56\xED\x7E"
22061 "\x3B\x24\x4C\xFE",
22062 .alen = 20,
22063 .input = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
22064 "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
22065 "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
22066 "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
22067 "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
22068 "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
22069 "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
22070 "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
22071 "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
22072 "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
22073 "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
22074 .ilen = 88,
22075 }, {
22076 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
22077 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
22078 "\xCA\xFE\xBA\xBE",
22079 .klen = 20,
22080 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
22081 .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
22082 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
22083 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
22084 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
22085 "\x00\x01\x00\x00\x00\x00\x00\x00"
22086 "\x03\x73\x69\x70\x09\x63\x79\x62"
22087 "\x65\x72\x63\x69\x74\x79\x02\x64"
22088 "\x6B\x00\x00\x01\x00\x01\x00\x01",
22089 .rlen = 64,
22090 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
22091 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
22092 .alen = 16,
22093 .input = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
22094 "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
22095 "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
22096 "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
22097 "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
22098 "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
22099 "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
22100 "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
22101 "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
22102 "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
22103 .ilen = 80,
22104 }, {
22105 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22106 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22107 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22108 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22109 "\x11\x22\x33\x44",
22110 .klen = 36,
22111 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
22112 .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
22113 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
22114 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
22115 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
22116 "\x70\x02\x40\x00\x20\xBF\x00\x00"
22117 "\x02\x04\x05\xB4\x01\x01\x04\x02"
22118 "\x01\x02\x02\x01",
22119 .rlen = 52,
22120 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
22121 "\x01\x02\x03\x04\x05\x06\x07\x08",
22122 .alen = 16,
22123 .input = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
22124 "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
22125 "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
22126 "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
22127 "\x74\x8A\x63\x79\x85\x77\x1D\x34"
22128 "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
22129 "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
22130 "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
22131 "\x15\x95\x6C\x96",
22132 .ilen = 68,
22133 }, {
22134 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
22135 "\x00\x00\x00\x00\x00\x00\x00\x00"
22136 "\x00\x00\x00\x00",
22137 .klen = 20,
22138 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
22139 .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
22140 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
22141 "\x01\x01\x01\x01\x08\x00\x07\x5C"
22142 "\x02\x00\x44\x00\x61\x62\x63\x64"
22143 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
22144 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
22145 "\x75\x76\x77\x61\x62\x63\x64\x65"
22146 "\x66\x67\x68\x69\x01\x02\x02\x01",
22147 .rlen = 64,
22148 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
22149 "\x00\x00\x00\x00\x00\x00\x00\x00",
22150 .alen = 16,
22151 .input = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
22152 "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
22153 "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
22154 "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
22155 "\x45\x64\x76\x49\x27\x19\xFF\xB6"
22156 "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
22157 "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
22158 "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
22159 "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
22160 "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
22161 .ilen = 80,
22162 }, {
22163 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
22164 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
22165 "\x57\x69\x0E\x43",
22166 .klen = 20,
22167 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
22168 .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
22169 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
22170 "\x01\x01\x01\x01\x08\x00\x08\x5C"
22171 "\x02\x00\x43\x00\x61\x62\x63\x64"
22172 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
22173 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
22174 "\x75\x76\x77\x61\x62\x63\x64\x65"
22175 "\x66\x67\x68\x69\x01\x02\x02\x01",
22176 .rlen = 64,
22177 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
22178 "\x10\x10\x10\x10\x4E\x28\x00\x00"
22179 "\xA2\xFC\xA1\xA3",
22180 .alen = 20,
22181 .input = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
22182 "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
22183 "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
22184 "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
22185 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
22186 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
22187 "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
22188 "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
22189 "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
22190 "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
22191 .ilen = 80,
22192 }, {
22193 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
22194 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
22195 "\x57\x69\x0E\x43",
22196 .klen = 20,
22197 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
22198 .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
22199 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
22200 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
22201 "\x01\x02\x02\x01",
22202 .rlen = 28,
22203 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
22204 "\x10\x10\x10\x10\x4E\x28\x00\x00"
22205 "\xA2\xFC\xA1\xA3",
22206 .alen = 20,
22207 .input = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
22208 "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
22209 "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
22210 "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
22211 "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
22212 "\xE7\xD0\x5D\x35",
22213 .ilen = 44,
22214 }, {
22215 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
22216 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
22217 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
22218 "\xCA\xFE\xBA\xBE",
22219 .klen = 28,
22220 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
22221 .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
22222 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
22223 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
22224 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
22225 "\x50\x10\x16\xD0\x75\x68\x00\x01",
22226 .rlen = 40,
22227 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
22228 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
22229 .alen = 16,
22230 .input = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
22231 "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
22232 "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
22233 "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
22234 "\x31\x5B\x27\x45\x21\x44\xCC\x77"
22235 "\x95\x45\x7B\x96\x52\x03\x7F\x53"
22236 "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
22237 .ilen = 56,
22238 }, {
22239 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22240 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22241 "\xDE\xCA\xF8\x88",
22242 .klen = 20,
22243 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
22244 .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
22245 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
22246 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
22247 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
22248 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
22249 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
22250 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
22251 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
22252 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
22253 "\x23\x01\x01\x01",
22254 .rlen = 76,
22255 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
22256 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
22257 "\xCE\xFA\xCE\x74",
22258 .alen = 20,
22259 .input = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
22260 "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
22261 "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
22262 "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
22263 "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
22264 "\x84\xE6\x58\x63\x96\x5D\x74\x72"
22265 "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
22266 "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
22267 "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
22268 "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
22269 "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
22270 "\x69\x62\x34\x36",
22271 .ilen = 92,
22272 }, {
22273 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22274 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22275 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22276 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22277 "\x73\x61\x6C\x74",
22278 .klen = 36,
22279 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
22280 .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
22281 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
22282 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
22283 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
22284 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
22285 .rlen = 40,
22286 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
22287 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
22288 "\x69\x76\x65\x63",
22289 .alen = 20,
22290 .input = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
22291 "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
22292 "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
22293 "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
22294 "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
22295 "\x45\x16\x26\xC2\x41\x57\x71\xE3"
22296 "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
22297 .ilen = 56,
22298 }, {
22299 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
22300 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
22301 "\x57\x69\x0E\x43",
22302 .klen = 20,
22303 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
22304 .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
22305 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
22306 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
22307 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
22308 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
22309 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
22310 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
22311 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
22312 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
22313 "\x15\x01\x01\x01",
22314 .rlen = 76,
22315 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
22316 "\x10\x10\x10\x10\x4E\x28\x00\x00"
22317 "\xA2\xFC\xA1\xA3",
22318 .alen = 20,
22319 .input = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
22320 "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
22321 "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
22322 "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
22323 "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
22324 "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
22325 "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
22326 "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
22327 "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
22328 "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
22329 "\x76\x91\x89\x60\x97\x63\xB8\xE1"
22330 "\x8C\xAA\x81\xE2",
22331 .ilen = 92,
22332 }, {
22333 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22334 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22335 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22336 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22337 "\x73\x61\x6C\x74",
22338 .klen = 36,
22339 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
22340 .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
22341 "\x6C\x65\x73\x01\x74\x68\x65\x01"
22342 "\x6E\x65\x74\x77\x65\x01\x64\x65"
22343 "\x66\x69\x6E\x65\x01\x74\x68\x65"
22344 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
22345 "\x67\x69\x65\x73\x01\x74\x68\x61"
22346 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
22347 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
22348 "\x72\x72\x6F\x77\x01\x02\x02\x01",
22349 .rlen = 72,
22350 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
22351 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
22352 "\x69\x76\x65\x63",
22353 .alen = 20,
22354 .input = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
22355 "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
22356 "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
22357 "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
22358 "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
22359 "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
22360 "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
22361 "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
22362 "\x12\xA4\x93\x63\x41\x23\x64\xF8"
22363 "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
22364 "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
22365 .ilen = 88,
22366 }, {
22367 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
22368 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
22369 "\xD9\x66\x42\x67",
22370 .klen = 20,
22371 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
22372 .result = "\x01\x02\x02\x01",
22373 .rlen = 4,
22374 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
22375 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
22376 .alen = 16,
22377 .input = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
22378 "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
22379 "\x04\xBE\xF2\x70",
22380 .ilen = 20,
22381 }, {
22382 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22383 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22384 "\xDE\xCA\xF8\x88",
22385 .klen = 20,
22386 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
22387 .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
22388 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
22389 "\x62\x65\x00\x01",
22390 .rlen = 20,
22391 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
22392 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
22393 "\xCE\xFA\xCE\x74",
22394 .alen = 20,
22395 .input = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
22396 "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
22397 "\x43\x33\x21\x64\x41\x25\x03\x52"
22398 "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
22399 "\x43\xAF\x8C\x3E",
22400 .ilen = 36,
22401 }, {
22402 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
22403 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
22404 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
22405 "\x62\x65\x66\x6F\x72\x65\x69\x61"
22406 "\x74\x75\x72\x6E",
22407 .klen = 36,
22408 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
22409 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
22410 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
22411 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
22412 "\x02\x00\x07\x00\x61\x62\x63\x64"
22413 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
22414 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
22415 "\x01\x02\x02\x01",
22416 .rlen = 52,
22417 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
22418 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
22419 "\x67\x65\x74\x6D",
22420 .alen = 20,
22421 .input = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
22422 "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
22423 "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
22424 "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
22425 "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
22426 "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
22427 "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
22428 "\x94\x5F\x66\x93\x68\x66\x1A\x32"
22429 "\x9F\xB4\xC0\x53",
22430 .ilen = 68,
22431 }, {
22432 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
22433 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
22434 "\x57\x69\x0E\x43",
22435 .klen = 20,
22436 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
22437 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
22438 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
22439 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
22440 "\x02\x00\x07\x00\x61\x62\x63\x64"
22441 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
22442 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
22443 "\x01\x02\x02\x01",
22444 .rlen = 52,
22445 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
22446 "\x10\x10\x10\x10\x4E\x28\x00\x00"
22447 "\xA2\xFC\xA1\xA3",
22448 .alen = 20,
22449 .input = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
22450 "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
22451 "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
22452 "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
22453 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
22454 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
22455 "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
22456 "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
22457 "\x40\xD7\xCB\x05",
22458 .ilen = 68,
22459 }, {
22460 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
22461 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
22462 "\x22\x43\x3C\x64",
22463 .klen = 20,
22464 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
22465 .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
22466 "\x61\x62\x63\x64\x65\x66\x67\x68"
22467 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
22468 "\x71\x72\x73\x74\x01\x02\x02\x01",
22469 .rlen = 32,
22470 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
22471 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
22472 "\x3A\x23\x4B\xFD",
22473 .alen = 20,
22474 .input = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
22475 "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
22476 "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
22477 "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
22478 "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
22479 "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
22480 .ilen = 48,
22484 static struct aead_testvec aes_gcm_rfc4543_enc_tv_template[] = {
22485 { /* From draft-mcgrew-gcm-test-01 */
22486 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
22487 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
22488 "\x22\x43\x3c\x64",
22489 .klen = 20,
22490 .iv = zeroed_string,
22491 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
22492 "\x00\x00\x00\x00\x00\x00\x00\x00",
22493 .alen = 16,
22494 .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22495 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22496 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22497 "\x02\x00\x07\x00\x61\x62\x63\x64"
22498 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22499 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22500 "\x01\x02\x02\x01",
22501 .ilen = 52,
22502 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22503 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22504 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22505 "\x02\x00\x07\x00\x61\x62\x63\x64"
22506 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22507 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22508 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
22509 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
22510 "\xe4\x09\x9a\xaa",
22511 .rlen = 68,
22515 static struct aead_testvec aes_gcm_rfc4543_dec_tv_template[] = {
22516 { /* From draft-mcgrew-gcm-test-01 */
22517 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
22518 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
22519 "\x22\x43\x3c\x64",
22520 .klen = 20,
22521 .iv = zeroed_string,
22522 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
22523 "\x00\x00\x00\x00\x00\x00\x00\x00",
22524 .alen = 16,
22525 .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22526 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22527 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22528 "\x02\x00\x07\x00\x61\x62\x63\x64"
22529 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22530 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22531 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
22532 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
22533 "\xe4\x09\x9a\xaa",
22534 .ilen = 68,
22535 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22536 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22537 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22538 "\x02\x00\x07\x00\x61\x62\x63\x64"
22539 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22540 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22541 "\x01\x02\x02\x01",
22542 .rlen = 52,
22543 }, { /* nearly same as previous, but should fail */
22544 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
22545 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
22546 "\x22\x43\x3c\x64",
22547 .klen = 20,
22548 .iv = zeroed_string,
22549 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
22550 "\x00\x00\x00\x00\x00\x00\x00\x00",
22551 .alen = 16,
22552 .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22553 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22554 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22555 "\x02\x00\x07\x00\x61\x62\x63\x64"
22556 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22557 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22558 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
22559 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
22560 "\x00\x00\x00\x00",
22561 .ilen = 68,
22562 .novrfy = 1,
22563 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22564 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22565 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22566 "\x02\x00\x07\x00\x61\x62\x63\x64"
22567 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22568 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22569 "\x01\x02\x02\x01",
22570 .rlen = 52,
22574 static struct aead_testvec aes_ccm_enc_tv_template[] = {
22575 { /* From RFC 3610 */
22576 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22577 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22578 .klen = 16,
22579 .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
22580 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22581 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
22582 .alen = 8,
22583 .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22584 "\x10\x11\x12\x13\x14\x15\x16\x17"
22585 "\x18\x19\x1a\x1b\x1c\x1d\x1e",
22586 .ilen = 23,
22587 .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
22588 "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
22589 "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
22590 "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
22591 .rlen = 31,
22592 }, {
22593 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22594 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22595 .klen = 16,
22596 .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
22597 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22598 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
22599 "\x08\x09\x0a\x0b",
22600 .alen = 12,
22601 .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
22602 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
22603 "\x1c\x1d\x1e\x1f",
22604 .ilen = 20,
22605 .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
22606 "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
22607 "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
22608 "\x7d\x9c\x2d\x93",
22609 .rlen = 28,
22610 }, {
22611 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22612 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22613 .klen = 16,
22614 .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
22615 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22616 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
22617 .alen = 8,
22618 .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22619 "\x10\x11\x12\x13\x14\x15\x16\x17"
22620 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
22621 "\x20",
22622 .ilen = 25,
22623 .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
22624 "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
22625 "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
22626 "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
22627 "\x7e\x5f\x4e",
22628 .rlen = 35,
22629 }, {
22630 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22631 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22632 .klen = 16,
22633 .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
22634 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22635 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
22636 "\x08\x09\x0a\x0b",
22637 .alen = 12,
22638 .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
22639 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
22640 "\x1c\x1d\x1e",
22641 .ilen = 19,
22642 .result = "\x07\x34\x25\x94\x15\x77\x85\x15"
22643 "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
22644 "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
22645 "\x4d\x99\x99\x88\xdd",
22646 .rlen = 29,
22647 }, {
22648 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
22649 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
22650 .klen = 16,
22651 .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
22652 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
22653 .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
22654 .alen = 8,
22655 .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
22656 "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
22657 "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
22658 .ilen = 24,
22659 .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
22660 "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
22661 "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
22662 "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
22663 .rlen = 32,
22664 }, {
22665 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
22666 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
22667 .klen = 16,
22668 .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
22669 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
22670 .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
22671 "\x20\xea\x60\xc0",
22672 .alen = 12,
22673 .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
22674 "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
22675 "\x3a\x80\x3b\xa8\x7f",
22676 .ilen = 21,
22677 .result = "\x00\x97\x69\xec\xab\xdf\x48\x62"
22678 "\x55\x94\xc5\x92\x51\xe6\x03\x57"
22679 "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
22680 "\x5a\xe0\x70\x45\x51",
22681 .rlen = 29,
22682 }, {
22683 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
22684 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
22685 .klen = 16,
22686 .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
22687 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
22688 .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
22689 .alen = 8,
22690 .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
22691 "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
22692 "\x98\x09\xd6\x7d\xbe\xdd\x18",
22693 .ilen = 23,
22694 .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
22695 "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
22696 "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
22697 "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
22698 "\xba",
22699 .rlen = 33,
22700 }, {
22701 /* This is taken from FIPS CAVS. */
22702 .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
22703 "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e",
22704 .klen = 16,
22705 .iv = "\x03\x96\xac\x59\x30\x07\xa1\xe2\xa2\xc7\x55\x24\0\0\0\0",
22706 .alen = 0,
22707 .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
22708 "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
22709 "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
22710 "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
22711 .ilen = 32,
22712 .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
22713 "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
22714 "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
22715 "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
22716 "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
22717 "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
22718 .rlen = 48,
22719 }, {
22720 .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
22721 "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3",
22722 .klen = 16,
22723 .iv = "\x03\x4f\xa3\x19\xd3\x01\x5a\xd8"
22724 "\x30\x60\x15\x56\x00\x00\x00\x00",
22725 .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
22726 "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
22727 "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
22728 "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
22729 .alen = 32,
22730 .input = "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
22731 "\xa9\x28\x63\xba\x12\xa3\x14\x85"
22732 "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
22733 "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
22734 .ilen = 32,
22735 .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
22736 "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
22737 "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
22738 "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
22739 "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
22740 "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
22741 .rlen = 48,
22742 }, {
22743 .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
22744 "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
22745 "\x53\x14\x73\x66\x8d\x88\xf6\x80",
22746 .klen = 24,
22747 .iv = "\x03\xa0\x20\x35\x26\xf2\x21\x8d"
22748 "\x50\x20\xda\xe2\x00\x00\x00\x00",
22749 .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
22750 "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
22751 "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
22752 "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
22753 .alen = 32,
22754 .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
22755 "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
22756 .rlen = 16,
22757 }, {
22758 .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
22759 "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
22760 "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01",
22761 .klen = 24,
22762 .iv = "\x03\xd6\x3c\x8c\x86\x84\xb6\xcd"
22763 "\xef\x09\x2e\x94\x00\x00\x00\x00",
22764 .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91"
22765 "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
22766 "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
22767 "\xe3\x00\x73\x69\x84\x69\x87\x79",
22768 .alen = 32,
22769 .input = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
22770 "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
22771 "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
22772 "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
22773 .ilen = 32,
22774 .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
22775 "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
22776 "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
22777 "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
22778 "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
22779 "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
22780 .rlen = 48,
22781 }, {
22782 .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
22783 "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
22784 "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
22785 "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b",
22786 .klen = 32,
22787 .iv = "\x03\x1e\x29\x91\xad\x8e\xc1\x53"
22788 "\x0a\xcf\x2d\xbe\x00\x00\x00\x00",
22789 .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
22790 "\x78\x2b\x94\x02\x29\x0f\x42\x27"
22791 "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
22792 "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
22793 .alen = 32,
22794 .input = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
22795 "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
22796 "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
22797 "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
22798 .ilen = 32,
22799 .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96"
22800 "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
22801 "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
22802 "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
22803 "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
22804 .rlen = 40,
22805 }, {
22806 .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
22807 "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
22808 "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
22809 "\x09\x75\x9a\x9b\x3c\x9b\x27\x39",
22810 .klen = 32,
22811 .iv = "\x03\xf9\xd9\x4e\x63\xb5\x3d\x9d"
22812 "\x43\xf6\x1e\x50",
22813 .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
22814 "\x13\x02\x01\x0c\x83\x4c\x96\x35"
22815 "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
22816 "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
22817 .alen = 32,
22818 .input = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
22819 "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
22820 "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
22821 "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
22822 .ilen = 32,
22823 .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
22824 "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
22825 "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
22826 "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
22827 "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
22828 "\x7b\x72\x8a\xf7",
22829 .rlen = 44,
22830 }, {
22831 .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
22832 "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
22833 "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
22834 "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b",
22835 .klen = 32,
22836 .iv = "\x03\x24\xa7\x8b\x07\xcb\xcc\x0e"
22837 "\xe6\x33\xbf\xf5\x00\x00\x00\x00",
22838 .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
22839 "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
22840 "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
22841 "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
22842 .alen = 32,
22843 .input = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
22844 "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
22845 "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
22846 "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
22847 .ilen = 32,
22848 .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
22849 "\xef\xbb\x80\x21\x04\x6c\x58\x09"
22850 "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
22851 "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
22852 "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
22853 "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
22854 .rlen = 48,
22858 static struct aead_testvec aes_ccm_dec_tv_template[] = {
22859 { /* From RFC 3610 */
22860 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22861 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22862 .klen = 16,
22863 .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
22864 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22865 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
22866 .alen = 8,
22867 .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
22868 "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
22869 "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
22870 "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
22871 .ilen = 31,
22872 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22873 "\x10\x11\x12\x13\x14\x15\x16\x17"
22874 "\x18\x19\x1a\x1b\x1c\x1d\x1e",
22875 .rlen = 23,
22876 }, {
22877 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22878 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22879 .klen = 16,
22880 .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
22881 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22882 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
22883 "\x08\x09\x0a\x0b",
22884 .alen = 12,
22885 .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
22886 "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
22887 "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
22888 "\x7d\x9c\x2d\x93",
22889 .ilen = 28,
22890 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
22891 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
22892 "\x1c\x1d\x1e\x1f",
22893 .rlen = 20,
22894 }, {
22895 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22896 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22897 .klen = 16,
22898 .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
22899 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22900 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
22901 .alen = 8,
22902 .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
22903 "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
22904 "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
22905 "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
22906 "\x7e\x5f\x4e",
22907 .ilen = 35,
22908 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22909 "\x10\x11\x12\x13\x14\x15\x16\x17"
22910 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
22911 "\x20",
22912 .rlen = 25,
22913 }, {
22914 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22915 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22916 .klen = 16,
22917 .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
22918 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22919 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
22920 "\x08\x09\x0a\x0b",
22921 .alen = 12,
22922 .input = "\x07\x34\x25\x94\x15\x77\x85\x15"
22923 "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
22924 "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
22925 "\x4d\x99\x99\x88\xdd",
22926 .ilen = 29,
22927 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
22928 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
22929 "\x1c\x1d\x1e",
22930 .rlen = 19,
22931 }, {
22932 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
22933 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
22934 .klen = 16,
22935 .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
22936 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
22937 .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
22938 .alen = 8,
22939 .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
22940 "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
22941 "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
22942 "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
22943 .ilen = 32,
22944 .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
22945 "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
22946 "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
22947 .rlen = 24,
22948 }, {
22949 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
22950 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
22951 .klen = 16,
22952 .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
22953 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
22954 .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
22955 "\x20\xea\x60\xc0",
22956 .alen = 12,
22957 .input = "\x00\x97\x69\xec\xab\xdf\x48\x62"
22958 "\x55\x94\xc5\x92\x51\xe6\x03\x57"
22959 "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
22960 "\x5a\xe0\x70\x45\x51",
22961 .ilen = 29,
22962 .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
22963 "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
22964 "\x3a\x80\x3b\xa8\x7f",
22965 .rlen = 21,
22966 }, {
22967 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
22968 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
22969 .klen = 16,
22970 .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
22971 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
22972 .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
22973 .alen = 8,
22974 .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
22975 "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
22976 "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
22977 "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
22978 "\xba",
22979 .ilen = 33,
22980 .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
22981 "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
22982 "\x98\x09\xd6\x7d\xbe\xdd\x18",
22983 .rlen = 23,
22984 }, {
22985 /* This is taken from FIPS CAVS. */
22986 .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
22987 "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
22988 .klen = 16,
22989 .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
22990 "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
22991 .alen = 0,
22992 .input = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
22993 .ilen = 8,
22994 .result = "\x00",
22995 .rlen = 0,
22996 .novrfy = 1,
22997 }, {
22998 .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
22999 "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
23000 .klen = 16,
23001 .iv = "\x03\xaf\x94\x87\x78\x35\x82\x81"
23002 "\x7f\x88\x94\x68\x00\x00\x00\x00",
23003 .alen = 0,
23004 .input = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
23005 .ilen = 8,
23006 .result = "\x00",
23007 .rlen = 0,
23008 }, {
23009 .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
23010 "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
23011 .klen = 16,
23012 .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
23013 "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
23014 .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
23015 "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
23016 "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
23017 "\xd8\x94\x99\x91\x81\x54\x62\x57",
23018 .alen = 32,
23019 .input = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
23020 "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
23021 "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
23022 "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
23023 "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
23024 "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
23025 .ilen = 48,
23026 .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
23027 "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
23028 "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
23029 "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
23030 .rlen = 32,
23031 .novrfy = 1,
23032 }, {
23033 .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
23034 "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
23035 .klen = 16,
23036 .iv = "\x03\x05\xe0\xc9\x0f\xed\x34\xea"
23037 "\x97\xd4\x3b\xdf\x00\x00\x00\x00",
23038 .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
23039 "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
23040 "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
23041 "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
23042 .alen = 32,
23043 .input = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
23044 "\xad\x83\x52\x6d\x71\x03\x25\x1c"
23045 "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
23046 "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
23047 "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
23048 "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
23049 .ilen = 48,
23050 .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
23051 "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
23052 "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
23053 "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
23054 .rlen = 32,
23055 }, {
23056 .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
23057 "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
23058 "\xa4\x48\x93\x39\x26\x71\x4a\xc6",
23059 .klen = 24,
23060 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
23061 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
23062 .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
23063 "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
23064 "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
23065 "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
23066 .alen = 32,
23067 .input = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
23068 .ilen = 8,
23069 .result = "\x00",
23070 .rlen = 0,
23071 }, {
23072 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
23073 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
23074 "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
23075 .klen = 24,
23076 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
23077 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
23078 .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
23079 "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
23080 "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
23081 "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
23082 .alen = 32,
23083 .input = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
23084 "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
23085 "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
23086 "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
23087 "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
23088 .ilen = 40,
23089 .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
23090 "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
23091 "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
23092 "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
23093 .rlen = 32,
23094 }, {
23095 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
23096 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
23097 "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
23098 .klen = 24,
23099 .iv = "\x03\xd1\xfc\x57\x9c\xfe\xb8\x9c"
23100 "\xad\x71\xaa\x1f\x00\x00\x00\x00",
23101 .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
23102 "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
23103 "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
23104 "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
23105 .alen = 32,
23106 .input = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
23107 "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
23108 "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
23109 "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
23110 "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
23111 "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
23112 .ilen = 48,
23113 .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
23114 "\x99\x2a\xa8\xca\x04\x25\x45\x90"
23115 "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
23116 "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
23117 .rlen = 32,
23118 .novrfy = 1,
23119 }, {
23120 .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
23121 "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
23122 "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
23123 "\x0e\x85\xbc\x33\xad\x0f\x2b\xff",
23124 .klen = 32,
23125 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
23126 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
23127 .alen = 0,
23128 .input = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
23129 .ilen = 8,
23130 .result = "\x00",
23131 .rlen = 0,
23132 }, {
23133 .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
23134 "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
23135 "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
23136 "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb",
23137 .klen = 32,
23138 .iv = "\x03\x85\x34\x66\x42\xc8\x92\x0f"
23139 "\x36\x58\xe0\x6b\x00\x00\x00\x00",
23140 .alen = 0,
23141 .input = "\x48\x01\x5e\x02\x24\x04\x66\x47"
23142 "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
23143 "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
23144 "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
23145 "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
23146 "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
23147 .ilen = 48,
23148 .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
23149 "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
23150 "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
23151 "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
23152 .rlen = 32,
23153 .novrfy = 1,
23154 }, {
23155 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
23156 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
23157 "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
23158 "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b",
23159 .klen = 32,
23160 .iv = "\x03\xcf\x76\x3f\xd9\x95\x75\x8f"
23161 "\x44\x89\x40\x7b\x00\x00\x00\x00",
23162 .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
23163 "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
23164 "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
23165 "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
23166 .alen = 32,
23167 .input = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
23168 "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
23169 "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
23170 "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
23171 "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
23172 "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
23173 .ilen = 48,
23174 .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
23175 "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
23176 "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
23177 "\x04\x49\x3b\x19\x93\x57\x25\x5d",
23178 .rlen = 32,
23183 * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
23184 * use a 13-byte nonce, we only support an 11-byte nonce. Worse,
23185 * they use AD lengths which are not valid ESP header lengths.
23187 * These vectors are copied/generated from the ones for rfc4106 with
23188 * the key truncated by one byte..
23190 static struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = {
23191 { /* Generated using Crypto++ */
23192 .key = zeroed_string,
23193 .klen = 19,
23194 .iv = zeroed_string,
23195 .input = zeroed_string,
23196 .ilen = 16,
23197 .assoc = zeroed_string,
23198 .alen = 16,
23199 .result = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
23200 "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
23201 "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
23202 "\x27\x50\x01\xAC\x03\x33\x39\xFB",
23203 .rlen = 32,
23205 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23206 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23207 "\x00\x00\x00",
23208 .klen = 19,
23209 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
23210 .input = zeroed_string,
23211 .ilen = 16,
23212 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
23213 "\x00\x00\x00\x00\x00\x00\x00\x01",
23214 .alen = 16,
23215 .result = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
23216 "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
23217 "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
23218 "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
23219 .rlen = 32,
23221 }, {
23222 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23223 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23224 "\x00\x00\x00",
23225 .klen = 19,
23226 .iv = zeroed_string,
23227 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
23228 "\x01\x01\x01\x01\x01\x01\x01\x01",
23229 .ilen = 16,
23230 .assoc = zeroed_string,
23231 .alen = 16,
23232 .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
23233 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
23234 "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
23235 "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
23236 .rlen = 32,
23237 }, {
23238 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23239 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23240 "\x00\x00\x00",
23241 .klen = 19,
23242 .iv = zeroed_string,
23243 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
23244 "\x01\x01\x01\x01\x01\x01\x01\x01",
23245 .ilen = 16,
23246 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
23247 "\x00\x00\x00\x00\x00\x00\x00\x00",
23248 .alen = 16,
23249 .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
23250 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
23251 "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
23252 "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
23253 .rlen = 32,
23254 }, {
23255 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23256 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23257 "\x00\x00\x00",
23258 .klen = 19,
23259 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
23260 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
23261 "\x01\x01\x01\x01\x01\x01\x01\x01",
23262 .ilen = 16,
23263 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
23264 "\x00\x00\x00\x00\x00\x00\x00\x01",
23265 .alen = 16,
23266 .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
23267 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
23268 "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
23269 "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
23270 .rlen = 32,
23271 }, {
23272 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23273 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23274 "\x00\x00\x00",
23275 .klen = 19,
23276 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
23277 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
23278 "\x01\x01\x01\x01\x01\x01\x01\x01"
23279 "\x01\x01\x01\x01\x01\x01\x01\x01"
23280 "\x01\x01\x01\x01\x01\x01\x01\x01"
23281 "\x01\x01\x01\x01\x01\x01\x01\x01"
23282 "\x01\x01\x01\x01\x01\x01\x01\x01"
23283 "\x01\x01\x01\x01\x01\x01\x01\x01"
23284 "\x01\x01\x01\x01\x01\x01\x01\x01",
23285 .ilen = 64,
23286 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
23287 "\x00\x00\x00\x00\x00\x00\x00\x01",
23288 .alen = 16,
23289 .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
23290 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
23291 "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
23292 "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
23293 "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
23294 "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
23295 "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
23296 "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
23297 "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
23298 "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
23299 .rlen = 80,
23300 }, {
23301 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
23302 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23303 "\x00\x00\x00",
23304 .klen = 19,
23305 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
23306 .input = "\xff\xff\xff\xff\xff\xff\xff\xff"
23307 "\xff\xff\xff\xff\xff\xff\xff\xff"
23308 "\xff\xff\xff\xff\xff\xff\xff\xff"
23309 "\xff\xff\xff\xff\xff\xff\xff\xff"
23310 "\xff\xff\xff\xff\xff\xff\xff\xff"
23311 "\xff\xff\xff\xff\xff\xff\xff\xff"
23312 "\xff\xff\xff\xff\xff\xff\xff\xff"
23313 "\xff\xff\xff\xff\xff\xff\xff\xff"
23314 "\xff\xff\xff\xff\xff\xff\xff\xff"
23315 "\xff\xff\xff\xff\xff\xff\xff\xff"
23316 "\xff\xff\xff\xff\xff\xff\xff\xff"
23317 "\xff\xff\xff\xff\xff\xff\xff\xff"
23318 "\xff\xff\xff\xff\xff\xff\xff\xff"
23319 "\xff\xff\xff\xff\xff\xff\xff\xff"
23320 "\xff\xff\xff\xff\xff\xff\xff\xff"
23321 "\xff\xff\xff\xff\xff\xff\xff\xff"
23322 "\xff\xff\xff\xff\xff\xff\xff\xff"
23323 "\xff\xff\xff\xff\xff\xff\xff\xff"
23324 "\xff\xff\xff\xff\xff\xff\xff\xff"
23325 "\xff\xff\xff\xff\xff\xff\xff\xff"
23326 "\xff\xff\xff\xff\xff\xff\xff\xff"
23327 "\xff\xff\xff\xff\xff\xff\xff\xff"
23328 "\xff\xff\xff\xff\xff\xff\xff\xff"
23329 "\xff\xff\xff\xff\xff\xff\xff\xff",
23330 .ilen = 192,
23331 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
23332 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
23333 "\x89\xab\xcd\xef",
23334 .alen = 20,
23335 .result = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
23336 "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
23337 "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
23338 "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
23339 "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
23340 "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
23341 "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
23342 "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
23343 "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
23344 "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
23345 "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
23346 "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
23347 "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
23348 "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
23349 "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
23350 "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
23351 "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
23352 "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
23353 "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
23354 "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
23355 "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
23356 "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
23357 "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
23358 "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
23359 "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
23360 "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
23361 .rlen = 208,
23362 }, { /* From draft-mcgrew-gcm-test-01 */
23363 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
23364 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
23365 "\x2E\x44\x3B",
23366 .klen = 19,
23367 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
23368 .input = "\x45\x00\x00\x48\x69\x9A\x00\x00"
23369 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
23370 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
23371 "\x38\xD3\x01\x00\x00\x01\x00\x00"
23372 "\x00\x00\x00\x00\x04\x5F\x73\x69"
23373 "\x70\x04\x5F\x75\x64\x70\x03\x73"
23374 "\x69\x70\x09\x63\x79\x62\x65\x72"
23375 "\x63\x69\x74\x79\x02\x64\x6B\x00"
23376 "\x00\x21\x00\x01\x01\x02\x02\x01",
23377 .ilen = 72,
23378 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
23379 "\x00\x00\x00\x00\x49\x56\xED\x7E"
23380 "\x3B\x24\x4C\xFE",
23381 .alen = 20,
23382 .result = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
23383 "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
23384 "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
23385 "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
23386 "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
23387 "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
23388 "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
23389 "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
23390 "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
23391 "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
23392 "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
23393 .rlen = 88,
23394 }, {
23395 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
23396 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
23397 "\xCA\xFE\xBA",
23398 .klen = 19,
23399 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
23400 .input = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
23401 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
23402 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
23403 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
23404 "\x00\x01\x00\x00\x00\x00\x00\x00"
23405 "\x03\x73\x69\x70\x09\x63\x79\x62"
23406 "\x65\x72\x63\x69\x74\x79\x02\x64"
23407 "\x6B\x00\x00\x01\x00\x01\x00\x01",
23408 .ilen = 64,
23409 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
23410 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
23411 .alen = 16,
23412 .result = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
23413 "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
23414 "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
23415 "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
23416 "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
23417 "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
23418 "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
23419 "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
23420 "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
23421 "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
23422 .rlen = 80,
23423 }, {
23424 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23425 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23426 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23427 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23428 "\x11\x22\x33",
23429 .klen = 35,
23430 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
23431 .input = "\x45\x00\x00\x30\x69\xA6\x40\x00"
23432 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
23433 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
23434 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
23435 "\x70\x02\x40\x00\x20\xBF\x00\x00"
23436 "\x02\x04\x05\xB4\x01\x01\x04\x02"
23437 "\x01\x02\x02\x01",
23438 .ilen = 52,
23439 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
23440 "\x01\x02\x03\x04\x05\x06\x07\x08",
23441 .alen = 16,
23442 .result = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
23443 "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
23444 "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
23445 "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
23446 "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
23447 "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
23448 "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
23449 "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
23450 "\x5A\x48\x6A\x3E",
23451 .rlen = 68,
23452 }, {
23453 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
23454 "\x00\x00\x00\x00\x00\x00\x00\x00"
23455 "\x00\x00\x00",
23456 .klen = 19,
23457 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
23458 .input = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
23459 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
23460 "\x01\x01\x01\x01\x08\x00\x07\x5C"
23461 "\x02\x00\x44\x00\x61\x62\x63\x64"
23462 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
23463 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
23464 "\x75\x76\x77\x61\x62\x63\x64\x65"
23465 "\x66\x67\x68\x69\x01\x02\x02\x01",
23466 .ilen = 64,
23467 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
23468 "\x00\x00\x00\x00\x00\x00\x00\x00",
23469 .alen = 16,
23470 .result = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
23471 "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
23472 "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
23473 "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
23474 "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
23475 "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
23476 "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
23477 "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
23478 "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
23479 "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
23480 .rlen = 80,
23481 }, {
23482 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
23483 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
23484 "\x57\x69\x0E",
23485 .klen = 19,
23486 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
23487 .input = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
23488 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
23489 "\x01\x01\x01\x01\x08\x00\x08\x5C"
23490 "\x02\x00\x43\x00\x61\x62\x63\x64"
23491 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
23492 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
23493 "\x75\x76\x77\x61\x62\x63\x64\x65"
23494 "\x66\x67\x68\x69\x01\x02\x02\x01",
23495 .ilen = 64,
23496 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
23497 "\x10\x10\x10\x10\x4E\x28\x00\x00"
23498 "\xA2\xFC\xA1\xA3",
23499 .alen = 20,
23500 .result = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
23501 "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
23502 "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
23503 "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
23504 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
23505 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
23506 "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
23507 "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
23508 "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
23509 "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
23510 .rlen = 80,
23511 }, {
23512 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
23513 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
23514 "\x57\x69\x0E",
23515 .klen = 19,
23516 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
23517 .input = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
23518 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
23519 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
23520 "\x01\x02\x02\x01",
23521 .ilen = 28,
23522 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
23523 "\x10\x10\x10\x10\x4E\x28\x00\x00"
23524 "\xA2\xFC\xA1\xA3",
23525 .alen = 20,
23526 .result = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
23527 "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
23528 "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
23529 "\xA1\xE5\x90\x40\x05\x37\x45\x70"
23530 "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
23531 "\x08\xB4\x22\xE4",
23532 .rlen = 44,
23533 }, {
23534 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
23535 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
23536 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
23537 "\xCA\xFE\xBA",
23538 .klen = 27,
23539 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
23540 .input = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
23541 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
23542 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
23543 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
23544 "\x50\x10\x16\xD0\x75\x68\x00\x01",
23545 .ilen = 40,
23546 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
23547 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
23548 .alen = 16,
23549 .result = "\x05\x22\x15\xD1\x52\x56\x85\x04"
23550 "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
23551 "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
23552 "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
23553 "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
23554 "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
23555 "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
23556 .rlen = 56,
23557 }, {
23558 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23559 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23560 "\xDE\xCA\xF8",
23561 .klen = 19,
23562 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
23563 .input = "\x45\x00\x00\x49\x33\xBA\x00\x00"
23564 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
23565 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
23566 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
23567 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
23568 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
23569 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
23570 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
23571 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
23572 "\x23\x01\x01\x01",
23573 .ilen = 76,
23574 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
23575 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
23576 "\xCE\xFA\xCE\x74",
23577 .alen = 20,
23578 .result = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
23579 "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
23580 "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
23581 "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
23582 "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
23583 "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
23584 "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
23585 "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
23586 "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
23587 "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
23588 "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
23589 "\x12\x25\x0B\xF9",
23590 .rlen = 92,
23591 }, {
23592 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23593 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23594 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23595 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23596 "\x73\x61\x6C",
23597 .klen = 35,
23598 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
23599 .input = "\x45\x08\x00\x28\x73\x2C\x00\x00"
23600 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
23601 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
23602 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
23603 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
23604 .ilen = 40,
23605 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
23606 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
23607 "\x69\x76\x65\x63",
23608 .alen = 20,
23609 .result = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
23610 "\x2C\x64\x87\x46\x1E\x34\x10\x05"
23611 "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
23612 "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
23613 "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
23614 "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
23615 "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
23616 .rlen = 56,
23617 }, {
23618 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
23619 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
23620 "\x57\x69\x0E",
23621 .klen = 19,
23622 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
23623 .input = "\x45\x00\x00\x49\x33\x3E\x00\x00"
23624 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
23625 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
23626 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
23627 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
23628 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
23629 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
23630 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
23631 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
23632 "\x15\x01\x01\x01",
23633 .ilen = 76,
23634 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
23635 "\x10\x10\x10\x10\x4E\x28\x00\x00"
23636 "\xA2\xFC\xA1\xA3",
23637 .alen = 20,
23638 .result = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
23639 "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
23640 "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
23641 "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
23642 "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
23643 "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
23644 "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
23645 "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
23646 "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
23647 "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
23648 "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
23649 "\xCC\xF7\x46\x6F",
23650 .rlen = 92,
23651 }, {
23652 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23653 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23654 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23655 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23656 "\x73\x61\x6C",
23657 .klen = 35,
23658 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
23659 .input = "\x63\x69\x73\x63\x6F\x01\x72\x75"
23660 "\x6C\x65\x73\x01\x74\x68\x65\x01"
23661 "\x6E\x65\x74\x77\x65\x01\x64\x65"
23662 "\x66\x69\x6E\x65\x01\x74\x68\x65"
23663 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
23664 "\x67\x69\x65\x73\x01\x74\x68\x61"
23665 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
23666 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
23667 "\x72\x72\x6F\x77\x01\x02\x02\x01",
23668 .ilen = 72,
23669 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
23670 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
23671 "\x69\x76\x65\x63",
23672 .alen = 20,
23673 .result = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
23674 "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
23675 "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
23676 "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
23677 "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
23678 "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
23679 "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
23680 "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
23681 "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
23682 "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
23683 "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
23684 .rlen = 88,
23685 }, {
23686 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
23687 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
23688 "\xD9\x66\x42",
23689 .klen = 19,
23690 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
23691 .input = "\x01\x02\x02\x01",
23692 .ilen = 4,
23693 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
23694 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
23695 .alen = 16,
23696 .result = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
23697 "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
23698 "\xF7\x61\x24\x62",
23699 .rlen = 20,
23700 }, {
23701 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23702 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23703 "\xDE\xCA\xF8",
23704 .klen = 19,
23705 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
23706 .input = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
23707 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
23708 "\x62\x65\x00\x01",
23709 .ilen = 20,
23710 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
23711 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
23712 "\xCE\xFA\xCE\x74",
23713 .alen = 20,
23714 .result = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
23715 "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
23716 "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
23717 "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
23718 "\x17\x17\x65\xAD",
23719 .rlen = 36,
23720 }, {
23721 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
23722 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
23723 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
23724 "\x62\x65\x66\x6F\x72\x65\x69\x61"
23725 "\x74\x75\x72",
23726 .klen = 35,
23727 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
23728 .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
23729 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
23730 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
23731 "\x02\x00\x07\x00\x61\x62\x63\x64"
23732 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
23733 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
23734 "\x01\x02\x02\x01",
23735 .ilen = 52,
23736 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
23737 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
23738 "\x67\x65\x74\x6D",
23739 .alen = 20,
23740 .result = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
23741 "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
23742 "\x48\x59\x80\x18\x1A\x18\x1A\x04"
23743 "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
23744 "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
23745 "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
23746 "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
23747 "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
23748 "\x39\xDB\xC8\xDC",
23749 .rlen = 68,
23750 }, {
23751 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
23752 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
23753 "\x57\x69\x0E",
23754 .klen = 19,
23755 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
23756 .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
23757 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
23758 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
23759 "\x02\x00\x07\x00\x61\x62\x63\x64"
23760 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
23761 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
23762 "\x01\x02\x02\x01",
23763 .ilen = 52,
23764 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
23765 "\x10\x10\x10\x10\x4E\x28\x00\x00"
23766 "\xA2\xFC\xA1\xA3",
23767 .alen = 20,
23768 .result = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
23769 "\x10\x60\x54\x25\xEB\x80\x04\x93"
23770 "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
23771 "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
23772 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
23773 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
23774 "\x44\xCC\x90\xBF\x00\x94\x94\x92"
23775 "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
23776 "\xF4\x95\x5D\x4F",
23777 .rlen = 68,
23778 }, {
23779 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
23780 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
23781 "\x22\x43\x3C",
23782 .klen = 19,
23783 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
23784 .input = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
23785 "\x61\x62\x63\x64\x65\x66\x67\x68"
23786 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
23787 "\x71\x72\x73\x74\x01\x02\x02\x01",
23788 .ilen = 32,
23789 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
23790 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
23791 "\x3A\x23\x4B\xFD",
23792 .alen = 20,
23793 .result = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
23794 "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
23795 "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
23796 "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
23797 "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
23798 "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
23799 .rlen = 48,
23803 static struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = {
23804 { /* Generated using Crypto++ */
23805 .key = zeroed_string,
23806 .klen = 19,
23807 .iv = zeroed_string,
23808 .result = zeroed_string,
23809 .rlen = 16,
23810 .assoc = zeroed_string,
23811 .alen = 16,
23812 .input = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
23813 "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
23814 "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
23815 "\x27\x50\x01\xAC\x03\x33\x39\xFB",
23816 .ilen = 32,
23818 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23819 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23820 "\x00\x00\x00",
23821 .klen = 19,
23822 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
23823 .result = zeroed_string,
23824 .rlen = 16,
23825 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
23826 "\x00\x00\x00\x00\x00\x00\x00\x01",
23827 .alen = 16,
23828 .input = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
23829 "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
23830 "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
23831 "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
23832 .ilen = 32,
23834 }, {
23835 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23836 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23837 "\x00\x00\x00",
23838 .klen = 19,
23839 .iv = zeroed_string,
23840 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
23841 "\x01\x01\x01\x01\x01\x01\x01\x01",
23842 .rlen = 16,
23843 .assoc = zeroed_string,
23844 .alen = 16,
23845 .input = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
23846 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
23847 "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
23848 "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
23849 .ilen = 32,
23850 }, {
23851 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23852 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23853 "\x00\x00\x00",
23854 .klen = 19,
23855 .iv = zeroed_string,
23856 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
23857 "\x01\x01\x01\x01\x01\x01\x01\x01",
23858 .rlen = 16,
23859 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
23860 "\x00\x00\x00\x00\x00\x00\x00\x00",
23861 .alen = 16,
23862 .input = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
23863 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
23864 "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
23865 "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
23866 .ilen = 32,
23867 }, {
23868 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23869 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23870 "\x00\x00\x00",
23871 .klen = 19,
23872 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
23873 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
23874 "\x01\x01\x01\x01\x01\x01\x01\x01",
23875 .rlen = 16,
23876 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
23877 "\x00\x00\x00\x00\x00\x00\x00\x01",
23878 .alen = 16,
23879 .input = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
23880 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
23881 "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
23882 "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
23883 .ilen = 32,
23884 }, {
23885 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23886 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23887 "\x00\x00\x00",
23888 .klen = 19,
23889 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
23890 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
23891 "\x01\x01\x01\x01\x01\x01\x01\x01"
23892 "\x01\x01\x01\x01\x01\x01\x01\x01"
23893 "\x01\x01\x01\x01\x01\x01\x01\x01"
23894 "\x01\x01\x01\x01\x01\x01\x01\x01"
23895 "\x01\x01\x01\x01\x01\x01\x01\x01"
23896 "\x01\x01\x01\x01\x01\x01\x01\x01"
23897 "\x01\x01\x01\x01\x01\x01\x01\x01",
23898 .rlen = 64,
23899 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
23900 "\x00\x00\x00\x00\x00\x00\x00\x01",
23901 .alen = 16,
23902 .input = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
23903 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
23904 "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
23905 "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
23906 "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
23907 "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
23908 "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
23909 "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
23910 "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
23911 "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
23912 .ilen = 80,
23913 }, {
23914 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
23915 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23916 "\x00\x00\x00",
23917 .klen = 19,
23918 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
23919 .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
23920 "\xff\xff\xff\xff\xff\xff\xff\xff"
23921 "\xff\xff\xff\xff\xff\xff\xff\xff"
23922 "\xff\xff\xff\xff\xff\xff\xff\xff"
23923 "\xff\xff\xff\xff\xff\xff\xff\xff"
23924 "\xff\xff\xff\xff\xff\xff\xff\xff"
23925 "\xff\xff\xff\xff\xff\xff\xff\xff"
23926 "\xff\xff\xff\xff\xff\xff\xff\xff"
23927 "\xff\xff\xff\xff\xff\xff\xff\xff"
23928 "\xff\xff\xff\xff\xff\xff\xff\xff"
23929 "\xff\xff\xff\xff\xff\xff\xff\xff"
23930 "\xff\xff\xff\xff\xff\xff\xff\xff"
23931 "\xff\xff\xff\xff\xff\xff\xff\xff"
23932 "\xff\xff\xff\xff\xff\xff\xff\xff"
23933 "\xff\xff\xff\xff\xff\xff\xff\xff"
23934 "\xff\xff\xff\xff\xff\xff\xff\xff"
23935 "\xff\xff\xff\xff\xff\xff\xff\xff"
23936 "\xff\xff\xff\xff\xff\xff\xff\xff"
23937 "\xff\xff\xff\xff\xff\xff\xff\xff"
23938 "\xff\xff\xff\xff\xff\xff\xff\xff"
23939 "\xff\xff\xff\xff\xff\xff\xff\xff"
23940 "\xff\xff\xff\xff\xff\xff\xff\xff"
23941 "\xff\xff\xff\xff\xff\xff\xff\xff"
23942 "\xff\xff\xff\xff\xff\xff\xff\xff",
23943 .rlen = 192,
23944 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
23945 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
23946 "\x89\xab\xcd\xef",
23947 .alen = 20,
23948 .input = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
23949 "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
23950 "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
23951 "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
23952 "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
23953 "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
23954 "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
23955 "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
23956 "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
23957 "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
23958 "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
23959 "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
23960 "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
23961 "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
23962 "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
23963 "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
23964 "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
23965 "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
23966 "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
23967 "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
23968 "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
23969 "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
23970 "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
23971 "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
23972 "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
23973 "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
23974 .ilen = 208,
23975 }, { /* From draft-mcgrew-gcm-test-01 */
23976 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
23977 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
23978 "\x2E\x44\x3B",
23979 .klen = 19,
23980 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
23981 .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
23982 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
23983 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
23984 "\x38\xD3\x01\x00\x00\x01\x00\x00"
23985 "\x00\x00\x00\x00\x04\x5F\x73\x69"
23986 "\x70\x04\x5F\x75\x64\x70\x03\x73"
23987 "\x69\x70\x09\x63\x79\x62\x65\x72"
23988 "\x63\x69\x74\x79\x02\x64\x6B\x00"
23989 "\x00\x21\x00\x01\x01\x02\x02\x01",
23990 .rlen = 72,
23991 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
23992 "\x00\x00\x00\x00\x49\x56\xED\x7E"
23993 "\x3B\x24\x4C\xFE",
23994 .alen = 20,
23995 .input = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
23996 "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
23997 "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
23998 "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
23999 "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
24000 "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
24001 "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
24002 "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
24003 "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
24004 "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
24005 "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
24006 .ilen = 88,
24007 }, {
24008 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
24009 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
24010 "\xCA\xFE\xBA",
24011 .klen = 19,
24012 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
24013 .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
24014 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
24015 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
24016 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
24017 "\x00\x01\x00\x00\x00\x00\x00\x00"
24018 "\x03\x73\x69\x70\x09\x63\x79\x62"
24019 "\x65\x72\x63\x69\x74\x79\x02\x64"
24020 "\x6B\x00\x00\x01\x00\x01\x00\x01",
24021 .rlen = 64,
24022 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
24023 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
24024 .alen = 16,
24025 .input = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
24026 "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
24027 "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
24028 "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
24029 "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
24030 "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
24031 "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
24032 "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
24033 "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
24034 "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
24035 .ilen = 80,
24036 }, {
24037 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24038 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24039 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24040 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24041 "\x11\x22\x33",
24042 .klen = 35,
24043 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
24044 .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
24045 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
24046 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
24047 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
24048 "\x70\x02\x40\x00\x20\xBF\x00\x00"
24049 "\x02\x04\x05\xB4\x01\x01\x04\x02"
24050 "\x01\x02\x02\x01",
24051 .rlen = 52,
24052 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
24053 "\x01\x02\x03\x04\x05\x06\x07\x08",
24054 .alen = 16,
24055 .input = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
24056 "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
24057 "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
24058 "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
24059 "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
24060 "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
24061 "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
24062 "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
24063 "\x5A\x48\x6A\x3E",
24064 .ilen = 68,
24065 }, {
24066 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
24067 "\x00\x00\x00\x00\x00\x00\x00\x00"
24068 "\x00\x00\x00",
24069 .klen = 19,
24070 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
24071 .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
24072 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
24073 "\x01\x01\x01\x01\x08\x00\x07\x5C"
24074 "\x02\x00\x44\x00\x61\x62\x63\x64"
24075 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
24076 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
24077 "\x75\x76\x77\x61\x62\x63\x64\x65"
24078 "\x66\x67\x68\x69\x01\x02\x02\x01",
24079 .rlen = 64,
24080 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
24081 "\x00\x00\x00\x00\x00\x00\x00\x00",
24082 .alen = 16,
24083 .input = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
24084 "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
24085 "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
24086 "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
24087 "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
24088 "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
24089 "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
24090 "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
24091 "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
24092 "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
24093 .ilen = 80,
24094 }, {
24095 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
24096 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
24097 "\x57\x69\x0E",
24098 .klen = 19,
24099 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
24100 .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
24101 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
24102 "\x01\x01\x01\x01\x08\x00\x08\x5C"
24103 "\x02\x00\x43\x00\x61\x62\x63\x64"
24104 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
24105 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
24106 "\x75\x76\x77\x61\x62\x63\x64\x65"
24107 "\x66\x67\x68\x69\x01\x02\x02\x01",
24108 .rlen = 64,
24109 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
24110 "\x10\x10\x10\x10\x4E\x28\x00\x00"
24111 "\xA2\xFC\xA1\xA3",
24112 .alen = 20,
24113 .input = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
24114 "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
24115 "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
24116 "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
24117 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
24118 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
24119 "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
24120 "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
24121 "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
24122 "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
24123 .ilen = 80,
24124 }, {
24125 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
24126 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
24127 "\x57\x69\x0E",
24128 .klen = 19,
24129 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
24130 .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
24131 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
24132 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
24133 "\x01\x02\x02\x01",
24134 .rlen = 28,
24135 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
24136 "\x10\x10\x10\x10\x4E\x28\x00\x00"
24137 "\xA2\xFC\xA1\xA3",
24138 .alen = 20,
24139 .input = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
24140 "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
24141 "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
24142 "\xA1\xE5\x90\x40\x05\x37\x45\x70"
24143 "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
24144 "\x08\xB4\x22\xE4",
24145 .ilen = 44,
24146 }, {
24147 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
24148 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
24149 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
24150 "\xCA\xFE\xBA",
24151 .klen = 27,
24152 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
24153 .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
24154 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
24155 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
24156 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
24157 "\x50\x10\x16\xD0\x75\x68\x00\x01",
24158 .rlen = 40,
24159 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
24160 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
24161 .alen = 16,
24162 .input = "\x05\x22\x15\xD1\x52\x56\x85\x04"
24163 "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
24164 "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
24165 "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
24166 "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
24167 "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
24168 "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
24169 .ilen = 56,
24170 }, {
24171 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24172 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24173 "\xDE\xCA\xF8",
24174 .klen = 19,
24175 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
24176 .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
24177 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
24178 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
24179 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
24180 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
24181 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
24182 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
24183 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
24184 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
24185 "\x23\x01\x01\x01",
24186 .rlen = 76,
24187 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
24188 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
24189 "\xCE\xFA\xCE\x74",
24190 .alen = 20,
24191 .input = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
24192 "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
24193 "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
24194 "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
24195 "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
24196 "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
24197 "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
24198 "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
24199 "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
24200 "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
24201 "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
24202 "\x12\x25\x0B\xF9",
24203 .ilen = 92,
24204 }, {
24205 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24206 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24207 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24208 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24209 "\x73\x61\x6C",
24210 .klen = 35,
24211 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
24212 .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
24213 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
24214 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
24215 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
24216 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
24217 .rlen = 40,
24218 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
24219 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
24220 "\x69\x76\x65\x63",
24221 .alen = 20,
24222 .input = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
24223 "\x2C\x64\x87\x46\x1E\x34\x10\x05"
24224 "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
24225 "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
24226 "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
24227 "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
24228 "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
24229 .ilen = 56,
24230 }, {
24231 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
24232 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
24233 "\x57\x69\x0E",
24234 .klen = 19,
24235 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
24236 .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
24237 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
24238 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
24239 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
24240 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
24241 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
24242 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
24243 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
24244 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
24245 "\x15\x01\x01\x01",
24246 .rlen = 76,
24247 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
24248 "\x10\x10\x10\x10\x4E\x28\x00\x00"
24249 "\xA2\xFC\xA1\xA3",
24250 .alen = 20,
24251 .input = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
24252 "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
24253 "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
24254 "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
24255 "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
24256 "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
24257 "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
24258 "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
24259 "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
24260 "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
24261 "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
24262 "\xCC\xF7\x46\x6F",
24263 .ilen = 92,
24264 }, {
24265 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24266 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24267 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24268 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24269 "\x73\x61\x6C",
24270 .klen = 35,
24271 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
24272 .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
24273 "\x6C\x65\x73\x01\x74\x68\x65\x01"
24274 "\x6E\x65\x74\x77\x65\x01\x64\x65"
24275 "\x66\x69\x6E\x65\x01\x74\x68\x65"
24276 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
24277 "\x67\x69\x65\x73\x01\x74\x68\x61"
24278 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
24279 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
24280 "\x72\x72\x6F\x77\x01\x02\x02\x01",
24281 .rlen = 72,
24282 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
24283 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
24284 "\x69\x76\x65\x63",
24285 .alen = 20,
24286 .input = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
24287 "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
24288 "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
24289 "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
24290 "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
24291 "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
24292 "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
24293 "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
24294 "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
24295 "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
24296 "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
24297 .ilen = 88,
24298 }, {
24299 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
24300 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
24301 "\xD9\x66\x42",
24302 .klen = 19,
24303 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
24304 .result = "\x01\x02\x02\x01",
24305 .rlen = 4,
24306 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
24307 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
24308 .alen = 16,
24309 .input = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
24310 "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
24311 "\xF7\x61\x24\x62",
24312 .ilen = 20,
24313 }, {
24314 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24315 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24316 "\xDE\xCA\xF8",
24317 .klen = 19,
24318 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
24319 .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
24320 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
24321 "\x62\x65\x00\x01",
24322 .rlen = 20,
24323 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
24324 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
24325 "\xCE\xFA\xCE\x74",
24326 .alen = 20,
24327 .input = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
24328 "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
24329 "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
24330 "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
24331 "\x17\x17\x65\xAD",
24332 .ilen = 36,
24333 }, {
24334 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
24335 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
24336 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
24337 "\x62\x65\x66\x6F\x72\x65\x69\x61"
24338 "\x74\x75\x72",
24339 .klen = 35,
24340 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
24341 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
24342 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
24343 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
24344 "\x02\x00\x07\x00\x61\x62\x63\x64"
24345 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
24346 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
24347 "\x01\x02\x02\x01",
24348 .rlen = 52,
24349 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
24350 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
24351 "\x67\x65\x74\x6D",
24352 .alen = 20,
24353 .input = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
24354 "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
24355 "\x48\x59\x80\x18\x1A\x18\x1A\x04"
24356 "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
24357 "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
24358 "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
24359 "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
24360 "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
24361 "\x39\xDB\xC8\xDC",
24362 .ilen = 68,
24363 }, {
24364 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
24365 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
24366 "\x57\x69\x0E",
24367 .klen = 19,
24368 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
24369 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
24370 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
24371 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
24372 "\x02\x00\x07\x00\x61\x62\x63\x64"
24373 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
24374 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
24375 "\x01\x02\x02\x01",
24376 .rlen = 52,
24377 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
24378 "\x10\x10\x10\x10\x4E\x28\x00\x00"
24379 "\xA2\xFC\xA1\xA3",
24380 .alen = 20,
24381 .input = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
24382 "\x10\x60\x54\x25\xEB\x80\x04\x93"
24383 "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
24384 "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
24385 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
24386 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
24387 "\x44\xCC\x90\xBF\x00\x94\x94\x92"
24388 "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
24389 "\xF4\x95\x5D\x4F",
24390 .ilen = 68,
24391 }, {
24392 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
24393 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
24394 "\x22\x43\x3C",
24395 .klen = 19,
24396 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
24397 .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
24398 "\x61\x62\x63\x64\x65\x66\x67\x68"
24399 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
24400 "\x71\x72\x73\x74\x01\x02\x02\x01",
24401 .rlen = 32,
24402 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
24403 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
24404 "\x3A\x23\x4B\xFD",
24405 .alen = 20,
24406 .input = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
24407 "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
24408 "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
24409 "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
24410 "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
24411 "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
24412 .ilen = 48,
24417 * ChaCha20-Poly1305 AEAD test vectors from RFC7539 2.8.2./A.5.
24419 #define RFC7539_ENC_TEST_VECTORS 2
24420 #define RFC7539_DEC_TEST_VECTORS 2
24421 static struct aead_testvec rfc7539_enc_tv_template[] = {
24423 .key = "\x80\x81\x82\x83\x84\x85\x86\x87"
24424 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
24425 "\x90\x91\x92\x93\x94\x95\x96\x97"
24426 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
24427 .klen = 32,
24428 .iv = "\x07\x00\x00\x00\x40\x41\x42\x43"
24429 "\x44\x45\x46\x47",
24430 .assoc = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
24431 "\xc4\xc5\xc6\xc7",
24432 .alen = 12,
24433 .input = "\x4c\x61\x64\x69\x65\x73\x20\x61"
24434 "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
24435 "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
24436 "\x74\x68\x65\x20\x63\x6c\x61\x73"
24437 "\x73\x20\x6f\x66\x20\x27\x39\x39"
24438 "\x3a\x20\x49\x66\x20\x49\x20\x63"
24439 "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
24440 "\x65\x72\x20\x79\x6f\x75\x20\x6f"
24441 "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
24442 "\x74\x69\x70\x20\x66\x6f\x72\x20"
24443 "\x74\x68\x65\x20\x66\x75\x74\x75"
24444 "\x72\x65\x2c\x20\x73\x75\x6e\x73"
24445 "\x63\x72\x65\x65\x6e\x20\x77\x6f"
24446 "\x75\x6c\x64\x20\x62\x65\x20\x69"
24447 "\x74\x2e",
24448 .ilen = 114,
24449 .result = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
24450 "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
24451 "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
24452 "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
24453 "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
24454 "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
24455 "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
24456 "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
24457 "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
24458 "\x98\x03\xae\xe3\x28\x09\x1b\x58"
24459 "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
24460 "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
24461 "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
24462 "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
24463 "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
24464 "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
24465 "\x06\x91",
24466 .rlen = 130,
24467 }, {
24468 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
24469 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
24470 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
24471 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
24472 .klen = 32,
24473 .iv = "\x00\x00\x00\x00\x01\x02\x03\x04"
24474 "\x05\x06\x07\x08",
24475 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
24476 "\x00\x00\x4e\x91",
24477 .alen = 12,
24478 .input = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
24479 "\x2d\x44\x72\x61\x66\x74\x73\x20"
24480 "\x61\x72\x65\x20\x64\x72\x61\x66"
24481 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
24482 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
24483 "\x64\x20\x66\x6f\x72\x20\x61\x20"
24484 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
24485 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
24486 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
24487 "\x64\x20\x6d\x61\x79\x20\x62\x65"
24488 "\x20\x75\x70\x64\x61\x74\x65\x64"
24489 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
24490 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
24491 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
24492 "\x20\x62\x79\x20\x6f\x74\x68\x65"
24493 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
24494 "\x6e\x74\x73\x20\x61\x74\x20\x61"
24495 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
24496 "\x20\x49\x74\x20\x69\x73\x20\x69"
24497 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
24498 "\x69\x61\x74\x65\x20\x74\x6f\x20"
24499 "\x75\x73\x65\x20\x49\x6e\x74\x65"
24500 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
24501 "\x66\x74\x73\x20\x61\x73\x20\x72"
24502 "\x65\x66\x65\x72\x65\x6e\x63\x65"
24503 "\x20\x6d\x61\x74\x65\x72\x69\x61"
24504 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
24505 "\x63\x69\x74\x65\x20\x74\x68\x65"
24506 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
24507 "\x74\x68\x61\x6e\x20\x61\x73\x20"
24508 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
24509 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
24510 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
24511 "\x9d",
24512 .ilen = 265,
24513 .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
24514 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
24515 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
24516 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
24517 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
24518 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
24519 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
24520 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
24521 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
24522 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
24523 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
24524 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
24525 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
24526 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
24527 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
24528 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
24529 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
24530 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
24531 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
24532 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
24533 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
24534 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
24535 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
24536 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
24537 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
24538 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
24539 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
24540 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
24541 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
24542 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
24543 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
24544 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
24545 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
24546 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
24547 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
24548 "\x38",
24549 .rlen = 281,
24553 static struct aead_testvec rfc7539_dec_tv_template[] = {
24555 .key = "\x80\x81\x82\x83\x84\x85\x86\x87"
24556 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
24557 "\x90\x91\x92\x93\x94\x95\x96\x97"
24558 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
24559 .klen = 32,
24560 .iv = "\x07\x00\x00\x00\x40\x41\x42\x43"
24561 "\x44\x45\x46\x47",
24562 .assoc = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
24563 "\xc4\xc5\xc6\xc7",
24564 .alen = 12,
24565 .input = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
24566 "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
24567 "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
24568 "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
24569 "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
24570 "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
24571 "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
24572 "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
24573 "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
24574 "\x98\x03\xae\xe3\x28\x09\x1b\x58"
24575 "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
24576 "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
24577 "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
24578 "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
24579 "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
24580 "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
24581 "\x06\x91",
24582 .ilen = 130,
24583 .result = "\x4c\x61\x64\x69\x65\x73\x20\x61"
24584 "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
24585 "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
24586 "\x74\x68\x65\x20\x63\x6c\x61\x73"
24587 "\x73\x20\x6f\x66\x20\x27\x39\x39"
24588 "\x3a\x20\x49\x66\x20\x49\x20\x63"
24589 "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
24590 "\x65\x72\x20\x79\x6f\x75\x20\x6f"
24591 "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
24592 "\x74\x69\x70\x20\x66\x6f\x72\x20"
24593 "\x74\x68\x65\x20\x66\x75\x74\x75"
24594 "\x72\x65\x2c\x20\x73\x75\x6e\x73"
24595 "\x63\x72\x65\x65\x6e\x20\x77\x6f"
24596 "\x75\x6c\x64\x20\x62\x65\x20\x69"
24597 "\x74\x2e",
24598 .rlen = 114,
24599 }, {
24600 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
24601 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
24602 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
24603 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
24604 .klen = 32,
24605 .iv = "\x00\x00\x00\x00\x01\x02\x03\x04"
24606 "\x05\x06\x07\x08",
24607 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
24608 "\x00\x00\x4e\x91",
24609 .alen = 12,
24610 .input = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
24611 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
24612 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
24613 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
24614 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
24615 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
24616 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
24617 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
24618 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
24619 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
24620 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
24621 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
24622 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
24623 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
24624 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
24625 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
24626 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
24627 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
24628 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
24629 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
24630 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
24631 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
24632 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
24633 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
24634 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
24635 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
24636 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
24637 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
24638 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
24639 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
24640 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
24641 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
24642 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
24643 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
24644 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
24645 "\x38",
24646 .ilen = 281,
24647 .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
24648 "\x2d\x44\x72\x61\x66\x74\x73\x20"
24649 "\x61\x72\x65\x20\x64\x72\x61\x66"
24650 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
24651 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
24652 "\x64\x20\x66\x6f\x72\x20\x61\x20"
24653 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
24654 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
24655 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
24656 "\x64\x20\x6d\x61\x79\x20\x62\x65"
24657 "\x20\x75\x70\x64\x61\x74\x65\x64"
24658 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
24659 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
24660 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
24661 "\x20\x62\x79\x20\x6f\x74\x68\x65"
24662 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
24663 "\x6e\x74\x73\x20\x61\x74\x20\x61"
24664 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
24665 "\x20\x49\x74\x20\x69\x73\x20\x69"
24666 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
24667 "\x69\x61\x74\x65\x20\x74\x6f\x20"
24668 "\x75\x73\x65\x20\x49\x6e\x74\x65"
24669 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
24670 "\x66\x74\x73\x20\x61\x73\x20\x72"
24671 "\x65\x66\x65\x72\x65\x6e\x63\x65"
24672 "\x20\x6d\x61\x74\x65\x72\x69\x61"
24673 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
24674 "\x63\x69\x74\x65\x20\x74\x68\x65"
24675 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
24676 "\x74\x68\x61\x6e\x20\x61\x73\x20"
24677 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
24678 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
24679 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
24680 "\x9d",
24681 .rlen = 265,
24686 * draft-irtf-cfrg-chacha20-poly1305
24688 #define RFC7539ESP_DEC_TEST_VECTORS 1
24689 #define RFC7539ESP_ENC_TEST_VECTORS 1
24690 static struct aead_testvec rfc7539esp_enc_tv_template[] = {
24692 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
24693 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
24694 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
24695 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
24696 "\x00\x00\x00\x00",
24697 .klen = 36,
24698 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
24699 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
24700 "\x00\x00\x4e\x91\x01\x02\x03\x04"
24701 "\x05\x06\x07\x08",
24702 .alen = 20,
24703 .input = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
24704 "\x2d\x44\x72\x61\x66\x74\x73\x20"
24705 "\x61\x72\x65\x20\x64\x72\x61\x66"
24706 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
24707 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
24708 "\x64\x20\x66\x6f\x72\x20\x61\x20"
24709 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
24710 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
24711 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
24712 "\x64\x20\x6d\x61\x79\x20\x62\x65"
24713 "\x20\x75\x70\x64\x61\x74\x65\x64"
24714 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
24715 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
24716 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
24717 "\x20\x62\x79\x20\x6f\x74\x68\x65"
24718 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
24719 "\x6e\x74\x73\x20\x61\x74\x20\x61"
24720 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
24721 "\x20\x49\x74\x20\x69\x73\x20\x69"
24722 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
24723 "\x69\x61\x74\x65\x20\x74\x6f\x20"
24724 "\x75\x73\x65\x20\x49\x6e\x74\x65"
24725 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
24726 "\x66\x74\x73\x20\x61\x73\x20\x72"
24727 "\x65\x66\x65\x72\x65\x6e\x63\x65"
24728 "\x20\x6d\x61\x74\x65\x72\x69\x61"
24729 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
24730 "\x63\x69\x74\x65\x20\x74\x68\x65"
24731 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
24732 "\x74\x68\x61\x6e\x20\x61\x73\x20"
24733 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
24734 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
24735 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
24736 "\x9d",
24737 .ilen = 265,
24738 .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
24739 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
24740 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
24741 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
24742 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
24743 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
24744 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
24745 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
24746 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
24747 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
24748 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
24749 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
24750 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
24751 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
24752 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
24753 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
24754 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
24755 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
24756 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
24757 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
24758 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
24759 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
24760 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
24761 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
24762 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
24763 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
24764 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
24765 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
24766 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
24767 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
24768 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
24769 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
24770 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
24771 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
24772 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
24773 "\x38",
24774 .rlen = 281,
24778 static struct aead_testvec rfc7539esp_dec_tv_template[] = {
24780 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
24781 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
24782 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
24783 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
24784 "\x00\x00\x00\x00",
24785 .klen = 36,
24786 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
24787 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
24788 "\x00\x00\x4e\x91\x01\x02\x03\x04"
24789 "\x05\x06\x07\x08",
24790 .alen = 20,
24791 .input = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
24792 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
24793 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
24794 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
24795 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
24796 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
24797 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
24798 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
24799 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
24800 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
24801 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
24802 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
24803 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
24804 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
24805 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
24806 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
24807 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
24808 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
24809 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
24810 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
24811 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
24812 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
24813 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
24814 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
24815 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
24816 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
24817 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
24818 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
24819 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
24820 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
24821 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
24822 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
24823 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
24824 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
24825 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
24826 "\x38",
24827 .ilen = 281,
24828 .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
24829 "\x2d\x44\x72\x61\x66\x74\x73\x20"
24830 "\x61\x72\x65\x20\x64\x72\x61\x66"
24831 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
24832 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
24833 "\x64\x20\x66\x6f\x72\x20\x61\x20"
24834 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
24835 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
24836 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
24837 "\x64\x20\x6d\x61\x79\x20\x62\x65"
24838 "\x20\x75\x70\x64\x61\x74\x65\x64"
24839 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
24840 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
24841 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
24842 "\x20\x62\x79\x20\x6f\x74\x68\x65"
24843 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
24844 "\x6e\x74\x73\x20\x61\x74\x20\x61"
24845 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
24846 "\x20\x49\x74\x20\x69\x73\x20\x69"
24847 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
24848 "\x69\x61\x74\x65\x20\x74\x6f\x20"
24849 "\x75\x73\x65\x20\x49\x6e\x74\x65"
24850 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
24851 "\x66\x74\x73\x20\x61\x73\x20\x72"
24852 "\x65\x66\x65\x72\x65\x6e\x63\x65"
24853 "\x20\x6d\x61\x74\x65\x72\x69\x61"
24854 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
24855 "\x63\x69\x74\x65\x20\x74\x68\x65"
24856 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
24857 "\x74\x68\x61\x6e\x20\x61\x73\x20"
24858 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
24859 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
24860 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
24861 "\x9d",
24862 .rlen = 265,
24867 * All key wrapping test vectors taken from
24868 * http://csrc.nist.gov/groups/STM/cavp/documents/mac/kwtestvectors.zip
24870 * Note: as documented in keywrap.c, the ivout for encryption is the first
24871 * semiblock of the ciphertext from the test vector. For decryption, iv is
24872 * the first semiblock of the ciphertext.
24874 static struct cipher_testvec aes_kw_enc_tv_template[] = {
24876 .key = "\x75\x75\xda\x3a\x93\x60\x7c\xc2"
24877 "\xbf\xd8\xce\xc7\xaa\xdf\xd9\xa6",
24878 .klen = 16,
24879 .input = "\x42\x13\x6d\x3c\x38\x4a\x3e\xea"
24880 "\xc9\x5a\x06\x6f\xd2\x8f\xed\x3f",
24881 .ilen = 16,
24882 .result = "\xf6\x85\x94\x81\x6f\x64\xca\xa3"
24883 "\xf5\x6f\xab\xea\x25\x48\xf5\xfb",
24884 .rlen = 16,
24885 .iv_out = "\x03\x1f\x6b\xd7\xe6\x1e\x64\x3d",
24889 static struct cipher_testvec aes_kw_dec_tv_template[] = {
24891 .key = "\x80\xaa\x99\x73\x27\xa4\x80\x6b"
24892 "\x6a\x7a\x41\xa5\x2b\x86\xc3\x71"
24893 "\x03\x86\xf9\x32\x78\x6e\xf7\x96"
24894 "\x76\xfa\xfb\x90\xb8\x26\x3c\x5f",
24895 .klen = 32,
24896 .input = "\xd3\x3d\x3d\x97\x7b\xf0\xa9\x15"
24897 "\x59\xf9\x9c\x8a\xcd\x29\x3d\x43",
24898 .ilen = 16,
24899 .result = "\x0a\x25\x6b\xa7\x5c\xfa\x03\xaa"
24900 "\xa0\x2b\xa9\x42\x03\xf1\x5b\xaa",
24901 .rlen = 16,
24902 .iv = "\x42\x3c\x96\x0d\x8a\x2a\xc4\xc1",
24907 * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
24908 * test vectors, taken from Appendix B.2.9 and B.2.10:
24909 * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
24910 * Only AES-128 is supported at this time.
24912 #define ANSI_CPRNG_AES_TEST_VECTORS 6
24914 static struct cprng_testvec ansi_cprng_aes_tv_template[] = {
24916 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
24917 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
24918 .klen = 16,
24919 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
24920 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
24921 .dtlen = 16,
24922 .v = "\x80\x00\x00\x00\x00\x00\x00\x00"
24923 "\x00\x00\x00\x00\x00\x00\x00\x00",
24924 .vlen = 16,
24925 .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
24926 "\x84\x79\x66\x85\xc1\x2f\x76\x41",
24927 .rlen = 16,
24928 .loops = 1,
24929 }, {
24930 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
24931 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
24932 .klen = 16,
24933 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
24934 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
24935 .dtlen = 16,
24936 .v = "\xc0\x00\x00\x00\x00\x00\x00\x00"
24937 "\x00\x00\x00\x00\x00\x00\x00\x00",
24938 .vlen = 16,
24939 .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
24940 "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
24941 .rlen = 16,
24942 .loops = 1,
24943 }, {
24944 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
24945 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
24946 .klen = 16,
24947 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
24948 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
24949 .dtlen = 16,
24950 .v = "\xe0\x00\x00\x00\x00\x00\x00\x00"
24951 "\x00\x00\x00\x00\x00\x00\x00\x00",
24952 .vlen = 16,
24953 .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
24954 "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
24955 .rlen = 16,
24956 .loops = 1,
24957 }, {
24958 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
24959 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
24960 .klen = 16,
24961 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
24962 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
24963 .dtlen = 16,
24964 .v = "\xf0\x00\x00\x00\x00\x00\x00\x00"
24965 "\x00\x00\x00\x00\x00\x00\x00\x00",
24966 .vlen = 16,
24967 .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
24968 "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
24969 .rlen = 16,
24970 .loops = 1,
24971 }, {
24972 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
24973 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
24974 .klen = 16,
24975 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
24976 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd",
24977 .dtlen = 16,
24978 .v = "\xf8\x00\x00\x00\x00\x00\x00\x00"
24979 "\x00\x00\x00\x00\x00\x00\x00\x00",
24980 .vlen = 16,
24981 .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb"
24982 "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
24983 .rlen = 16,
24984 .loops = 1,
24985 }, { /* Monte Carlo Test */
24986 .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
24987 "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
24988 .klen = 16,
24989 .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
24990 "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
24991 .dtlen = 16,
24992 .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97"
24993 "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
24994 .vlen = 16,
24995 .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
24996 "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
24997 .rlen = 16,
24998 .loops = 10000,
25003 * SP800-90A DRBG Test vectors from
25004 * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
25006 * Test vectors for DRBG with prediction resistance. All types of DRBGs
25007 * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
25008 * w/o personalization string, w/ and w/o additional input string).
25010 static struct drbg_testvec drbg_pr_sha256_tv_template[] = {
25012 .entropy = (unsigned char *)
25013 "\x72\x88\x4c\xcd\x6c\x85\x57\x70\xf7\x0b\x8b\x86"
25014 "\xc1\xeb\xd2\x4e\x36\x14\xab\x18\xc4\x9c\xc9\xcf"
25015 "\x1a\xe8\xf7\x7b\x02\x49\x73\xd7\xf1\x42\x7d\xc6"
25016 "\x3f\x29\x2d\xec\xd3\x66\x51\x3f\x1d\x8d\x5b\x4e",
25017 .entropylen = 48,
25018 .entpra = (unsigned char *)
25019 "\x38\x9c\x91\xfa\xc2\xa3\x46\x89\x56\x08\x3f\x62"
25020 "\x73\xd5\x22\xa9\x29\x63\x3a\x1d\xe5\x5d\x5e\x4f"
25021 "\x67\xb0\x67\x7a\x5e\x9e\x0c\x62",
25022 .entprb = (unsigned char *)
25023 "\xb2\x8f\x36\xb2\xf6\x8d\x39\x13\xfa\x6c\x66\xcf"
25024 "\x62\x8a\x7e\x8c\x12\x33\x71\x9c\x69\xe4\xa5\xf0"
25025 "\x8c\xee\xeb\x9c\xf5\x31\x98\x31",
25026 .entprlen = 32,
25027 .expected = (unsigned char *)
25028 "\x52\x7b\xa3\xad\x71\x77\xa4\x49\x42\x04\x61\xc7"
25029 "\xf0\xaf\xa5\xfd\xd3\xb3\x0d\x6a\x61\xba\x35\x49"
25030 "\xbb\xaa\xaf\xe4\x25\x7d\xb5\x48\xaf\x5c\x18\x3d"
25031 "\x33\x8d\x9d\x45\xdf\x98\xd5\x94\xa8\xda\x92\xfe"
25032 "\xc4\x3c\x94\x2a\xcf\x7f\x7b\xf2\xeb\x28\xa9\xf1"
25033 "\xe0\x86\x30\xa8\xfe\xf2\x48\x90\x91\x0c\x75\xb5"
25034 "\x3c\x00\xf0\x4d\x09\x4f\x40\xa7\xa2\x8c\x52\xdf"
25035 "\x52\xef\x17\xbf\x3d\xd1\xa2\x31\xb4\xb8\xdc\xe6"
25036 "\x5b\x0d\x1f\x78\x36\xb4\xe6\x4b\xa7\x11\x25\xd5"
25037 "\x94\xc6\x97\x36\xab\xf0\xe5\x31\x28\x6a\xbb\xce"
25038 "\x30\x81\xa6\x8f\x27\x14\xf8\x1c",
25039 .expectedlen = 128,
25040 .addtla = NULL,
25041 .addtlb = NULL,
25042 .addtllen = 0,
25043 .pers = NULL,
25044 .perslen = 0,
25045 }, {
25046 .entropy = (unsigned char *)
25047 "\x5d\xf2\x14\xbc\xf6\xb5\x4e\x0b\xf0\x0d\x6f\x2d"
25048 "\xe2\x01\x66\x7b\xd0\xa4\x73\xa4\x21\xdd\xb0\xc0"
25049 "\x51\x79\x09\xf4\xea\xa9\x08\xfa\xa6\x67\xe0\xe1"
25050 "\xd1\x88\xa8\xad\xee\x69\x74\xb3\x55\x06\x9b\xf6",
25051 .entropylen = 48,
25052 .entpra = (unsigned char *)
25053 "\xef\x48\x06\xa2\xc2\x45\xf1\x44\xfa\x34\x2c\xeb"
25054 "\x8d\x78\x3c\x09\x8f\x34\x72\x20\xf2\xe7\xfd\x13"
25055 "\x76\x0a\xf6\xdc\x3c\xf5\xc0\x15",
25056 .entprb = (unsigned char *)
25057 "\x4b\xbe\xe5\x24\xed\x6a\x2d\x0c\xdb\x73\x5e\x09"
25058 "\xf9\xad\x67\x7c\x51\x47\x8b\x6b\x30\x2a\xc6\xde"
25059 "\x76\xaa\x55\x04\x8b\x0a\x72\x95",
25060 .entprlen = 32,
25061 .expected = (unsigned char *)
25062 "\x3b\x14\x71\x99\xa1\xda\xa0\x42\xe6\xc8\x85\x32"
25063 "\x70\x20\x32\x53\x9a\xbe\xd1\x1e\x15\xef\xfb\x4c"
25064 "\x25\x6e\x19\x3a\xf0\xb9\xcb\xde\xf0\x3b\xc6\x18"
25065 "\x4d\x85\x5a\x9b\xf1\xe3\xc2\x23\x03\x93\x08\xdb"
25066 "\xa7\x07\x4b\x33\x78\x40\x4d\xeb\x24\xf5\x6e\x81"
25067 "\x4a\x1b\x6e\xa3\x94\x52\x43\xb0\xaf\x2e\x21\xf4"
25068 "\x42\x46\x8e\x90\xed\x34\x21\x75\xea\xda\x67\xb6"
25069 "\xe4\xf6\xff\xc6\x31\x6c\x9a\x5a\xdb\xb3\x97\x13"
25070 "\x09\xd3\x20\x98\x33\x2d\x6d\xd7\xb5\x6a\xa8\xa9"
25071 "\x9a\x5b\xd6\x87\x52\xa1\x89\x2b\x4b\x9c\x64\x60"
25072 "\x50\x47\xa3\x63\x81\x16\xaf\x19",
25073 .expectedlen = 128,
25074 .addtla = (unsigned char *)
25075 "\xbe\x13\xdb\x2a\xe9\xa8\xfe\x09\x97\xe1\xce\x5d"
25076 "\xe8\xbb\xc0\x7c\x4f\xcb\x62\x19\x3f\x0f\xd2\xad"
25077 "\xa9\xd0\x1d\x59\x02\xc4\xff\x70",
25078 .addtlb = (unsigned char *)
25079 "\x6f\x96\x13\xe2\xa7\xf5\x6c\xfe\xdf\x66\xe3\x31"
25080 "\x63\x76\xbf\x20\x27\x06\x49\xf1\xf3\x01\x77\x41"
25081 "\x9f\xeb\xe4\x38\xfe\x67\x00\xcd",
25082 .addtllen = 32,
25083 .pers = NULL,
25084 .perslen = 0,
25085 }, {
25086 .entropy = (unsigned char *)
25087 "\xc6\x1c\xaf\x83\xa2\x56\x38\xf9\xb0\xbc\xd9\x85"
25088 "\xf5\x2e\xc4\x46\x9c\xe1\xb9\x40\x98\x70\x10\x72"
25089 "\xd7\x7d\x15\x85\xa1\x83\x5a\x97\xdf\xc8\xa8\xe8"
25090 "\x03\x4c\xcb\x70\x35\x8b\x90\x94\x46\x8a\x6e\xa1",
25091 .entropylen = 48,
25092 .entpra = (unsigned char *)
25093 "\xc9\x05\xa4\xcf\x28\x80\x4b\x93\x0f\x8b\xc6\xf9"
25094 "\x09\x41\x58\x74\xe9\xec\x28\xc7\x53\x0a\x73\x60"
25095 "\xba\x0a\xde\x57\x5b\x4b\x9f\x29",
25096 .entprb = (unsigned char *)
25097 "\x4f\x31\xd2\xeb\xac\xfa\xa8\xe2\x01\x7d\xf3\xbd"
25098 "\x42\xbd\x20\xa0\x30\x65\x74\xd5\x5d\xd2\xad\xa4"
25099 "\xa9\xeb\x1f\x4d\xf6\xfd\xb8\x26",
25100 .entprlen = 32,
25101 .expected = (unsigned char *)
25102 "\xf6\x13\x05\xcb\x83\x60\x16\x42\x49\x1d\xc6\x25"
25103 "\x3b\x8c\x31\xa3\xbe\x8b\xbd\x1c\xe2\xec\x1d\xde"
25104 "\xbb\xbf\xa1\xac\xa8\x9f\x50\xce\x69\xce\xef\xd5"
25105 "\xd6\xf2\xef\x6a\xf7\x81\x38\xdf\xbc\xa7\x5a\xb9"
25106 "\xb2\x42\x65\xab\xe4\x86\x8d\x2d\x9d\x59\x99\x2c"
25107 "\x5a\x0d\x71\x55\x98\xa4\x45\xc2\x8d\xdb\x05\x5e"
25108 "\x50\x21\xf7\xcd\xe8\x98\x43\xce\x57\x74\x63\x4c"
25109 "\xf3\xb1\xa5\x14\x1e\x9e\x01\xeb\x54\xd9\x56\xae"
25110 "\xbd\xb6\x6f\x1a\x47\x6b\x3b\x44\xe4\xa2\xe9\x3c"
25111 "\x6c\x83\x12\x30\xb8\x78\x7f\x8e\x54\x82\xd4\xfe"
25112 "\x90\x35\x0d\x4c\x4d\x85\xe7\x13",
25113 .expectedlen = 128,
25114 .addtla = NULL,
25115 .addtlb = NULL,
25116 .addtllen = 0,
25117 .pers = (unsigned char *)
25118 "\xa5\xbf\xac\x4f\x71\xa1\xbb\x67\x94\xc6\x50\xc7"
25119 "\x2a\x45\x9e\x10\xa8\xed\xf7\x52\x4f\xfe\x21\x90"
25120 "\xa4\x1b\xe1\xe2\x53\xcc\x61\x47",
25121 .perslen = 32,
25122 }, {
25123 .entropy = (unsigned char *)
25124 "\xb6\xc1\x8d\xdf\x99\x54\xbe\x95\x10\x48\xd9\xf6"
25125 "\xd7\x48\xa8\x73\x2d\x74\xde\x1e\xde\x57\x7e\xf4"
25126 "\x7b\x7b\x64\xef\x88\x7a\xa8\x10\x4b\xe1\xc1\x87"
25127 "\xbb\x0b\xe1\x39\x39\x50\xaf\x68\x9c\xa2\xbf\x5e",
25128 .entropylen = 48,
25129 .entpra = (unsigned char *)
25130 "\xdc\x81\x0a\x01\x58\xa7\x2e\xce\xee\x48\x8c\x7c"
25131 "\x77\x9e\x3c\xf1\x17\x24\x7a\xbb\xab\x9f\xca\x12"
25132 "\x19\xaf\x97\x2d\x5f\xf9\xff\xfc",
25133 .entprb = (unsigned char *)
25134 "\xaf\xfc\x4f\x98\x8b\x93\x95\xc1\xb5\x8b\x7f\x73"
25135 "\x6d\xa6\xbe\x6d\x33\xeb\x2c\x82\xb1\xaf\xc1\xb6"
25136 "\xb6\x05\xe2\x44\xaa\xfd\xe7\xdb",
25137 .entprlen = 32,
25138 .expected = (unsigned char *)
25139 "\x51\x79\xde\x1c\x0f\x58\xf3\xf4\xc9\x57\x2e\x31"
25140 "\xa7\x09\xa1\x53\x64\x63\xa2\xc5\x1d\x84\x88\x65"
25141 "\x01\x1b\xc6\x16\x3c\x49\x5b\x42\x8e\x53\xf5\x18"
25142 "\xad\x94\x12\x0d\x4f\x55\xcc\x45\x5c\x98\x0f\x42"
25143 "\x28\x2f\x47\x11\xf9\xc4\x01\x97\x6b\xa0\x94\x50"
25144 "\xa9\xd1\x5e\x06\x54\x3f\xdf\xbb\xc4\x98\xee\x8b"
25145 "\xba\xa9\xfa\x49\xee\x1d\xdc\xfb\x50\xf6\x51\x9f"
25146 "\x6c\x4a\x9a\x6f\x63\xa2\x7d\xad\xaf\x3a\x24\xa0"
25147 "\xd9\x9f\x07\xeb\x15\xee\x26\xe0\xd5\x63\x39\xda"
25148 "\x3c\x59\xd6\x33\x6c\x02\xe8\x05\x71\x46\x68\x44"
25149 "\x63\x4a\x68\x72\xe9\xf5\x55\xfe",
25150 .expectedlen = 128,
25151 .addtla = (unsigned char *)
25152 "\x15\x20\x2f\xf6\x98\x28\x63\xa2\xc4\x4e\xbb\x6c"
25153 "\xb2\x25\x92\x61\x79\xc9\x22\xc4\x61\x54\x96\xff"
25154 "\x4a\x85\xca\x80\xfe\x0d\x1c\xd0",
25155 .addtlb = (unsigned char *)
25156 "\xde\x29\x8e\x03\x42\x61\xa3\x28\x5e\xc8\x80\xc2"
25157 "\x6d\xbf\xad\x13\xe1\x8d\x2a\xc7\xe8\xc7\x18\x89"
25158 "\x42\x58\x9e\xd6\xcc\xad\x7b\x1e",
25159 .addtllen = 32,
25160 .pers = (unsigned char *)
25161 "\x84\xc3\x73\x9e\xce\xb3\xbc\x89\xf7\x62\xb3\xe1"
25162 "\xd7\x48\x45\x8a\xa9\xcc\xe9\xed\xd5\x81\x84\x52"
25163 "\x82\x4c\xdc\x19\xb8\xf8\x92\x5c",
25164 .perslen = 32,
25168 static struct drbg_testvec drbg_pr_hmac_sha256_tv_template[] = {
25170 .entropy = (unsigned char *)
25171 "\x99\x69\xe5\x4b\x47\x03\xff\x31\x78\x5b\x87\x9a"
25172 "\x7e\x5c\x0e\xae\x0d\x3e\x30\x95\x59\xe9\xfe\x96"
25173 "\xb0\x67\x6d\x49\xd5\x91\xea\x4d\x07\xd2\x0d\x46"
25174 "\xd0\x64\x75\x7d\x30\x23\xca\xc2\x37\x61\x27\xab",
25175 .entropylen = 48,
25176 .entpra = (unsigned char *)
25177 "\xc6\x0f\x29\x99\x10\x0f\x73\x8c\x10\xf7\x47\x92"
25178 "\x67\x6a\x3f\xc4\xa2\x62\xd1\x37\x21\x79\x80\x46"
25179 "\xe2\x9a\x29\x51\x81\x56\x9f\x54",
25180 .entprb = (unsigned char *)
25181 "\xc1\x1d\x45\x24\xc9\x07\x1b\xd3\x09\x60\x15\xfc"
25182 "\xf7\xbc\x24\xa6\x07\xf2\x2f\xa0\x65\xc9\x37\x65"
25183 "\x8a\x2a\x77\xa8\x69\x90\x89\xf4",
25184 .entprlen = 32,
25185 .expected = (unsigned char *)
25186 "\xab\xc0\x15\x85\x60\x94\x80\x3a\x93\x8d\xff\xd2"
25187 "\x0d\xa9\x48\x43\x87\x0e\xf9\x35\xb8\x2c\xfe\xc1"
25188 "\x77\x06\xb8\xf5\x51\xb8\x38\x50\x44\x23\x5d\xd4"
25189 "\x4b\x59\x9f\x94\xb3\x9b\xe7\x8d\xd4\x76\xe0\xcf"
25190 "\x11\x30\x9c\x99\x5a\x73\x34\xe0\xa7\x8b\x37\xbc"
25191 "\x95\x86\x23\x50\x86\xfa\x3b\x63\x7b\xa9\x1c\xf8"
25192 "\xfb\x65\xef\xa2\x2a\x58\x9c\x13\x75\x31\xaa\x7b"
25193 "\x2d\x4e\x26\x07\xaa\xc2\x72\x92\xb0\x1c\x69\x8e"
25194 "\x6e\x01\xae\x67\x9e\xb8\x7c\x01\xa8\x9c\x74\x22"
25195 "\xd4\x37\x2d\x6d\x75\x4a\xba\xbb\x4b\xf8\x96\xfc"
25196 "\xb1\xcd\x09\xd6\x92\xd0\x28\x3f",
25197 .expectedlen = 128,
25198 .addtla = NULL,
25199 .addtlb = NULL,
25200 .addtllen = 0,
25201 .pers = NULL,
25202 .perslen = 0,
25203 }, {
25204 .entropy = (unsigned char *)
25205 "\xb9\x1f\xe9\xef\xdd\x9b\x7d\x20\xb6\xec\xe0\x2f"
25206 "\xdb\x76\x24\xce\x41\xc8\x3a\x4a\x12\x7f\x3e\x2f"
25207 "\xae\x05\x99\xea\xb5\x06\x71\x0d\x0c\x4c\xb4\x05"
25208 "\x26\xc6\xbd\xf5\x7f\x2a\x3d\xf2\xb5\x49\x7b\xda",
25209 .entropylen = 48,
25210 .entpra = (unsigned char *)
25211 "\xef\x67\x50\x9c\xa7\x7d\xdf\xb7\x2d\x81\x01\xa4"
25212 "\x62\x81\x6a\x69\x5b\xb3\x37\x45\xa7\x34\x8e\x26"
25213 "\x46\xd9\x26\xa2\x19\xd4\x94\x43",
25214 .entprb = (unsigned char *)
25215 "\x97\x75\x53\x53\xba\xb4\xa6\xb2\x91\x60\x71\x79"
25216 "\xd1\x6b\x4a\x24\x9a\x34\x66\xcc\x33\xab\x07\x98"
25217 "\x51\x78\x72\xb2\x79\xfd\x2c\xff",
25218 .entprlen = 32,
25219 .expected = (unsigned char *)
25220 "\x9c\xdc\x63\x8a\x19\x23\x22\x66\x0c\xc5\xb9\xd7"
25221 "\xfb\x2a\xb0\x31\xe3\x8a\x36\xa8\x5a\xa8\x14\xda"
25222 "\x1e\xa9\xcc\xfe\xb8\x26\x44\x83\x9f\xf6\xff\xaa"
25223 "\xc8\x98\xb8\x30\x35\x3b\x3d\x36\xd2\x49\xd4\x40"
25224 "\x62\x0a\x65\x10\x76\x55\xef\xc0\x95\x9c\xa7\xda"
25225 "\x3f\xcf\xb7\x7b\xc6\xe1\x28\x52\xfc\x0c\xe2\x37"
25226 "\x0d\x83\xa7\x51\x4b\x31\x47\x3c\xe1\x3c\xae\x70"
25227 "\x01\xc8\xa3\xd3\xc2\xac\x77\x9c\xd1\x68\x77\x9b"
25228 "\x58\x27\x3b\xa5\x0f\xc2\x7a\x8b\x04\x65\x62\xd5"
25229 "\xe8\xd6\xfe\x2a\xaf\xd3\xd3\xfe\xbd\x18\xfb\xcd"
25230 "\xcd\x66\xb5\x01\x69\x66\xa0\x3c",
25231 .expectedlen = 128,
25232 .addtla = (unsigned char *)
25233 "\x17\xc1\x56\xcb\xcc\x50\xd6\x03\x7d\x45\x76\xa3"
25234 "\x75\x76\xc1\x4a\x66\x1b\x2e\xdf\xb0\x2e\x7d\x56"
25235 "\x6d\x99\x3b\xc6\x58\xda\x03\xf6",
25236 .addtlb = (unsigned char *)
25237 "\x7c\x7b\x4a\x4b\x32\x5e\x6f\x67\x34\xf5\x21\x4c"
25238 "\xf9\x96\xf9\xbf\x1c\x8c\x81\xd3\x9b\x60\x6a\x44"
25239 "\xc6\x03\xa2\xfb\x13\x20\x19\xb7",
25240 .addtllen = 32,
25241 .pers = NULL,
25242 .perslen = 0,
25243 }, {
25244 .entropy = (unsigned char *)
25245 "\x13\x54\x96\xfc\x1b\x7d\x28\xf3\x18\xc9\xa7\x89"
25246 "\xb6\xb3\xc8\x72\xac\x00\xd4\x59\x36\x25\x05\xaf"
25247 "\xa5\xdb\x96\xcb\x3c\x58\x46\x87\xa5\xaa\xbf\x20"
25248 "\x3b\xfe\x23\x0e\xd1\xc7\x41\x0f\x3f\xc9\xb3\x67",
25249 .entropylen = 48,
25250 .entpra = (unsigned char *)
25251 "\xe2\xbd\xb7\x48\x08\x06\xf3\xe1\x93\x3c\xac\x79"
25252 "\xa7\x2b\x11\xda\xe3\x2e\xe1\x91\xa5\x02\x19\x57"
25253 "\x20\x28\xad\xf2\x60\xd7\xcd\x45",
25254 .entprb = (unsigned char *)
25255 "\x8b\xd4\x69\xfc\xff\x59\x95\x95\xc6\x51\xde\x71"
25256 "\x68\x5f\xfc\xf9\x4a\xab\xec\x5a\xcb\xbe\xd3\x66"
25257 "\x1f\xfa\x74\xd3\xac\xa6\x74\x60",
25258 .entprlen = 32,
25259 .expected = (unsigned char *)
25260 "\x1f\x9e\xaf\xe4\xd2\x46\xb7\x47\x41\x4c\x65\x99"
25261 "\x01\xe9\x3b\xbb\x83\x0c\x0a\xb0\xc1\x3a\xe2\xb3"
25262 "\x31\x4e\xeb\x93\x73\xee\x0b\x26\xc2\x63\xa5\x75"
25263 "\x45\x99\xd4\x5c\x9f\xa1\xd4\x45\x87\x6b\x20\x61"
25264 "\x40\xea\x78\xa5\x32\xdf\x9e\x66\x17\xaf\xb1\x88"
25265 "\x9e\x2e\x23\xdd\xc1\xda\x13\x97\x88\xa5\xb6\x5e"
25266 "\x90\x14\x4e\xef\x13\xab\x5c\xd9\x2c\x97\x9e\x7c"
25267 "\xd7\xf8\xce\xea\x81\xf5\xcd\x71\x15\x49\x44\xce"
25268 "\x83\xb6\x05\xfb\x7d\x30\xb5\x57\x2c\x31\x4f\xfc"
25269 "\xfe\x80\xb6\xc0\x13\x0c\x5b\x9b\x2e\x8f\x3d\xfc"
25270 "\xc2\xa3\x0c\x11\x1b\x80\x5f\xf3",
25271 .expectedlen = 128,
25272 .addtla = NULL,
25273 .addtlb = NULL,
25274 .addtllen = 0,
25275 .pers = (unsigned char *)
25276 "\x64\xb6\xfc\x60\xbc\x61\x76\x23\x6d\x3f\x4a\x0f"
25277 "\xe1\xb4\xd5\x20\x9e\x70\xdd\x03\x53\x6d\xbf\xce"
25278 "\xcd\x56\x80\xbc\xb8\x15\xc8\xaa",
25279 .perslen = 32,
25280 }, {
25281 .entropy = (unsigned char *)
25282 "\xc7\xcc\xbc\x67\x7e\x21\x66\x1e\x27\x2b\x63\xdd"
25283 "\x3a\x78\xdc\xdf\x66\x6d\x3f\x24\xae\xcf\x37\x01"
25284 "\xa9\x0d\x89\x8a\xa7\xdc\x81\x58\xae\xb2\x10\x15"
25285 "\x7e\x18\x44\x6d\x13\xea\xdf\x37\x85\xfe\x81\xfb",
25286 .entropylen = 48,
25287 .entpra = (unsigned char *)
25288 "\x7b\xa1\x91\x5b\x3c\x04\xc4\x1b\x1d\x19\x2f\x1a"
25289 "\x18\x81\x60\x3c\x6c\x62\x91\xb7\xe9\xf5\xcb\x96"
25290 "\xbb\x81\x6a\xcc\xb5\xae\x55\xb6",
25291 .entprb = (unsigned char *)
25292 "\x99\x2c\xc7\x78\x7e\x3b\x88\x12\xef\xbe\xd3\xd2"
25293 "\x7d\x2a\xa5\x86\xda\x8d\x58\x73\x4a\x0a\xb2\x2e"
25294 "\xbb\x4c\x7e\xe3\x9a\xb6\x81\xc1",
25295 .entprlen = 32,
25296 .expected = (unsigned char *)
25297 "\x95\x6f\x95\xfc\x3b\xb7\xfe\x3e\xd0\x4e\x1a\x14"
25298 "\x6c\x34\x7f\x7b\x1d\x0d\x63\x5e\x48\x9c\x69\xe6"
25299 "\x46\x07\xd2\x87\xf3\x86\x52\x3d\x98\x27\x5e\xd7"
25300 "\x54\xe7\x75\x50\x4f\xfb\x4d\xfd\xac\x2f\x4b\x77"
25301 "\xcf\x9e\x8e\xcc\x16\xa2\x24\xcd\x53\xde\x3e\xc5"
25302 "\x55\x5d\xd5\x26\x3f\x89\xdf\xca\x8b\x4e\x1e\xb6"
25303 "\x88\x78\x63\x5c\xa2\x63\x98\x4e\x6f\x25\x59\xb1"
25304 "\x5f\x2b\x23\xb0\x4b\xa5\x18\x5d\xc2\x15\x74\x40"
25305 "\x59\x4c\xb4\x1e\xcf\x9a\x36\xfd\x43\xe2\x03\xb8"
25306 "\x59\x91\x30\x89\x2a\xc8\x5a\x43\x23\x7c\x73\x72"
25307 "\xda\x3f\xad\x2b\xba\x00\x6b\xd1",
25308 .expectedlen = 128,
25309 .addtla = (unsigned char *)
25310 "\x18\xe8\x17\xff\xef\x39\xc7\x41\x5c\x73\x03\x03"
25311 "\xf6\x3d\xe8\x5f\xc8\xab\xe4\xab\x0f\xad\xe8\xd6"
25312 "\x86\x88\x55\x28\xc1\x69\xdd\x76",
25313 .addtlb = (unsigned char *)
25314 "\xac\x07\xfc\xbe\x87\x0e\xd3\xea\x1f\x7e\xb8\xe7"
25315 "\x9d\xec\xe8\xe7\xbc\xf3\x18\x25\x77\x35\x4a\xaa"
25316 "\x00\x99\x2a\xdd\x0a\x00\x50\x82",
25317 .addtllen = 32,
25318 .pers = (unsigned char *)
25319 "\xbc\x55\xab\x3c\xf6\x52\xb0\x11\x3d\x7b\x90\xb8"
25320 "\x24\xc9\x26\x4e\x5a\x1e\x77\x0d\x3d\x58\x4a\xda"
25321 "\xd1\x81\xe9\xf8\xeb\x30\x8f\x6f",
25322 .perslen = 32,
25326 static struct drbg_testvec drbg_pr_ctr_aes128_tv_template[] = {
25328 .entropy = (unsigned char *)
25329 "\xd1\x44\xc6\x61\x81\x6d\xca\x9d\x15\x28\x8a\x42"
25330 "\x94\xd7\x28\x9c\x43\x77\x19\x29\x1a\x6d\xc3\xa2",
25331 .entropylen = 24,
25332 .entpra = (unsigned char *)
25333 "\x96\xd8\x9e\x45\x32\xc9\xd2\x08\x7a\x6d\x97\x15"
25334 "\xb4\xec\x80\xb1",
25335 .entprb = (unsigned char *)
25336 "\x8b\xb6\x72\xb5\x24\x0b\x98\x65\x95\x95\xe9\xc9"
25337 "\x28\x07\xeb\xc2",
25338 .entprlen = 16,
25339 .expected = (unsigned char *)
25340 "\x70\x19\xd0\x4c\x45\x78\xd6\x68\xa9\x9a\xaa\xfe"
25341 "\xc1\xdf\x27\x9a\x1c\x0d\x0d\xf7\x24\x75\x46\xcc"
25342 "\x77\x6b\xdf\x89\xc6\x94\xdc\x74\x50\x10\x70\x18"
25343 "\x9b\xdc\x96\xb4\x89\x23\x40\x1a\xce\x09\x87\xce"
25344 "\xd2\xf3\xd5\xe4\x51\x67\x74\x11\x5a\xcc\x8b\x3b"
25345 "\x8a\xf1\x23\xa8",
25346 .expectedlen = 64,
25347 .addtla = NULL,
25348 .addtlb = NULL,
25349 .addtllen = 0,
25350 .pers = NULL,
25351 .perslen = 0,
25352 }, {
25353 .entropy = (unsigned char *)
25354 "\x8e\x83\xe0\xeb\x37\xea\x3e\x53\x5e\x17\x6e\x77"
25355 "\xbd\xb1\x53\x90\xfc\xdc\xc1\x3c\x9a\x88\x22\x94",
25356 .entropylen = 24,
25357 .entpra = (unsigned char *)
25358 "\x6a\x85\xe7\x37\xc8\xf1\x04\x31\x98\x4f\xc8\x73"
25359 "\x67\xd1\x08\xf8",
25360 .entprb = (unsigned char *)
25361 "\xd7\xa4\x68\xe2\x12\x74\xc3\xd9\xf1\xb7\x05\xbc"
25362 "\xd4\xba\x04\x58",
25363 .entprlen = 16,
25364 .expected = (unsigned char *)
25365 "\x78\xd6\xa6\x70\xff\xd1\x82\xf5\xa2\x88\x7f\x6d"
25366 "\x3d\x8c\x39\xb1\xa8\xcb\x2c\x91\xab\x14\x7e\xbc"
25367 "\x95\x45\x9f\x24\xb8\x20\xac\x21\x23\xdb\x72\xd7"
25368 "\x12\x8d\x48\x95\xf3\x19\x0c\x43\xc6\x19\x45\xfc"
25369 "\x8b\xac\x40\x29\x73\x00\x03\x45\x5e\x12\xff\x0c"
25370 "\xc1\x02\x41\x82",
25371 .expectedlen = 64,
25372 .addtla = (unsigned char *)
25373 "\xa2\xd9\x38\xcf\x8b\x29\x67\x5b\x65\x62\x6f\xe8"
25374 "\xeb\xb3\x01\x76",
25375 .addtlb = (unsigned char *)
25376 "\x59\x63\x1e\x81\x8a\x14\xa8\xbb\xa1\xb8\x41\x25"
25377 "\xd0\x7f\xcc\x43",
25378 .addtllen = 16,
25379 .pers = NULL,
25380 .perslen = 0,
25381 }, {
25382 .entropy = (unsigned char *)
25383 "\x04\xd9\x49\xa6\xdc\xe8\x6e\xbb\xf1\x08\x77\x2b"
25384 "\x9e\x08\xca\x92\x65\x16\xda\x99\xa2\x59\xf3\xe8",
25385 .entropylen = 24,
25386 .entpra = (unsigned char *)
25387 "\x38\x7e\x3f\x6b\x51\x70\x7b\x20\xec\x53\xd0\x66"
25388 "\xc3\x0f\xe3\xb0",
25389 .entprb = (unsigned char *)
25390 "\xe0\x86\xa6\xaa\x5f\x72\x2f\xad\xf7\xef\x06\xb8"
25391 "\xd6\x9c\x9d\xe8",
25392 .entprlen = 16,
25393 .expected = (unsigned char *)
25394 "\xc9\x0a\xaf\x85\x89\x71\x44\x66\x4f\x25\x0b\x2b"
25395 "\xde\xd8\xfa\xff\x52\x5a\x1b\x32\x5e\x41\x7a\x10"
25396 "\x1f\xef\x1e\x62\x23\xe9\x20\x30\xc9\x0d\xad\x69"
25397 "\xb4\x9c\x5b\xf4\x87\x42\xd5\xae\x5e\x5e\x43\xcc"
25398 "\xd9\xfd\x0b\x93\x4a\xe3\xd4\x06\x37\x36\x0f\x3f"
25399 "\x72\x82\x0c\xcf",
25400 .expectedlen = 64,
25401 .addtla = NULL,
25402 .addtlb = NULL,
25403 .addtllen = 0,
25404 .pers = (unsigned char *)
25405 "\xbf\xa4\x9a\x8f\x7b\xd8\xb1\x7a\x9d\xfa\x45\xed"
25406 "\x21\x52\xb3\xad",
25407 .perslen = 16,
25408 }, {
25409 .entropy = (unsigned char *)
25410 "\x92\x89\x8f\x31\xfa\x1c\xff\x6d\x18\x2f\x26\x06"
25411 "\x43\xdf\xf8\x18\xc2\xa4\xd9\x72\xc3\xb9\xb6\x97",
25412 .entropylen = 24,
25413 .entpra = (unsigned char *)
25414 "\x20\x72\x8a\x06\xf8\x6f\x8d\xd4\x41\xe2\x72\xb7"
25415 "\xc4\x2c\xe8\x10",
25416 .entprb = (unsigned char *)
25417 "\x3d\xb0\xf0\x94\xf3\x05\x50\x33\x17\x86\x3e\x22"
25418 "\x08\xf7\xa5\x01",
25419 .entprlen = 16,
25420 .expected = (unsigned char *)
25421 "\x5a\x35\x39\x87\x0f\x4d\x22\xa4\x09\x24\xee\x71"
25422 "\xc9\x6f\xac\x72\x0a\xd6\xf0\x88\x82\xd0\x83\x28"
25423 "\x73\xec\x3f\x93\xd8\xab\x45\x23\xf0\x7e\xac\x45"
25424 "\x14\x5e\x93\x9f\xb1\xd6\x76\x43\x3d\xb6\xe8\x08"
25425 "\x88\xf6\xda\x89\x08\x77\x42\xfe\x1a\xf4\x3f\xc4"
25426 "\x23\xc5\x1f\x68",
25427 .expectedlen = 64,
25428 .addtla = (unsigned char *)
25429 "\x1a\x40\xfa\xe3\xcc\x6c\x7c\xa0\xf8\xda\xba\x59"
25430 "\x23\x6d\xad\x1d",
25431 .addtlb = (unsigned char *)
25432 "\x9f\x72\x76\x6c\xc7\x46\xe5\xed\x2e\x53\x20\x12"
25433 "\xbc\x59\x31\x8c",
25434 .addtllen = 16,
25435 .pers = (unsigned char *)
25436 "\xea\x65\xee\x60\x26\x4e\x7e\xb6\x0e\x82\x68\xc4"
25437 "\x37\x3c\x5c\x0b",
25438 .perslen = 16,
25443 * SP800-90A DRBG Test vectors from
25444 * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
25446 * Test vectors for DRBG without prediction resistance. All types of DRBGs
25447 * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
25448 * w/o personalization string, w/ and w/o additional input string).
25450 static struct drbg_testvec drbg_nopr_sha256_tv_template[] = {
25452 .entropy = (unsigned char *)
25453 "\xa6\x5a\xd0\xf3\x45\xdb\x4e\x0e\xff\xe8\x75\xc3"
25454 "\xa2\xe7\x1f\x42\xc7\x12\x9d\x62\x0f\xf5\xc1\x19"
25455 "\xa9\xef\x55\xf0\x51\x85\xe0\xfb\x85\x81\xf9\x31"
25456 "\x75\x17\x27\x6e\x06\xe9\x60\x7d\xdb\xcb\xcc\x2e",
25457 .entropylen = 48,
25458 .expected = (unsigned char *)
25459 "\xd3\xe1\x60\xc3\x5b\x99\xf3\x40\xb2\x62\x82\x64"
25460 "\xd1\x75\x10\x60\xe0\x04\x5d\xa3\x83\xff\x57\xa5"
25461 "\x7d\x73\xa6\x73\xd2\xb8\xd8\x0d\xaa\xf6\xa6\xc3"
25462 "\x5a\x91\xbb\x45\x79\xd7\x3f\xd0\xc8\xfe\xd1\x11"
25463 "\xb0\x39\x13\x06\x82\x8a\xdf\xed\x52\x8f\x01\x81"
25464 "\x21\xb3\xfe\xbd\xc3\x43\xe7\x97\xb8\x7d\xbb\x63"
25465 "\xdb\x13\x33\xde\xd9\xd1\xec\xe1\x77\xcf\xa6\xb7"
25466 "\x1f\xe8\xab\x1d\xa4\x66\x24\xed\x64\x15\xe5\x1c"
25467 "\xcd\xe2\xc7\xca\x86\xe2\x83\x99\x0e\xea\xeb\x91"
25468 "\x12\x04\x15\x52\x8b\x22\x95\x91\x02\x81\xb0\x2d"
25469 "\xd4\x31\xf4\xc9\xf7\x04\x27\xdf",
25470 .expectedlen = 128,
25471 .addtla = NULL,
25472 .addtlb = NULL,
25473 .addtllen = 0,
25474 .pers = NULL,
25475 .perslen = 0,
25476 }, {
25477 .entropy = (unsigned char *)
25478 "\x73\xd3\xfb\xa3\x94\x5f\x2b\x5f\xb9\x8f\xf6\x9c"
25479 "\x8a\x93\x17\xae\x19\xc3\x4c\xc3\xd6\xca\xa3\x2d"
25480 "\x16\xfc\x42\xd2\x2d\xd5\x6f\x56\xcc\x1d\x30\xff"
25481 "\x9e\x06\x3e\x09\xce\x58\xe6\x9a\x35\xb3\xa6\x56",
25482 .entropylen = 48,
25483 .expected = (unsigned char *)
25484 "\x71\x7b\x93\x46\x1a\x40\xaa\x35\xa4\xaa\xc5\xe7"
25485 "\x6d\x5b\x5b\x8a\xa0\xdf\x39\x7d\xae\x71\x58\x5b"
25486 "\x3c\x7c\xb4\xf0\x89\xfa\x4a\x8c\xa9\x5c\x54\xc0"
25487 "\x40\xdf\xbc\xce\x26\x81\x34\xf8\xba\x7d\x1c\xe8"
25488 "\xad\x21\xe0\x74\xcf\x48\x84\x30\x1f\xa1\xd5\x4f"
25489 "\x81\x42\x2f\xf4\xdb\x0b\x23\xf8\x73\x27\xb8\x1d"
25490 "\x42\xf8\x44\x58\xd8\x5b\x29\x27\x0a\xf8\x69\x59"
25491 "\xb5\x78\x44\xeb\x9e\xe0\x68\x6f\x42\x9a\xb0\x5b"
25492 "\xe0\x4e\xcb\x6a\xaa\xe2\xd2\xd5\x33\x25\x3e\xe0"
25493 "\x6c\xc7\x6a\x07\xa5\x03\x83\x9f\xe2\x8b\xd1\x1c"
25494 "\x70\xa8\x07\x59\x97\xeb\xf6\xbe",
25495 .expectedlen = 128,
25496 .addtla = (unsigned char *)
25497 "\xf4\xd5\x98\x3d\xa8\xfc\xfa\x37\xb7\x54\x67\x73"
25498 "\xc7\xc3\xdd\x47\x34\x71\x02\x5d\xc1\xa0\xd3\x10"
25499 "\xc1\x8b\xbd\xf5\x66\x34\x6f\xdd",
25500 .addtlb = (unsigned char *)
25501 "\xf7\x9e\x6a\x56\x0e\x73\xe9\xd9\x7a\xd1\x69\xe0"
25502 "\x6f\x8c\x55\x1c\x44\xd1\xce\x6f\x28\xcc\xa4\x4d"
25503 "\xa8\xc0\x85\xd1\x5a\x0c\x59\x40",
25504 .addtllen = 32,
25505 .pers = NULL,
25506 .perslen = 0,
25507 }, {
25508 .entropy = (unsigned char *)
25509 "\x2a\x85\xa9\x8b\xd0\xda\x83\xd6\xad\xab\x9f\xbb"
25510 "\x54\x31\x15\x95\x1c\x4d\x49\x9f\x6a\x15\xf6\xe4"
25511 "\x15\x50\x88\x06\x29\x0d\xed\x8d\xb9\x6f\x96\xe1"
25512 "\x83\x9f\xf7\x88\xda\x84\xbf\x44\x28\xd9\x1d\xaa",
25513 .entropylen = 48,
25514 .expected = (unsigned char *)
25515 "\x2d\x55\xde\xc9\xed\x05\x47\x07\x3d\x04\xfc\x28"
25516 "\x0f\x92\xf0\x4d\xd8\x00\x32\x47\x0a\x1b\x1c\x4b"
25517 "\xef\xd9\x97\xa1\x17\x67\xda\x26\x6c\xfe\x76\x46"
25518 "\x6f\xbc\x6d\x82\x4e\x83\x8a\x98\x66\x6c\x01\xb6"
25519 "\xe6\x64\xe0\x08\x10\x6f\xd3\x5d\x90\xe7\x0d\x72"
25520 "\xa6\xa7\xe3\xbb\x98\x11\x12\x56\x23\xc2\x6d\xd1"
25521 "\xc8\xa8\x7a\x39\xf3\x34\xe3\xb8\xf8\x66\x00\x77"
25522 "\x7d\xcf\x3c\x3e\xfa\xc9\x0f\xaf\xe0\x24\xfa\xe9"
25523 "\x84\xf9\x6a\x01\xf6\x35\xdb\x5c\xab\x2a\xef\x4e"
25524 "\xac\xab\x55\xb8\x9b\xef\x98\x68\xaf\x51\xd8\x16"
25525 "\xa5\x5e\xae\xf9\x1e\xd2\xdb\xe6",
25526 .expectedlen = 128,
25527 .addtla = NULL,
25528 .addtlb = NULL,
25529 .addtllen = 0,
25530 .pers = (unsigned char *)
25531 "\xa8\x80\xec\x98\x30\x98\x15\xd2\xc6\xc4\x68\xf1"
25532 "\x3a\x1c\xbf\xce\x6a\x40\x14\xeb\x36\x99\x53\xda"
25533 "\x57\x6b\xce\xa4\x1c\x66\x3d\xbc",
25534 .perslen = 32,
25535 }, {
25536 .entropy = (unsigned char *)
25537 "\x69\xed\x82\xa9\xc5\x7b\xbf\xe5\x1d\x2f\xcb\x7a"
25538 "\xd3\x50\x7d\x96\xb4\xb9\x2b\x50\x77\x51\x27\x74"
25539 "\x33\x74\xba\xf1\x30\xdf\x8e\xdf\x87\x1d\x87\xbc"
25540 "\x96\xb2\xc3\xa7\xed\x60\x5e\x61\x4e\x51\x29\x1a",
25541 .entropylen = 48,
25542 .expected = (unsigned char *)
25543 "\xa5\x71\x24\x31\x11\xfe\x13\xe1\xa8\x24\x12\xfb"
25544 "\x37\xa1\x27\xa5\xab\x77\xa1\x9f\xae\x8f\xaf\x13"
25545 "\x93\xf7\x53\x85\x91\xb6\x1b\xab\xd4\x6b\xea\xb6"
25546 "\xef\xda\x4c\x90\x6e\xef\x5f\xde\xe1\xc7\x10\x36"
25547 "\xd5\x67\xbd\x14\xb6\x89\x21\x0c\xc9\x92\x65\x64"
25548 "\xd0\xf3\x23\xe0\x7f\xd1\xe8\x75\xc2\x85\x06\xea"
25549 "\xca\xc0\xcb\x79\x2d\x29\x82\xfc\xaa\x9a\xc6\x95"
25550 "\x7e\xdc\x88\x65\xba\xec\x0e\x16\x87\xec\xa3\x9e"
25551 "\xd8\x8c\x80\xab\x3a\x64\xe0\xcb\x0e\x45\x98\xdd"
25552 "\x7c\x6c\x6c\x26\x11\x13\xc8\xce\xa9\x47\xa6\x06"
25553 "\x57\xa2\x66\xbb\x2d\x7f\xf3\xc1",
25554 .expectedlen = 128,
25555 .addtla = (unsigned char *)
25556 "\x74\xd3\x6d\xda\xe8\xd6\x86\x5f\x63\x01\xfd\xf2"
25557 "\x7d\x06\x29\x6d\x94\xd1\x66\xf0\xd2\x72\x67\x4e"
25558 "\x77\xc5\x3d\x9e\x03\xe3\xa5\x78",
25559 .addtlb = (unsigned char *)
25560 "\xf6\xb6\x3d\xf0\x7c\x26\x04\xc5\x8b\xcd\x3e\x6a"
25561 "\x9f\x9c\x3a\x2e\xdb\x47\x87\xe5\x8e\x00\x5e\x2b"
25562 "\x74\x7f\xa6\xf6\x80\xcd\x9b\x21",
25563 .addtllen = 32,
25564 .pers = (unsigned char *)
25565 "\x74\xa6\xe0\x08\xf9\x27\xee\x1d\x6e\x3c\x28\x20"
25566 "\x87\xdd\xd7\x54\x31\x47\x78\x4b\xe5\x6d\xa3\x73"
25567 "\xa9\x65\xb1\x10\xc1\xdc\x77\x7c",
25568 .perslen = 32,
25572 static struct drbg_testvec drbg_nopr_hmac_sha256_tv_template[] = {
25574 .entropy = (unsigned char *)
25575 "\xca\x85\x19\x11\x34\x93\x84\xbf\xfe\x89\xde\x1c"
25576 "\xbd\xc4\x6e\x68\x31\xe4\x4d\x34\xa4\xfb\x93\x5e"
25577 "\xe2\x85\xdd\x14\xb7\x1a\x74\x88\x65\x9b\xa9\x6c"
25578 "\x60\x1d\xc6\x9f\xc9\x02\x94\x08\x05\xec\x0c\xa8",
25579 .entropylen = 48,
25580 .expected = (unsigned char *)
25581 "\xe5\x28\xe9\xab\xf2\xde\xce\x54\xd4\x7c\x7e\x75"
25582 "\xe5\xfe\x30\x21\x49\xf8\x17\xea\x9f\xb4\xbe\xe6"
25583 "\xf4\x19\x96\x97\xd0\x4d\x5b\x89\xd5\x4f\xbb\x97"
25584 "\x8a\x15\xb5\xc4\x43\xc9\xec\x21\x03\x6d\x24\x60"
25585 "\xb6\xf7\x3e\xba\xd0\xdc\x2a\xba\x6e\x62\x4a\xbf"
25586 "\x07\x74\x5b\xc1\x07\x69\x4b\xb7\x54\x7b\xb0\x99"
25587 "\x5f\x70\xde\x25\xd6\xb2\x9e\x2d\x30\x11\xbb\x19"
25588 "\xd2\x76\x76\xc0\x71\x62\xc8\xb5\xcc\xde\x06\x68"
25589 "\x96\x1d\xf8\x68\x03\x48\x2c\xb3\x7e\xd6\xd5\xc0"
25590 "\xbb\x8d\x50\xcf\x1f\x50\xd4\x76\xaa\x04\x58\xbd"
25591 "\xab\xa8\x06\xf4\x8b\xe9\xdc\xb8",
25592 .expectedlen = 128,
25593 .addtla = NULL,
25594 .addtlb = NULL,
25595 .addtllen = 0,
25596 .pers = NULL,
25597 .perslen = 0,
25598 }, {
25599 .entropy = (unsigned char *)
25600 "\xf9\x7a\x3c\xfd\x91\xfa\xa0\x46\xb9\xe6\x1b\x94"
25601 "\x93\xd4\x36\xc4\x93\x1f\x60\x4b\x22\xf1\x08\x15"
25602 "\x21\xb3\x41\x91\x51\xe8\xff\x06\x11\xf3\xa7\xd4"
25603 "\x35\x95\x35\x7d\x58\x12\x0b\xd1\xe2\xdd\x8a\xed",
25604 .entropylen = 48,
25605 .expected = (unsigned char *)
25606 "\xc6\x87\x1c\xff\x08\x24\xfe\x55\xea\x76\x89\xa5"
25607 "\x22\x29\x88\x67\x30\x45\x0e\x5d\x36\x2d\xa5\xbf"
25608 "\x59\x0d\xcf\x9a\xcd\x67\xfe\xd4\xcb\x32\x10\x7d"
25609 "\xf5\xd0\x39\x69\xa6\x6b\x1f\x64\x94\xfd\xf5\xd6"
25610 "\x3d\x5b\x4d\x0d\x34\xea\x73\x99\xa0\x7d\x01\x16"
25611 "\x12\x6d\x0d\x51\x8c\x7c\x55\xba\x46\xe1\x2f\x62"
25612 "\xef\xc8\xfe\x28\xa5\x1c\x9d\x42\x8e\x6d\x37\x1d"
25613 "\x73\x97\xab\x31\x9f\xc7\x3d\xed\x47\x22\xe5\xb4"
25614 "\xf3\x00\x04\x03\x2a\x61\x28\xdf\x5e\x74\x97\xec"
25615 "\xf8\x2c\xa7\xb0\xa5\x0e\x86\x7e\xf6\x72\x8a\x4f"
25616 "\x50\x9a\x8c\x85\x90\x87\x03\x9c",
25617 .expectedlen = 128,
25618 .addtla = (unsigned char *)
25619 "\x51\x72\x89\xaf\xe4\x44\xa0\xfe\x5e\xd1\xa4\x1d"
25620 "\xbb\xb5\xeb\x17\x15\x00\x79\xbd\xd3\x1e\x29\xcf"
25621 "\x2f\xf3\x00\x34\xd8\x26\x8e\x3b",
25622 .addtlb = (unsigned char *)
25623 "\x88\x02\x8d\x29\xef\x80\xb4\xe6\xf0\xfe\x12\xf9"
25624 "\x1d\x74\x49\xfe\x75\x06\x26\x82\xe8\x9c\x57\x14"
25625 "\x40\xc0\xc9\xb5\x2c\x42\xa6\xe0",
25626 .addtllen = 32,
25627 .pers = NULL,
25628 .perslen = 0,
25629 }, {
25630 .entropy = (unsigned char *)
25631 "\x8d\xf0\x13\xb4\xd1\x03\x52\x30\x73\x91\x7d\xdf"
25632 "\x6a\x86\x97\x93\x05\x9e\x99\x43\xfc\x86\x54\x54"
25633 "\x9e\x7a\xb2\x2f\x7c\x29\xf1\x22\xda\x26\x25\xaf"
25634 "\x2d\xdd\x4a\xbc\xce\x3c\xf4\xfa\x46\x59\xd8\x4e",
25635 .entropylen = 48,
25636 .expected = (unsigned char *)
25637 "\xb9\x1c\xba\x4c\xc8\x4f\xa2\x5d\xf8\x61\x0b\x81"
25638 "\xb6\x41\x40\x27\x68\xa2\x09\x72\x34\x93\x2e\x37"
25639 "\xd5\x90\xb1\x15\x4c\xbd\x23\xf9\x74\x52\xe3\x10"
25640 "\xe2\x91\xc4\x51\x46\x14\x7f\x0d\xa2\xd8\x17\x61"
25641 "\xfe\x90\xfb\xa6\x4f\x94\x41\x9c\x0f\x66\x2b\x28"
25642 "\xc1\xed\x94\xda\x48\x7b\xb7\xe7\x3e\xec\x79\x8f"
25643 "\xbc\xf9\x81\xb7\x91\xd1\xbe\x4f\x17\x7a\x89\x07"
25644 "\xaa\x3c\x40\x16\x43\xa5\xb6\x2b\x87\xb8\x9d\x66"
25645 "\xb3\xa6\x0e\x40\xd4\xa8\xe4\xe9\xd8\x2a\xf6\xd2"
25646 "\x70\x0e\x6f\x53\x5c\xdb\x51\xf7\x5c\x32\x17\x29"
25647 "\x10\x37\x41\x03\x0c\xcc\x3a\x56",
25648 .expectedlen = 128,
25649 .addtla = NULL,
25650 .addtlb = NULL,
25651 .addtllen = 0,
25652 .pers = (unsigned char *)
25653 "\xb5\x71\xe6\x6d\x7c\x33\x8b\xc0\x7b\x76\xad\x37"
25654 "\x57\xbb\x2f\x94\x52\xbf\x7e\x07\x43\x7a\xe8\x58"
25655 "\x1c\xe7\xbc\x7c\x3a\xc6\x51\xa9",
25656 .perslen = 32,
25657 }, {
25658 .entropy = (unsigned char *)
25659 "\xc2\xa5\x66\xa9\xa1\x81\x7b\x15\xc5\xc3\xb7\x78"
25660 "\x17\x7a\xc8\x7c\x24\xe7\x97\xbe\x0a\x84\x5f\x11"
25661 "\xc2\xfe\x39\x9d\xd3\x77\x32\xf2\xcb\x18\x94\xeb"
25662 "\x2b\x97\xb3\xc5\x6e\x62\x83\x29\x51\x6f\x86\xec",
25663 .entropylen = 48,
25664 .expected = (unsigned char *)
25665 "\xb3\xa3\x69\x8d\x77\x76\x99\xa0\xdd\x9f\xa3\xf0"
25666 "\xa9\xfa\x57\x83\x2d\x3c\xef\xac\x5d\xf2\x44\x37"
25667 "\xc6\xd7\x3a\x0f\xe4\x10\x40\xf1\x72\x90\x38\xae"
25668 "\xf1\xe9\x26\x35\x2e\xa5\x9d\xe1\x20\xbf\xb7\xb0"
25669 "\x73\x18\x3a\x34\x10\x6e\xfe\xd6\x27\x8f\xf8\xad"
25670 "\x84\x4b\xa0\x44\x81\x15\xdf\xdd\xf3\x31\x9a\x82"
25671 "\xde\x6b\xb1\x1d\x80\xbd\x87\x1a\x9a\xcd\x35\xc7"
25672 "\x36\x45\xe1\x27\x0f\xb9\xfe\x4f\xa8\x8e\xc0\xe4"
25673 "\x65\x40\x9e\xa0\xcb\xa8\x09\xfe\x2f\x45\xe0\x49"
25674 "\x43\xa2\xe3\x96\xbb\xb7\xdd\x2f\x4e\x07\x95\x30"
25675 "\x35\x24\xcc\x9c\xc5\xea\x54\xa1",
25676 .expectedlen = 128,
25677 .addtla = (unsigned char *)
25678 "\x41\x3d\xd8\x3f\xe5\x68\x35\xab\xd4\x78\xcb\x96"
25679 "\x93\xd6\x76\x35\x90\x1c\x40\x23\x9a\x26\x64\x62"
25680 "\xd3\x13\x3b\x83\xe4\x9c\x82\x0b",
25681 .addtlb = (unsigned char *)
25682 "\xd5\xc4\xa7\x1f\x9d\x6d\x95\xa1\xbe\xdf\x0b\xd2"
25683 "\x24\x7c\x27\x7d\x1f\x84\xa4\xe5\x7a\x4a\x88\x25"
25684 "\xb8\x2a\x2d\x09\x7d\xe6\x3e\xf1",
25685 .addtllen = 32,
25686 .pers = (unsigned char *)
25687 "\x13\xce\x4d\x8d\xd2\xdb\x97\x96\xf9\x41\x56\xc8"
25688 "\xe8\xf0\x76\x9b\x0a\xa1\xc8\x2c\x13\x23\xb6\x15"
25689 "\x36\x60\x3b\xca\x37\xc9\xee\x29",
25690 .perslen = 32,
25694 static struct drbg_testvec drbg_nopr_ctr_aes192_tv_template[] = {
25696 .entropy = (unsigned char *)
25697 "\xc3\x5c\x2f\xa2\xa8\x9d\x52\xa1\x1f\xa3\x2a\xa9"
25698 "\x6c\x95\xb8\xf1\xc9\xa8\xf9\xcb\x24\x5a\x8b\x40"
25699 "\xf3\xa6\xe5\xa7\xfb\xd9\xd3\xc6\x8e\x27\x7b\xa9"
25700 "\xac\x9b\xbb\x00",
25701 .entropylen = 40,
25702 .expected = (unsigned char *)
25703 "\x8c\x2e\x72\xab\xfd\x9b\xb8\x28\x4d\xb7\x9e\x17"
25704 "\xa4\x3a\x31\x46\xcd\x76\x94\xe3\x52\x49\xfc\x33"
25705 "\x83\x91\x4a\x71\x17\xf4\x13\x68\xe6\xd4\xf1\x48"
25706 "\xff\x49\xbf\x29\x07\x6b\x50\x15\xc5\x9f\x45\x79"
25707 "\x45\x66\x2e\x3d\x35\x03\x84\x3f\x4a\xa5\xa3\xdf"
25708 "\x9a\x9d\xf1\x0d",
25709 .expectedlen = 64,
25710 .addtla = NULL,
25711 .addtlb = NULL,
25712 .addtllen = 0,
25713 .pers = NULL,
25714 .perslen = 0,
25718 static struct drbg_testvec drbg_nopr_ctr_aes256_tv_template[] = {
25720 .entropy = (unsigned char *)
25721 "\x36\x40\x19\x40\xfa\x8b\x1f\xba\x91\xa1\x66\x1f"
25722 "\x21\x1d\x78\xa0\xb9\x38\x9a\x74\xe5\xbc\xcf\xec"
25723 "\xe8\xd7\x66\xaf\x1a\x6d\x3b\x14\x49\x6f\x25\xb0"
25724 "\xf1\x30\x1b\x4f\x50\x1b\xe3\x03\x80\xa1\x37\xeb",
25725 .entropylen = 48,
25726 .expected = (unsigned char *)
25727 "\x58\x62\xeb\x38\xbd\x55\x8d\xd9\x78\xa6\x96\xe6"
25728 "\xdf\x16\x47\x82\xdd\xd8\x87\xe7\xe9\xa6\xc9\xf3"
25729 "\xf1\xfb\xaf\xb7\x89\x41\xb5\x35\xa6\x49\x12\xdf"
25730 "\xd2\x24\xc6\xdc\x74\x54\xe5\x25\x0b\x3d\x97\x16"
25731 "\x5e\x16\x26\x0c\x2f\xaf\x1c\xc7\x73\x5c\xb7\x5f"
25732 "\xb4\xf0\x7e\x1d",
25733 .expectedlen = 64,
25734 .addtla = NULL,
25735 .addtlb = NULL,
25736 .addtllen = 0,
25737 .pers = NULL,
25738 .perslen = 0,
25742 static struct drbg_testvec drbg_nopr_ctr_aes128_tv_template[] = {
25744 .entropy = (unsigned char *)
25745 "\x87\xe1\xc5\x32\x99\x7f\x57\xa3\x5c\x28\x6d\xe8"
25746 "\x64\xbf\xf2\x64\xa3\x9e\x98\xdb\x6c\x10\x78\x7f",
25747 .entropylen = 24,
25748 .expected = (unsigned char *)
25749 "\x2c\x14\x7e\x24\x11\x9a\xd8\xd4\xb2\xed\x61\xc1"
25750 "\x53\xd0\x50\xc9\x24\xff\x59\x75\x15\xf1\x17\x3a"
25751 "\x3d\xf4\x4b\x2c\x84\x28\xef\x89\x0e\xb9\xde\xf3"
25752 "\xe4\x78\x04\xb2\xfd\x9b\x35\x7f\xe1\x3f\x8a\x3e"
25753 "\x10\xc8\x67\x0a\xf9\xdf\x2d\x6c\x96\xfb\xb2\xb8"
25754 "\xcb\x2d\xd6\xb0",
25755 .expectedlen = 64,
25756 .addtla = NULL,
25757 .addtlb = NULL,
25758 .addtllen = 0,
25759 .pers = NULL,
25760 .perslen = 0,
25761 }, {
25762 .entropy = (unsigned char *)
25763 "\x71\xbd\xce\x35\x42\x7d\x20\xbf\x58\xcf\x17\x74"
25764 "\xce\x72\xd8\x33\x34\x50\x2d\x8f\x5b\x14\xc4\xdd",
25765 .entropylen = 24,
25766 .expected = (unsigned char *)
25767 "\x97\x33\xe8\x20\x12\xe2\x7b\xa1\x46\x8f\xf2\x34"
25768 "\xb3\xc9\xb6\x6b\x20\xb2\x4f\xee\x27\xd8\x0b\x21"
25769 "\x8c\xff\x63\x73\x69\x29\xfb\xf3\x85\xcd\x88\x8e"
25770 "\x43\x2c\x71\x8b\xa2\x55\xd2\x0f\x1d\x7f\xe3\xe1"
25771 "\x2a\xa3\xe9\x2c\x25\x89\xc7\x14\x52\x99\x56\xcc"
25772 "\xc3\xdf\xb3\x81",
25773 .expectedlen = 64,
25774 .addtla = (unsigned char *)
25775 "\x66\xef\x42\xd6\x9a\x8c\x3d\x6d\x4a\x9e\x95\xa6"
25776 "\x91\x4d\x81\x56",
25777 .addtlb = (unsigned char *)
25778 "\xe3\x18\x83\xd9\x4b\x5e\xc4\xcc\xaa\x61\x2f\xbb"
25779 "\x4a\x55\xd1\xc6",
25780 .addtllen = 16,
25781 .pers = NULL,
25782 .perslen = 0,
25783 }, {
25784 .entropy = (unsigned char *)
25785 "\xca\x4b\x1e\xfa\x75\xbd\x69\x36\x38\x73\xb8\xf9"
25786 "\xdb\x4d\x35\x0e\x47\xbf\x6c\x37\x72\xfd\xf7\xa9",
25787 .entropylen = 24,
25788 .expected = (unsigned char *)
25789 "\x59\xc3\x19\x79\x1b\xb1\xf3\x0e\xe9\x34\xae\x6e"
25790 "\x8b\x1f\xad\x1f\x74\xca\x25\x45\x68\xb8\x7f\x75"
25791 "\x12\xf8\xf2\xab\x4c\x23\x01\x03\x05\xe1\x70\xee"
25792 "\x75\xd8\xcb\xeb\x23\x4c\x7a\x23\x6e\x12\x27\xdb"
25793 "\x6f\x7a\xac\x3c\x44\xb7\x87\x4b\x65\x56\x74\x45"
25794 "\x34\x30\x0c\x3d",
25795 .expectedlen = 64,
25796 .addtla = NULL,
25797 .addtlb = NULL,
25798 .addtllen = 0,
25799 .pers = (unsigned char *)
25800 "\xeb\xaa\x60\x2c\x4d\xbe\x33\xff\x1b\xef\xbf\x0a"
25801 "\x0b\xc6\x97\x54",
25802 .perslen = 16,
25803 }, {
25804 .entropy = (unsigned char *)
25805 "\xc0\x70\x1f\x92\x50\x75\x8f\xcd\xf2\xbe\x73\x98"
25806 "\x80\xdb\x66\xeb\x14\x68\xb4\xa5\x87\x9c\x2d\xa6",
25807 .entropylen = 24,
25808 .expected = (unsigned char *)
25809 "\x97\xc0\xc0\xe5\xa0\xcc\xf2\x4f\x33\x63\x48\x8a"
25810 "\xdb\x13\x0a\x35\x89\xbf\x80\x65\x62\xee\x13\x95"
25811 "\x7c\x33\xd3\x7d\xf4\x07\x77\x7a\x2b\x65\x0b\x5f"
25812 "\x45\x5c\x13\xf1\x90\x77\x7f\xc5\x04\x3f\xcc\x1a"
25813 "\x38\xf8\xcd\x1b\xbb\xd5\x57\xd1\x4a\x4c\x2e\x8a"
25814 "\x2b\x49\x1e\x5c",
25815 .expectedlen = 64,
25816 .addtla = (unsigned char *)
25817 "\xf9\x01\xf8\x16\x7a\x1d\xff\xde\x8e\x3c\x83\xe2"
25818 "\x44\x85\xe7\xfe",
25819 .addtlb = (unsigned char *)
25820 "\x17\x1c\x09\x38\xc2\x38\x9f\x97\x87\x60\x55\xb4"
25821 "\x82\x16\x62\x7f",
25822 .addtllen = 16,
25823 .pers = (unsigned char *)
25824 "\x80\x08\xae\xe8\xe9\x69\x40\xc5\x08\x73\xc7\x9f"
25825 "\x8e\xcf\xe0\x02",
25826 .perslen = 16,
25830 /* Cast5 test vectors from RFC 2144 */
25831 #define CAST5_ENC_TEST_VECTORS 4
25832 #define CAST5_DEC_TEST_VECTORS 4
25833 #define CAST5_CBC_ENC_TEST_VECTORS 1
25834 #define CAST5_CBC_DEC_TEST_VECTORS 1
25835 #define CAST5_CTR_ENC_TEST_VECTORS 2
25836 #define CAST5_CTR_DEC_TEST_VECTORS 2
25838 static struct cipher_testvec cast5_enc_tv_template[] = {
25840 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
25841 "\x23\x45\x67\x89\x34\x56\x78\x9a",
25842 .klen = 16,
25843 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
25844 .ilen = 8,
25845 .result = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
25846 .rlen = 8,
25847 }, {
25848 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
25849 "\x23\x45",
25850 .klen = 10,
25851 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
25852 .ilen = 8,
25853 .result = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
25854 .rlen = 8,
25855 }, {
25856 .key = "\x01\x23\x45\x67\x12",
25857 .klen = 5,
25858 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
25859 .ilen = 8,
25860 .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
25861 .rlen = 8,
25862 }, { /* Generated from TF test vectors */
25863 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
25864 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
25865 .klen = 16,
25866 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
25867 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
25868 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
25869 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
25870 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
25871 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
25872 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
25873 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
25874 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
25875 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
25876 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
25877 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
25878 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
25879 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
25880 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
25881 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
25882 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
25883 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
25884 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
25885 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
25886 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
25887 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
25888 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
25889 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
25890 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
25891 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
25892 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
25893 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
25894 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
25895 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
25896 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
25897 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
25898 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
25899 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
25900 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
25901 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
25902 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
25903 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
25904 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
25905 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
25906 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
25907 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
25908 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
25909 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
25910 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
25911 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
25912 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
25913 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
25914 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
25915 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
25916 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
25917 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
25918 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
25919 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
25920 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
25921 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
25922 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
25923 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
25924 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
25925 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
25926 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
25927 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
25928 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
25929 .ilen = 496,
25930 .result = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
25931 "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
25932 "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
25933 "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
25934 "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
25935 "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
25936 "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
25937 "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
25938 "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
25939 "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
25940 "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
25941 "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
25942 "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
25943 "\xED\x34\x35\x78\x6B\x91\xC9\x32"
25944 "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
25945 "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
25946 "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
25947 "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
25948 "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
25949 "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
25950 "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
25951 "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
25952 "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
25953 "\x78\x75\x37\x55\xC1\xF5\x90\x40"
25954 "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
25955 "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
25956 "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
25957 "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
25958 "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
25959 "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
25960 "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
25961 "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
25962 "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
25963 "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
25964 "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
25965 "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
25966 "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
25967 "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
25968 "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
25969 "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
25970 "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
25971 "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
25972 "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
25973 "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
25974 "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
25975 "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
25976 "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
25977 "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
25978 "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
25979 "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
25980 "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
25981 "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
25982 "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
25983 "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
25984 "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
25985 "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
25986 "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
25987 "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
25988 "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
25989 "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
25990 "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
25991 "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
25992 .rlen = 496,
25993 .also_non_np = 1,
25994 .np = 3,
25995 .tap = { 496 - 20, 4, 16 },
25999 static struct cipher_testvec cast5_dec_tv_template[] = {
26001 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
26002 "\x23\x45\x67\x89\x34\x56\x78\x9a",
26003 .klen = 16,
26004 .input = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
26005 .ilen = 8,
26006 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26007 .rlen = 8,
26008 }, {
26009 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
26010 "\x23\x45",
26011 .klen = 10,
26012 .input = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
26013 .ilen = 8,
26014 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26015 .rlen = 8,
26016 }, {
26017 .key = "\x01\x23\x45\x67\x12",
26018 .klen = 5,
26019 .input = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
26020 .ilen = 8,
26021 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26022 .rlen = 8,
26023 }, { /* Generated from TF test vectors */
26024 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26025 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26026 .klen = 16,
26027 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26028 .input = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
26029 "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
26030 "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
26031 "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
26032 "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
26033 "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
26034 "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
26035 "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
26036 "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
26037 "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
26038 "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
26039 "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
26040 "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
26041 "\xED\x34\x35\x78\x6B\x91\xC9\x32"
26042 "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
26043 "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
26044 "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
26045 "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
26046 "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
26047 "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
26048 "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
26049 "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
26050 "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
26051 "\x78\x75\x37\x55\xC1\xF5\x90\x40"
26052 "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
26053 "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
26054 "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
26055 "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
26056 "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
26057 "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
26058 "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
26059 "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
26060 "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
26061 "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
26062 "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
26063 "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
26064 "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
26065 "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
26066 "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
26067 "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
26068 "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
26069 "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
26070 "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
26071 "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
26072 "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
26073 "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
26074 "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
26075 "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
26076 "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
26077 "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
26078 "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
26079 "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
26080 "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
26081 "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
26082 "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
26083 "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
26084 "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
26085 "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
26086 "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
26087 "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
26088 "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
26089 "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
26090 .ilen = 496,
26091 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26092 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26093 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26094 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26095 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26096 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26097 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26098 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26099 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26100 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26101 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26102 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26103 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26104 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26105 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26106 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26107 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26108 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26109 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26110 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26111 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26112 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26113 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26114 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26115 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26116 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26117 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26118 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26119 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26120 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26121 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26122 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26123 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26124 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26125 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26126 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26127 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26128 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26129 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26130 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26131 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26132 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26133 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26134 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26135 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26136 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26137 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26138 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26139 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26140 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26141 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26142 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26143 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26144 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26145 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26146 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26147 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26148 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26149 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26150 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26151 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26152 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26153 .rlen = 496,
26154 .also_non_np = 1,
26155 .np = 3,
26156 .tap = { 496 - 20, 4, 16 },
26160 static struct cipher_testvec cast5_cbc_enc_tv_template[] = {
26161 { /* Generated from TF test vectors */
26162 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26163 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26164 .klen = 16,
26165 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26166 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26167 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26168 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26169 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26170 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26171 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26172 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26173 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26174 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26175 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26176 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26177 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26178 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26179 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26180 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26181 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26182 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26183 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26184 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26185 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26186 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26187 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26188 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26189 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26190 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26191 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26192 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26193 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26194 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26195 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26196 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26197 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26198 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26199 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26200 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26201 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26202 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26203 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26204 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26205 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26206 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26207 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26208 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26209 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26210 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26211 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26212 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26213 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26214 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26215 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26216 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26217 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26218 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26219 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26220 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26221 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26222 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26223 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26224 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26225 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26226 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26227 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26228 .ilen = 496,
26229 .result = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
26230 "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
26231 "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
26232 "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
26233 "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
26234 "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
26235 "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
26236 "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
26237 "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
26238 "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
26239 "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
26240 "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
26241 "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
26242 "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
26243 "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
26244 "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
26245 "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
26246 "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
26247 "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
26248 "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
26249 "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
26250 "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
26251 "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
26252 "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
26253 "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
26254 "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
26255 "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
26256 "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
26257 "\x90\x12\x37\x49\x27\x98\x69\x18"
26258 "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
26259 "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
26260 "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
26261 "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
26262 "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
26263 "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
26264 "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
26265 "\x03\x55\x0E\x02\x41\x4A\x45\x06"
26266 "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
26267 "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
26268 "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
26269 "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
26270 "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
26271 "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
26272 "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
26273 "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
26274 "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
26275 "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
26276 "\x11\xB4\x18\x17\x1A\x65\x92\x56"
26277 "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
26278 "\x1A\x01\x22\x45\x17\x62\x52\x6C"
26279 "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
26280 "\x32\x66\x6F\x23\x7F\x94\x36\x88"
26281 "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
26282 "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
26283 "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
26284 "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
26285 "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
26286 "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
26287 "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
26288 "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
26289 "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
26290 "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
26291 .rlen = 496,
26292 .also_non_np = 1,
26293 .np = 3,
26294 .tap = { 496 - 20, 4, 16 },
26298 static struct cipher_testvec cast5_cbc_dec_tv_template[] = {
26299 { /* Generated from TF test vectors */
26300 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26301 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26302 .klen = 16,
26303 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26304 .input = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
26305 "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
26306 "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
26307 "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
26308 "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
26309 "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
26310 "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
26311 "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
26312 "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
26313 "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
26314 "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
26315 "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
26316 "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
26317 "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
26318 "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
26319 "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
26320 "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
26321 "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
26322 "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
26323 "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
26324 "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
26325 "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
26326 "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
26327 "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
26328 "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
26329 "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
26330 "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
26331 "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
26332 "\x90\x12\x37\x49\x27\x98\x69\x18"
26333 "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
26334 "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
26335 "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
26336 "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
26337 "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
26338 "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
26339 "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
26340 "\x03\x55\x0E\x02\x41\x4A\x45\x06"
26341 "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
26342 "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
26343 "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
26344 "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
26345 "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
26346 "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
26347 "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
26348 "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
26349 "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
26350 "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
26351 "\x11\xB4\x18\x17\x1A\x65\x92\x56"
26352 "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
26353 "\x1A\x01\x22\x45\x17\x62\x52\x6C"
26354 "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
26355 "\x32\x66\x6F\x23\x7F\x94\x36\x88"
26356 "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
26357 "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
26358 "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
26359 "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
26360 "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
26361 "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
26362 "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
26363 "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
26364 "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
26365 "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
26366 .ilen = 496,
26367 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26368 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26369 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26370 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26371 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26372 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26373 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26374 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26375 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26376 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26377 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26378 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26379 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26380 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26381 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26382 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26383 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26384 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26385 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26386 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26387 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26388 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26389 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26390 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26391 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26392 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26393 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26394 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26395 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26396 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26397 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26398 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26399 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26400 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26401 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26402 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26403 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26404 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26405 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26406 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26407 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26408 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26409 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26410 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26411 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26412 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26413 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26414 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26415 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26416 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26417 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26418 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26419 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26420 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26421 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26422 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26423 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26424 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26425 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26426 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26427 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26428 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26429 .rlen = 496,
26430 .also_non_np = 1,
26431 .np = 3,
26432 .tap = { 496 - 20, 4, 16 },
26436 static struct cipher_testvec cast5_ctr_enc_tv_template[] = {
26437 { /* Generated from TF test vectors */
26438 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26439 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26440 .klen = 16,
26441 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26442 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26443 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26444 "\x3A",
26445 .ilen = 17,
26446 .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
26447 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
26448 "\x0C",
26449 .rlen = 17,
26450 }, { /* Generated from TF test vectors */
26451 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26452 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26453 .klen = 16,
26454 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26455 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26456 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26457 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26458 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26459 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26460 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26461 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26462 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26463 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26464 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26465 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26466 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26467 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26468 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26469 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26470 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26471 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26472 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26473 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26474 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26475 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26476 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26477 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26478 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26479 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26480 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26481 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26482 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26483 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26484 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26485 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26486 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26487 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26488 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26489 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26490 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26491 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26492 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26493 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26494 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26495 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26496 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26497 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26498 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26499 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26500 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26501 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26502 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26503 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26504 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26505 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26506 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26507 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26508 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26509 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26510 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26511 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26512 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26513 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26514 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26515 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26516 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26517 .ilen = 496,
26518 .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
26519 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
26520 "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
26521 "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
26522 "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
26523 "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
26524 "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
26525 "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
26526 "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
26527 "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
26528 "\x88\x18\x52\x56\x48\x58\xD1\x6B"
26529 "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
26530 "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
26531 "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
26532 "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
26533 "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
26534 "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
26535 "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
26536 "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
26537 "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
26538 "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
26539 "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
26540 "\x44\x67\x90\x20\xAC\x41\xDF\x43"
26541 "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
26542 "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
26543 "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
26544 "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
26545 "\xAE\x59\x0F\x07\x88\x79\x53\x26"
26546 "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
26547 "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
26548 "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
26549 "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
26550 "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
26551 "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
26552 "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
26553 "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
26554 "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
26555 "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
26556 "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
26557 "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
26558 "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
26559 "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
26560 "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
26561 "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
26562 "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
26563 "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
26564 "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
26565 "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
26566 "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
26567 "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
26568 "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
26569 "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
26570 "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
26571 "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
26572 "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
26573 "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
26574 "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
26575 "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
26576 "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
26577 "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
26578 "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
26579 "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
26580 .rlen = 496,
26581 .also_non_np = 1,
26582 .np = 3,
26583 .tap = { 496 - 20, 4, 16 },
26587 static struct cipher_testvec cast5_ctr_dec_tv_template[] = {
26588 { /* Generated from TF test vectors */
26589 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26590 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26591 .klen = 16,
26592 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26593 .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
26594 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
26595 "\x0C",
26596 .ilen = 17,
26597 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26598 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26599 "\x3A",
26600 .rlen = 17,
26601 }, { /* Generated from TF test vectors */
26602 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26603 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26604 .klen = 16,
26605 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26606 .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
26607 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
26608 "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
26609 "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
26610 "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
26611 "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
26612 "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
26613 "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
26614 "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
26615 "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
26616 "\x88\x18\x52\x56\x48\x58\xD1\x6B"
26617 "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
26618 "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
26619 "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
26620 "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
26621 "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
26622 "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
26623 "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
26624 "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
26625 "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
26626 "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
26627 "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
26628 "\x44\x67\x90\x20\xAC\x41\xDF\x43"
26629 "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
26630 "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
26631 "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
26632 "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
26633 "\xAE\x59\x0F\x07\x88\x79\x53\x26"
26634 "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
26635 "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
26636 "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
26637 "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
26638 "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
26639 "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
26640 "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
26641 "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
26642 "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
26643 "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
26644 "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
26645 "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
26646 "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
26647 "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
26648 "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
26649 "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
26650 "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
26651 "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
26652 "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
26653 "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
26654 "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
26655 "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
26656 "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
26657 "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
26658 "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
26659 "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
26660 "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
26661 "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
26662 "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
26663 "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
26664 "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
26665 "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
26666 "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
26667 "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
26668 .ilen = 496,
26669 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26670 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26671 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26672 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26673 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26674 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26675 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26676 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26677 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26678 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26679 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26680 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26681 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26682 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26683 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26684 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26685 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26686 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26687 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26688 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26689 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26690 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26691 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26692 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26693 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26694 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26695 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26696 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26697 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26698 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26699 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26700 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26701 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26702 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26703 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26704 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26705 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26706 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26707 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26708 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26709 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26710 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26711 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26712 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26713 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26714 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26715 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26716 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26717 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26718 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26719 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26720 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26721 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26722 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26723 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26724 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26725 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26726 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26727 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26728 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26729 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26730 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26731 .rlen = 496,
26732 .also_non_np = 1,
26733 .np = 3,
26734 .tap = { 496 - 20, 4, 16 },
26739 * ARC4 test vectors from OpenSSL
26741 #define ARC4_ENC_TEST_VECTORS 7
26742 #define ARC4_DEC_TEST_VECTORS 7
26744 static struct cipher_testvec arc4_enc_tv_template[] = {
26746 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26747 .klen = 8,
26748 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26749 .ilen = 8,
26750 .result = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
26751 .rlen = 8,
26752 }, {
26753 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26754 .klen = 8,
26755 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
26756 .ilen = 8,
26757 .result = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
26758 .rlen = 8,
26759 }, {
26760 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
26761 .klen = 8,
26762 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
26763 .ilen = 8,
26764 .result = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
26765 .rlen = 8,
26766 }, {
26767 .key = "\xef\x01\x23\x45",
26768 .klen = 4,
26769 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
26770 "\x00\x00\x00\x00\x00\x00\x00\x00"
26771 "\x00\x00\x00\x00",
26772 .ilen = 20,
26773 .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
26774 "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
26775 "\x36\xb6\x78\x58",
26776 .rlen = 20,
26777 }, {
26778 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26779 .klen = 8,
26780 .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26781 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26782 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26783 "\x12\x34\x56\x78",
26784 .ilen = 28,
26785 .result = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
26786 "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
26787 "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
26788 "\x40\x01\x1e\xcf",
26789 .rlen = 28,
26790 }, {
26791 .key = "\xef\x01\x23\x45",
26792 .klen = 4,
26793 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
26794 "\x00\x00",
26795 .ilen = 10,
26796 .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
26797 "\xbd\x61",
26798 .rlen = 10,
26799 }, {
26800 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
26801 "\x00\x00\x00\x00\x00\x00\x00\x00",
26802 .klen = 16,
26803 .input = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
26804 .ilen = 8,
26805 .result = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
26806 .rlen = 8,
26810 static struct cipher_testvec arc4_dec_tv_template[] = {
26812 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26813 .klen = 8,
26814 .input = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
26815 .ilen = 8,
26816 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26817 .rlen = 8,
26818 }, {
26819 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26820 .klen = 8,
26821 .input = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
26822 .ilen = 8,
26823 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
26824 .rlen = 8,
26825 }, {
26826 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
26827 .klen = 8,
26828 .input = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
26829 .ilen = 8,
26830 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
26831 .rlen = 8,
26832 }, {
26833 .key = "\xef\x01\x23\x45",
26834 .klen = 4,
26835 .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
26836 "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
26837 "\x36\xb6\x78\x58",
26838 .ilen = 20,
26839 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
26840 "\x00\x00\x00\x00\x00\x00\x00\x00"
26841 "\x00\x00\x00\x00",
26842 .rlen = 20,
26843 }, {
26844 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26845 .klen = 8,
26846 .input = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
26847 "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
26848 "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
26849 "\x40\x01\x1e\xcf",
26850 .ilen = 28,
26851 .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26852 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26853 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26854 "\x12\x34\x56\x78",
26855 .rlen = 28,
26856 }, {
26857 .key = "\xef\x01\x23\x45",
26858 .klen = 4,
26859 .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
26860 "\xbd\x61",
26861 .ilen = 10,
26862 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
26863 "\x00\x00",
26864 .rlen = 10,
26865 }, {
26866 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
26867 "\x00\x00\x00\x00\x00\x00\x00\x00",
26868 .klen = 16,
26869 .input = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
26870 .ilen = 8,
26871 .result = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
26872 .rlen = 8,
26877 * TEA test vectors
26879 #define TEA_ENC_TEST_VECTORS 4
26880 #define TEA_DEC_TEST_VECTORS 4
26882 static struct cipher_testvec tea_enc_tv_template[] = {
26884 .key = zeroed_string,
26885 .klen = 16,
26886 .input = zeroed_string,
26887 .ilen = 8,
26888 .result = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
26889 .rlen = 8,
26890 }, {
26891 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
26892 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
26893 .klen = 16,
26894 .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
26895 .ilen = 8,
26896 .result = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
26897 .rlen = 8,
26898 }, {
26899 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
26900 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
26901 .klen = 16,
26902 .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
26903 "\x65\x73\x74\x5f\x76\x65\x63\x74",
26904 .ilen = 16,
26905 .result = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
26906 "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
26907 .rlen = 16,
26908 }, {
26909 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
26910 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
26911 .klen = 16,
26912 .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
26913 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
26914 "\x79\x6f\x75\x21\x21\x21\x20\x72"
26915 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
26916 .ilen = 32,
26917 .result = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
26918 "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
26919 "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
26920 "\x07\x89\x73\xc2\x45\x92\xc6\x90",
26921 .rlen = 32,
26925 static struct cipher_testvec tea_dec_tv_template[] = {
26927 .key = zeroed_string,
26928 .klen = 16,
26929 .input = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
26930 .ilen = 8,
26931 .result = zeroed_string,
26932 .rlen = 8,
26933 }, {
26934 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
26935 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
26936 .klen = 16,
26937 .input = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
26938 .ilen = 8,
26939 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
26940 .rlen = 8,
26941 }, {
26942 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
26943 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
26944 .klen = 16,
26945 .input = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
26946 "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
26947 .ilen = 16,
26948 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
26949 "\x65\x73\x74\x5f\x76\x65\x63\x74",
26950 .rlen = 16,
26951 }, {
26952 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
26953 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
26954 .klen = 16,
26955 .input = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
26956 "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
26957 "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
26958 "\x07\x89\x73\xc2\x45\x92\xc6\x90",
26959 .ilen = 32,
26960 .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
26961 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
26962 "\x79\x6f\x75\x21\x21\x21\x20\x72"
26963 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
26964 .rlen = 32,
26969 * XTEA test vectors
26971 #define XTEA_ENC_TEST_VECTORS 4
26972 #define XTEA_DEC_TEST_VECTORS 4
26974 static struct cipher_testvec xtea_enc_tv_template[] = {
26976 .key = zeroed_string,
26977 .klen = 16,
26978 .input = zeroed_string,
26979 .ilen = 8,
26980 .result = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
26981 .rlen = 8,
26982 }, {
26983 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
26984 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
26985 .klen = 16,
26986 .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
26987 .ilen = 8,
26988 .result = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
26989 .rlen = 8,
26990 }, {
26991 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
26992 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
26993 .klen = 16,
26994 .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
26995 "\x65\x73\x74\x5f\x76\x65\x63\x74",
26996 .ilen = 16,
26997 .result = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
26998 "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
26999 .rlen = 16,
27000 }, {
27001 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27002 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27003 .klen = 16,
27004 .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
27005 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27006 "\x79\x6f\x75\x21\x21\x21\x20\x72"
27007 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27008 .ilen = 32,
27009 .result = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
27010 "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
27011 "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
27012 "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
27013 .rlen = 32,
27017 static struct cipher_testvec xtea_dec_tv_template[] = {
27019 .key = zeroed_string,
27020 .klen = 16,
27021 .input = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
27022 .ilen = 8,
27023 .result = zeroed_string,
27024 .rlen = 8,
27025 }, {
27026 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27027 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27028 .klen = 16,
27029 .input = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
27030 .ilen = 8,
27031 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27032 .rlen = 8,
27033 }, {
27034 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
27035 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27036 .klen = 16,
27037 .input = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
27038 "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
27039 .ilen = 16,
27040 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27041 "\x65\x73\x74\x5f\x76\x65\x63\x74",
27042 .rlen = 16,
27043 }, {
27044 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27045 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27046 .klen = 16,
27047 .input = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
27048 "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
27049 "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
27050 "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
27051 .ilen = 32,
27052 .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
27053 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27054 "\x79\x6f\x75\x21\x21\x21\x20\x72"
27055 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27056 .rlen = 32,
27061 * KHAZAD test vectors.
27063 #define KHAZAD_ENC_TEST_VECTORS 5
27064 #define KHAZAD_DEC_TEST_VECTORS 5
27066 static struct cipher_testvec khazad_enc_tv_template[] = {
27068 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
27069 "\x00\x00\x00\x00\x00\x00\x00\x00",
27070 .klen = 16,
27071 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
27072 .ilen = 8,
27073 .result = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
27074 .rlen = 8,
27075 }, {
27076 .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
27077 "\x38\x38\x38\x38\x38\x38\x38\x38",
27078 .klen = 16,
27079 .input = "\x38\x38\x38\x38\x38\x38\x38\x38",
27080 .ilen = 8,
27081 .result = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
27082 .rlen = 8,
27083 }, {
27084 .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
27085 "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27086 .klen = 16,
27087 .input = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27088 .ilen = 8,
27089 .result = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
27090 .rlen = 8,
27091 }, {
27092 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27093 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27094 .klen = 16,
27095 .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27096 .ilen = 8,
27097 .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27098 .rlen = 8,
27099 }, {
27100 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27101 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27102 .klen = 16,
27103 .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27104 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27105 .ilen = 16,
27106 .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
27107 "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27108 .rlen = 16,
27112 static struct cipher_testvec khazad_dec_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 = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
27118 .ilen = 8,
27119 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
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 = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
27126 .ilen = 8,
27127 .result = "\x38\x38\x38\x38\x38\x38\x38\x38",
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 = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
27134 .ilen = 8,
27135 .result = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
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 = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27142 .ilen = 8,
27143 .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
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 = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
27150 "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27151 .ilen = 16,
27152 .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27153 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27154 .rlen = 16,
27159 * Anubis test vectors.
27162 #define ANUBIS_ENC_TEST_VECTORS 5
27163 #define ANUBIS_DEC_TEST_VECTORS 5
27164 #define ANUBIS_CBC_ENC_TEST_VECTORS 2
27165 #define ANUBIS_CBC_DEC_TEST_VECTORS 2
27167 static struct cipher_testvec anubis_enc_tv_template[] = {
27169 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27170 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27171 .klen = 16,
27172 .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27173 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27174 .ilen = 16,
27175 .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27176 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
27177 .rlen = 16,
27178 }, {
27180 .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
27181 "\x03\x03\x03\x03\x03\x03\x03\x03"
27182 "\x03\x03\x03\x03",
27183 .klen = 20,
27184 .input = "\x03\x03\x03\x03\x03\x03\x03\x03"
27185 "\x03\x03\x03\x03\x03\x03\x03\x03",
27186 .ilen = 16,
27187 .result = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
27188 "\x87\x41\x6f\x82\x0a\x98\x64\xae",
27189 .rlen = 16,
27190 }, {
27191 .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
27192 "\x24\x24\x24\x24\x24\x24\x24\x24"
27193 "\x24\x24\x24\x24\x24\x24\x24\x24"
27194 "\x24\x24\x24\x24",
27195 .klen = 28,
27196 .input = "\x24\x24\x24\x24\x24\x24\x24\x24"
27197 "\x24\x24\x24\x24\x24\x24\x24\x24",
27198 .ilen = 16,
27199 .result = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
27200 "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
27201 .rlen = 16,
27202 }, {
27203 .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
27204 "\x25\x25\x25\x25\x25\x25\x25\x25"
27205 "\x25\x25\x25\x25\x25\x25\x25\x25"
27206 "\x25\x25\x25\x25\x25\x25\x25\x25",
27207 .klen = 32,
27208 .input = "\x25\x25\x25\x25\x25\x25\x25\x25"
27209 "\x25\x25\x25\x25\x25\x25\x25\x25",
27210 .ilen = 16,
27211 .result = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
27212 "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
27213 .rlen = 16,
27214 }, {
27215 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
27216 "\x35\x35\x35\x35\x35\x35\x35\x35"
27217 "\x35\x35\x35\x35\x35\x35\x35\x35"
27218 "\x35\x35\x35\x35\x35\x35\x35\x35"
27219 "\x35\x35\x35\x35\x35\x35\x35\x35",
27220 .klen = 40,
27221 .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
27222 "\x35\x35\x35\x35\x35\x35\x35\x35",
27223 .ilen = 16,
27224 .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27225 "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
27226 .rlen = 16,
27230 static struct cipher_testvec anubis_dec_tv_template[] = {
27232 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27233 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27234 .klen = 16,
27235 .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27236 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
27237 .ilen = 16,
27238 .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27239 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27240 .rlen = 16,
27241 }, {
27243 .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
27244 "\x03\x03\x03\x03\x03\x03\x03\x03"
27245 "\x03\x03\x03\x03",
27246 .klen = 20,
27247 .input = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
27248 "\x87\x41\x6f\x82\x0a\x98\x64\xae",
27249 .ilen = 16,
27250 .result = "\x03\x03\x03\x03\x03\x03\x03\x03"
27251 "\x03\x03\x03\x03\x03\x03\x03\x03",
27252 .rlen = 16,
27253 }, {
27254 .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
27255 "\x24\x24\x24\x24\x24\x24\x24\x24"
27256 "\x24\x24\x24\x24\x24\x24\x24\x24"
27257 "\x24\x24\x24\x24",
27258 .klen = 28,
27259 .input = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
27260 "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
27261 .ilen = 16,
27262 .result = "\x24\x24\x24\x24\x24\x24\x24\x24"
27263 "\x24\x24\x24\x24\x24\x24\x24\x24",
27264 .rlen = 16,
27265 }, {
27266 .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
27267 "\x25\x25\x25\x25\x25\x25\x25\x25"
27268 "\x25\x25\x25\x25\x25\x25\x25\x25"
27269 "\x25\x25\x25\x25\x25\x25\x25\x25",
27270 .klen = 32,
27271 .input = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
27272 "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
27273 .ilen = 16,
27274 .result = "\x25\x25\x25\x25\x25\x25\x25\x25"
27275 "\x25\x25\x25\x25\x25\x25\x25\x25",
27276 .rlen = 16,
27277 }, {
27278 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
27279 "\x35\x35\x35\x35\x35\x35\x35\x35"
27280 "\x35\x35\x35\x35\x35\x35\x35\x35"
27281 "\x35\x35\x35\x35\x35\x35\x35\x35"
27282 "\x35\x35\x35\x35\x35\x35\x35\x35",
27283 .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27284 "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
27285 .klen = 40,
27286 .ilen = 16,
27287 .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
27288 "\x35\x35\x35\x35\x35\x35\x35\x35",
27289 .rlen = 16,
27293 static struct cipher_testvec anubis_cbc_enc_tv_template[] = {
27295 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27296 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27297 .klen = 16,
27298 .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27299 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27300 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27301 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27302 .ilen = 32,
27303 .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27304 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
27305 "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
27306 "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
27307 .rlen = 32,
27308 }, {
27309 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
27310 "\x35\x35\x35\x35\x35\x35\x35\x35"
27311 "\x35\x35\x35\x35\x35\x35\x35\x35"
27312 "\x35\x35\x35\x35\x35\x35\x35\x35"
27313 "\x35\x35\x35\x35\x35\x35\x35\x35",
27314 .klen = 40,
27315 .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
27316 "\x35\x35\x35\x35\x35\x35\x35\x35"
27317 "\x35\x35\x35\x35\x35\x35\x35\x35"
27318 "\x35\x35\x35\x35\x35\x35\x35\x35",
27319 .ilen = 32,
27320 .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27321 "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
27322 "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
27323 "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
27324 .rlen = 32,
27328 static struct cipher_testvec anubis_cbc_dec_tv_template[] = {
27330 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27331 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27332 .klen = 16,
27333 .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27334 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
27335 "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
27336 "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
27337 .ilen = 32,
27338 .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27339 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27340 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27341 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27342 .rlen = 32,
27343 }, {
27344 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
27345 "\x35\x35\x35\x35\x35\x35\x35\x35"
27346 "\x35\x35\x35\x35\x35\x35\x35\x35"
27347 "\x35\x35\x35\x35\x35\x35\x35\x35"
27348 "\x35\x35\x35\x35\x35\x35\x35\x35",
27349 .klen = 40,
27350 .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27351 "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
27352 "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
27353 "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
27354 .ilen = 32,
27355 .result = "\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 .rlen = 32,
27364 * XETA test vectors
27366 #define XETA_ENC_TEST_VECTORS 4
27367 #define XETA_DEC_TEST_VECTORS 4
27369 static struct cipher_testvec xeta_enc_tv_template[] = {
27371 .key = zeroed_string,
27372 .klen = 16,
27373 .input = zeroed_string,
27374 .ilen = 8,
27375 .result = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
27376 .rlen = 8,
27377 }, {
27378 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27379 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27380 .klen = 16,
27381 .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27382 .ilen = 8,
27383 .result = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
27384 .rlen = 8,
27385 }, {
27386 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
27387 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27388 .klen = 16,
27389 .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27390 "\x65\x73\x74\x5f\x76\x65\x63\x74",
27391 .ilen = 16,
27392 .result = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
27393 "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
27394 .rlen = 16,
27395 }, {
27396 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27397 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27398 .klen = 16,
27399 .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
27400 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27401 "\x79\x6f\x75\x21\x21\x21\x20\x72"
27402 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27403 .ilen = 32,
27404 .result = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
27405 "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
27406 "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
27407 "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
27408 .rlen = 32,
27412 static struct cipher_testvec xeta_dec_tv_template[] = {
27414 .key = zeroed_string,
27415 .klen = 16,
27416 .input = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
27417 .ilen = 8,
27418 .result = zeroed_string,
27419 .rlen = 8,
27420 }, {
27421 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27422 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27423 .klen = 16,
27424 .input = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
27425 .ilen = 8,
27426 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27427 .rlen = 8,
27428 }, {
27429 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
27430 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27431 .klen = 16,
27432 .input = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
27433 "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
27434 .ilen = 16,
27435 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27436 "\x65\x73\x74\x5f\x76\x65\x63\x74",
27437 .rlen = 16,
27438 }, {
27439 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27440 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27441 .klen = 16,
27442 .input = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
27443 "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
27444 "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
27445 "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
27446 .ilen = 32,
27447 .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
27448 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27449 "\x79\x6f\x75\x21\x21\x21\x20\x72"
27450 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27451 .rlen = 32,
27456 * FCrypt test vectors
27458 #define FCRYPT_ENC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_enc_tv_template)
27459 #define FCRYPT_DEC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_dec_tv_template)
27461 static struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = {
27462 { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
27463 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
27464 .klen = 8,
27465 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
27466 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
27467 .ilen = 8,
27468 .result = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
27469 .rlen = 8,
27470 }, {
27471 .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
27472 .klen = 8,
27473 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
27474 .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
27475 .ilen = 8,
27476 .result = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
27477 .rlen = 8,
27478 }, { /* From Arla */
27479 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27480 .klen = 8,
27481 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27482 .input = "The quick brown fox jumps over the lazy dogs.\0\0",
27483 .ilen = 48,
27484 .result = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
27485 "\xee\xac\x98\x62\x44\x51\xe4\x84"
27486 "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
27487 "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
27488 "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
27489 "\xf8\x91\x3c\xac\x44\x22\x92\xef",
27490 .rlen = 48,
27491 }, {
27492 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27493 .klen = 8,
27494 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27495 .input = "The quick brown fox jumps over the lazy dogs.\0\0",
27496 .ilen = 48,
27497 .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27498 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27499 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27500 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27501 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27502 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27503 .rlen = 48,
27504 }, { /* split-page version */
27505 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27506 .klen = 8,
27507 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27508 .input = "The quick brown fox jumps over the lazy dogs.\0\0",
27509 .ilen = 48,
27510 .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27511 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27512 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27513 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27514 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27515 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27516 .rlen = 48,
27517 .np = 2,
27518 .tap = { 20, 28 },
27522 static struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = {
27523 { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
27524 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
27525 .klen = 8,
27526 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
27527 .input = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
27528 .ilen = 8,
27529 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
27530 .rlen = 8,
27531 }, {
27532 .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
27533 .klen = 8,
27534 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
27535 .input = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
27536 .ilen = 8,
27537 .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
27538 .rlen = 8,
27539 }, { /* From Arla */
27540 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27541 .klen = 8,
27542 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27543 .input = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
27544 "\xee\xac\x98\x62\x44\x51\xe4\x84"
27545 "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
27546 "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
27547 "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
27548 "\xf8\x91\x3c\xac\x44\x22\x92\xef",
27549 .ilen = 48,
27550 .result = "The quick brown fox jumps over the lazy dogs.\0\0",
27551 .rlen = 48,
27552 }, {
27553 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27554 .klen = 8,
27555 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27556 .input = "\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 .ilen = 48,
27563 .result = "The quick brown fox jumps over the lazy dogs.\0\0",
27564 .rlen = 48,
27565 }, { /* split-page version */
27566 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27567 .klen = 8,
27568 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27569 .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27570 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27571 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27572 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27573 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27574 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27575 .ilen = 48,
27576 .result = "The quick brown fox jumps over the lazy dogs.\0\0",
27577 .rlen = 48,
27578 .np = 2,
27579 .tap = { 20, 28 },
27584 * CAMELLIA test vectors.
27586 #define CAMELLIA_ENC_TEST_VECTORS 4
27587 #define CAMELLIA_DEC_TEST_VECTORS 4
27588 #define CAMELLIA_CBC_ENC_TEST_VECTORS 3
27589 #define CAMELLIA_CBC_DEC_TEST_VECTORS 3
27590 #define CAMELLIA_CTR_ENC_TEST_VECTORS 2
27591 #define CAMELLIA_CTR_DEC_TEST_VECTORS 2
27592 #define CAMELLIA_LRW_ENC_TEST_VECTORS 8
27593 #define CAMELLIA_LRW_DEC_TEST_VECTORS 8
27594 #define CAMELLIA_XTS_ENC_TEST_VECTORS 5
27595 #define CAMELLIA_XTS_DEC_TEST_VECTORS 5
27597 static struct cipher_testvec camellia_enc_tv_template[] = {
27599 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27600 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27601 .klen = 16,
27602 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27603 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27604 .ilen = 16,
27605 .result = "\x67\x67\x31\x38\x54\x96\x69\x73"
27606 "\x08\x57\x06\x56\x48\xea\xbe\x43",
27607 .rlen = 16,
27608 }, {
27609 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27610 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27611 "\x00\x11\x22\x33\x44\x55\x66\x77",
27612 .klen = 24,
27613 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27614 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27615 .ilen = 16,
27616 .result = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
27617 "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
27618 .rlen = 16,
27619 }, {
27620 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27621 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27622 "\x00\x11\x22\x33\x44\x55\x66\x77"
27623 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
27624 .klen = 32,
27625 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27626 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27627 .ilen = 16,
27628 .result = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
27629 "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
27630 .rlen = 16,
27631 }, { /* Generated with Crypto++ */
27632 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
27633 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
27634 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
27635 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
27636 .klen = 32,
27637 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
27638 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
27639 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
27640 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
27641 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
27642 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
27643 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
27644 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
27645 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
27646 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
27647 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
27648 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
27649 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
27650 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
27651 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
27652 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
27653 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
27654 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
27655 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
27656 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
27657 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
27658 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
27659 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
27660 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
27661 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
27662 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
27663 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
27664 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
27665 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
27666 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
27667 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
27668 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
27669 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
27670 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
27671 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
27672 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
27673 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
27674 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
27675 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
27676 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
27677 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
27678 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
27679 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
27680 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
27681 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
27682 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
27683 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
27684 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
27685 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
27686 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
27687 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
27688 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
27689 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
27690 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
27691 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
27692 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
27693 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
27694 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
27695 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
27696 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
27697 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
27698 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
27699 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
27700 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
27701 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
27702 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
27703 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
27704 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
27705 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
27706 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
27707 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
27708 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
27709 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
27710 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
27711 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
27712 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
27713 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
27714 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
27715 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
27716 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
27717 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
27718 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
27719 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
27720 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
27721 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
27722 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
27723 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
27724 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
27725 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
27726 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
27727 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
27728 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
27729 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
27730 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
27731 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
27732 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
27733 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
27734 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
27735 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
27736 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
27737 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
27738 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
27739 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
27740 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
27741 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
27742 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
27743 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
27744 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
27745 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
27746 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
27747 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
27748 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
27749 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
27750 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
27751 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
27752 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
27753 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
27754 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
27755 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
27756 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
27757 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
27758 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
27759 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
27760 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
27761 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
27762 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
27763 .ilen = 1008,
27764 .result = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
27765 "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
27766 "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
27767 "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
27768 "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
27769 "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
27770 "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
27771 "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
27772 "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
27773 "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
27774 "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
27775 "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
27776 "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
27777 "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
27778 "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
27779 "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
27780 "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
27781 "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
27782 "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
27783 "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
27784 "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
27785 "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
27786 "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
27787 "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
27788 "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
27789 "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
27790 "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
27791 "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
27792 "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
27793 "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
27794 "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
27795 "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
27796 "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
27797 "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
27798 "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
27799 "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
27800 "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
27801 "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
27802 "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
27803 "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
27804 "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
27805 "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
27806 "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
27807 "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
27808 "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
27809 "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
27810 "\x83\x06\xAB\x82\x99\x01\x16\x1A"
27811 "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
27812 "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
27813 "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
27814 "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
27815 "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
27816 "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
27817 "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
27818 "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
27819 "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
27820 "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
27821 "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
27822 "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
27823 "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
27824 "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
27825 "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
27826 "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
27827 "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
27828 "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
27829 "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
27830 "\xED\x28\x39\xE9\x63\xED\x41\x70"
27831 "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
27832 "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
27833 "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
27834 "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
27835 "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
27836 "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
27837 "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
27838 "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
27839 "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
27840 "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
27841 "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
27842 "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
27843 "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
27844 "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
27845 "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
27846 "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
27847 "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
27848 "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
27849 "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
27850 "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
27851 "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
27852 "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
27853 "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
27854 "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
27855 "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
27856 "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
27857 "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
27858 "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
27859 "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
27860 "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
27861 "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
27862 "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
27863 "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
27864 "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
27865 "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
27866 "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
27867 "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
27868 "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
27869 "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
27870 "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
27871 "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
27872 "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
27873 "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
27874 "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
27875 "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
27876 "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
27877 "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
27878 "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
27879 "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
27880 "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
27881 "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
27882 "\x31\x93\x51\x1C\x63\x97\x70\xB0"
27883 "\x99\x78\x83\x13\xFD\xCF\x53\x81"
27884 "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
27885 "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
27886 "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
27887 "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
27888 "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
27889 "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
27890 .rlen = 1008,
27891 .also_non_np = 1,
27892 .np = 3,
27893 .tap = { 1008 - 20, 4, 16 },
27897 static struct cipher_testvec camellia_dec_tv_template[] = {
27899 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27900 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27901 .klen = 16,
27902 .input = "\x67\x67\x31\x38\x54\x96\x69\x73"
27903 "\x08\x57\x06\x56\x48\xea\xbe\x43",
27904 .ilen = 16,
27905 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27906 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27907 .rlen = 16,
27908 }, {
27909 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27910 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27911 "\x00\x11\x22\x33\x44\x55\x66\x77",
27912 .klen = 24,
27913 .input = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
27914 "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
27915 .ilen = 16,
27916 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27917 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27918 .rlen = 16,
27919 }, {
27920 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27921 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27922 "\x00\x11\x22\x33\x44\x55\x66\x77"
27923 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
27924 .klen = 32,
27925 .input = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
27926 "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
27927 .ilen = 16,
27928 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27929 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27930 .rlen = 16,
27931 }, { /* Generated with Crypto++ */
27932 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
27933 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
27934 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
27935 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
27936 .klen = 32,
27937 .input = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
27938 "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
27939 "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
27940 "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
27941 "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
27942 "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
27943 "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
27944 "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
27945 "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
27946 "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
27947 "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
27948 "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
27949 "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
27950 "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
27951 "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
27952 "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
27953 "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
27954 "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
27955 "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
27956 "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
27957 "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
27958 "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
27959 "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
27960 "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
27961 "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
27962 "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
27963 "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
27964 "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
27965 "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
27966 "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
27967 "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
27968 "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
27969 "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
27970 "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
27971 "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
27972 "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
27973 "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
27974 "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
27975 "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
27976 "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
27977 "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
27978 "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
27979 "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
27980 "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
27981 "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
27982 "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
27983 "\x83\x06\xAB\x82\x99\x01\x16\x1A"
27984 "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
27985 "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
27986 "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
27987 "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
27988 "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
27989 "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
27990 "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
27991 "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
27992 "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
27993 "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
27994 "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
27995 "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
27996 "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
27997 "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
27998 "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
27999 "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
28000 "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
28001 "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
28002 "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
28003 "\xED\x28\x39\xE9\x63\xED\x41\x70"
28004 "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
28005 "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
28006 "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
28007 "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
28008 "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
28009 "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
28010 "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
28011 "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
28012 "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
28013 "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
28014 "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
28015 "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
28016 "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
28017 "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
28018 "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
28019 "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
28020 "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
28021 "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
28022 "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
28023 "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
28024 "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
28025 "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
28026 "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
28027 "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
28028 "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
28029 "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
28030 "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
28031 "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
28032 "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
28033 "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
28034 "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
28035 "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
28036 "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
28037 "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
28038 "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
28039 "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
28040 "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
28041 "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
28042 "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
28043 "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
28044 "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
28045 "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
28046 "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
28047 "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
28048 "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
28049 "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
28050 "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
28051 "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
28052 "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
28053 "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
28054 "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
28055 "\x31\x93\x51\x1C\x63\x97\x70\xB0"
28056 "\x99\x78\x83\x13\xFD\xCF\x53\x81"
28057 "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
28058 "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
28059 "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
28060 "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
28061 "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
28062 "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
28063 .ilen = 1008,
28064 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28065 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28066 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28067 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28068 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28069 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28070 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28071 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28072 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28073 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28074 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28075 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28076 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28077 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28078 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28079 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28080 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28081 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28082 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28083 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28084 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28085 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28086 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28087 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28088 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28089 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28090 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28091 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28092 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28093 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28094 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28095 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28096 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28097 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28098 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28099 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28100 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28101 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28102 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28103 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28104 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28105 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28106 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28107 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28108 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28109 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28110 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28111 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28112 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28113 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28114 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28115 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28116 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28117 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28118 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28119 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28120 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28121 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28122 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28123 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28124 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28125 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28126 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28127 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28128 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28129 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28130 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28131 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28132 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28133 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28134 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28135 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28136 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28137 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28138 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28139 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28140 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28141 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28142 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28143 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28144 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28145 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28146 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28147 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28148 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28149 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28150 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28151 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28152 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28153 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28154 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28155 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28156 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28157 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28158 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28159 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28160 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28161 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28162 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28163 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28164 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28165 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28166 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28167 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28168 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28169 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28170 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28171 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28172 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28173 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28174 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28175 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28176 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28177 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28178 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28179 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28180 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28181 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28182 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28183 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28184 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28185 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28186 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28187 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28188 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28189 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
28190 .rlen = 1008,
28191 .also_non_np = 1,
28192 .np = 3,
28193 .tap = { 1008 - 20, 4, 16 },
28197 static struct cipher_testvec camellia_cbc_enc_tv_template[] = {
28199 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
28200 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
28201 .klen = 16,
28202 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
28203 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
28204 .input = "Single block msg",
28205 .ilen = 16,
28206 .result = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
28207 "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
28208 .rlen = 16,
28209 }, {
28210 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
28211 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
28212 .klen = 16,
28213 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
28214 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
28215 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
28216 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
28217 "\x10\x11\x12\x13\x14\x15\x16\x17"
28218 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
28219 .ilen = 32,
28220 .result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
28221 "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
28222 "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
28223 "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
28224 .rlen = 32,
28225 }, { /* Generated with Crypto++ */
28226 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28227 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28228 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28229 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28230 .klen = 32,
28231 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28232 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28233 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28234 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28235 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28236 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28237 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28238 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28239 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28240 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28241 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28242 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28243 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28244 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28245 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28246 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28247 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28248 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28249 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28250 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28251 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28252 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28253 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28254 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28255 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28256 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28257 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28258 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28259 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28260 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28261 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28262 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28263 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28264 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28265 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28266 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28267 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28268 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28269 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28270 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28271 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28272 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28273 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28274 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28275 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28276 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28277 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28278 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28279 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28280 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28281 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28282 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28283 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28284 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28285 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28286 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28287 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28288 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28289 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28290 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28291 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28292 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28293 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28294 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28295 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28296 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28297 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28298 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28299 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28300 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28301 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28302 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28303 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28304 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28305 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28306 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28307 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28308 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28309 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28310 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28311 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28312 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28313 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28314 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28315 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28316 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28317 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28318 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28319 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28320 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28321 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28322 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28323 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28324 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28325 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28326 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28327 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28328 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28329 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28330 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28331 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28332 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28333 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28334 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28335 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28336 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28337 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28338 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28339 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28340 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28341 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28342 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28343 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28344 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28345 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28346 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28347 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28348 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28349 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28350 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28351 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28352 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28353 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28354 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28355 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28356 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28357 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28358 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
28359 .ilen = 1008,
28360 .result = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
28361 "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
28362 "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
28363 "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
28364 "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
28365 "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
28366 "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
28367 "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
28368 "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
28369 "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
28370 "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
28371 "\x37\x49\x88\xA4\xEF\x91\x21\x47"
28372 "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
28373 "\x28\x90\x77\x46\xD8\xD2\x35\x16"
28374 "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
28375 "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
28376 "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
28377 "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
28378 "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
28379 "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
28380 "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
28381 "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
28382 "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
28383 "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
28384 "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
28385 "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
28386 "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
28387 "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
28388 "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
28389 "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
28390 "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
28391 "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
28392 "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
28393 "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
28394 "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
28395 "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
28396 "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
28397 "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
28398 "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
28399 "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
28400 "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
28401 "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
28402 "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
28403 "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
28404 "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
28405 "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
28406 "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
28407 "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
28408 "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
28409 "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
28410 "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
28411 "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
28412 "\x38\xB8\x48\x36\x66\x4E\x20\x43"
28413 "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
28414 "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
28415 "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
28416 "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
28417 "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
28418 "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
28419 "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
28420 "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
28421 "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
28422 "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
28423 "\x21\x41\x56\x72\x13\xE1\x86\x07"
28424 "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
28425 "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
28426 "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
28427 "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
28428 "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
28429 "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
28430 "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
28431 "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
28432 "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
28433 "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
28434 "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
28435 "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
28436 "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
28437 "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
28438 "\xBE\x31\x31\x96\x8B\x40\x18\x75"
28439 "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
28440 "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
28441 "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
28442 "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
28443 "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
28444 "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
28445 "\x09\xB0\x43\x96\x4A\x64\x80\x40"
28446 "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
28447 "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
28448 "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
28449 "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
28450 "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
28451 "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
28452 "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
28453 "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
28454 "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
28455 "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
28456 "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
28457 "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
28458 "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
28459 "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
28460 "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
28461 "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
28462 "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
28463 "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
28464 "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
28465 "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
28466 "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
28467 "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
28468 "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
28469 "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
28470 "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
28471 "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
28472 "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
28473 "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
28474 "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
28475 "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
28476 "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
28477 "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
28478 "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
28479 "\x80\xE7\x29\xDC\x23\x55\x98\x54"
28480 "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
28481 "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
28482 "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
28483 "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
28484 "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
28485 "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
28486 .rlen = 1008,
28487 .also_non_np = 1,
28488 .np = 3,
28489 .tap = { 1008 - 20, 4, 16 },
28493 static struct cipher_testvec camellia_cbc_dec_tv_template[] = {
28495 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
28496 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
28497 .klen = 16,
28498 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
28499 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
28500 .input = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
28501 "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
28502 .ilen = 16,
28503 .result = "Single block msg",
28504 .rlen = 16,
28505 }, {
28506 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
28507 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
28508 .klen = 16,
28509 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
28510 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
28511 .input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
28512 "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
28513 "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
28514 "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
28515 .ilen = 32,
28516 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
28517 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
28518 "\x10\x11\x12\x13\x14\x15\x16\x17"
28519 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
28520 .rlen = 32,
28521 }, { /* Generated with Crypto++ */
28522 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28523 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28524 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28525 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28526 .klen = 32,
28527 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28528 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28529 .input = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
28530 "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
28531 "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
28532 "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
28533 "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
28534 "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
28535 "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
28536 "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
28537 "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
28538 "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
28539 "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
28540 "\x37\x49\x88\xA4\xEF\x91\x21\x47"
28541 "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
28542 "\x28\x90\x77\x46\xD8\xD2\x35\x16"
28543 "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
28544 "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
28545 "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
28546 "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
28547 "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
28548 "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
28549 "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
28550 "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
28551 "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
28552 "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
28553 "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
28554 "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
28555 "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
28556 "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
28557 "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
28558 "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
28559 "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
28560 "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
28561 "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
28562 "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
28563 "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
28564 "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
28565 "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
28566 "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
28567 "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
28568 "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
28569 "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
28570 "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
28571 "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
28572 "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
28573 "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
28574 "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
28575 "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
28576 "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
28577 "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
28578 "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
28579 "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
28580 "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
28581 "\x38\xB8\x48\x36\x66\x4E\x20\x43"
28582 "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
28583 "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
28584 "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
28585 "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
28586 "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
28587 "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
28588 "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
28589 "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
28590 "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
28591 "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
28592 "\x21\x41\x56\x72\x13\xE1\x86\x07"
28593 "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
28594 "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
28595 "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
28596 "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
28597 "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
28598 "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
28599 "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
28600 "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
28601 "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
28602 "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
28603 "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
28604 "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
28605 "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
28606 "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
28607 "\xBE\x31\x31\x96\x8B\x40\x18\x75"
28608 "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
28609 "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
28610 "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
28611 "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
28612 "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
28613 "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
28614 "\x09\xB0\x43\x96\x4A\x64\x80\x40"
28615 "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
28616 "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
28617 "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
28618 "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
28619 "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
28620 "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
28621 "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
28622 "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
28623 "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
28624 "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
28625 "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
28626 "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
28627 "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
28628 "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
28629 "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
28630 "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
28631 "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
28632 "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
28633 "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
28634 "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
28635 "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
28636 "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
28637 "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
28638 "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
28639 "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
28640 "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
28641 "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
28642 "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
28643 "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
28644 "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
28645 "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
28646 "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
28647 "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
28648 "\x80\xE7\x29\xDC\x23\x55\x98\x54"
28649 "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
28650 "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
28651 "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
28652 "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
28653 "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
28654 "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
28655 .ilen = 1008,
28656 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28657 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28658 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28659 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28660 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28661 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28662 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28663 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28664 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28665 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28666 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28667 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28668 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28669 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28670 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28671 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28672 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28673 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28674 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28675 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28676 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28677 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28678 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28679 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28680 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28681 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28682 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28683 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28684 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28685 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28686 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28687 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28688 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28689 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28690 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28691 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28692 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28693 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28694 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28695 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28696 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28697 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28698 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28699 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28700 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28701 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28702 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28703 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28704 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28705 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28706 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28707 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28708 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28709 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28710 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28711 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28712 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28713 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28714 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28715 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28716 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28717 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28718 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28719 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28720 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28721 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28722 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28723 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28724 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28725 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28726 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28727 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28728 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28729 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28730 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28731 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28732 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28733 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28734 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28735 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28736 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28737 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28738 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28739 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28740 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28741 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28742 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28743 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28744 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28745 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28746 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28747 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28748 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28749 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28750 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28751 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28752 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28753 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28754 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28755 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28756 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28757 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28758 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28759 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28760 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28761 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28762 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28763 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28764 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28765 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28766 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28767 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28768 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28769 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28770 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28771 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28772 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28773 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28774 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28775 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28776 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28777 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28778 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28779 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28780 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28781 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
28782 .rlen = 1008,
28783 .also_non_np = 1,
28784 .np = 3,
28785 .tap = { 1008 - 20, 4, 16 },
28789 static struct cipher_testvec camellia_ctr_enc_tv_template[] = {
28790 { /* Generated with Crypto++ */
28791 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28792 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28793 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28794 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28795 .klen = 32,
28796 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28797 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28798 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28799 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28800 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28801 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28802 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28803 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28804 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28805 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28806 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28807 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28808 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28809 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28810 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28811 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28812 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28813 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28814 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28815 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28816 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28817 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28818 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28819 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28820 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28821 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28822 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28823 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28824 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28825 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28826 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28827 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28828 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28829 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28830 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28831 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28832 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28833 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28834 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28835 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28836 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28837 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28838 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28839 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28840 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28841 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28842 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28843 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28844 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28845 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28846 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28847 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28848 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28849 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28850 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28851 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28852 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28853 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28854 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28855 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28856 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28857 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28858 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28859 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
28860 .ilen = 496,
28861 .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
28862 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
28863 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
28864 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
28865 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
28866 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
28867 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
28868 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
28869 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
28870 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
28871 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
28872 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
28873 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
28874 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
28875 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
28876 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
28877 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
28878 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
28879 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
28880 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
28881 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
28882 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
28883 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
28884 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
28885 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
28886 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
28887 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
28888 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
28889 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
28890 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
28891 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
28892 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
28893 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
28894 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
28895 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
28896 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
28897 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
28898 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
28899 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
28900 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
28901 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
28902 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
28903 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
28904 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
28905 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
28906 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
28907 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
28908 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
28909 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
28910 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
28911 "\x76\x44\x45\xF3\x24\x11\x57\x98"
28912 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
28913 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
28914 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
28915 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
28916 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
28917 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
28918 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
28919 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
28920 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
28921 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
28922 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
28923 .rlen = 496,
28924 }, { /* Generated with Crypto++ */
28925 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28926 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28927 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28928 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28929 .klen = 32,
28930 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28931 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28932 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28933 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28934 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28935 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28936 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28937 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28938 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28939 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28940 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28941 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28942 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28943 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28944 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28945 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28946 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28947 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28948 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28949 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28950 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28951 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28952 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28953 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28954 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28955 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28956 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28957 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28958 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28959 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28960 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28961 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28962 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28963 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28964 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28965 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28966 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28967 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28968 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28969 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28970 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28971 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28972 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28973 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28974 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28975 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28976 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28977 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28978 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28979 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28980 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28981 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28982 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28983 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28984 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28985 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28986 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28987 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28988 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28989 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28990 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28991 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28992 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28993 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28994 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28995 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28996 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28997 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28998 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28999 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
29000 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
29001 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
29002 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
29003 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
29004 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
29005 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
29006 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
29007 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
29008 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
29009 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
29010 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
29011 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
29012 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
29013 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
29014 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
29015 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
29016 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
29017 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
29018 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
29019 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
29020 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
29021 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
29022 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
29023 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
29024 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
29025 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
29026 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
29027 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
29028 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
29029 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
29030 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
29031 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
29032 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
29033 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
29034 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
29035 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
29036 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
29037 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
29038 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
29039 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
29040 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
29041 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
29042 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
29043 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
29044 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
29045 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
29046 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
29047 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
29048 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
29049 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
29050 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
29051 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
29052 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
29053 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
29054 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
29055 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
29056 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
29057 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
29058 "\xE4\x7B\x12",
29059 .ilen = 1011,
29060 .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
29061 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
29062 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
29063 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
29064 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
29065 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
29066 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
29067 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
29068 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
29069 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
29070 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
29071 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
29072 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
29073 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
29074 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
29075 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
29076 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
29077 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
29078 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
29079 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
29080 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
29081 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
29082 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
29083 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
29084 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
29085 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
29086 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
29087 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
29088 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
29089 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
29090 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
29091 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
29092 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
29093 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
29094 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
29095 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
29096 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
29097 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
29098 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
29099 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
29100 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
29101 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
29102 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
29103 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
29104 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
29105 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
29106 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
29107 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
29108 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
29109 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
29110 "\x76\x44\x45\xF3\x24\x11\x57\x98"
29111 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
29112 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
29113 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
29114 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
29115 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
29116 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
29117 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
29118 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
29119 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
29120 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
29121 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
29122 "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
29123 "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
29124 "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
29125 "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
29126 "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
29127 "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
29128 "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
29129 "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
29130 "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
29131 "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
29132 "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
29133 "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
29134 "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
29135 "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
29136 "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
29137 "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
29138 "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
29139 "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
29140 "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
29141 "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
29142 "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
29143 "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
29144 "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
29145 "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
29146 "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
29147 "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
29148 "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
29149 "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
29150 "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
29151 "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
29152 "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
29153 "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
29154 "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
29155 "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
29156 "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
29157 "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
29158 "\x00\x70\x12\x56\x56\x50\xAD\x14"
29159 "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
29160 "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
29161 "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
29162 "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
29163 "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
29164 "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
29165 "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
29166 "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
29167 "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
29168 "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
29169 "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
29170 "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
29171 "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
29172 "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
29173 "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
29174 "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
29175 "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
29176 "\x40\x48\x19\x73\x7C\x78\x64\x0B"
29177 "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
29178 "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
29179 "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
29180 "\x74\x28\x9D\x05\x30\x20\x62\x41"
29181 "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
29182 "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
29183 "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
29184 "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
29185 "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
29186 "\xF1\x6B\xD9",
29187 .rlen = 1011,
29188 .also_non_np = 1,
29189 .np = 2,
29190 .tap = { 1011 - 16, 16 },
29191 }, { /* Generated with Crypto++ */
29192 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
29193 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
29194 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
29195 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
29196 .klen = 32,
29197 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
29198 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
29199 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
29200 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
29201 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
29202 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
29203 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
29204 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
29205 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
29206 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
29207 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
29208 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
29209 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
29210 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
29211 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
29212 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
29213 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
29214 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
29215 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
29216 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
29217 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
29218 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
29219 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
29220 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
29221 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
29222 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
29223 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
29224 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
29225 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
29226 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
29227 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
29228 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
29229 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
29230 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
29231 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
29232 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
29233 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
29234 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
29235 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
29236 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
29237 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
29238 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
29239 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
29240 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
29241 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
29242 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
29243 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
29244 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
29245 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
29246 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
29247 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
29248 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
29249 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
29250 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
29251 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
29252 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
29253 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
29254 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
29255 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
29256 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
29257 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
29258 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
29259 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
29260 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
29261 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
29262 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
29263 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
29264 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
29265 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
29266 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
29267 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
29268 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
29269 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
29270 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
29271 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
29272 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
29273 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
29274 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
29275 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
29276 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
29277 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
29278 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
29279 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
29280 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
29281 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
29282 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
29283 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
29284 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
29285 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
29286 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
29287 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
29288 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
29289 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
29290 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
29291 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
29292 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
29293 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
29294 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
29295 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
29296 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
29297 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
29298 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
29299 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
29300 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
29301 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
29302 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
29303 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
29304 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
29305 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
29306 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
29307 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
29308 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
29309 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
29310 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
29311 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
29312 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
29313 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
29314 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
29315 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
29316 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
29317 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
29318 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
29319 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
29320 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
29321 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
29322 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
29323 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
29324 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
29325 .ilen = 1008,
29326 .result = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
29327 "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
29328 "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
29329 "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
29330 "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
29331 "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
29332 "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
29333 "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
29334 "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
29335 "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
29336 "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
29337 "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
29338 "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
29339 "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
29340 "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
29341 "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
29342 "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
29343 "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
29344 "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
29345 "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
29346 "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
29347 "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
29348 "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
29349 "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
29350 "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
29351 "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
29352 "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
29353 "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
29354 "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
29355 "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
29356 "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
29357 "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
29358 "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
29359 "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
29360 "\x93\x78\x86\x05\x69\x46\xD0\xC5"
29361 "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
29362 "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
29363 "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
29364 "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
29365 "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
29366 "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
29367 "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
29368 "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
29369 "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
29370 "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
29371 "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
29372 "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
29373 "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
29374 "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
29375 "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
29376 "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
29377 "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
29378 "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
29379 "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
29380 "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
29381 "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
29382 "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
29383 "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
29384 "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
29385 "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
29386 "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
29387 "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
29388 "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
29389 "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
29390 "\x3F\x23\x69\x63\x56\x96\x45\xD6"
29391 "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
29392 "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
29393 "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
29394 "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
29395 "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
29396 "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
29397 "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
29398 "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
29399 "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
29400 "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
29401 "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
29402 "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
29403 "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
29404 "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
29405 "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
29406 "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
29407 "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
29408 "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
29409 "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
29410 "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
29411 "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
29412 "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
29413 "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
29414 "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
29415 "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
29416 "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
29417 "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
29418 "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
29419 "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
29420 "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
29421 "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
29422 "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
29423 "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
29424 "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
29425 "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
29426 "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
29427 "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
29428 "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
29429 "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
29430 "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
29431 "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
29432 "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
29433 "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
29434 "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
29435 "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
29436 "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
29437 "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
29438 "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
29439 "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
29440 "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
29441 "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
29442 "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
29443 "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
29444 "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
29445 "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
29446 "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
29447 "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
29448 "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
29449 "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
29450 "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
29451 "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
29452 .rlen = 1008,
29456 static struct cipher_testvec camellia_ctr_dec_tv_template[] = {
29457 { /* Generated with Crypto++ */
29458 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
29459 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
29460 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
29461 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
29462 .klen = 32,
29463 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
29464 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
29465 .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
29466 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
29467 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
29468 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
29469 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
29470 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
29471 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
29472 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
29473 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
29474 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
29475 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
29476 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
29477 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
29478 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
29479 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
29480 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
29481 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
29482 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
29483 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
29484 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
29485 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
29486 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
29487 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
29488 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
29489 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
29490 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
29491 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
29492 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
29493 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
29494 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
29495 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
29496 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
29497 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
29498 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
29499 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
29500 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
29501 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
29502 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
29503 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
29504 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
29505 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
29506 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
29507 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
29508 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
29509 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
29510 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
29511 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
29512 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
29513 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
29514 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
29515 "\x76\x44\x45\xF3\x24\x11\x57\x98"
29516 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
29517 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
29518 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
29519 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
29520 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
29521 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
29522 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
29523 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
29524 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
29525 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
29526 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
29527 .ilen = 496,
29528 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
29529 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
29530 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
29531 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
29532 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
29533 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
29534 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
29535 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
29536 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
29537 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
29538 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
29539 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
29540 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
29541 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
29542 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
29543 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
29544 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
29545 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
29546 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
29547 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
29548 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
29549 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
29550 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
29551 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
29552 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
29553 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
29554 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
29555 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
29556 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
29557 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
29558 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
29559 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
29560 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
29561 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
29562 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
29563 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
29564 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
29565 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
29566 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
29567 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
29568 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
29569 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
29570 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
29571 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
29572 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
29573 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
29574 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
29575 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
29576 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
29577 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
29578 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
29579 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
29580 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
29581 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
29582 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
29583 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
29584 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
29585 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
29586 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
29587 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
29588 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
29589 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
29590 .rlen = 496,
29591 }, { /* Generated with Crypto++ */
29592 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
29593 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
29594 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
29595 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
29596 .klen = 32,
29597 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
29598 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
29599 .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
29600 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
29601 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
29602 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
29603 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
29604 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
29605 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
29606 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
29607 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
29608 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
29609 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
29610 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
29611 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
29612 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
29613 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
29614 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
29615 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
29616 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
29617 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
29618 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
29619 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
29620 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
29621 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
29622 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
29623 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
29624 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
29625 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
29626 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
29627 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
29628 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
29629 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
29630 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
29631 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
29632 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
29633 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
29634 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
29635 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
29636 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
29637 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
29638 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
29639 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
29640 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
29641 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
29642 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
29643 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
29644 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
29645 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
29646 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
29647 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
29648 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
29649 "\x76\x44\x45\xF3\x24\x11\x57\x98"
29650 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
29651 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
29652 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
29653 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
29654 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
29655 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
29656 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
29657 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
29658 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
29659 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
29660 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
29661 "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
29662 "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
29663 "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
29664 "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
29665 "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
29666 "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
29667 "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
29668 "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
29669 "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
29670 "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
29671 "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
29672 "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
29673 "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
29674 "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
29675 "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
29676 "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
29677 "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
29678 "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
29679 "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
29680 "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
29681 "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
29682 "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
29683 "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
29684 "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
29685 "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
29686 "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
29687 "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
29688 "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
29689 "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
29690 "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
29691 "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
29692 "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
29693 "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
29694 "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
29695 "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
29696 "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
29697 "\x00\x70\x12\x56\x56\x50\xAD\x14"
29698 "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
29699 "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
29700 "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
29701 "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
29702 "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
29703 "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
29704 "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
29705 "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
29706 "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
29707 "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
29708 "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
29709 "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
29710 "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
29711 "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
29712 "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
29713 "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
29714 "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
29715 "\x40\x48\x19\x73\x7C\x78\x64\x0B"
29716 "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
29717 "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
29718 "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
29719 "\x74\x28\x9D\x05\x30\x20\x62\x41"
29720 "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
29721 "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
29722 "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
29723 "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
29724 "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
29725 "\xF1\x6B\xD9",
29726 .ilen = 1011,
29727 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
29728 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
29729 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
29730 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
29731 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
29732 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
29733 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
29734 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
29735 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
29736 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
29737 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
29738 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
29739 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
29740 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
29741 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
29742 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
29743 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
29744 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
29745 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
29746 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
29747 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
29748 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
29749 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
29750 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
29751 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
29752 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
29753 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
29754 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
29755 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
29756 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
29757 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
29758 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
29759 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
29760 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
29761 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
29762 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
29763 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
29764 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
29765 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
29766 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
29767 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
29768 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
29769 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
29770 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
29771 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
29772 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
29773 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
29774 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
29775 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
29776 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
29777 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
29778 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
29779 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
29780 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
29781 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
29782 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
29783 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
29784 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
29785 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
29786 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
29787 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
29788 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
29789 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
29790 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
29791 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
29792 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
29793 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
29794 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
29795 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
29796 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
29797 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
29798 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
29799 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
29800 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
29801 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
29802 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
29803 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
29804 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
29805 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
29806 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
29807 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
29808 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
29809 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
29810 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
29811 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
29812 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
29813 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
29814 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
29815 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
29816 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
29817 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
29818 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
29819 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
29820 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
29821 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
29822 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
29823 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
29824 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
29825 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
29826 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
29827 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
29828 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
29829 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
29830 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
29831 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
29832 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
29833 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
29834 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
29835 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
29836 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
29837 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
29838 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
29839 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
29840 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
29841 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
29842 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
29843 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
29844 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
29845 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
29846 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
29847 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
29848 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
29849 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
29850 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
29851 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
29852 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
29853 "\xE4\x7B\x12",
29854 .rlen = 1011,
29855 .also_non_np = 1,
29856 .np = 2,
29857 .tap = { 1011 - 16, 16 },
29858 }, { /* Generated with Crypto++ */
29859 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
29860 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
29861 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
29862 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
29863 .klen = 32,
29864 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
29865 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
29866 .input = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
29867 "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
29868 "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
29869 "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
29870 "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
29871 "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
29872 "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
29873 "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
29874 "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
29875 "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
29876 "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
29877 "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
29878 "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
29879 "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
29880 "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
29881 "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
29882 "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
29883 "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
29884 "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
29885 "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
29886 "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
29887 "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
29888 "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
29889 "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
29890 "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
29891 "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
29892 "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
29893 "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
29894 "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
29895 "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
29896 "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
29897 "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
29898 "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
29899 "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
29900 "\x93\x78\x86\x05\x69\x46\xD0\xC5"
29901 "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
29902 "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
29903 "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
29904 "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
29905 "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
29906 "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
29907 "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
29908 "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
29909 "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
29910 "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
29911 "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
29912 "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
29913 "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
29914 "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
29915 "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
29916 "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
29917 "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
29918 "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
29919 "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
29920 "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
29921 "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
29922 "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
29923 "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
29924 "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
29925 "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
29926 "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
29927 "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
29928 "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
29929 "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
29930 "\x3F\x23\x69\x63\x56\x96\x45\xD6"
29931 "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
29932 "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
29933 "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
29934 "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
29935 "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
29936 "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
29937 "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
29938 "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
29939 "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
29940 "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
29941 "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
29942 "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
29943 "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
29944 "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
29945 "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
29946 "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
29947 "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
29948 "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
29949 "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
29950 "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
29951 "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
29952 "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
29953 "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
29954 "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
29955 "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
29956 "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
29957 "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
29958 "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
29959 "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
29960 "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
29961 "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
29962 "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
29963 "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
29964 "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
29965 "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
29966 "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
29967 "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
29968 "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
29969 "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
29970 "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
29971 "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
29972 "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
29973 "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
29974 "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
29975 "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
29976 "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
29977 "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
29978 "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
29979 "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
29980 "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
29981 "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
29982 "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
29983 "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
29984 "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
29985 "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
29986 "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
29987 "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
29988 "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
29989 "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
29990 "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
29991 "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
29992 .ilen = 1008,
29993 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
29994 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
29995 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
29996 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
29997 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
29998 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
29999 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
30000 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
30001 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
30002 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
30003 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
30004 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
30005 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
30006 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
30007 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
30008 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
30009 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
30010 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
30011 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
30012 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
30013 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
30014 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
30015 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
30016 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
30017 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
30018 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
30019 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
30020 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
30021 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
30022 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
30023 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
30024 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
30025 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
30026 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
30027 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
30028 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
30029 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
30030 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
30031 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
30032 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
30033 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
30034 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
30035 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
30036 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
30037 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
30038 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
30039 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
30040 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
30041 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
30042 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
30043 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
30044 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
30045 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
30046 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
30047 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
30048 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
30049 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
30050 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
30051 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
30052 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
30053 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
30054 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
30055 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
30056 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
30057 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
30058 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
30059 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
30060 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
30061 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
30062 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
30063 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
30064 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
30065 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
30066 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
30067 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
30068 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
30069 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
30070 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
30071 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
30072 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
30073 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
30074 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
30075 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
30076 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
30077 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
30078 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
30079 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
30080 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
30081 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
30082 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
30083 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
30084 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
30085 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
30086 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
30087 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
30088 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
30089 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
30090 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
30091 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
30092 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
30093 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
30094 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
30095 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
30096 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
30097 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
30098 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
30099 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
30100 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
30101 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
30102 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
30103 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
30104 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
30105 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
30106 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
30107 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
30108 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
30109 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
30110 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
30111 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
30112 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
30113 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
30114 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
30115 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
30116 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
30117 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
30118 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
30119 .rlen = 1008,
30123 static struct cipher_testvec camellia_lrw_enc_tv_template[] = {
30124 /* Generated from AES-LRW test vectors */
30126 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
30127 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
30128 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
30129 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
30130 .klen = 32,
30131 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30132 "\x00\x00\x00\x00\x00\x00\x00\x01",
30133 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30134 "\x38\x39\x41\x42\x43\x44\x45\x46",
30135 .ilen = 16,
30136 .result = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
30137 "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
30138 .rlen = 16,
30139 }, {
30140 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
30141 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
30142 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
30143 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
30144 .klen = 32,
30145 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30146 "\x00\x00\x00\x00\x00\x00\x00\x02",
30147 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30148 "\x38\x39\x41\x42\x43\x44\x45\x46",
30149 .ilen = 16,
30150 .result = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
30151 "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
30152 .rlen = 16,
30153 }, {
30154 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
30155 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
30156 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
30157 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
30158 .klen = 32,
30159 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30160 "\x00\x00\x00\x02\x00\x00\x00\x00",
30161 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30162 "\x38\x39\x41\x42\x43\x44\x45\x46",
30163 .ilen = 16,
30164 .result = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
30165 "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
30166 .rlen = 16,
30167 }, {
30168 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
30169 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
30170 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
30171 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
30172 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
30173 .klen = 40,
30174 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30175 "\x00\x00\x00\x00\x00\x00\x00\x01",
30176 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30177 "\x38\x39\x41\x42\x43\x44\x45\x46",
30178 .ilen = 16,
30179 .result = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
30180 "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
30181 .rlen = 16,
30182 }, {
30183 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
30184 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
30185 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
30186 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
30187 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
30188 .klen = 40,
30189 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30190 "\x00\x00\x00\x02\x00\x00\x00\x00",
30191 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30192 "\x38\x39\x41\x42\x43\x44\x45\x46",
30193 .ilen = 16,
30194 .result = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
30195 "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
30196 .rlen = 16,
30197 }, {
30198 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
30199 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
30200 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
30201 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
30202 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
30203 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
30204 .klen = 48,
30205 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30206 "\x00\x00\x00\x00\x00\x00\x00\x01",
30207 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30208 "\x38\x39\x41\x42\x43\x44\x45\x46",
30209 .ilen = 16,
30210 .result = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
30211 "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
30212 .rlen = 16,
30213 }, {
30214 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
30215 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
30216 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
30217 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
30218 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
30219 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
30220 .klen = 48,
30221 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30222 "\x00\x00\x00\x02\x00\x00\x00\x00",
30223 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30224 "\x38\x39\x41\x42\x43\x44\x45\x46",
30225 .ilen = 16,
30226 .result = "\x04\xab\x28\x37\x31\x7a\x26\xab"
30227 "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
30228 .rlen = 16,
30229 }, {
30230 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
30231 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
30232 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
30233 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
30234 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
30235 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
30236 .klen = 48,
30237 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30238 "\x00\x00\x00\x00\x00\x00\x00\x01",
30239 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
30240 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
30241 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
30242 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
30243 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
30244 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
30245 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
30246 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
30247 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
30248 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
30249 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
30250 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
30251 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
30252 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
30253 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
30254 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
30255 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
30256 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
30257 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
30258 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
30259 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
30260 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
30261 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
30262 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
30263 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
30264 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
30265 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
30266 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
30267 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
30268 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
30269 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
30270 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
30271 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
30272 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
30273 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
30274 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
30275 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
30276 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
30277 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
30278 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
30279 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
30280 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
30281 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
30282 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
30283 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
30284 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
30285 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
30286 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
30287 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
30288 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
30289 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
30290 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
30291 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
30292 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
30293 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
30294 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
30295 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
30296 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
30297 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
30298 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
30299 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
30300 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
30301 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
30302 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
30303 .ilen = 512,
30304 .result = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
30305 "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
30306 "\x67\x76\xac\x2c\xd2\x63\x18\x93"
30307 "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
30308 "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
30309 "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
30310 "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
30311 "\x62\xdd\x78\x81\xea\x1d\xef\x04"
30312 "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
30313 "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
30314 "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
30315 "\x40\x41\x69\xaa\x71\xc0\x37\xec"
30316 "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
30317 "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
30318 "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
30319 "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
30320 "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
30321 "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
30322 "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
30323 "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
30324 "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
30325 "\x42\x08\x40\x82\x06\x1c\x2d\x55"
30326 "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
30327 "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
30328 "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
30329 "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
30330 "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
30331 "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
30332 "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
30333 "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
30334 "\xed\x14\xa9\x57\x19\x63\x40\x04"
30335 "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
30336 "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
30337 "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
30338 "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
30339 "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
30340 "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
30341 "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
30342 "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
30343 "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
30344 "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
30345 "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
30346 "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
30347 "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
30348 "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
30349 "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
30350 "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
30351 "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
30352 "\x35\xa5\x83\x04\x84\x01\x99\x56"
30353 "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
30354 "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
30355 "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
30356 "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
30357 "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
30358 "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
30359 "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
30360 "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
30361 "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
30362 "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
30363 "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
30364 "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
30365 "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
30366 "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
30367 "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
30368 .rlen = 512,
30369 .also_non_np = 1,
30370 .np = 3,
30371 .tap = { 512 - 20, 4, 16 },
30375 static struct cipher_testvec camellia_lrw_dec_tv_template[] = {
30376 /* Generated from AES-LRW test vectors */
30377 /* same as enc vectors with input and result reversed */
30379 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
30380 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
30381 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
30382 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
30383 .klen = 32,
30384 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30385 "\x00\x00\x00\x00\x00\x00\x00\x01",
30386 .input = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
30387 "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
30388 .ilen = 16,
30389 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30390 "\x38\x39\x41\x42\x43\x44\x45\x46",
30391 .rlen = 16,
30392 }, {
30393 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
30394 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
30395 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
30396 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
30397 .klen = 32,
30398 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30399 "\x00\x00\x00\x00\x00\x00\x00\x02",
30400 .input = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
30401 "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
30402 .ilen = 16,
30403 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30404 "\x38\x39\x41\x42\x43\x44\x45\x46",
30405 .rlen = 16,
30406 }, {
30407 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
30408 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
30409 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
30410 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
30411 .klen = 32,
30412 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30413 "\x00\x00\x00\x02\x00\x00\x00\x00",
30414 .input = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
30415 "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
30416 .ilen = 16,
30417 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30418 "\x38\x39\x41\x42\x43\x44\x45\x46",
30419 .rlen = 16,
30420 }, {
30421 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
30422 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
30423 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
30424 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
30425 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
30426 .klen = 40,
30427 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30428 "\x00\x00\x00\x00\x00\x00\x00\x01",
30429 .input = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
30430 "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
30431 .ilen = 16,
30432 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30433 "\x38\x39\x41\x42\x43\x44\x45\x46",
30434 .rlen = 16,
30435 }, {
30436 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
30437 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
30438 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
30439 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
30440 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
30441 .klen = 40,
30442 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30443 "\x00\x00\x00\x02\x00\x00\x00\x00",
30444 .input = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
30445 "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
30446 .ilen = 16,
30447 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30448 "\x38\x39\x41\x42\x43\x44\x45\x46",
30449 .rlen = 16,
30450 }, {
30451 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
30452 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
30453 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
30454 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
30455 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
30456 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
30457 .klen = 48,
30458 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30459 "\x00\x00\x00\x00\x00\x00\x00\x01",
30460 .input = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
30461 "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
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 = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
30468 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
30469 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
30470 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
30471 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
30472 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
30473 .klen = 48,
30474 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30475 "\x00\x00\x00\x02\x00\x00\x00\x00",
30476 .input = "\x04\xab\x28\x37\x31\x7a\x26\xab"
30477 "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
30478 .ilen = 16,
30479 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30480 "\x38\x39\x41\x42\x43\x44\x45\x46",
30481 .rlen = 16,
30482 }, {
30483 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
30484 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
30485 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
30486 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
30487 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
30488 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
30489 .klen = 48,
30490 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30491 "\x00\x00\x00\x00\x00\x00\x00\x01",
30492 .input = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
30493 "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
30494 "\x67\x76\xac\x2c\xd2\x63\x18\x93"
30495 "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
30496 "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
30497 "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
30498 "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
30499 "\x62\xdd\x78\x81\xea\x1d\xef\x04"
30500 "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
30501 "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
30502 "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
30503 "\x40\x41\x69\xaa\x71\xc0\x37\xec"
30504 "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
30505 "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
30506 "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
30507 "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
30508 "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
30509 "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
30510 "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
30511 "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
30512 "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
30513 "\x42\x08\x40\x82\x06\x1c\x2d\x55"
30514 "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
30515 "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
30516 "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
30517 "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
30518 "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
30519 "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
30520 "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
30521 "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
30522 "\xed\x14\xa9\x57\x19\x63\x40\x04"
30523 "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
30524 "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
30525 "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
30526 "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
30527 "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
30528 "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
30529 "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
30530 "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
30531 "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
30532 "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
30533 "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
30534 "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
30535 "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
30536 "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
30537 "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
30538 "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
30539 "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
30540 "\x35\xa5\x83\x04\x84\x01\x99\x56"
30541 "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
30542 "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
30543 "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
30544 "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
30545 "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
30546 "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
30547 "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
30548 "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
30549 "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
30550 "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
30551 "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
30552 "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
30553 "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
30554 "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
30555 "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
30556 .ilen = 512,
30557 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
30558 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
30559 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
30560 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
30561 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
30562 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
30563 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
30564 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
30565 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
30566 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
30567 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
30568 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
30569 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
30570 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
30571 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
30572 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
30573 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
30574 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
30575 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
30576 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
30577 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
30578 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
30579 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
30580 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
30581 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
30582 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
30583 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
30584 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
30585 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
30586 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
30587 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
30588 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
30589 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
30590 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
30591 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
30592 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
30593 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
30594 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
30595 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
30596 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
30597 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
30598 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
30599 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
30600 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
30601 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
30602 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
30603 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
30604 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
30605 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
30606 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
30607 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
30608 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
30609 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
30610 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
30611 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
30612 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
30613 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
30614 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
30615 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
30616 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
30617 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
30618 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
30619 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
30620 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
30621 .rlen = 512,
30622 .also_non_np = 1,
30623 .np = 3,
30624 .tap = { 512 - 20, 4, 16 },
30628 static struct cipher_testvec camellia_xts_enc_tv_template[] = {
30629 /* Generated from AES-XTS test vectors */
30631 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
30632 "\x00\x00\x00\x00\x00\x00\x00\x00"
30633 "\x00\x00\x00\x00\x00\x00\x00\x00"
30634 "\x00\x00\x00\x00\x00\x00\x00\x00",
30635 .klen = 32,
30636 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30637 "\x00\x00\x00\x00\x00\x00\x00\x00",
30638 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
30639 "\x00\x00\x00\x00\x00\x00\x00\x00"
30640 "\x00\x00\x00\x00\x00\x00\x00\x00"
30641 "\x00\x00\x00\x00\x00\x00\x00\x00",
30642 .ilen = 32,
30643 .result = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
30644 "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
30645 "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
30646 "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
30647 .rlen = 32,
30648 }, {
30649 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
30650 "\x11\x11\x11\x11\x11\x11\x11\x11"
30651 "\x22\x22\x22\x22\x22\x22\x22\x22"
30652 "\x22\x22\x22\x22\x22\x22\x22\x22",
30653 .klen = 32,
30654 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
30655 "\x00\x00\x00\x00\x00\x00\x00\x00",
30656 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
30657 "\x44\x44\x44\x44\x44\x44\x44\x44"
30658 "\x44\x44\x44\x44\x44\x44\x44\x44"
30659 "\x44\x44\x44\x44\x44\x44\x44\x44",
30660 .ilen = 32,
30661 .result = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
30662 "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
30663 "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
30664 "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
30665 .rlen = 32,
30666 }, {
30667 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
30668 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
30669 "\x22\x22\x22\x22\x22\x22\x22\x22"
30670 "\x22\x22\x22\x22\x22\x22\x22\x22",
30671 .klen = 32,
30672 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
30673 "\x00\x00\x00\x00\x00\x00\x00\x00",
30674 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
30675 "\x44\x44\x44\x44\x44\x44\x44\x44"
30676 "\x44\x44\x44\x44\x44\x44\x44\x44"
30677 "\x44\x44\x44\x44\x44\x44\x44\x44",
30678 .ilen = 32,
30679 .result = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
30680 "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
30681 "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
30682 "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
30683 .rlen = 32,
30684 }, {
30685 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
30686 "\x23\x53\x60\x28\x74\x71\x35\x26"
30687 "\x31\x41\x59\x26\x53\x58\x97\x93"
30688 "\x23\x84\x62\x64\x33\x83\x27\x95",
30689 .klen = 32,
30690 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30691 "\x00\x00\x00\x00\x00\x00\x00\x00",
30692 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
30693 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30694 "\x10\x11\x12\x13\x14\x15\x16\x17"
30695 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30696 "\x20\x21\x22\x23\x24\x25\x26\x27"
30697 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30698 "\x30\x31\x32\x33\x34\x35\x36\x37"
30699 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30700 "\x40\x41\x42\x43\x44\x45\x46\x47"
30701 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30702 "\x50\x51\x52\x53\x54\x55\x56\x57"
30703 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30704 "\x60\x61\x62\x63\x64\x65\x66\x67"
30705 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30706 "\x70\x71\x72\x73\x74\x75\x76\x77"
30707 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30708 "\x80\x81\x82\x83\x84\x85\x86\x87"
30709 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30710 "\x90\x91\x92\x93\x94\x95\x96\x97"
30711 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30712 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30713 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30714 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30715 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30716 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30717 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30718 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30719 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30720 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30721 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30722 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30723 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
30724 "\x00\x01\x02\x03\x04\x05\x06\x07"
30725 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30726 "\x10\x11\x12\x13\x14\x15\x16\x17"
30727 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30728 "\x20\x21\x22\x23\x24\x25\x26\x27"
30729 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30730 "\x30\x31\x32\x33\x34\x35\x36\x37"
30731 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30732 "\x40\x41\x42\x43\x44\x45\x46\x47"
30733 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30734 "\x50\x51\x52\x53\x54\x55\x56\x57"
30735 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30736 "\x60\x61\x62\x63\x64\x65\x66\x67"
30737 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30738 "\x70\x71\x72\x73\x74\x75\x76\x77"
30739 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30740 "\x80\x81\x82\x83\x84\x85\x86\x87"
30741 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30742 "\x90\x91\x92\x93\x94\x95\x96\x97"
30743 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30744 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30745 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30746 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30747 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30748 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30749 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30750 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30751 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30752 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30753 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30754 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30755 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
30756 .ilen = 512,
30757 .result = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
30758 "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
30759 "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
30760 "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
30761 "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
30762 "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
30763 "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
30764 "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
30765 "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
30766 "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
30767 "\x08\xda\x76\x00\x65\xcf\x7b\x31"
30768 "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
30769 "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
30770 "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
30771 "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
30772 "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
30773 "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
30774 "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
30775 "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
30776 "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
30777 "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
30778 "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
30779 "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
30780 "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
30781 "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
30782 "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
30783 "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
30784 "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
30785 "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
30786 "\x16\x31\xb2\x47\x91\x67\xaa\x28"
30787 "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
30788 "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
30789 "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
30790 "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
30791 "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
30792 "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
30793 "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
30794 "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
30795 "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
30796 "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
30797 "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
30798 "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
30799 "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
30800 "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
30801 "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
30802 "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
30803 "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
30804 "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
30805 "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
30806 "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
30807 "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
30808 "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
30809 "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
30810 "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
30811 "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
30812 "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
30813 "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
30814 "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
30815 "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
30816 "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
30817 "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
30818 "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
30819 "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
30820 "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
30821 .rlen = 512,
30822 }, {
30823 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
30824 "\x23\x53\x60\x28\x74\x71\x35\x26"
30825 "\x62\x49\x77\x57\x24\x70\x93\x69"
30826 "\x99\x59\x57\x49\x66\x96\x76\x27"
30827 "\x31\x41\x59\x26\x53\x58\x97\x93"
30828 "\x23\x84\x62\x64\x33\x83\x27\x95"
30829 "\x02\x88\x41\x97\x16\x93\x99\x37"
30830 "\x51\x05\x82\x09\x74\x94\x45\x92",
30831 .klen = 64,
30832 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
30833 "\x00\x00\x00\x00\x00\x00\x00\x00",
30834 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
30835 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30836 "\x10\x11\x12\x13\x14\x15\x16\x17"
30837 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30838 "\x20\x21\x22\x23\x24\x25\x26\x27"
30839 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30840 "\x30\x31\x32\x33\x34\x35\x36\x37"
30841 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30842 "\x40\x41\x42\x43\x44\x45\x46\x47"
30843 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30844 "\x50\x51\x52\x53\x54\x55\x56\x57"
30845 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30846 "\x60\x61\x62\x63\x64\x65\x66\x67"
30847 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30848 "\x70\x71\x72\x73\x74\x75\x76\x77"
30849 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30850 "\x80\x81\x82\x83\x84\x85\x86\x87"
30851 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30852 "\x90\x91\x92\x93\x94\x95\x96\x97"
30853 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30854 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30855 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30856 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30857 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30858 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30859 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30860 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30861 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30862 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30863 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30864 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30865 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
30866 "\x00\x01\x02\x03\x04\x05\x06\x07"
30867 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30868 "\x10\x11\x12\x13\x14\x15\x16\x17"
30869 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30870 "\x20\x21\x22\x23\x24\x25\x26\x27"
30871 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30872 "\x30\x31\x32\x33\x34\x35\x36\x37"
30873 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30874 "\x40\x41\x42\x43\x44\x45\x46\x47"
30875 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30876 "\x50\x51\x52\x53\x54\x55\x56\x57"
30877 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30878 "\x60\x61\x62\x63\x64\x65\x66\x67"
30879 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30880 "\x70\x71\x72\x73\x74\x75\x76\x77"
30881 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30882 "\x80\x81\x82\x83\x84\x85\x86\x87"
30883 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30884 "\x90\x91\x92\x93\x94\x95\x96\x97"
30885 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30886 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30887 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30888 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30889 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30890 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30891 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30892 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30893 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30894 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30895 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30896 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30897 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
30898 .ilen = 512,
30899 .result = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
30900 "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
30901 "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
30902 "\xf1\x74\xac\x96\x05\x7b\x32\xca"
30903 "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
30904 "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
30905 "\x97\x07\x82\xf0\x07\x12\x38\x0a"
30906 "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
30907 "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
30908 "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
30909 "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
30910 "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
30911 "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
30912 "\x41\x82\x0c\x45\x39\x35\xa8\x75"
30913 "\x03\x29\x01\x84\x8c\xab\x48\xbe"
30914 "\x11\x56\x22\x67\xb7\x67\x1a\x09"
30915 "\xa1\x72\x25\x41\x3c\x39\x65\x80"
30916 "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
30917 "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
30918 "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
30919 "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
30920 "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
30921 "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
30922 "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
30923 "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
30924 "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
30925 "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
30926 "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
30927 "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
30928 "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
30929 "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
30930 "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
30931 "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
30932 "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
30933 "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
30934 "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
30935 "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
30936 "\xef\x38\x52\x18\x0e\x29\x7e\xef"
30937 "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
30938 "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
30939 "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
30940 "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
30941 "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
30942 "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
30943 "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
30944 "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
30945 "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
30946 "\x21\x17\xf8\x59\x15\x24\x64\x22"
30947 "\x57\x48\x80\xd5\x3d\x92\x30\x07"
30948 "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
30949 "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
30950 "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
30951 "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
30952 "\x6b\x84\xf3\x00\xba\x52\x05\x02"
30953 "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
30954 "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
30955 "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
30956 "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
30957 "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
30958 "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
30959 "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
30960 "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
30961 "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
30962 "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
30963 .rlen = 512,
30964 .also_non_np = 1,
30965 .np = 3,
30966 .tap = { 512 - 20, 4, 16 },
30970 static struct cipher_testvec camellia_xts_dec_tv_template[] = {
30971 /* Generated from AES-XTS test vectors */
30972 /* same as enc vectors with input and result reversed */
30974 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
30975 "\x00\x00\x00\x00\x00\x00\x00\x00"
30976 "\x00\x00\x00\x00\x00\x00\x00\x00"
30977 "\x00\x00\x00\x00\x00\x00\x00\x00",
30978 .klen = 32,
30979 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30980 "\x00\x00\x00\x00\x00\x00\x00\x00",
30981 .input = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
30982 "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
30983 "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
30984 "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
30985 .ilen = 32,
30986 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
30987 "\x00\x00\x00\x00\x00\x00\x00\x00"
30988 "\x00\x00\x00\x00\x00\x00\x00\x00"
30989 "\x00\x00\x00\x00\x00\x00\x00\x00",
30990 .rlen = 32,
30991 }, {
30992 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
30993 "\x11\x11\x11\x11\x11\x11\x11\x11"
30994 "\x22\x22\x22\x22\x22\x22\x22\x22"
30995 "\x22\x22\x22\x22\x22\x22\x22\x22",
30996 .klen = 32,
30997 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
30998 "\x00\x00\x00\x00\x00\x00\x00\x00",
30999 .input = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
31000 "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
31001 "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
31002 "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
31003 .ilen = 32,
31004 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
31005 "\x44\x44\x44\x44\x44\x44\x44\x44"
31006 "\x44\x44\x44\x44\x44\x44\x44\x44"
31007 "\x44\x44\x44\x44\x44\x44\x44\x44",
31008 .rlen = 32,
31009 }, {
31010 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
31011 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
31012 "\x22\x22\x22\x22\x22\x22\x22\x22"
31013 "\x22\x22\x22\x22\x22\x22\x22\x22",
31014 .klen = 32,
31015 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
31016 "\x00\x00\x00\x00\x00\x00\x00\x00",
31017 .input = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
31018 "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
31019 "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
31020 "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
31021 .ilen = 32,
31022 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
31023 "\x44\x44\x44\x44\x44\x44\x44\x44"
31024 "\x44\x44\x44\x44\x44\x44\x44\x44"
31025 "\x44\x44\x44\x44\x44\x44\x44\x44",
31026 .rlen = 32,
31027 }, {
31028 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
31029 "\x23\x53\x60\x28\x74\x71\x35\x26"
31030 "\x31\x41\x59\x26\x53\x58\x97\x93"
31031 "\x23\x84\x62\x64\x33\x83\x27\x95",
31032 .klen = 32,
31033 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
31034 "\x00\x00\x00\x00\x00\x00\x00\x00",
31035 .input = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
31036 "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
31037 "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
31038 "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
31039 "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
31040 "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
31041 "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
31042 "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
31043 "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
31044 "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
31045 "\x08\xda\x76\x00\x65\xcf\x7b\x31"
31046 "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
31047 "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
31048 "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
31049 "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
31050 "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
31051 "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
31052 "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
31053 "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
31054 "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
31055 "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
31056 "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
31057 "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
31058 "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
31059 "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
31060 "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
31061 "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
31062 "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
31063 "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
31064 "\x16\x31\xb2\x47\x91\x67\xaa\x28"
31065 "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
31066 "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
31067 "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
31068 "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
31069 "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
31070 "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
31071 "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
31072 "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
31073 "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
31074 "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
31075 "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
31076 "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
31077 "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
31078 "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
31079 "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
31080 "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
31081 "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
31082 "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
31083 "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
31084 "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
31085 "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
31086 "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
31087 "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
31088 "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
31089 "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
31090 "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
31091 "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
31092 "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
31093 "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
31094 "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
31095 "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
31096 "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
31097 "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
31098 "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
31099 .ilen = 512,
31100 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
31101 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31102 "\x10\x11\x12\x13\x14\x15\x16\x17"
31103 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31104 "\x20\x21\x22\x23\x24\x25\x26\x27"
31105 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31106 "\x30\x31\x32\x33\x34\x35\x36\x37"
31107 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31108 "\x40\x41\x42\x43\x44\x45\x46\x47"
31109 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
31110 "\x50\x51\x52\x53\x54\x55\x56\x57"
31111 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
31112 "\x60\x61\x62\x63\x64\x65\x66\x67"
31113 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
31114 "\x70\x71\x72\x73\x74\x75\x76\x77"
31115 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
31116 "\x80\x81\x82\x83\x84\x85\x86\x87"
31117 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
31118 "\x90\x91\x92\x93\x94\x95\x96\x97"
31119 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
31120 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31121 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31122 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31123 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31124 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31125 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31126 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31127 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
31128 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
31129 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
31130 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
31131 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
31132 "\x00\x01\x02\x03\x04\x05\x06\x07"
31133 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31134 "\x10\x11\x12\x13\x14\x15\x16\x17"
31135 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31136 "\x20\x21\x22\x23\x24\x25\x26\x27"
31137 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31138 "\x30\x31\x32\x33\x34\x35\x36\x37"
31139 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31140 "\x40\x41\x42\x43\x44\x45\x46\x47"
31141 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
31142 "\x50\x51\x52\x53\x54\x55\x56\x57"
31143 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
31144 "\x60\x61\x62\x63\x64\x65\x66\x67"
31145 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
31146 "\x70\x71\x72\x73\x74\x75\x76\x77"
31147 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
31148 "\x80\x81\x82\x83\x84\x85\x86\x87"
31149 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
31150 "\x90\x91\x92\x93\x94\x95\x96\x97"
31151 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
31152 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31153 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31154 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31155 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31156 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31157 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31158 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31159 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
31160 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
31161 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
31162 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
31163 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
31164 .rlen = 512,
31165 }, {
31166 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
31167 "\x23\x53\x60\x28\x74\x71\x35\x26"
31168 "\x62\x49\x77\x57\x24\x70\x93\x69"
31169 "\x99\x59\x57\x49\x66\x96\x76\x27"
31170 "\x31\x41\x59\x26\x53\x58\x97\x93"
31171 "\x23\x84\x62\x64\x33\x83\x27\x95"
31172 "\x02\x88\x41\x97\x16\x93\x99\x37"
31173 "\x51\x05\x82\x09\x74\x94\x45\x92",
31174 .klen = 64,
31175 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
31176 "\x00\x00\x00\x00\x00\x00\x00\x00",
31177 .input = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
31178 "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
31179 "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
31180 "\xf1\x74\xac\x96\x05\x7b\x32\xca"
31181 "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
31182 "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
31183 "\x97\x07\x82\xf0\x07\x12\x38\x0a"
31184 "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
31185 "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
31186 "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
31187 "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
31188 "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
31189 "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
31190 "\x41\x82\x0c\x45\x39\x35\xa8\x75"
31191 "\x03\x29\x01\x84\x8c\xab\x48\xbe"
31192 "\x11\x56\x22\x67\xb7\x67\x1a\x09"
31193 "\xa1\x72\x25\x41\x3c\x39\x65\x80"
31194 "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
31195 "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
31196 "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
31197 "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
31198 "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
31199 "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
31200 "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
31201 "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
31202 "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
31203 "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
31204 "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
31205 "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
31206 "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
31207 "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
31208 "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
31209 "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
31210 "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
31211 "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
31212 "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
31213 "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
31214 "\xef\x38\x52\x18\x0e\x29\x7e\xef"
31215 "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
31216 "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
31217 "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
31218 "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
31219 "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
31220 "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
31221 "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
31222 "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
31223 "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
31224 "\x21\x17\xf8\x59\x15\x24\x64\x22"
31225 "\x57\x48\x80\xd5\x3d\x92\x30\x07"
31226 "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
31227 "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
31228 "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
31229 "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
31230 "\x6b\x84\xf3\x00\xba\x52\x05\x02"
31231 "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
31232 "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
31233 "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
31234 "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
31235 "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
31236 "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
31237 "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
31238 "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
31239 "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
31240 "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
31241 .ilen = 512,
31242 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
31243 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31244 "\x10\x11\x12\x13\x14\x15\x16\x17"
31245 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31246 "\x20\x21\x22\x23\x24\x25\x26\x27"
31247 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31248 "\x30\x31\x32\x33\x34\x35\x36\x37"
31249 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31250 "\x40\x41\x42\x43\x44\x45\x46\x47"
31251 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
31252 "\x50\x51\x52\x53\x54\x55\x56\x57"
31253 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
31254 "\x60\x61\x62\x63\x64\x65\x66\x67"
31255 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
31256 "\x70\x71\x72\x73\x74\x75\x76\x77"
31257 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
31258 "\x80\x81\x82\x83\x84\x85\x86\x87"
31259 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
31260 "\x90\x91\x92\x93\x94\x95\x96\x97"
31261 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
31262 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31263 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31264 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31265 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31266 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31267 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31268 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31269 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
31270 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
31271 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
31272 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
31273 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
31274 "\x00\x01\x02\x03\x04\x05\x06\x07"
31275 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31276 "\x10\x11\x12\x13\x14\x15\x16\x17"
31277 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31278 "\x20\x21\x22\x23\x24\x25\x26\x27"
31279 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31280 "\x30\x31\x32\x33\x34\x35\x36\x37"
31281 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31282 "\x40\x41\x42\x43\x44\x45\x46\x47"
31283 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
31284 "\x50\x51\x52\x53\x54\x55\x56\x57"
31285 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
31286 "\x60\x61\x62\x63\x64\x65\x66\x67"
31287 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
31288 "\x70\x71\x72\x73\x74\x75\x76\x77"
31289 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
31290 "\x80\x81\x82\x83\x84\x85\x86\x87"
31291 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
31292 "\x90\x91\x92\x93\x94\x95\x96\x97"
31293 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
31294 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31295 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31296 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31297 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31298 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31299 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31300 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31301 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
31302 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
31303 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
31304 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
31305 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
31306 .rlen = 512,
31307 .also_non_np = 1,
31308 .np = 3,
31309 .tap = { 512 - 20, 4, 16 },
31314 * SEED test vectors
31316 #define SEED_ENC_TEST_VECTORS 4
31317 #define SEED_DEC_TEST_VECTORS 4
31319 static struct cipher_testvec seed_enc_tv_template[] = {
31321 .key = zeroed_string,
31322 .klen = 16,
31323 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
31324 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
31325 .ilen = 16,
31326 .result = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
31327 "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
31328 .rlen = 16,
31329 }, {
31330 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
31331 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
31332 .klen = 16,
31333 .input = zeroed_string,
31334 .ilen = 16,
31335 .result = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
31336 "\x84\x48\x35\x97\xe4\x37\x0f\x43",
31337 .rlen = 16,
31338 }, {
31339 .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
31340 "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
31341 .klen = 16,
31342 .input = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
31343 "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
31344 .ilen = 16,
31345 .result = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
31346 "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
31347 .rlen = 16,
31348 }, {
31349 .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
31350 "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
31351 .klen = 16,
31352 .input = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
31353 "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
31354 .ilen = 16,
31355 .result = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
31356 "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
31357 .rlen = 16,
31361 static struct cipher_testvec seed_dec_tv_template[] = {
31363 .key = zeroed_string,
31364 .klen = 16,
31365 .input = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
31366 "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
31367 .ilen = 16,
31368 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
31369 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
31370 .rlen = 16,
31371 }, {
31372 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
31373 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
31374 .klen = 16,
31375 .input = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
31376 "\x84\x48\x35\x97\xe4\x37\x0f\x43",
31377 .ilen = 16,
31378 .result = zeroed_string,
31379 .rlen = 16,
31380 }, {
31381 .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
31382 "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
31383 .klen = 16,
31384 .input = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
31385 "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
31386 .ilen = 16,
31387 .result = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
31388 "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
31389 .rlen = 16,
31390 }, {
31391 .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
31392 "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
31393 .klen = 16,
31394 .input = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
31395 "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
31396 .ilen = 16,
31397 .result = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
31398 "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
31399 .rlen = 16,
31403 #define SALSA20_STREAM_ENC_TEST_VECTORS 5
31404 static struct cipher_testvec salsa20_stream_enc_tv_template[] = {
31406 * Testvectors from verified.test-vectors submitted to ECRYPT.
31407 * They are truncated to size 39, 64, 111, 129 to test a variety
31408 * of input length.
31410 { /* Set 3, vector 0 */
31411 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
31412 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
31413 .klen = 16,
31414 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
31415 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
31416 "\x00\x00\x00\x00\x00\x00\x00\x00"
31417 "\x00\x00\x00\x00\x00\x00\x00\x00"
31418 "\x00\x00\x00\x00\x00\x00\x00\x00"
31419 "\x00\x00\x00\x00\x00\x00\x00",
31420 .ilen = 39,
31421 .result = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
31422 "\x68\x02\x41\x0C\x68\x86\x88\x89"
31423 "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
31424 "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
31425 "\x58\x3F\x52\x79\x70\xEB\xC1",
31426 .rlen = 39,
31427 }, { /* Set 5, vector 0 */
31428 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
31429 "\x00\x00\x00\x00\x00\x00\x00\x00",
31430 .klen = 16,
31431 .iv = "\x80\x00\x00\x00\x00\x00\x00\x00",
31432 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
31433 "\x00\x00\x00\x00\x00\x00\x00\x00"
31434 "\x00\x00\x00\x00\x00\x00\x00\x00"
31435 "\x00\x00\x00\x00\x00\x00\x00\x00"
31436 "\x00\x00\x00\x00\x00\x00\x00\x00"
31437 "\x00\x00\x00\x00\x00\x00\x00\x00"
31438 "\x00\x00\x00\x00\x00\x00\x00\x00"
31439 "\x00\x00\x00\x00\x00\x00\x00\x00",
31440 .ilen = 64,
31441 .result = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
31442 "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
31443 "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
31444 "\x46\x26\xBF\x44\x3F\x21\x97\x76"
31445 "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
31446 "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
31447 "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
31448 "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
31449 .rlen = 64,
31450 }, { /* Set 3, vector 27 */
31451 .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
31452 "\x23\x24\x25\x26\x27\x28\x29\x2A"
31453 "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
31454 "\x33\x34\x35\x36\x37\x38\x39\x3A",
31455 .klen = 32,
31456 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
31457 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
31458 "\x00\x00\x00\x00\x00\x00\x00\x00"
31459 "\x00\x00\x00\x00\x00\x00\x00\x00"
31460 "\x00\x00\x00\x00\x00\x00\x00\x00"
31461 "\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\x00"
31466 "\x00\x00\x00\x00\x00\x00\x00\x00"
31467 "\x00\x00\x00\x00\x00\x00\x00\x00"
31468 "\x00\x00\x00\x00\x00\x00\x00\x00"
31469 "\x00\x00\x00\x00\x00\x00\x00\x00"
31470 "\x00\x00\x00\x00\x00\x00\x00",
31471 .ilen = 111,
31472 .result = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
31473 "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
31474 "\x87\xD9\x47\xF8\x28\x91\x35\x98"
31475 "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
31476 "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
31477 "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
31478 "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
31479 "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
31480 "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
31481 "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
31482 "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
31483 "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
31484 "\x95\x46\x45\x54\xE9\x75\x03\x08"
31485 "\x44\xAF\xE5\x8A\x81\x12\x09",
31486 .rlen = 111,
31487 }, { /* Set 5, vector 27 */
31488 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
31489 "\x00\x00\x00\x00\x00\x00\x00\x00"
31490 "\x00\x00\x00\x00\x00\x00\x00\x00"
31491 "\x00\x00\x00\x00\x00\x00\x00\x00",
31492 .klen = 32,
31493 .iv = "\x00\x00\x00\x10\x00\x00\x00\x00",
31494 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
31495 "\x00\x00\x00\x00\x00\x00\x00\x00"
31496 "\x00\x00\x00\x00\x00\x00\x00\x00"
31497 "\x00\x00\x00\x00\x00\x00\x00\x00"
31498 "\x00\x00\x00\x00\x00\x00\x00\x00"
31499 "\x00\x00\x00\x00\x00\x00\x00\x00"
31500 "\x00\x00\x00\x00\x00\x00\x00\x00"
31501 "\x00\x00\x00\x00\x00\x00\x00\x00"
31502 "\x00\x00\x00\x00\x00\x00\x00\x00"
31503 "\x00\x00\x00\x00\x00\x00\x00\x00"
31504 "\x00\x00\x00\x00\x00\x00\x00\x00"
31505 "\x00\x00\x00\x00\x00\x00\x00\x00"
31506 "\x00\x00\x00\x00\x00\x00\x00\x00"
31507 "\x00\x00\x00\x00\x00\x00\x00\x00"
31508 "\x00\x00\x00\x00\x00\x00\x00\x00"
31509 "\x00\x00\x00\x00\x00\x00\x00\x00"
31510 "\x00",
31511 .ilen = 129,
31512 .result = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
31513 "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
31514 "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
31515 "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
31516 "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
31517 "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
31518 "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
31519 "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
31520 "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
31521 "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
31522 "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
31523 "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
31524 "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
31525 "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
31526 "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
31527 "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
31528 "\x5A",
31529 .rlen = 129,
31530 }, { /* large test vector generated using Crypto++ */
31531 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
31532 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31533 "\x10\x11\x12\x13\x14\x15\x16\x17"
31534 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
31535 .klen = 32,
31536 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
31537 "\x00\x00\x00\x00\x00\x00\x00\x00",
31538 .input =
31539 "\x00\x01\x02\x03\x04\x05\x06\x07"
31540 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31541 "\x10\x11\x12\x13\x14\x15\x16\x17"
31542 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31543 "\x20\x21\x22\x23\x24\x25\x26\x27"
31544 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31545 "\x30\x31\x32\x33\x34\x35\x36\x37"
31546 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31547 "\x40\x41\x42\x43\x44\x45\x46\x47"
31548 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
31549 "\x50\x51\x52\x53\x54\x55\x56\x57"
31550 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
31551 "\x60\x61\x62\x63\x64\x65\x66\x67"
31552 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
31553 "\x70\x71\x72\x73\x74\x75\x76\x77"
31554 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
31555 "\x80\x81\x82\x83\x84\x85\x86\x87"
31556 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
31557 "\x90\x91\x92\x93\x94\x95\x96\x97"
31558 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
31559 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31560 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31561 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31562 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31563 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31564 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31565 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31566 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
31567 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
31568 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
31569 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
31570 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
31571 "\x00\x03\x06\x09\x0c\x0f\x12\x15"
31572 "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
31573 "\x30\x33\x36\x39\x3c\x3f\x42\x45"
31574 "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
31575 "\x60\x63\x66\x69\x6c\x6f\x72\x75"
31576 "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
31577 "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
31578 "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
31579 "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
31580 "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
31581 "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
31582 "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
31583 "\x20\x23\x26\x29\x2c\x2f\x32\x35"
31584 "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
31585 "\x50\x53\x56\x59\x5c\x5f\x62\x65"
31586 "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
31587 "\x80\x83\x86\x89\x8c\x8f\x92\x95"
31588 "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
31589 "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
31590 "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
31591 "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
31592 "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
31593 "\x10\x13\x16\x19\x1c\x1f\x22\x25"
31594 "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
31595 "\x40\x43\x46\x49\x4c\x4f\x52\x55"
31596 "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
31597 "\x70\x73\x76\x79\x7c\x7f\x82\x85"
31598 "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
31599 "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
31600 "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
31601 "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
31602 "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
31603 "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
31604 "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
31605 "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
31606 "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
31607 "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
31608 "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
31609 "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
31610 "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
31611 "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
31612 "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
31613 "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
31614 "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
31615 "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
31616 "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
31617 "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
31618 "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
31619 "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
31620 "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
31621 "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
31622 "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
31623 "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
31624 "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
31625 "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
31626 "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
31627 "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
31628 "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
31629 "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
31630 "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
31631 "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
31632 "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
31633 "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
31634 "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
31635 "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
31636 "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
31637 "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
31638 "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
31639 "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
31640 "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
31641 "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
31642 "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
31643 "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
31644 "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
31645 "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
31646 "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
31647 "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
31648 "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
31649 "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
31650 "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
31651 "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
31652 "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
31653 "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
31654 "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
31655 "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
31656 "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
31657 "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
31658 "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
31659 "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
31660 "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
31661 "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
31662 "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
31663 "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
31664 "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
31665 "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
31666 "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
31667 "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
31668 "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
31669 "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
31670 "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
31671 "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
31672 "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
31673 "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
31674 "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
31675 "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
31676 "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
31677 "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
31678 "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
31679 "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
31680 "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
31681 "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
31682 "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
31683 "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
31684 "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
31685 "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
31686 "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
31687 "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
31688 "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
31689 "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
31690 "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
31691 "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
31692 "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
31693 "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
31694 "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
31695 "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
31696 "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
31697 "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
31698 "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
31699 "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
31700 "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
31701 "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
31702 "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
31703 "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
31704 "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
31705 "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
31706 "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
31707 "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
31708 "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
31709 "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
31710 "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
31711 "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
31712 "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
31713 "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
31714 "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
31715 "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
31716 "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
31717 "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
31718 "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
31719 "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
31720 "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
31721 "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
31722 "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
31723 "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
31724 "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
31725 "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
31726 "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
31727 "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
31728 "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
31729 "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
31730 "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
31731 "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
31732 "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
31733 "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
31734 "\x38\x45\x52\x5f\x6c\x79\x86\x93"
31735 "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
31736 "\x08\x15\x22\x2f\x3c\x49\x56\x63"
31737 "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
31738 "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
31739 "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
31740 "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
31741 "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
31742 "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
31743 "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
31744 "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
31745 "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
31746 "\x18\x25\x32\x3f\x4c\x59\x66\x73"
31747 "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
31748 "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
31749 "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
31750 "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
31751 "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
31752 "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
31753 "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
31754 "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
31755 "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
31756 "\x28\x35\x42\x4f\x5c\x69\x76\x83"
31757 "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
31758 "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
31759 "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
31760 "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
31761 "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
31762 "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
31763 "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
31764 "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
31765 "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
31766 "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
31767 "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
31768 "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
31769 "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
31770 "\x48\x57\x66\x75\x84\x93\xa2\xb1"
31771 "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
31772 "\x38\x47\x56\x65\x74\x83\x92\xa1"
31773 "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
31774 "\x28\x37\x46\x55\x64\x73\x82\x91"
31775 "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
31776 "\x18\x27\x36\x45\x54\x63\x72\x81"
31777 "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
31778 "\x08\x17\x26\x35\x44\x53\x62\x71"
31779 "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
31780 "\xf8\x07\x16\x25\x34\x43\x52\x61"
31781 "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
31782 "\xe8\xf7\x06\x15\x24\x33\x42\x51"
31783 "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
31784 "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
31785 "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
31786 "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
31787 "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
31788 "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
31789 "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
31790 "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
31791 "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
31792 "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
31793 "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
31794 "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
31795 "\x00\x11\x22\x33\x44\x55\x66\x77"
31796 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
31797 "\x10\x21\x32\x43\x54\x65\x76\x87"
31798 "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
31799 "\x20\x31\x42\x53\x64\x75\x86\x97"
31800 "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
31801 "\x30\x41\x52\x63\x74\x85\x96\xa7"
31802 "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
31803 "\x40\x51\x62\x73\x84\x95\xa6\xb7"
31804 "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
31805 "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
31806 "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
31807 "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
31808 "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
31809 "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
31810 "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
31811 "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
31812 "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
31813 "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
31814 "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
31815 "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
31816 "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
31817 "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
31818 "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
31819 "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
31820 "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
31821 "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
31822 "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
31823 "\xe0\xf1\x02\x13\x24\x35\x46\x57"
31824 "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
31825 "\xf0\x01\x12\x23\x34\x45\x56\x67"
31826 "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
31827 "\x00\x13\x26\x39\x4c\x5f\x72\x85"
31828 "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
31829 "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
31830 "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
31831 "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
31832 "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
31833 "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
31834 "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
31835 "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
31836 "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
31837 "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
31838 "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
31839 "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
31840 "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
31841 "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
31842 "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
31843 "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
31844 "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
31845 "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
31846 "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
31847 "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
31848 "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
31849 "\x10\x23\x36\x49\x5c\x6f\x82\x95"
31850 "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
31851 "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
31852 "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
31853 "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
31854 "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
31855 "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
31856 "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
31857 "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
31858 "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
31859 "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
31860 "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
31861 "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
31862 "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
31863 "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
31864 "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
31865 "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
31866 "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
31867 "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
31868 "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
31869 "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
31870 "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
31871 "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
31872 "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
31873 "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
31874 "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
31875 "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
31876 "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
31877 "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
31878 "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
31879 "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
31880 "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
31881 "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
31882 "\x18\x2d\x42\x57\x6c\x81\x96\xab"
31883 "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
31884 "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
31885 "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
31886 "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
31887 "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
31888 "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
31889 "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
31890 "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
31891 "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
31892 "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
31893 "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
31894 "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
31895 "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
31896 "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
31897 "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
31898 "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
31899 "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
31900 "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
31901 "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
31902 "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
31903 "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
31904 "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
31905 "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
31906 "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
31907 "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
31908 "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
31909 "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
31910 "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
31911 "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
31912 "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
31913 "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
31914 "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
31915 "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
31916 "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
31917 "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
31918 "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
31919 "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
31920 "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
31921 "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
31922 "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
31923 "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
31924 "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
31925 "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
31926 "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
31927 "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
31928 "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
31929 "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
31930 "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
31931 "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
31932 "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
31933 "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
31934 "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
31935 "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
31936 "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
31937 "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
31938 "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
31939 "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
31940 "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
31941 "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
31942 "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
31943 "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
31944 "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
31945 "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
31946 "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
31947 "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
31948 "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
31949 "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
31950 "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
31951 "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
31952 "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
31953 "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
31954 "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
31955 "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
31956 "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
31957 "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
31958 "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
31959 "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
31960 "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
31961 "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
31962 "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
31963 "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
31964 "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
31965 "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
31966 "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
31967 "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
31968 "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
31969 "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
31970 "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
31971 "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
31972 "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
31973 "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
31974 "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
31975 "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
31976 "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
31977 "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
31978 "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
31979 "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
31980 "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
31981 "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
31982 "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
31983 "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
31984 "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
31985 "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
31986 "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
31987 "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
31988 "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
31989 "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
31990 "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
31991 "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
31992 "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
31993 "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
31994 "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
31995 "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
31996 "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
31997 "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
31998 "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
31999 "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
32000 "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
32001 "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
32002 "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
32003 "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
32004 "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
32005 "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
32006 "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
32007 "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
32008 "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
32009 "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
32010 "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
32011 "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
32012 "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
32013 "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
32014 "\x78\x95\xb2\xcf\xec\x09\x26\x43"
32015 "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
32016 "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
32017 "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
32018 "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
32019 "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
32020 "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
32021 "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
32022 "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
32023 "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
32024 "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
32025 "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
32026 "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
32027 "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
32028 "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
32029 "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
32030 "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
32031 "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
32032 "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
32033 "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
32034 "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
32035 "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
32036 "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
32037 "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
32038 "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
32039 "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
32040 "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
32041 "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
32042 "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
32043 "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
32044 "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
32045 "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
32046 "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
32047 "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
32048 "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
32049 "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
32050 "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
32051 "\x00\x21\x42\x63",
32052 .ilen = 4100,
32053 .result =
32054 "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
32055 "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
32056 "\x29\x01\xce\x98\x55\x53\xf9\x0c"
32057 "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
32058 "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
32059 "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
32060 "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
32061 "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
32062 "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
32063 "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
32064 "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
32065 "\xbb\xde\x56\x86\xab\x65\x21\x30"
32066 "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
32067 "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
32068 "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
32069 "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
32070 "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
32071 "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
32072 "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
32073 "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
32074 "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
32075 "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
32076 "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
32077 "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
32078 "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
32079 "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
32080 "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
32081 "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
32082 "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
32083 "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
32084 "\x45\xff\x3f\xce\x55\xf6\x95\x10"
32085 "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
32086 "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
32087 "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
32088 "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
32089 "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
32090 "\x62\x08\x18\x7a\x25\x49\x28\xac"
32091 "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
32092 "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
32093 "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
32094 "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
32095 "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
32096 "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
32097 "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
32098 "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
32099 "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
32100 "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
32101 "\x33\xee\x14\x19\x22\x52\x89\xa7"
32102 "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
32103 "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
32104 "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
32105 "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
32106 "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
32107 "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
32108 "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
32109 "\x04\x07\x08\x52\xe6\xc0\xda\x93"
32110 "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
32111 "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
32112 "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
32113 "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
32114 "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
32115 "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
32116 "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
32117 "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
32118 "\x5a\x90\xae\x75\x0a\x74\x18\x89"
32119 "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
32120 "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
32121 "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
32122 "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
32123 "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
32124 "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
32125 "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
32126 "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
32127 "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
32128 "\x49\x97\x33\xab\x36\x14\x0a\x70"
32129 "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
32130 "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
32131 "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
32132 "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
32133 "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
32134 "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
32135 "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
32136 "\x47\x13\x28\x73\x3c\xbb\x00\x90"
32137 "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
32138 "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
32139 "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
32140 "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
32141 "\xad\x04\x07\xae\x22\x90\x4a\x93"
32142 "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
32143 "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
32144 "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
32145 "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
32146 "\x53\xf9\x80\x10\xde\x80\xa2\x41"
32147 "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
32148 "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
32149 "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
32150 "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
32151 "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
32152 "\xde\xff\x07\x44\xdd\x56\x1b\xad"
32153 "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
32154 "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
32155 "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
32156 "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
32157 "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
32158 "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
32159 "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
32160 "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
32161 "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
32162 "\x23\xf8\x66\x18\x14\x28\x34\x0f"
32163 "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
32164 "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
32165 "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
32166 "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
32167 "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
32168 "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
32169 "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
32170 "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
32171 "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
32172 "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
32173 "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
32174 "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
32175 "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
32176 "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
32177 "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
32178 "\xca\x8e\x61\x87\xde\xad\x80\xd2"
32179 "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
32180 "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
32181 "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
32182 "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
32183 "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
32184 "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
32185 "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
32186 "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
32187 "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
32188 "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
32189 "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
32190 "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
32191 "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
32192 "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
32193 "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
32194 "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
32195 "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
32196 "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
32197 "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
32198 "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
32199 "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
32200 "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
32201 "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
32202 "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
32203 "\x54\xda\x24\x6a\xc4\x41\x65\x46"
32204 "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
32205 "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
32206 "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
32207 "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
32208 "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
32209 "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
32210 "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
32211 "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
32212 "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
32213 "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
32214 "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
32215 "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
32216 "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
32217 "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
32218 "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
32219 "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
32220 "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
32221 "\xef\xcc\xa7\xec\xab\x43\x09\x18"
32222 "\xd3\xab\x68\xd1\x07\x99\x44\x47"
32223 "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
32224 "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
32225 "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
32226 "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
32227 "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
32228 "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
32229 "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
32230 "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
32231 "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
32232 "\x71\x6e\x9f\x58\x15\x67\x72\x87"
32233 "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
32234 "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
32235 "\xba\x41\x54\xac\xf0\xfc\x59\x12"
32236 "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
32237 "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
32238 "\x2e\x53\x49\x97\x94\x33\xae\x40"
32239 "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
32240 "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
32241 "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
32242 "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
32243 "\xce\x87\xad\xcc\x72\x05\x00\x29"
32244 "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
32245 "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
32246 "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
32247 "\xac\xc0\x79\x50\x69\xca\x59\x32"
32248 "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
32249 "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
32250 "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
32251 "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
32252 "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
32253 "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
32254 "\x05\x68\x6b\xab\xe3\x41\x49\xed"
32255 "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
32256 "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
32257 "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
32258 "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
32259 "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
32260 "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
32261 "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
32262 "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
32263 "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
32264 "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
32265 "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
32266 "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
32267 "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
32268 "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
32269 "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
32270 "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
32271 "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
32272 "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
32273 "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
32274 "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
32275 "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
32276 "\x85\x75\xe6\x43\xf6\x87\x08\x68"
32277 "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
32278 "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
32279 "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
32280 "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
32281 "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
32282 "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
32283 "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
32284 "\xaf\x55\xeb\x22\xac\x93\x68\x32"
32285 "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
32286 "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
32287 "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
32288 "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
32289 "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
32290 "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
32291 "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
32292 "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
32293 "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
32294 "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
32295 "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
32296 "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
32297 "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
32298 "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
32299 "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
32300 "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
32301 "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
32302 "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
32303 "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
32304 "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
32305 "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
32306 "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
32307 "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
32308 "\x38\x55\xab\x33\x26\xef\x9f\x43"
32309 "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
32310 "\x58\x09\x09\x1b\xc3\x65\x46\x46"
32311 "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
32312 "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
32313 "\x63\x86\xf2\x03\x67\x45\xd2\x72"
32314 "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
32315 "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
32316 "\x2b\x82\x39\xbd\x69\x54\xed\x62"
32317 "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
32318 "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
32319 "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
32320 "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
32321 "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
32322 "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
32323 "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
32324 "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
32325 "\x55\xad\xa4\xd1\x22\x54\x70\x94"
32326 "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
32327 "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
32328 "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
32329 "\x62\x36\x43\xb2\x82\x15\x75\x50"
32330 "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
32331 "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
32332 "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
32333 "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
32334 "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
32335 "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
32336 "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
32337 "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
32338 "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
32339 "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
32340 "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
32341 "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
32342 "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
32343 "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
32344 "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
32345 "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
32346 "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
32347 "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
32348 "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
32349 "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
32350 "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
32351 "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
32352 "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
32353 "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
32354 "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
32355 "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
32356 "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
32357 "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
32358 "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
32359 "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
32360 "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
32361 "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
32362 "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
32363 "\x42\x19\x23\x7d\xc8\x73\xee\x25"
32364 "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
32365 "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
32366 "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
32367 "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
32368 "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
32369 "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
32370 "\xdb\x87\xee\xef\x55\x89\x2a\x59"
32371 "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
32372 "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
32373 "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
32374 "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
32375 "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
32376 "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
32377 "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
32378 "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
32379 "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
32380 "\xae\xab\x86\x09\x89\xc9\xc2\x40"
32381 "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
32382 "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
32383 "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
32384 "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
32385 "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
32386 "\x95\xd9\x34\x34\x86\xc6\x41\x94"
32387 "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
32388 "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
32389 "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
32390 "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
32391 "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
32392 "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
32393 "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
32394 "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
32395 "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
32396 "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
32397 "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
32398 "\xa7\x33\x34\x86\xca\xe4\x96\x23"
32399 "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
32400 "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
32401 "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
32402 "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
32403 "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
32404 "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
32405 "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
32406 "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
32407 "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
32408 "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
32409 "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
32410 "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
32411 "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
32412 "\x68\xc8\x7f\x51\x22\x42\xef\x49"
32413 "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
32414 "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
32415 "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
32416 "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
32417 "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
32418 "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
32419 "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
32420 "\x73\x2e\x71\x79\x16\x06\x63\x28"
32421 "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
32422 "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
32423 "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
32424 "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
32425 "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
32426 "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
32427 "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
32428 "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
32429 "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
32430 "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
32431 "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
32432 "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
32433 "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
32434 "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
32435 "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
32436 "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
32437 "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
32438 "\x19\x07\xaf\x90\x62\x5c\x68\x98"
32439 "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
32440 "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
32441 "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
32442 "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
32443 "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
32444 "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
32445 "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
32446 "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
32447 "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
32448 "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
32449 "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
32450 "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
32451 "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
32452 "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
32453 "\x21\x33\x44\xfe\x7f\x35\x32\x93"
32454 "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
32455 "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
32456 "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
32457 "\x64\xf0\x48\xe5\x57\x99\xee\x75"
32458 "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
32459 "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
32460 "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
32461 "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
32462 "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
32463 "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
32464 "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
32465 "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
32466 "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
32467 "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
32468 "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
32469 "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
32470 "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
32471 "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
32472 "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
32473 "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
32474 "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
32475 "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
32476 "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
32477 "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
32478 "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
32479 "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
32480 "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
32481 "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
32482 "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
32483 "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
32484 "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
32485 "\x56\xf5\x4e\x01\x35\x27\x45\x77"
32486 "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
32487 "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
32488 "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
32489 "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
32490 "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
32491 "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
32492 "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
32493 "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
32494 "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
32495 "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
32496 "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
32497 "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
32498 "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
32499 "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
32500 "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
32501 "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
32502 "\x87\x8f\x03\x21\x28\x95\x0c\x89"
32503 "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
32504 "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
32505 "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
32506 "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
32507 "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
32508 "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
32509 "\x85\x73\x78\x45\x20\x7f\xae\x13"
32510 "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
32511 "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
32512 "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
32513 "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
32514 "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
32515 "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
32516 "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
32517 "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
32518 "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
32519 "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
32520 "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
32521 "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
32522 "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
32523 "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
32524 "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
32525 "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
32526 "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
32527 "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
32528 "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
32529 "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
32530 "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
32531 "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
32532 "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
32533 "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
32534 "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
32535 "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
32536 "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
32537 "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
32538 "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
32539 "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
32540 "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
32541 "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
32542 "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
32543 "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
32544 "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
32545 "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
32546 "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
32547 "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
32548 "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
32549 "\x6e\x12\x17\x72\x63\x57\xc7\xba"
32550 "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
32551 "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
32552 "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
32553 "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
32554 "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
32555 "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
32556 "\x0c\x24\x43\x31\x40\x57\xf1\x72"
32557 "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
32558 "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
32559 "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
32560 "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
32561 "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
32562 "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
32563 "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
32564 "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
32565 "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
32566 "\xaf\xdf\x11\x95",
32567 .rlen = 4100,
32568 .np = 2,
32569 .tap = { 4064, 36 },
32573 #define CHACHA20_ENC_TEST_VECTORS 4
32574 static struct cipher_testvec chacha20_enc_tv_template[] = {
32575 { /* RFC7539 A.2. Test Vector #1 */
32576 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
32577 "\x00\x00\x00\x00\x00\x00\x00\x00"
32578 "\x00\x00\x00\x00\x00\x00\x00\x00"
32579 "\x00\x00\x00\x00\x00\x00\x00\x00",
32580 .klen = 32,
32581 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
32582 "\x00\x00\x00\x00\x00\x00\x00\x00",
32583 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
32584 "\x00\x00\x00\x00\x00\x00\x00\x00"
32585 "\x00\x00\x00\x00\x00\x00\x00\x00"
32586 "\x00\x00\x00\x00\x00\x00\x00\x00"
32587 "\x00\x00\x00\x00\x00\x00\x00\x00"
32588 "\x00\x00\x00\x00\x00\x00\x00\x00"
32589 "\x00\x00\x00\x00\x00\x00\x00\x00"
32590 "\x00\x00\x00\x00\x00\x00\x00\x00",
32591 .ilen = 64,
32592 .result = "\x76\xb8\xe0\xad\xa0\xf1\x3d\x90"
32593 "\x40\x5d\x6a\xe5\x53\x86\xbd\x28"
32594 "\xbd\xd2\x19\xb8\xa0\x8d\xed\x1a"
32595 "\xa8\x36\xef\xcc\x8b\x77\x0d\xc7"
32596 "\xda\x41\x59\x7c\x51\x57\x48\x8d"
32597 "\x77\x24\xe0\x3f\xb8\xd8\x4a\x37"
32598 "\x6a\x43\xb8\xf4\x15\x18\xa1\x1c"
32599 "\xc3\x87\xb6\x69\xb2\xee\x65\x86",
32600 .rlen = 64,
32601 }, { /* RFC7539 A.2. Test Vector #2 */
32602 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
32603 "\x00\x00\x00\x00\x00\x00\x00\x00"
32604 "\x00\x00\x00\x00\x00\x00\x00\x00"
32605 "\x00\x00\x00\x00\x00\x00\x00\x01",
32606 .klen = 32,
32607 .iv = "\x01\x00\x00\x00\x00\x00\x00\x00"
32608 "\x00\x00\x00\x00\x00\x00\x00\x02",
32609 .input = "\x41\x6e\x79\x20\x73\x75\x62\x6d"
32610 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
32611 "\x6f\x20\x74\x68\x65\x20\x49\x45"
32612 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
32613 "\x64\x65\x64\x20\x62\x79\x20\x74"
32614 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
32615 "\x69\x62\x75\x74\x6f\x72\x20\x66"
32616 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
32617 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
32618 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
32619 "\x20\x70\x61\x72\x74\x20\x6f\x66"
32620 "\x20\x61\x6e\x20\x49\x45\x54\x46"
32621 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
32622 "\x74\x2d\x44\x72\x61\x66\x74\x20"
32623 "\x6f\x72\x20\x52\x46\x43\x20\x61"
32624 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
32625 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
32626 "\x20\x6d\x61\x64\x65\x20\x77\x69"
32627 "\x74\x68\x69\x6e\x20\x74\x68\x65"
32628 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
32629 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
32630 "\x45\x54\x46\x20\x61\x63\x74\x69"
32631 "\x76\x69\x74\x79\x20\x69\x73\x20"
32632 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
32633 "\x65\x64\x20\x61\x6e\x20\x22\x49"
32634 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
32635 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
32636 "\x22\x2e\x20\x53\x75\x63\x68\x20"
32637 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
32638 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
32639 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
32640 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
32641 "\x74\x73\x20\x69\x6e\x20\x49\x45"
32642 "\x54\x46\x20\x73\x65\x73\x73\x69"
32643 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
32644 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
32645 "\x77\x72\x69\x74\x74\x65\x6e\x20"
32646 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
32647 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
32648 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
32649 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
32650 "\x64\x65\x20\x61\x74\x20\x61\x6e"
32651 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
32652 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
32653 "\x20\x77\x68\x69\x63\x68\x20\x61"
32654 "\x72\x65\x20\x61\x64\x64\x72\x65"
32655 "\x73\x73\x65\x64\x20\x74\x6f",
32656 .ilen = 375,
32657 .result = "\xa3\xfb\xf0\x7d\xf3\xfa\x2f\xde"
32658 "\x4f\x37\x6c\xa2\x3e\x82\x73\x70"
32659 "\x41\x60\x5d\x9f\x4f\x4f\x57\xbd"
32660 "\x8c\xff\x2c\x1d\x4b\x79\x55\xec"
32661 "\x2a\x97\x94\x8b\xd3\x72\x29\x15"
32662 "\xc8\xf3\xd3\x37\xf7\xd3\x70\x05"
32663 "\x0e\x9e\x96\xd6\x47\xb7\xc3\x9f"
32664 "\x56\xe0\x31\xca\x5e\xb6\x25\x0d"
32665 "\x40\x42\xe0\x27\x85\xec\xec\xfa"
32666 "\x4b\x4b\xb5\xe8\xea\xd0\x44\x0e"
32667 "\x20\xb6\xe8\xdb\x09\xd8\x81\xa7"
32668 "\xc6\x13\x2f\x42\x0e\x52\x79\x50"
32669 "\x42\xbd\xfa\x77\x73\xd8\xa9\x05"
32670 "\x14\x47\xb3\x29\x1c\xe1\x41\x1c"
32671 "\x68\x04\x65\x55\x2a\xa6\xc4\x05"
32672 "\xb7\x76\x4d\x5e\x87\xbe\xa8\x5a"
32673 "\xd0\x0f\x84\x49\xed\x8f\x72\xd0"
32674 "\xd6\x62\xab\x05\x26\x91\xca\x66"
32675 "\x42\x4b\xc8\x6d\x2d\xf8\x0e\xa4"
32676 "\x1f\x43\xab\xf9\x37\xd3\x25\x9d"
32677 "\xc4\xb2\xd0\xdf\xb4\x8a\x6c\x91"
32678 "\x39\xdd\xd7\xf7\x69\x66\xe9\x28"
32679 "\xe6\x35\x55\x3b\xa7\x6c\x5c\x87"
32680 "\x9d\x7b\x35\xd4\x9e\xb2\xe6\x2b"
32681 "\x08\x71\xcd\xac\x63\x89\x39\xe2"
32682 "\x5e\x8a\x1e\x0e\xf9\xd5\x28\x0f"
32683 "\xa8\xca\x32\x8b\x35\x1c\x3c\x76"
32684 "\x59\x89\xcb\xcf\x3d\xaa\x8b\x6c"
32685 "\xcc\x3a\xaf\x9f\x39\x79\xc9\x2b"
32686 "\x37\x20\xfc\x88\xdc\x95\xed\x84"
32687 "\xa1\xbe\x05\x9c\x64\x99\xb9\xfd"
32688 "\xa2\x36\xe7\xe8\x18\xb0\x4b\x0b"
32689 "\xc3\x9c\x1e\x87\x6b\x19\x3b\xfe"
32690 "\x55\x69\x75\x3f\x88\x12\x8c\xc0"
32691 "\x8a\xaa\x9b\x63\xd1\xa1\x6f\x80"
32692 "\xef\x25\x54\xd7\x18\x9c\x41\x1f"
32693 "\x58\x69\xca\x52\xc5\xb8\x3f\xa3"
32694 "\x6f\xf2\x16\xb9\xc1\xd3\x00\x62"
32695 "\xbe\xbc\xfd\x2d\xc5\xbc\xe0\x91"
32696 "\x19\x34\xfd\xa7\x9a\x86\xf6\xe6"
32697 "\x98\xce\xd7\x59\xc3\xff\x9b\x64"
32698 "\x77\x33\x8f\x3d\xa4\xf9\xcd\x85"
32699 "\x14\xea\x99\x82\xcc\xaf\xb3\x41"
32700 "\xb2\x38\x4d\xd9\x02\xf3\xd1\xab"
32701 "\x7a\xc6\x1d\xd2\x9c\x6f\x21\xba"
32702 "\x5b\x86\x2f\x37\x30\xe3\x7c\xfd"
32703 "\xc4\xfd\x80\x6c\x22\xf2\x21",
32704 .rlen = 375,
32705 }, { /* RFC7539 A.2. Test Vector #3 */
32706 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
32707 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
32708 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
32709 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
32710 .klen = 32,
32711 .iv = "\x2a\x00\x00\x00\x00\x00\x00\x00"
32712 "\x00\x00\x00\x00\x00\x00\x00\x02",
32713 .input = "\x27\x54\x77\x61\x73\x20\x62\x72"
32714 "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
32715 "\x6e\x64\x20\x74\x68\x65\x20\x73"
32716 "\x6c\x69\x74\x68\x79\x20\x74\x6f"
32717 "\x76\x65\x73\x0a\x44\x69\x64\x20"
32718 "\x67\x79\x72\x65\x20\x61\x6e\x64"
32719 "\x20\x67\x69\x6d\x62\x6c\x65\x20"
32720 "\x69\x6e\x20\x74\x68\x65\x20\x77"
32721 "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
32722 "\x20\x6d\x69\x6d\x73\x79\x20\x77"
32723 "\x65\x72\x65\x20\x74\x68\x65\x20"
32724 "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
32725 "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
32726 "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
32727 "\x72\x61\x74\x68\x73\x20\x6f\x75"
32728 "\x74\x67\x72\x61\x62\x65\x2e",
32729 .ilen = 127,
32730 .result = "\x62\xe6\x34\x7f\x95\xed\x87\xa4"
32731 "\x5f\xfa\xe7\x42\x6f\x27\xa1\xdf"
32732 "\x5f\xb6\x91\x10\x04\x4c\x0d\x73"
32733 "\x11\x8e\xff\xa9\x5b\x01\xe5\xcf"
32734 "\x16\x6d\x3d\xf2\xd7\x21\xca\xf9"
32735 "\xb2\x1e\x5f\xb1\x4c\x61\x68\x71"
32736 "\xfd\x84\xc5\x4f\x9d\x65\xb2\x83"
32737 "\x19\x6c\x7f\xe4\xf6\x05\x53\xeb"
32738 "\xf3\x9c\x64\x02\xc4\x22\x34\xe3"
32739 "\x2a\x35\x6b\x3e\x76\x43\x12\xa6"
32740 "\x1a\x55\x32\x05\x57\x16\xea\xd6"
32741 "\x96\x25\x68\xf8\x7d\x3f\x3f\x77"
32742 "\x04\xc6\xa8\xd1\xbc\xd1\xbf\x4d"
32743 "\x50\xd6\x15\x4b\x6d\xa7\x31\xb1"
32744 "\x87\xb5\x8d\xfd\x72\x8a\xfa\x36"
32745 "\x75\x7a\x79\x7a\xc1\x88\xd1",
32746 .rlen = 127,
32747 }, { /* Self-made test vector for long data */
32748 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
32749 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
32750 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
32751 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
32752 .klen = 32,
32753 .iv = "\x1c\x00\x00\x00\x00\x00\x00\x00"
32754 "\x00\x00\x00\x00\x00\x00\x00\x01",
32755 .input = "\x49\xee\xe0\xdc\x24\x90\x40\xcd"
32756 "\xc5\x40\x8f\x47\x05\xbc\xdd\x81"
32757 "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb"
32758 "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8"
32759 "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4"
32760 "\x19\x4b\x01\x0f\x4e\xa4\x43\xce"
32761 "\x01\xc6\x67\xda\x03\x91\x18\x90"
32762 "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac"
32763 "\x74\x92\xd3\x53\x47\xc8\xdd\x25"
32764 "\x53\x6c\x02\x03\x87\x0d\x11\x0c"
32765 "\x58\xe3\x12\x18\xfd\x2a\x5b\x40"
32766 "\x0c\x30\xf0\xb8\x3f\x43\xce\xae"
32767 "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc"
32768 "\x33\x97\xc3\x77\xba\xc5\x70\xde"
32769 "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f"
32770 "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c"
32771 "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c"
32772 "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe"
32773 "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6"
32774 "\x79\x49\x41\xf4\x58\x18\xcb\x86"
32775 "\x7f\x30\x0e\xf8\x7d\x44\x36\xea"
32776 "\x75\xeb\x88\x84\x40\x3c\xad\x4f"
32777 "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5"
32778 "\x21\x66\xe9\xa7\xe3\xb2\x15\x88"
32779 "\x78\xf6\x79\xa1\x59\x47\x12\x4e"
32780 "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08"
32781 "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b"
32782 "\xdd\x60\x71\xf7\x47\x8c\x61\xc3"
32783 "\xda\x8a\x78\x1e\x16\xfa\x1e\x86"
32784 "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7"
32785 "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4"
32786 "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6"
32787 "\xf4\xe6\x33\x43\x84\x93\xa5\x67"
32788 "\x9b\x16\x58\x58\x80\x0f\x2b\x5c"
32789 "\x24\x74\x75\x7f\x95\x81\xb7\x30"
32790 "\x7a\x33\xa7\xf7\x94\x87\x32\x27"
32791 "\x10\x5d\x14\x4c\x43\x29\xdd\x26"
32792 "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10"
32793 "\xea\x6b\x64\xfd\x73\xc6\xed\xec"
32794 "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07"
32795 "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5"
32796 "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1"
32797 "\xec\xca\x60\x09\x4c\x6a\xd5\x09"
32798 "\x49\x46\x00\x88\x22\x8d\xce\xea"
32799 "\xb1\x17\x11\xde\x42\xd2\x23\xc1"
32800 "\x72\x11\xf5\x50\x73\x04\x40\x47"
32801 "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0"
32802 "\x3f\x58\xc1\x52\xab\x12\x67\x9d"
32803 "\x3f\x43\x4b\x68\xd4\x9c\x68\x38"
32804 "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b"
32805 "\xf9\xe5\x31\x69\x22\xf9\xa6\x69"
32806 "\xc6\x9c\x96\x9a\x12\x35\x95\x1d"
32807 "\x95\xd5\xdd\xbe\xbf\x93\x53\x24"
32808 "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00"
32809 "\x6f\x88\xc4\x37\x18\x69\x7c\xd7"
32810 "\x41\x92\x55\x4c\x03\xa1\x9a\x4b"
32811 "\x15\xe5\xdf\x7f\x37\x33\x72\xc1"
32812 "\x8b\x10\x67\xa3\x01\x57\x94\x25"
32813 "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73"
32814 "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda"
32815 "\x58\xb1\x47\x90\xfe\x42\x21\x72"
32816 "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd"
32817 "\xc6\x84\x6e\xca\xae\xe3\x68\xb4"
32818 "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b"
32819 "\x03\xa1\x31\xd9\xde\x8d\xf5\x22"
32820 "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76"
32821 "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe"
32822 "\x54\xf7\x27\x1b\xf4\xde\x02\xf5"
32823 "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e"
32824 "\x4b\x6e\xed\x46\x23\xdc\x65\xb2"
32825 "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7"
32826 "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8"
32827 "\x65\x69\x8a\x45\x29\xef\x74\x85"
32828 "\xde\x79\xc7\x08\xae\x30\xb0\xf4"
32829 "\xa3\x1d\x51\x41\xab\xce\xcb\xf6"
32830 "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3"
32831 "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7"
32832 "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9"
32833 "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a"
32834 "\x9f\xd7\xb9\x6c\x65\x14\x22\x45"
32835 "\x6e\x45\x32\x3e\x7e\x60\x1a\x12"
32836 "\x97\x82\x14\xfb\xaa\x04\x22\xfa"
32837 "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d"
32838 "\x78\x33\x5a\x7c\xad\xdb\x29\xce"
32839 "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac"
32840 "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21"
32841 "\x83\x35\x7e\xad\x73\xc2\xb5\x6c"
32842 "\x10\x26\x38\x07\xe5\xc7\x36\x80"
32843 "\xe2\x23\x12\x61\xf5\x48\x4b\x2b"
32844 "\xc5\xdf\x15\xd9\x87\x01\xaa\xac"
32845 "\x1e\x7c\xad\x73\x78\x18\x63\xe0"
32846 "\x8b\x9f\x81\xd8\x12\x6a\x28\x10"
32847 "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c"
32848 "\x83\x66\x80\x47\x80\xe8\xfd\x35"
32849 "\x1c\x97\x6f\xae\x49\x10\x66\xcc"
32850 "\xc6\xd8\xcc\x3a\x84\x91\x20\x77"
32851 "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9"
32852 "\x25\x94\x10\x5f\x40\x00\x64\x99"
32853 "\xdc\xae\xd7\x21\x09\x78\x50\x15"
32854 "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39"
32855 "\x87\x6e\x6d\xab\xde\x08\x51\x16"
32856 "\xc7\x13\xe9\xea\xed\x06\x8e\x2c"
32857 "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43"
32858 "\xb6\x98\x37\xb2\x43\xed\xde\xdf"
32859 "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b"
32860 "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9"
32861 "\x80\x55\xc9\x34\x91\xd1\x59\xe8"
32862 "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06"
32863 "\x20\xa8\x5d\xfa\xd1\xde\x70\x56"
32864 "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8"
32865 "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5"
32866 "\x44\x4b\x9f\xc2\x93\x03\xea\x2b"
32867 "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23"
32868 "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee"
32869 "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab"
32870 "\x82\x6b\x37\x04\xeb\x74\xbe\x79"
32871 "\xb9\x83\x90\xef\x20\x59\x46\xff"
32872 "\xe9\x97\x3e\x2f\xee\xb6\x64\x18"
32873 "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a"
32874 "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4"
32875 "\xce\xd3\x91\x49\x88\xc7\xb8\x4d"
32876 "\xb1\xb9\x07\x6d\x16\x72\xae\x46"
32877 "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8"
32878 "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62"
32879 "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9"
32880 "\x94\x97\xea\xdd\x58\x9e\xae\x76"
32881 "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde"
32882 "\xf7\x32\x87\xcd\x93\xbf\x11\x56"
32883 "\x11\xbe\x08\x74\xe1\x69\xad\xe2"
32884 "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe"
32885 "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76"
32886 "\x35\xea\x5d\x85\x81\xaf\x85\xeb"
32887 "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc"
32888 "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a"
32889 "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9"
32890 "\x37\x1c\xeb\x46\x54\x3f\xa5\x91"
32891 "\xc2\xb5\x8c\xfe\x53\x08\x97\x32"
32892 "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc"
32893 "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1"
32894 "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c"
32895 "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd"
32896 "\x20\x4e\x7c\x51\xb0\x60\x73\xb8"
32897 "\x9c\xac\x91\x90\x7e\x01\xb0\xe1"
32898 "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a"
32899 "\x06\x52\x95\x52\xb2\xe9\x25\x2e"
32900 "\x4c\xe2\x5a\x00\xb2\x13\x81\x03"
32901 "\x77\x66\x0d\xa5\x99\xda\x4e\x8c"
32902 "\xac\xf3\x13\x53\x27\x45\xaf\x64"
32903 "\x46\xdc\xea\x23\xda\x97\xd1\xab"
32904 "\x7d\x6c\x30\x96\x1f\xbc\x06\x34"
32905 "\x18\x0b\x5e\x21\x35\x11\x8d\x4c"
32906 "\xe0\x2d\xe9\x50\x16\x74\x81\xa8"
32907 "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc"
32908 "\xca\x34\x83\x27\x10\x5b\x68\x45"
32909 "\x8f\x52\x22\x0c\x55\x3d\x29\x7c"
32910 "\xe3\xc0\x66\x05\x42\x91\x5f\x58"
32911 "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19"
32912 "\x04\xa9\x08\x4b\x57\xfc\x67\x53"
32913 "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f"
32914 "\x92\xd6\x41\x7c\x5b\x2a\x00\x79"
32915 "\x72",
32916 .ilen = 1281,
32917 .result = "\x45\xe8\xe0\xb6\x9c\xca\xfd\x87"
32918 "\xe8\x1d\x37\x96\x8a\xe3\x40\x35"
32919 "\xcf\x5e\x3a\x46\x3d\xfb\xd0\x69"
32920 "\xde\xaf\x7a\xd5\x0d\xe9\x52\xec"
32921 "\xc2\x82\xe5\x3e\x7d\xb2\x4a\xd9"
32922 "\xbb\xc3\x9f\xc0\x5d\xac\x93\x8d"
32923 "\x0e\x6f\xd3\xd7\xfb\x6a\x0d\xce"
32924 "\x92\x2c\xf7\xbb\x93\x57\xcc\xee"
32925 "\x42\x72\x6f\xc8\x4b\xd2\x76\xbf"
32926 "\xa0\xe3\x7a\x39\xf9\x5c\x8e\xfd"
32927 "\xa1\x1d\x41\xe5\x08\xc1\x1c\x11"
32928 "\x92\xfd\x39\x5c\x51\xd0\x2f\x66"
32929 "\x33\x4a\x71\x15\xfe\xee\x12\x54"
32930 "\x8c\x8f\x34\xd8\x50\x3c\x18\xa6"
32931 "\xc5\xe1\x46\x8a\xfb\x5f\x7e\x25"
32932 "\x9b\xe2\xc3\x66\x41\x2b\xb3\xa5"
32933 "\x57\x0e\x94\x17\x26\x39\xbb\x54"
32934 "\xae\x2e\x6f\x42\xfb\x4d\x89\x6f"
32935 "\x9d\xf1\x16\x2e\xe3\xe7\xfc\xe3"
32936 "\xb2\x4b\x2b\xa6\x7c\x04\x69\x3a"
32937 "\x70\x5a\xa7\xf1\x31\x64\x19\xca"
32938 "\x45\x79\xd8\x58\x23\x61\xaf\xc2"
32939 "\x52\x05\xc3\x0b\xc1\x64\x7c\x81"
32940 "\xd9\x11\xcf\xff\x02\x3d\x51\x84"
32941 "\x01\xac\xc6\x2e\x34\x2b\x09\x3a"
32942 "\xa8\x5d\x98\x0e\x89\xd9\xef\x8f"
32943 "\xd9\xd7\x7d\xdd\x63\x47\x46\x7d"
32944 "\xa1\xda\x0b\x53\x7d\x79\xcd\xc9"
32945 "\x86\xdd\x6b\x13\xa1\x9a\x70\xdd"
32946 "\x5c\xa1\x69\x3c\xe4\x5d\xe3\x8c"
32947 "\xe5\xf4\x87\x9c\x10\xcf\x0f\x0b"
32948 "\xc8\x43\xdc\xf8\x1d\x62\x5e\x5b"
32949 "\xe2\x03\x06\xc5\x71\xb6\x48\xa5"
32950 "\xf0\x0f\x2d\xd5\xa2\x73\x55\x8f"
32951 "\x01\xa7\x59\x80\x5f\x11\x6c\x40"
32952 "\xff\xb1\xf2\xc6\x7e\x01\xbb\x1c"
32953 "\x69\x9c\xc9\x3f\x71\x5f\x07\x7e"
32954 "\xdf\x6f\x99\xca\x9c\xfd\xf9\xb9"
32955 "\x49\xe7\xcc\x91\xd5\x9b\x8f\x03"
32956 "\xae\xe7\x61\x32\xef\x41\x6c\x75"
32957 "\x84\x9b\x8c\xce\x1d\x6b\x93\x21"
32958 "\x41\xec\xc6\xad\x8e\x0c\x48\xa8"
32959 "\xe2\xf5\x57\xde\xf7\x38\xfd\x4a"
32960 "\x6f\xa7\x4a\xf9\xac\x7d\xb1\x85"
32961 "\x7d\x6c\x95\x0a\x5a\xcf\x68\xd2"
32962 "\xe0\x7a\x26\xd9\xc1\x6d\x3e\xc6"
32963 "\x37\xbd\xbe\x24\x36\x77\x9f\x1b"
32964 "\xc1\x22\xf3\x79\xae\x95\x78\x66"
32965 "\x97\x11\xc0\x1a\xf1\xe8\x0d\x38"
32966 "\x09\xc2\xee\xb7\xd3\x46\x7b\x59"
32967 "\x77\x23\xe8\xb4\x92\x3d\x78\xbe"
32968 "\xe2\x25\x63\xa5\x2a\x06\x70\x92"
32969 "\x32\x63\xf9\x19\x21\x68\xe1\x0b"
32970 "\x9a\xd0\xee\x21\xdb\x1f\xe0\xde"
32971 "\x3e\x64\x02\x4d\x0e\xe0\x0a\xa9"
32972 "\xed\x19\x8c\xa8\xbf\xe3\x2e\x75"
32973 "\x24\x2b\xb0\xe5\x82\x6a\x1e\x6f"
32974 "\x71\x2a\x3a\x60\xed\x06\x0d\x17"
32975 "\xa2\xdb\x29\x1d\xae\xb2\xc4\xfb"
32976 "\x94\x04\xd8\x58\xfc\xc4\x04\x4e"
32977 "\xee\xc7\xc1\x0f\xe9\x9b\x63\x2d"
32978 "\x02\x3e\x02\x67\xe5\xd8\xbb\x79"
32979 "\xdf\xd2\xeb\x50\xe9\x0a\x02\x46"
32980 "\xdf\x68\xcf\xe7\x2b\x0a\x56\xd6"
32981 "\xf7\xbc\x44\xad\xb8\xb5\x5f\xeb"
32982 "\xbc\x74\x6b\xe8\x7e\xb0\x60\xc6"
32983 "\x0d\x96\x09\xbb\x19\xba\xe0\x3c"
32984 "\xc4\x6c\xbf\x0f\x58\xc0\x55\x62"
32985 "\x23\xa0\xff\xb5\x1c\xfd\x18\xe1"
32986 "\xcf\x6d\xd3\x52\xb4\xce\xa6\xfa"
32987 "\xaa\xfb\x1b\x0b\x42\x6d\x79\x42"
32988 "\x48\x70\x5b\x0e\xdd\x3a\xc9\x69"
32989 "\x8b\x73\x67\xf6\x95\xdb\x8c\xfb"
32990 "\xfd\xb5\x08\x47\x42\x84\x9a\xfa"
32991 "\xcc\x67\xb2\x3c\xb6\xfd\xd8\x32"
32992 "\xd6\x04\xb6\x4a\xea\x53\x4b\xf5"
32993 "\x94\x16\xad\xf0\x10\x2e\x2d\xb4"
32994 "\x8b\xab\xe5\x89\xc7\x39\x12\xf3"
32995 "\x8d\xb5\x96\x0b\x87\x5d\xa7\x7c"
32996 "\xb0\xc2\xf6\x2e\x57\x97\x2c\xdc"
32997 "\x54\x1c\x34\x72\xde\x0c\x68\x39"
32998 "\x9d\x32\xa5\x75\x92\x13\x32\xea"
32999 "\x90\x27\xbd\x5b\x1d\xb9\x21\x02"
33000 "\x1c\xcc\xba\x97\x5e\x49\x58\xe8"
33001 "\xac\x8b\xf3\xce\x3c\xf0\x00\xe9"
33002 "\x6c\xae\xe9\x77\xdf\xf4\x02\xcd"
33003 "\x55\x25\x89\x9e\x90\xf3\x6b\x8f"
33004 "\xb7\xd6\x47\x98\x26\x2f\x31\x2f"
33005 "\x8d\xbf\x54\xcd\x99\xeb\x80\xd7"
33006 "\xac\xc3\x08\xc2\xa6\x32\xf1\x24"
33007 "\x76\x7c\x4f\x78\x53\x55\xfb\x00"
33008 "\x8a\xd6\x52\x53\x25\x45\xfb\x0a"
33009 "\x6b\xb9\xbe\x3c\x5e\x11\xcc\x6a"
33010 "\xdd\xfc\xa7\xc4\x79\x4d\xbd\xfb"
33011 "\xce\x3a\xf1\x7a\xda\xeb\xfe\x64"
33012 "\x28\x3d\x0f\xee\x80\xba\x0c\xf8"
33013 "\xe9\x5b\x3a\xd4\xae\xc9\xf3\x0e"
33014 "\xe8\x5d\xc5\x5c\x0b\x20\x20\xee"
33015 "\x40\x0d\xde\x07\xa7\x14\xb4\x90"
33016 "\xb6\xbd\x3b\xae\x7d\x2b\xa7\xc7"
33017 "\xdc\x0b\x4c\x5d\x65\xb0\xd2\xc5"
33018 "\x79\x61\x23\xe0\xa2\x99\x73\x55"
33019 "\xad\xc6\xfb\xc7\x54\xb5\x98\x1f"
33020 "\x8c\x86\xc2\x3f\xbe\x5e\xea\x64"
33021 "\xa3\x60\x18\x9f\x80\xaf\x52\x74"
33022 "\x1a\xfe\x22\xc2\x92\x67\x40\x02"
33023 "\x08\xee\x67\x5b\x67\xe0\x3d\xde"
33024 "\x7a\xaf\x8e\x28\xf3\x5e\x0e\xf4"
33025 "\x48\x56\xaa\x85\x22\xd8\x36\xed"
33026 "\x3b\x3d\x68\x69\x30\xbc\x71\x23"
33027 "\xb1\x6e\x61\x03\x89\x44\x03\xf4"
33028 "\x32\xaa\x4c\x40\x9f\x69\xfb\x70"
33029 "\x91\xcc\x1f\x11\xbd\x76\x67\xe6"
33030 "\x10\x8b\x29\x39\x68\xea\x4e\x6d"
33031 "\xae\xfb\x40\xcf\xe2\xd0\x0d\x8d"
33032 "\x6f\xed\x9b\x8d\x64\x7a\x94\x8e"
33033 "\x32\x38\x78\xeb\x7d\x5f\xf9\x4d"
33034 "\x13\xbe\x21\xea\x16\xe7\x5c\xee"
33035 "\xcd\xf6\x5f\xc6\x45\xb2\x8f\x2b"
33036 "\xb5\x93\x3e\x45\xdb\xfd\xa2\x6a"
33037 "\xec\x83\x92\x99\x87\x47\xe0\x7c"
33038 "\xa2\x7b\xc4\x2a\xcd\xc0\x81\x03"
33039 "\x98\xb0\x87\xb6\x86\x13\x64\x33"
33040 "\x4c\xd7\x99\xbf\xdb\x7b\x6e\xaa"
33041 "\x76\xcc\xa0\x74\x1b\xa3\x6e\x83"
33042 "\xd4\xba\x7a\x84\x9d\x91\x71\xcd"
33043 "\x60\x2d\x56\xfd\x26\x35\xcb\xeb"
33044 "\xac\xe9\xee\xa4\xfc\x18\x5b\x91"
33045 "\xd5\xfe\x84\x45\xe0\xc7\xfd\x11"
33046 "\xe9\x00\xb6\x54\xdf\xe1\x94\xde"
33047 "\x2b\x70\x9f\x94\x7f\x15\x0e\x83"
33048 "\x63\x10\xb3\xf5\xea\xd3\xe8\xd1"
33049 "\xa5\xfc\x17\x19\x68\x9a\xbc\x17"
33050 "\x30\x43\x0a\x1a\x33\x92\xd4\x2a"
33051 "\x2e\x68\x99\xbc\x49\xf0\x68\xe3"
33052 "\xf0\x1f\xcb\xcc\xfa\xbb\x05\x56"
33053 "\x46\x84\x8b\x69\x83\x64\xc5\xe0"
33054 "\xc5\x52\x99\x07\x3c\xa6\x5c\xaf"
33055 "\xa3\xde\xd7\xdb\x43\xe6\xb7\x76"
33056 "\x4e\x4d\xd6\x71\x60\x63\x4a\x0c"
33057 "\x5f\xae\x25\x84\x22\x90\x5f\x26"
33058 "\x61\x4d\x8f\xaf\xc9\x22\xf2\x05"
33059 "\xcf\xc1\xdc\x68\xe5\x57\x8e\x24"
33060 "\x1b\x30\x59\xca\xd7\x0d\xc3\xd3"
33061 "\x52\x9e\x09\x3e\x0e\xaf\xdb\x5f"
33062 "\xc7\x2b\xde\x3a\xfd\xad\x93\x04"
33063 "\x74\x06\x89\x0e\x90\xeb\x85\xff"
33064 "\xe6\x3c\x12\x42\xf4\xfa\x80\x75"
33065 "\x5e\x4e\xd7\x2f\x93\x0b\x34\x41"
33066 "\x02\x85\x68\xd0\x03\x12\xde\x92"
33067 "\x54\x7a\x7e\xfb\x55\xe7\x88\xfb"
33068 "\xa4\xa9\xf2\xd1\xc6\x70\x06\x37"
33069 "\x25\xee\xa7\x6e\xd9\x89\x86\x50"
33070 "\x2e\x07\xdb\xfb\x2a\x86\x45\x0e"
33071 "\x91\xf4\x7c\xbb\x12\x60\xe8\x3f"
33072 "\x71\xbe\x8f\x9d\x26\xef\xd9\x89"
33073 "\xc4\x8f\xd8\xc5\x73\xd8\x84\xaa"
33074 "\x2f\xad\x22\x1e\x7e\xcf\xa2\x08"
33075 "\x23\x45\x89\x42\xa0\x30\xeb\xbf"
33076 "\xa1\xed\xad\xd5\x76\xfa\x24\x8f"
33077 "\x98",
33078 .rlen = 1281,
33083 * CTS (Cipher Text Stealing) mode tests
33085 #define CTS_MODE_ENC_TEST_VECTORS 6
33086 #define CTS_MODE_DEC_TEST_VECTORS 6
33087 static struct cipher_testvec cts_mode_enc_tv_template[] = {
33088 { /* from rfc3962 */
33089 .klen = 16,
33090 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33091 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33092 .ilen = 17,
33093 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33094 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33095 "\x20",
33096 .rlen = 17,
33097 .result = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
33098 "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
33099 "\x97",
33100 }, {
33101 .klen = 16,
33102 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33103 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33104 .ilen = 31,
33105 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33106 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33107 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33108 "\x20\x47\x61\x75\x27\x73\x20",
33109 .rlen = 31,
33110 .result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
33111 "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
33112 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33113 "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
33114 }, {
33115 .klen = 16,
33116 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33117 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33118 .ilen = 32,
33119 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33120 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33121 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33122 "\x20\x47\x61\x75\x27\x73\x20\x43",
33123 .rlen = 32,
33124 .result = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33125 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
33126 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33127 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
33128 }, {
33129 .klen = 16,
33130 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33131 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33132 .ilen = 47,
33133 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33134 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33135 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33136 "\x20\x47\x61\x75\x27\x73\x20\x43"
33137 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
33138 "\x70\x6c\x65\x61\x73\x65\x2c",
33139 .rlen = 47,
33140 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33141 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33142 "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
33143 "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
33144 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33145 "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
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 = 48,
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\x43"
33155 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
33156 "\x70\x6c\x65\x61\x73\x65\x2c\x20",
33157 .rlen = 48,
33158 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33159 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33160 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
33161 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
33162 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33163 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
33164 }, {
33165 .klen = 16,
33166 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33167 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33168 .ilen = 64,
33169 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33170 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33171 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33172 "\x20\x47\x61\x75\x27\x73\x20\x43"
33173 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
33174 "\x70\x6c\x65\x61\x73\x65\x2c\x20"
33175 "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
33176 "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
33177 .rlen = 64,
33178 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33179 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33180 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33181 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
33182 "\x48\x07\xef\xe8\x36\xee\x89\xa5"
33183 "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
33184 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
33185 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
33189 static struct cipher_testvec cts_mode_dec_tv_template[] = {
33190 { /* from rfc3962 */
33191 .klen = 16,
33192 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33193 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33194 .rlen = 17,
33195 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33196 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33197 "\x20",
33198 .ilen = 17,
33199 .input = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
33200 "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
33201 "\x97",
33202 }, {
33203 .klen = 16,
33204 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33205 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33206 .rlen = 31,
33207 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33208 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33209 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33210 "\x20\x47\x61\x75\x27\x73\x20",
33211 .ilen = 31,
33212 .input = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
33213 "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
33214 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33215 "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
33216 }, {
33217 .klen = 16,
33218 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33219 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33220 .rlen = 32,
33221 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33222 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33223 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33224 "\x20\x47\x61\x75\x27\x73\x20\x43",
33225 .ilen = 32,
33226 .input = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33227 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
33228 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33229 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
33230 }, {
33231 .klen = 16,
33232 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33233 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33234 .rlen = 47,
33235 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33236 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33237 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33238 "\x20\x47\x61\x75\x27\x73\x20\x43"
33239 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
33240 "\x70\x6c\x65\x61\x73\x65\x2c",
33241 .ilen = 47,
33242 .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33243 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33244 "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
33245 "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
33246 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33247 "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
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 = 48,
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\x43"
33257 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
33258 "\x70\x6c\x65\x61\x73\x65\x2c\x20",
33259 .ilen = 48,
33260 .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33261 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33262 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
33263 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
33264 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33265 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
33266 }, {
33267 .klen = 16,
33268 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33269 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33270 .rlen = 64,
33271 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33272 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33273 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33274 "\x20\x47\x61\x75\x27\x73\x20\x43"
33275 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
33276 "\x70\x6c\x65\x61\x73\x65\x2c\x20"
33277 "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
33278 "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
33279 .ilen = 64,
33280 .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33281 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33282 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33283 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
33284 "\x48\x07\xef\xe8\x36\xee\x89\xa5"
33285 "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
33286 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
33287 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
33292 * Compression stuff.
33294 #define COMP_BUF_SIZE 512
33296 struct comp_testvec {
33297 int inlen, outlen;
33298 char input[COMP_BUF_SIZE];
33299 char output[COMP_BUF_SIZE];
33303 * Deflate test vectors (null-terminated strings).
33304 * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
33307 #define DEFLATE_COMP_TEST_VECTORS 2
33308 #define DEFLATE_DECOMP_TEST_VECTORS 2
33310 static struct comp_testvec deflate_comp_tv_template[] = {
33312 .inlen = 70,
33313 .outlen = 38,
33314 .input = "Join us now and share the software "
33315 "Join us now and share the software ",
33316 .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
33317 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
33318 "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
33319 "\x48\x55\x28\xce\x4f\x2b\x29\x07"
33320 "\x71\xbc\x08\x2b\x01\x00",
33321 }, {
33322 .inlen = 191,
33323 .outlen = 122,
33324 .input = "This document describes a compression method based on the DEFLATE"
33325 "compression algorithm. This document defines the application of "
33326 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
33327 .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
33328 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
33329 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
33330 "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
33331 "\x68\x12\x51\xae\x76\x67\xd6\x27"
33332 "\x19\x88\x1a\xde\x85\xab\x21\xf2"
33333 "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
33334 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
33335 "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
33336 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
33337 "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
33338 "\x52\x37\xed\x0e\x52\x6b\x59\x02"
33339 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
33340 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
33341 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
33342 "\xfa\x02",
33346 static struct comp_testvec deflate_decomp_tv_template[] = {
33348 .inlen = 122,
33349 .outlen = 191,
33350 .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
33351 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
33352 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
33353 "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
33354 "\x68\x12\x51\xae\x76\x67\xd6\x27"
33355 "\x19\x88\x1a\xde\x85\xab\x21\xf2"
33356 "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
33357 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
33358 "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
33359 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
33360 "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
33361 "\x52\x37\xed\x0e\x52\x6b\x59\x02"
33362 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
33363 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
33364 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
33365 "\xfa\x02",
33366 .output = "This document describes a compression method based on the DEFLATE"
33367 "compression algorithm. This document defines the application of "
33368 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
33369 }, {
33370 .inlen = 38,
33371 .outlen = 70,
33372 .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
33373 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
33374 "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
33375 "\x48\x55\x28\xce\x4f\x2b\x29\x07"
33376 "\x71\xbc\x08\x2b\x01\x00",
33377 .output = "Join us now and share the software "
33378 "Join us now and share the software ",
33383 * LZO test vectors (null-terminated strings).
33385 #define LZO_COMP_TEST_VECTORS 2
33386 #define LZO_DECOMP_TEST_VECTORS 2
33388 static struct comp_testvec lzo_comp_tv_template[] = {
33390 .inlen = 70,
33391 .outlen = 57,
33392 .input = "Join us now and share the software "
33393 "Join us now and share the software ",
33394 .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
33395 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
33396 "\x64\x20\x73\x68\x61\x72\x65\x20"
33397 "\x74\x68\x65\x20\x73\x6f\x66\x74"
33398 "\x77\x70\x01\x32\x88\x00\x0c\x65"
33399 "\x20\x74\x68\x65\x20\x73\x6f\x66"
33400 "\x74\x77\x61\x72\x65\x20\x11\x00"
33401 "\x00",
33402 }, {
33403 .inlen = 159,
33404 .outlen = 131,
33405 .input = "This document describes a compression method based on the LZO "
33406 "compression algorithm. This document defines the application of "
33407 "the LZO algorithm used in UBIFS.",
33408 .output = "\x00\x2c\x54\x68\x69\x73\x20\x64"
33409 "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
33410 "\x64\x65\x73\x63\x72\x69\x62\x65"
33411 "\x73\x20\x61\x20\x63\x6f\x6d\x70"
33412 "\x72\x65\x73\x73\x69\x6f\x6e\x20"
33413 "\x6d\x65\x74\x68\x6f\x64\x20\x62"
33414 "\x61\x73\x65\x64\x20\x6f\x6e\x20"
33415 "\x74\x68\x65\x20\x4c\x5a\x4f\x20"
33416 "\x2a\x8c\x00\x09\x61\x6c\x67\x6f"
33417 "\x72\x69\x74\x68\x6d\x2e\x20\x20"
33418 "\x2e\x54\x01\x03\x66\x69\x6e\x65"
33419 "\x73\x20\x74\x06\x05\x61\x70\x70"
33420 "\x6c\x69\x63\x61\x74\x76\x0a\x6f"
33421 "\x66\x88\x02\x60\x09\x27\xf0\x00"
33422 "\x0c\x20\x75\x73\x65\x64\x20\x69"
33423 "\x6e\x20\x55\x42\x49\x46\x53\x2e"
33424 "\x11\x00\x00",
33428 static struct comp_testvec lzo_decomp_tv_template[] = {
33430 .inlen = 133,
33431 .outlen = 159,
33432 .input = "\x00\x2b\x54\x68\x69\x73\x20\x64"
33433 "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
33434 "\x64\x65\x73\x63\x72\x69\x62\x65"
33435 "\x73\x20\x61\x20\x63\x6f\x6d\x70"
33436 "\x72\x65\x73\x73\x69\x6f\x6e\x20"
33437 "\x6d\x65\x74\x68\x6f\x64\x20\x62"
33438 "\x61\x73\x65\x64\x20\x6f\x6e\x20"
33439 "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
33440 "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
33441 "\x69\x74\x68\x6d\x2e\x20\x20\x54"
33442 "\x68\x69\x73\x2a\x54\x01\x02\x66"
33443 "\x69\x6e\x65\x73\x94\x06\x05\x61"
33444 "\x70\x70\x6c\x69\x63\x61\x74\x76"
33445 "\x0a\x6f\x66\x88\x02\x60\x09\x27"
33446 "\xf0\x00\x0c\x20\x75\x73\x65\x64"
33447 "\x20\x69\x6e\x20\x55\x42\x49\x46"
33448 "\x53\x2e\x11\x00\x00",
33449 .output = "This document describes a compression method based on the LZO "
33450 "compression algorithm. This document defines the application of "
33451 "the LZO algorithm used in UBIFS.",
33452 }, {
33453 .inlen = 46,
33454 .outlen = 70,
33455 .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
33456 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
33457 "\x64\x20\x73\x68\x61\x72\x65\x20"
33458 "\x74\x68\x65\x20\x73\x6f\x66\x74"
33459 "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
33460 "\x3d\x88\x00\x11\x00\x00",
33461 .output = "Join us now and share the software "
33462 "Join us now and share the software ",
33467 * Michael MIC test vectors from IEEE 802.11i
33469 #define MICHAEL_MIC_TEST_VECTORS 6
33471 static struct hash_testvec michael_mic_tv_template[] = {
33473 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
33474 .ksize = 8,
33475 .plaintext = zeroed_string,
33476 .psize = 0,
33477 .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
33480 .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
33481 .ksize = 8,
33482 .plaintext = "M",
33483 .psize = 1,
33484 .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
33487 .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
33488 .ksize = 8,
33489 .plaintext = "Mi",
33490 .psize = 2,
33491 .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
33494 .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
33495 .ksize = 8,
33496 .plaintext = "Mic",
33497 .psize = 3,
33498 .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
33501 .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
33502 .ksize = 8,
33503 .plaintext = "Mich",
33504 .psize = 4,
33505 .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
33508 .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
33509 .ksize = 8,
33510 .plaintext = "Michael",
33511 .psize = 7,
33512 .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
33517 * CRC32 test vectors
33519 #define CRC32_TEST_VECTORS 14
33521 static struct hash_testvec crc32_tv_template[] = {
33523 .key = "\x87\xa9\xcb\xed",
33524 .ksize = 4,
33525 .psize = 0,
33526 .digest = "\x87\xa9\xcb\xed",
33529 .key = "\xff\xff\xff\xff",
33530 .ksize = 4,
33531 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
33532 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
33533 "\x11\x12\x13\x14\x15\x16\x17\x18"
33534 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
33535 "\x21\x22\x23\x24\x25\x26\x27\x28",
33536 .psize = 40,
33537 .digest = "\x3a\xdf\x4b\xb0",
33540 .key = "\xff\xff\xff\xff",
33541 .ksize = 4,
33542 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
33543 "\x31\x32\x33\x34\x35\x36\x37\x38"
33544 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
33545 "\x41\x42\x43\x44\x45\x46\x47\x48"
33546 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
33547 .psize = 40,
33548 .digest = "\xa9\x7a\x7f\x7b",
33551 .key = "\xff\xff\xff\xff",
33552 .ksize = 4,
33553 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
33554 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
33555 "\x61\x62\x63\x64\x65\x66\x67\x68"
33556 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
33557 "\x71\x72\x73\x74\x75\x76\x77\x78",
33558 .psize = 40,
33559 .digest = "\xba\xd3\xf8\x1c",
33562 .key = "\xff\xff\xff\xff",
33563 .ksize = 4,
33564 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
33565 "\x81\x82\x83\x84\x85\x86\x87\x88"
33566 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
33567 "\x91\x92\x93\x94\x95\x96\x97\x98"
33568 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
33569 .psize = 40,
33570 .digest = "\xa8\xa9\xc2\x02",
33573 .key = "\xff\xff\xff\xff",
33574 .ksize = 4,
33575 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
33576 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
33577 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
33578 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
33579 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
33580 .psize = 40,
33581 .digest = "\x27\xf0\x57\xe2",
33584 .key = "\xff\xff\xff\xff",
33585 .ksize = 4,
33586 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
33587 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
33588 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
33589 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
33590 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
33591 .psize = 40,
33592 .digest = "\x49\x78\x10\x08",
33595 .key = "\x80\xea\xd3\xf1",
33596 .ksize = 4,
33597 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
33598 "\x31\x32\x33\x34\x35\x36\x37\x38"
33599 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
33600 "\x41\x42\x43\x44\x45\x46\x47\x48"
33601 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
33602 .psize = 40,
33603 .digest = "\x9a\xb1\xdc\xf0",
33606 .key = "\xf3\x4a\x1d\x5d",
33607 .ksize = 4,
33608 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
33609 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
33610 "\x61\x62\x63\x64\x65\x66\x67\x68"
33611 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
33612 "\x71\x72\x73\x74\x75\x76\x77\x78",
33613 .psize = 40,
33614 .digest = "\xb4\x97\xcc\xd4",
33617 .key = "\x2e\x80\x04\x59",
33618 .ksize = 4,
33619 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
33620 "\x81\x82\x83\x84\x85\x86\x87\x88"
33621 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
33622 "\x91\x92\x93\x94\x95\x96\x97\x98"
33623 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
33624 .psize = 40,
33625 .digest = "\x67\x9b\xfa\x79",
33628 .key = "\xa6\xcc\x19\x85",
33629 .ksize = 4,
33630 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
33631 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
33632 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
33633 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
33634 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
33635 .psize = 40,
33636 .digest = "\x24\xb5\x16\xef",
33639 .key = "\x41\xfc\xfe\x2d",
33640 .ksize = 4,
33641 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
33642 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
33643 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
33644 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
33645 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
33646 .psize = 40,
33647 .digest = "\x15\x94\x80\x39",
33650 .key = "\xff\xff\xff\xff",
33651 .ksize = 4,
33652 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
33653 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
33654 "\x11\x12\x13\x14\x15\x16\x17\x18"
33655 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
33656 "\x21\x22\x23\x24\x25\x26\x27\x28"
33657 "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
33658 "\x31\x32\x33\x34\x35\x36\x37\x38"
33659 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
33660 "\x41\x42\x43\x44\x45\x46\x47\x48"
33661 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
33662 "\x51\x52\x53\x54\x55\x56\x57\x58"
33663 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
33664 "\x61\x62\x63\x64\x65\x66\x67\x68"
33665 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
33666 "\x71\x72\x73\x74\x75\x76\x77\x78"
33667 "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
33668 "\x81\x82\x83\x84\x85\x86\x87\x88"
33669 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
33670 "\x91\x92\x93\x94\x95\x96\x97\x98"
33671 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
33672 "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
33673 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
33674 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
33675 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
33676 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
33677 "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
33678 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
33679 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
33680 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
33681 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
33682 .psize = 240,
33683 .digest = "\x6c\xc6\x56\xde",
33684 .np = 2,
33685 .tap = { 31, 209 }
33686 }, {
33687 .key = "\xff\xff\xff\xff",
33688 .ksize = 4,
33689 .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
33690 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
33691 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
33692 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
33693 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
33694 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
33695 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
33696 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
33697 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
33698 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
33699 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
33700 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
33701 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
33702 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
33703 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
33704 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
33705 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
33706 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
33707 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
33708 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
33709 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
33710 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
33711 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
33712 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
33713 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
33714 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
33715 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
33716 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
33717 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
33718 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
33719 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
33720 "\x47\xde\x75\x0c\x80\x17\xae\x22"
33721 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
33722 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
33723 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
33724 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
33725 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
33726 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
33727 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
33728 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
33729 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
33730 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
33731 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
33732 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
33733 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
33734 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
33735 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
33736 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
33737 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
33738 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
33739 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
33740 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
33741 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
33742 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
33743 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
33744 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
33745 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
33746 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
33747 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
33748 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
33749 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
33750 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
33751 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
33752 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
33753 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
33754 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
33755 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
33756 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
33757 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
33758 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
33759 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
33760 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
33761 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
33762 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
33763 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
33764 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
33765 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
33766 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
33767 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
33768 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
33769 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
33770 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
33771 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
33772 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
33773 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
33774 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
33775 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
33776 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
33777 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
33778 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
33779 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
33780 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
33781 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
33782 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
33783 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
33784 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
33785 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
33786 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
33787 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
33788 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
33789 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
33790 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
33791 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
33792 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
33793 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
33794 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
33795 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
33796 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
33797 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
33798 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
33799 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
33800 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
33801 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
33802 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
33803 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
33804 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
33805 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
33806 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
33807 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
33808 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
33809 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
33810 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
33811 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
33812 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
33813 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
33814 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
33815 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
33816 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
33817 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
33818 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
33819 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
33820 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
33821 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
33822 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
33823 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
33824 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
33825 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
33826 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
33827 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
33828 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
33829 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
33830 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
33831 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
33832 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
33833 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
33834 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
33835 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
33836 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
33837 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
33838 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
33839 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
33840 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
33841 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
33842 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
33843 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
33844 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
33845 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
33846 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
33847 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
33848 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
33849 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
33850 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
33851 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
33852 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
33853 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
33854 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
33855 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
33856 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
33857 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
33858 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
33859 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
33860 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
33861 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
33862 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
33863 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
33864 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
33865 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
33866 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
33867 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
33868 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
33869 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
33870 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
33871 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
33872 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
33873 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
33874 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
33875 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
33876 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
33877 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
33878 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
33879 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
33880 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
33881 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
33882 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
33883 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
33884 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
33885 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
33886 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
33887 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
33888 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
33889 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
33890 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
33891 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
33892 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
33893 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
33894 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
33895 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
33896 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
33897 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
33898 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
33899 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
33900 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
33901 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
33902 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
33903 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
33904 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
33905 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
33906 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
33907 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
33908 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
33909 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
33910 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
33911 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
33912 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
33913 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
33914 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
33915 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
33916 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
33917 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
33918 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
33919 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
33920 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
33921 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
33922 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
33923 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
33924 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
33925 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
33926 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
33927 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
33928 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
33929 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
33930 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
33931 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
33932 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
33933 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
33934 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
33935 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
33936 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
33937 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
33938 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
33939 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
33940 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
33941 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
33942 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
33943 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
33944 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
33945 .psize = 2048,
33946 .digest = "\xfb\x3a\x7a\xda",
33951 * CRC32C test vectors
33953 #define CRC32C_TEST_VECTORS 15
33955 static struct hash_testvec crc32c_tv_template[] = {
33957 .psize = 0,
33958 .digest = "\x00\x00\x00\x00",
33961 .key = "\x87\xa9\xcb\xed",
33962 .ksize = 4,
33963 .psize = 0,
33964 .digest = "\x78\x56\x34\x12",
33967 .key = "\xff\xff\xff\xff",
33968 .ksize = 4,
33969 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
33970 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
33971 "\x11\x12\x13\x14\x15\x16\x17\x18"
33972 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
33973 "\x21\x22\x23\x24\x25\x26\x27\x28",
33974 .psize = 40,
33975 .digest = "\x7f\x15\x2c\x0e",
33978 .key = "\xff\xff\xff\xff",
33979 .ksize = 4,
33980 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
33981 "\x31\x32\x33\x34\x35\x36\x37\x38"
33982 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
33983 "\x41\x42\x43\x44\x45\x46\x47\x48"
33984 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
33985 .psize = 40,
33986 .digest = "\xf6\xeb\x80\xe9",
33989 .key = "\xff\xff\xff\xff",
33990 .ksize = 4,
33991 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
33992 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
33993 "\x61\x62\x63\x64\x65\x66\x67\x68"
33994 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
33995 "\x71\x72\x73\x74\x75\x76\x77\x78",
33996 .psize = 40,
33997 .digest = "\xed\xbd\x74\xde",
34000 .key = "\xff\xff\xff\xff",
34001 .ksize = 4,
34002 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
34003 "\x81\x82\x83\x84\x85\x86\x87\x88"
34004 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
34005 "\x91\x92\x93\x94\x95\x96\x97\x98"
34006 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
34007 .psize = 40,
34008 .digest = "\x62\xc8\x79\xd5",
34011 .key = "\xff\xff\xff\xff",
34012 .ksize = 4,
34013 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
34014 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
34015 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
34016 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
34017 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
34018 .psize = 40,
34019 .digest = "\xd0\x9a\x97\xba",
34022 .key = "\xff\xff\xff\xff",
34023 .ksize = 4,
34024 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
34025 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
34026 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
34027 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
34028 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
34029 .psize = 40,
34030 .digest = "\x13\xd9\x29\x2b",
34033 .key = "\x80\xea\xd3\xf1",
34034 .ksize = 4,
34035 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
34036 "\x31\x32\x33\x34\x35\x36\x37\x38"
34037 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
34038 "\x41\x42\x43\x44\x45\x46\x47\x48"
34039 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
34040 .psize = 40,
34041 .digest = "\x0c\xb5\xe2\xa2",
34044 .key = "\xf3\x4a\x1d\x5d",
34045 .ksize = 4,
34046 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
34047 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
34048 "\x61\x62\x63\x64\x65\x66\x67\x68"
34049 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
34050 "\x71\x72\x73\x74\x75\x76\x77\x78",
34051 .psize = 40,
34052 .digest = "\xd1\x7f\xfb\xa6",
34055 .key = "\x2e\x80\x04\x59",
34056 .ksize = 4,
34057 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
34058 "\x81\x82\x83\x84\x85\x86\x87\x88"
34059 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
34060 "\x91\x92\x93\x94\x95\x96\x97\x98"
34061 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
34062 .psize = 40,
34063 .digest = "\x59\x33\xe6\x7a",
34066 .key = "\xa6\xcc\x19\x85",
34067 .ksize = 4,
34068 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
34069 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
34070 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
34071 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
34072 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
34073 .psize = 40,
34074 .digest = "\xbe\x03\x01\xd2",
34077 .key = "\x41\xfc\xfe\x2d",
34078 .ksize = 4,
34079 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
34080 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
34081 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
34082 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
34083 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
34084 .psize = 40,
34085 .digest = "\x75\xd3\xc5\x24",
34088 .key = "\xff\xff\xff\xff",
34089 .ksize = 4,
34090 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34091 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34092 "\x11\x12\x13\x14\x15\x16\x17\x18"
34093 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34094 "\x21\x22\x23\x24\x25\x26\x27\x28"
34095 "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
34096 "\x31\x32\x33\x34\x35\x36\x37\x38"
34097 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
34098 "\x41\x42\x43\x44\x45\x46\x47\x48"
34099 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
34100 "\x51\x52\x53\x54\x55\x56\x57\x58"
34101 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
34102 "\x61\x62\x63\x64\x65\x66\x67\x68"
34103 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
34104 "\x71\x72\x73\x74\x75\x76\x77\x78"
34105 "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
34106 "\x81\x82\x83\x84\x85\x86\x87\x88"
34107 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
34108 "\x91\x92\x93\x94\x95\x96\x97\x98"
34109 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
34110 "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
34111 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
34112 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
34113 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
34114 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
34115 "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
34116 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
34117 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
34118 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
34119 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
34120 .psize = 240,
34121 .digest = "\x75\xd3\xc5\x24",
34122 .np = 2,
34123 .tap = { 31, 209 }
34124 }, {
34125 .key = "\xff\xff\xff\xff",
34126 .ksize = 4,
34127 .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
34128 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
34129 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
34130 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
34131 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
34132 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
34133 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
34134 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
34135 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
34136 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
34137 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
34138 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
34139 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
34140 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
34141 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
34142 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
34143 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
34144 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
34145 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
34146 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
34147 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
34148 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
34149 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
34150 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
34151 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
34152 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
34153 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
34154 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
34155 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
34156 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
34157 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
34158 "\x47\xde\x75\x0c\x80\x17\xae\x22"
34159 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
34160 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
34161 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
34162 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
34163 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
34164 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
34165 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
34166 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
34167 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
34168 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
34169 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
34170 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
34171 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
34172 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
34173 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
34174 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
34175 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
34176 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
34177 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
34178 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
34179 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
34180 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
34181 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
34182 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
34183 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
34184 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
34185 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
34186 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
34187 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
34188 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
34189 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
34190 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
34191 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
34192 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
34193 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
34194 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
34195 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
34196 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
34197 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
34198 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
34199 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
34200 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
34201 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
34202 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
34203 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
34204 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
34205 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
34206 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
34207 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
34208 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
34209 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
34210 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
34211 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
34212 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
34213 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
34214 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
34215 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
34216 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
34217 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
34218 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
34219 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
34220 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
34221 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
34222 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
34223 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
34224 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
34225 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
34226 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
34227 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
34228 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
34229 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
34230 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
34231 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
34232 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
34233 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
34234 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
34235 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
34236 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
34237 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
34238 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
34239 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
34240 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
34241 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
34242 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
34243 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
34244 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
34245 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
34246 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
34247 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
34248 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
34249 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
34250 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
34251 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
34252 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
34253 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
34254 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
34255 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
34256 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
34257 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
34258 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
34259 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
34260 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
34261 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
34262 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
34263 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
34264 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
34265 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
34266 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
34267 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
34268 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
34269 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
34270 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
34271 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
34272 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
34273 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
34274 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
34275 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
34276 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
34277 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
34278 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
34279 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
34280 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
34281 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
34282 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
34283 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
34284 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
34285 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
34286 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
34287 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
34288 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
34289 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
34290 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
34291 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
34292 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
34293 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
34294 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
34295 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
34296 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
34297 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
34298 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
34299 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
34300 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
34301 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
34302 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
34303 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
34304 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
34305 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
34306 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
34307 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
34308 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
34309 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
34310 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
34311 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
34312 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
34313 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
34314 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
34315 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
34316 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
34317 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
34318 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
34319 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
34320 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
34321 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
34322 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
34323 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
34324 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
34325 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
34326 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
34327 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
34328 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
34329 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
34330 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
34331 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
34332 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
34333 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
34334 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
34335 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
34336 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
34337 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
34338 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
34339 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
34340 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
34341 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
34342 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
34343 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
34344 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
34345 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
34346 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
34347 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
34348 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
34349 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
34350 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
34351 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
34352 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
34353 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
34354 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
34355 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
34356 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
34357 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
34358 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
34359 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
34360 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
34361 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
34362 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
34363 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
34364 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
34365 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
34366 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
34367 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
34368 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
34369 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
34370 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
34371 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
34372 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
34373 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
34374 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
34375 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
34376 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
34377 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
34378 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
34379 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
34380 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
34381 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
34382 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
34383 .psize = 2048,
34384 .digest = "\xec\x26\x4d\x95",
34389 * Blakcifn CRC test vectors
34391 #define BFIN_CRC_TEST_VECTORS 6
34393 static struct hash_testvec bfin_crc_tv_template[] = {
34395 .psize = 0,
34396 .digest = "\x00\x00\x00\x00",
34399 .key = "\x87\xa9\xcb\xed",
34400 .ksize = 4,
34401 .psize = 0,
34402 .digest = "\x87\xa9\xcb\xed",
34405 .key = "\xff\xff\xff\xff",
34406 .ksize = 4,
34407 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34408 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34409 "\x11\x12\x13\x14\x15\x16\x17\x18"
34410 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34411 "\x21\x22\x23\x24\x25\x26\x27\x28",
34412 .psize = 40,
34413 .digest = "\x84\x0c\x8d\xa2",
34416 .key = "\xff\xff\xff\xff",
34417 .ksize = 4,
34418 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34419 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34420 "\x11\x12\x13\x14\x15\x16\x17\x18"
34421 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34422 "\x21\x22\x23\x24\x25\x26",
34423 .psize = 38,
34424 .digest = "\x8c\x58\xec\xb7",
34427 .key = "\xff\xff\xff\xff",
34428 .ksize = 4,
34429 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34430 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34431 "\x11\x12\x13\x14\x15\x16\x17\x18"
34432 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34433 "\x21\x22\x23\x24\x25\x26\x27",
34434 .psize = 39,
34435 .digest = "\xdc\x50\x28\x7b",
34438 .key = "\xff\xff\xff\xff",
34439 .ksize = 4,
34440 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34441 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34442 "\x11\x12\x13\x14\x15\x16\x17\x18"
34443 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34444 "\x21\x22\x23\x24\x25\x26\x27\x28"
34445 "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
34446 "\x31\x32\x33\x34\x35\x36\x37\x38"
34447 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
34448 "\x41\x42\x43\x44\x45\x46\x47\x48"
34449 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
34450 "\x51\x52\x53\x54\x55\x56\x57\x58"
34451 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
34452 "\x61\x62\x63\x64\x65\x66\x67\x68"
34453 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
34454 "\x71\x72\x73\x74\x75\x76\x77\x78"
34455 "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
34456 "\x81\x82\x83\x84\x85\x86\x87\x88"
34457 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
34458 "\x91\x92\x93\x94\x95\x96\x97\x98"
34459 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
34460 "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
34461 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
34462 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
34463 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
34464 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
34465 "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
34466 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
34467 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
34468 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
34469 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
34470 .psize = 240,
34471 .digest = "\x10\x19\x4a\x5c",
34472 .np = 2,
34473 .tap = { 31, 209 }
34478 #define LZ4_COMP_TEST_VECTORS 1
34479 #define LZ4_DECOMP_TEST_VECTORS 1
34481 static struct comp_testvec lz4_comp_tv_template[] = {
34483 .inlen = 70,
34484 .outlen = 45,
34485 .input = "Join us now and share the software "
34486 "Join us now and share the software ",
34487 .output = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75"
34488 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
34489 "\x64\x20\x73\x68\x61\x72\x65\x20"
34490 "\x74\x68\x65\x20\x73\x6f\x66\x74"
34491 "\x77\x0d\x00\x0f\x23\x00\x0b\x50"
34492 "\x77\x61\x72\x65\x20",
34496 static struct comp_testvec lz4_decomp_tv_template[] = {
34498 .inlen = 45,
34499 .outlen = 70,
34500 .input = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75"
34501 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
34502 "\x64\x20\x73\x68\x61\x72\x65\x20"
34503 "\x74\x68\x65\x20\x73\x6f\x66\x74"
34504 "\x77\x0d\x00\x0f\x23\x00\x0b\x50"
34505 "\x77\x61\x72\x65\x20",
34506 .output = "Join us now and share the software "
34507 "Join us now and share the software ",
34511 #define LZ4HC_COMP_TEST_VECTORS 1
34512 #define LZ4HC_DECOMP_TEST_VECTORS 1
34514 static struct comp_testvec lz4hc_comp_tv_template[] = {
34516 .inlen = 70,
34517 .outlen = 45,
34518 .input = "Join us now and share the software "
34519 "Join us now and share the software ",
34520 .output = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75"
34521 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
34522 "\x64\x20\x73\x68\x61\x72\x65\x20"
34523 "\x74\x68\x65\x20\x73\x6f\x66\x74"
34524 "\x77\x0d\x00\x0f\x23\x00\x0b\x50"
34525 "\x77\x61\x72\x65\x20",
34529 static struct comp_testvec lz4hc_decomp_tv_template[] = {
34531 .inlen = 45,
34532 .outlen = 70,
34533 .input = "\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",
34539 .output = "Join us now and share the software "
34540 "Join us now and share the software ",
34544 #endif /* _CRYPTO_TESTMGR_H */